service.js 5.6 KB

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