service.js 5.5 KB

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