抖音B端厂库
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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