service.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. import request from '../js/request.js';
  2. export default {
  3. //添加拓客经理二维码被扫记录
  4. addRecordForManager(data) {
  5. return request({
  6. url: '/expand/userScanRecord/addRecordForManager',
  7. method: 'POST',
  8. data: data
  9. })
  10. },
  11. //将扫码记录修改为成功
  12. updateScanRecordById(data) {
  13. return request({
  14. url: '/expand/userScanRecord/updateRecordById?id=' + data.recordId,
  15. method: 'POST'
  16. })
  17. },
  18. // 协议查询
  19. aboutByType(data) {
  20. return request({
  21. url: '/system/openapi/getAboutByType',
  22. method: 'GET',
  23. data: data
  24. })
  25. },
  26. // 提现记录
  27. records(data) {
  28. return request({
  29. url: '/expand/wechat/withdraw/records',
  30. method: 'POST',
  31. data:data
  32. })
  33. },
  34. // 提现
  35. apply(data) {
  36. return request({
  37. url: '/expand/wechat/withdraw/apply',
  38. method: 'POST',
  39. data:data
  40. })
  41. },
  42. // 查询今日是否能提现
  43. canWithdraw() {
  44. return request({
  45. url: '/expand/wechat/canWithdraw',
  46. method: 'GET'
  47. })
  48. },
  49. // 统计
  50. exStatistics(data) {
  51. return request({
  52. url: '/member/wechat/exStatistics',
  53. method: 'POST',
  54. data: data
  55. })
  56. },
  57. // 拓客经理查询合作伙伴
  58. getMyExpandPartnerList(data) {
  59. return request({
  60. url: '/member/wechat/getMyExpandPartnerList',
  61. method: 'GET',
  62. data: data
  63. })
  64. },
  65. idCardAndName(data) {
  66. return request({
  67. url: '/resource/authentication/idCardAndName',
  68. method: 'GET',
  69. data: data
  70. })
  71. },
  72. getMyMemberList(data) {
  73. return request({
  74. url: '/member/wechat/getMyMemberList',
  75. method: 'GET',
  76. data: data
  77. })
  78. },
  79. getMyExpandAttacheList(data) {
  80. return request({
  81. url: '/member/wechat/getMyExpandAttacheList',
  82. method: 'GET',
  83. data: data
  84. })
  85. },
  86. //查询奖励记录
  87. getRecord(data) {
  88. return request({
  89. url: '/member/wechat/getRecord',
  90. method: 'GET',
  91. data: data
  92. })
  93. },
  94. //获取规则列表,拓客经理调用
  95. getRuleList() {
  96. return request({
  97. url: '/member/wechat/getRuleList',
  98. method: 'GET'
  99. })
  100. },
  101. //获取角色列表,拓客经理调用
  102. getRoleList() {
  103. return request({
  104. url: '/member/wechat/getRoleList',
  105. method: 'GET'
  106. })
  107. },
  108. //角色绑定规则,拓客经理调用
  109. roleBindRule(param) {
  110. return request({
  111. url: '/member/wechat/roleBindRule',
  112. method: 'POST',
  113. data: param
  114. })
  115. },
  116. //取消角色绑定规则,拓客经理调用
  117. cancelRoleBindRule(param) {
  118. return request({
  119. url: '/member/wechat/cancelRoleBindRule',
  120. method: 'POST',
  121. data: param
  122. })
  123. },
  124. //查询角色已经绑定的规则,拓客经理调用
  125. getRuleByRoleId(param) {
  126. return request({
  127. url: '/member/wechat/getRuleByRoleId',
  128. method: 'POST',
  129. data: param
  130. })
  131. },
  132. //查询角色没有绑定的规则,拓客经理调用
  133. getNewRules(param) {
  134. return request({
  135. url: '/member/wechat/getNewRules',
  136. method: 'POST',
  137. data: param
  138. })
  139. },
  140. // get请求,获取手机验证码
  141. getSmsCode(data) {
  142. return request({
  143. url: '/resource/sms/code',
  144. method: 'GET',
  145. data: data
  146. })
  147. },
  148. getImage(id) {
  149. return request({
  150. url: '/resource/oss/listByIds/' + id,
  151. method: 'GET'
  152. })
  153. },
  154. // post请求,微信支付(根据订单ID)
  155. wechatPay(data) {
  156. return request({
  157. url: '/business/wxPay/jsapiPay?orderNo=' + data.orderNo,
  158. method: 'POST',
  159. data: data
  160. })
  161. },
  162. // 新增/修改分组
  163. addUpdateGroup(data) {
  164. return request({
  165. url: '/member/wechat/addUpdateGroup',
  166. method: 'POST',
  167. data: data
  168. })
  169. },
  170. // 分组列表
  171. groupList(data) {
  172. return request({
  173. url: '/member/wechat/groupList',
  174. method: 'POST',
  175. data: data
  176. })
  177. },
  178. // 查询分组成员
  179. getGroupUserList(data) {
  180. return request({
  181. url: '/member/wechat/getGroupUserList',
  182. method: 'GET',
  183. data: data
  184. })
  185. },
  186. // 查询未分组的成员
  187. getNoGroupUserList() {
  188. return request({
  189. url: '/member/wechat/getNoGroupUserList',
  190. method: 'GET'
  191. })
  192. },
  193. // 修改分组成员
  194. deleteGroup(data) {
  195. return request({
  196. url: '/member/wechat/deleteGroup',
  197. method: 'GET',
  198. data: data
  199. })
  200. },
  201. // 修改分组成员
  202. updateGroupUser(data) {
  203. return request({
  204. url: '/member/wechat/updateGroupUser',
  205. method: 'POST',
  206. data: data
  207. })
  208. },
  209. }