抖音b端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

370 line
8.6 KiB

  1. const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync().extConfig : {}
  2. let weappId = extConfig.weappId;
  3. let dataTowerUrl = extConfig.attr.datatowerurl;
  4. let url = extConfig.attr.configUrl;
  5. var apiPrefix = url + '/B';
  6. let config = {
  7. apiPrefix: apiPrefix,
  8. api: {
  9. // 获取进件 页面地址
  10. findTt: "/api/merchant/getTtReceiverUrl",
  11. /**
  12. * 接口用途:login
  13. */
  14. login: '/api/user/login',
  15. /**
  16. * B端用户详情
  17. */
  18. userDetail: '/api/user/detail',
  19. getMallIcon: '/api/mall/getAppIcon',
  20. //提现列表
  21. withdrawLsit: "/api/cashout/list",
  22. //账户余额
  23. balance: "/api/cashout/getCurrentCashOutData",
  24. // 商户提现
  25. userWithdraw: "/api/cashout/cashout",
  26. /**
  27. * 修改密码
  28. */
  29. userUpdatePwd: '/api/user/updatepwd',
  30. /**
  31. * 券包详情
  32. */
  33. couponOrderDetail: '/api/couponOrder/detail',
  34. /**
  35. * 购买须知图文详情
  36. */
  37. couponHtmlDetail: '/api/couponOrder/html',
  38. /**
  39. * 退款
  40. */
  41. refundOrderCreate: '/api/refund/create',
  42. /**
  43. * 券核销
  44. */
  45. couponOrderVerify: '/api/couponOrder/verify',
  46. /**
  47. * 发送验证码
  48. */
  49. sendValidationCode: '/wxMsgValidationcode/sendvalidationcode',
  50. /**
  51. * 验证验证码
  52. */
  53. hasValidationCode: '/wxMsgValidationcode/hasvalidationcode',
  54. /**
  55. * 已被核销的券包
  56. */
  57. couponOrderListVerified: '/api/couponOrder/listVerified',
  58. /**
  59. * 未核销的券包
  60. */
  61. couponOrderListUnVerified: '/api/couponOrder/listUnverified',
  62. /**
  63. * 上报解单
  64. */
  65. reportDailyVolume: '/api/wxMerchantTradeDaily/reportDailyVolume',
  66. /**
  67. * 获取当日解单
  68. */
  69. getVolume: '/api/wxMerchantTradeDaily/getVolume',
  70. /**
  71. * 获取周解单
  72. */
  73. getVolumeOfWeek: '/api/wxMerchantTradeDaily/getVolumeOfWeek',
  74. /**
  75. * 交易记录list
  76. */
  77. dateAmountRecordListOrder: '/api/wxDateAmountRecord/listOrder',
  78. /**
  79. * 交易记录list
  80. */
  81. dateAmountRecordListVerified: '/api/wxDateAmountRecord/listVerified',
  82. /**
  83. * 某日期交易总流水
  84. */
  85. getUnverifiedAmountOnDate: '/api/couponOrder/getUnverifiedAmountOnDate',
  86. /**
  87. * 某日期核销总流水
  88. */
  89. getVerifiedAmountOnDate: '/api/couponOrder/getVerifiedAmountOnDate',
  90. /**
  91. *刷卡支付订单
  92. */
  93. orderCreate: '/api/micropay/order_create',
  94. /**
  95. *查询刷卡支付订单
  96. */
  97. orderQuery: '/api/micropay/order_query',
  98. /**
  99. *撤销刷卡支付订单
  100. */
  101. orderReverse: '/api/micropay/order_reverse',
  102. /**
  103. *首页查询刷卡金额记录接口
  104. */
  105. listMicropay: '/api/wxDateAmountRecord/listMicropay',
  106. /**
  107. *刷卡支付交易流水分页列表接口
  108. */
  109. micropayListMicroPay: '/api/micropay/listMicroPay',
  110. /**
  111. *刷卡支付退款
  112. */
  113. // microPayRefund: '/api/micropay/microPayRefund',
  114. /**
  115. *刷卡支付某日期交易总流水
  116. */
  117. getMicroPayAmountOnDate: '/api/micropay/getMicroPayAmountOnDate',
  118. /**
  119. * 首页账单列表
  120. */
  121. listBillOweAndWaitPay: "/api/bill/listBillOweAndWaitPay",
  122. /**
  123. * 账单
  124. */
  125. listBill: "/api/bill/listBill",
  126. /**
  127. * 预约列表
  128. */
  129. appointmentList: "/api/wxCouponOrderReservation/list",
  130. /**
  131. * 预约详情
  132. */
  133. appointDetail: "/api/wxCouponOrderReservation/detail",
  134. /**
  135. * 核销
  136. */
  137. verify: "/api/wxCouponOrderReservation/verify",
  138. /**
  139. * 预约确认
  140. */
  141. appointConfirm: "/api/wxCouponOrderReservation/updateStatus",
  142. /**
  143. * 预约确认
  144. */
  145. appointSetDate: "/api/wxCouponOrderReservation/update",
  146. /**
  147. * 获得openId
  148. */
  149. getOpenId: "/api/wx/getOpenId",
  150. /**
  151. * 获得超级管理员openid
  152. */
  153. getSuperOpenId: "/api/wx/getSuperOpenId",
  154. /**
  155. * 获得手机号
  156. */
  157. getUserPhone: "/api/wx/getUserPhone",
  158. /**
  159. *
  160. */
  161. getUserPhoneForBuser: "/api/wx/getUserPhoneForBuser",
  162. /**
  163. * 发起微信小程序支付订单
  164. */
  165. createorder: "/api/pay/create",
  166. /**
  167. * 更新支付订单状态
  168. */
  169. updatePayBill: '/api/pay/updatePayBill',
  170. /**
  171. * 获取用户等级及在此商户的折扣率及折扣后的金额
  172. */
  173. getUserInfo: "/api/user/getUserInfo",
  174. /**
  175. * 扫C端会员码返回会员信息
  176. */
  177. memScan: "/api/mem/mem_scan",
  178. /**
  179. * 补充会员信息
  180. */
  181. cMemberAdd: "/api/cuser/updateUserInfo",
  182. /**
  183. *
  184. */
  185. findUserInfo: '/api/cuser/findUserInfo',
  186. /**
  187. *b端来源会员信息分页列表接口
  188. */
  189. listCUser: '/api/cuser/listCUser',
  190. /**
  191. *C端扫B端储值卡交易流水(消费记录 + 补贴)列表接口
  192. */
  193. cardPayList: "/api/cardPay/list",
  194. /**
  195. *C端扫B端储值卡交易流水SUM
  196. */
  197. payMum: "/api/cardPay/sum",
  198. /**
  199. 补贴记录
  200. */
  201. subsidyList: "/api/subsidy/list",
  202. /**
  203. * 补贴记录汇总
  204. */
  205. subsidySum: "/api/subsidy/sum",
  206. /**
  207. * 图片上传
  208. */
  209. imgUpload: '/api/upload/awsFileUpload',
  210. /**
  211. * 获取商户列表
  212. */
  213. getMerchentList: "/api/merchant/name_list",
  214. /**
  215. * 获取消费金额对应积分
  216. */
  217. getCreditNum: "/api/credit/findByMerchantIdAndSpend",
  218. /**
  219. * 积分新增
  220. */
  221. addCredit: "/api/credit/add",
  222. /**
  223. * 根据手机号查询C端会员信息
  224. */
  225. findByPhone: "/api/credit/findByPhone",
  226. /**
  227. * 获取积分操作记录
  228. */
  229. getCreditList: "/api/credit/list",
  230. /**
  231. * 查询账户信息
  232. */
  233. findAccountById: "/api/merchant/findAccountById",
  234. /**
  235. * 更新收款账户信息
  236. */
  237. updateAccount: "/api/merchant/updateAccount",
  238. /**
  239. * 删除分账账户
  240. */
  241. deleteByReceiverId: "/api/merchant/deleteByReceiverId",
  242. /**
  243. * 获得解单的list
  244. */
  245. tradeDailyList: "/api/wxMerchantTradeDaily/list",
  246. /**
  247. *保存或编辑
  248. */
  249. saveOrUpdate: "/api/wxMerchantTradeDaily/saveOrUpdate",
  250. /**
  251. * 解单详情详情
  252. */
  253. wxMerchantTradeDailyfindById: "/api/wxMerchantTradeDaily/findById",
  254. /**
  255. * 获取会员可赠送的券列表
  256. */
  257. wxMerchantcouponSend: "/api/couponSend/list",
  258. /**
  259. * 商户注券操作
  260. */
  261. wxMerchantcouponhandSel: "/api/couponSend/handSel",
  262. /**
  263. * 商户注券记录
  264. */
  265. wxMerchantcouponStory: "/api/couponSend/actionLog",
  266. /**
  267. * 获取结算单详情接口
  268. */
  269. findSettleById: "/api/bill/findSettleById",
  270. /**
  271. * 检查用户手机授权状态
  272. */
  273. checkPhoneStatus: "/api/wx/checkPhoneStatus",
  274. /**
  275. * 检查用户是否有权限修改收款账户
  276. */
  277. permitModifiy: "/api/merchant/permitModifiy",
  278. /**
  279. * 查询服装tag
  280. */
  281. getTag: "/api/tag/getData",
  282. /**
  283. * 收银满减券
  284. */
  285. getManjian: "/api/micropay/order_create_v2",
  286. /**
  287. * 获取营销结算列表
  288. */
  289. getSubsidyList: "/api/subsidy/list",
  290. /**
  291. * 获取营销结算汇总
  292. */
  293. getSubsidySummary: "/api/subsidy/summary",
  294. /**
  295. *刷卡支付订单
  296. */
  297. orderCreate2: '/api/micropay/pay_order_create_v2',
  298. /**
  299. * 查询商户授权状态
  300. */
  301. getOpenIdByPhone: "/api/merchant/getOpenIdByPhone",
  302. /**
  303. * B端发卷-查询
  304. */
  305. getCouponlist: "/api/coupon/list",
  306. /**
  307. * B端发卷-已上架
  308. */
  309. getShelf: "/api/wxCouponChannel/list",
  310. /**
  311. * B端发卷-添加通用卷
  312. */
  313. addCoupon: "/api/coupon/add",
  314. /**
  315. * B端发卷-修改通用券
  316. */
  317. updataCoupon: "/api/coupon/update",
  318. /**
  319. *B端发卷- 提交审批
  320. */
  321. submitExamine: "/api/coupon/apply",
  322. /**
  323. * B端发卷-投放
  324. */
  325. addbatch: "/api/wxCouponChannel/addbatch",
  326. /**
  327. * B端发卷-下架
  328. */
  329. soldOut: "/api/wxCouponChannel/update",
  330. /**
  331. * B端发卷-作废
  332. */
  333. cancellation: "/api/coupon/update",
  334. /**
  335. * B端发卷-查询审批历史记录
  336. */
  337. lookHistory: "/api/coupon/flowHistory",
  338. /**
  339. * 配送列表
  340. */
  341. goodsList: '/api/couponOrder/goodsList',
  342. /**
  343. * 查询配送详情
  344. */
  345. ouponOrderId: "/api/couponOrder/detail",
  346. /**
  347. * 发货
  348. */
  349. sendGoods: "/api/couponOrder/sendGoods",
  350. /**
  351. * 导出订单记录
  352. */
  353. exportUrl: "/api/couponOrder/getVerifiedExportUrl",
  354. },
  355. weapp: {
  356. appId: weappId,
  357. dataTowerUrl: dataTowerUrl,
  358. // appId: "tt7af40c49e5cd8d5001",
  359. // dataTowerUrl: "https://mobiletest.malls.iformall.com",
  360. }
  361. }
  362. for (var key in config.api) {
  363. config.api[key] = apiPrefix + config.api[key];
  364. }
  365. console.log(config, "config");
  366. module.exports = config;