抖音c端
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.

501 lines
11 KiB

  1. const extConfig = tt.getExtConfigSync ? tt.getExtConfigSync().extConfig : {}
  2. let weappId = extConfig.weappId;
  3. let configUrls = extConfig.attr.configUrl;
  4. var config = {
  5. url: configUrls,
  6. api: {
  7. /**
  8. * 判断小程序是否能有插件
  9. */
  10. getConfig: "/sysConfig/getByKey",
  11. /*
  12. *欢乐城首页专题
  13. */
  14. showList: "/topic/showList",
  15. /*
  16. *记录微信订阅
  17. */
  18. activityDey: "/wxActivity/listStatus", //活动日历日期
  19. activityCalendar: '/wxActivity/list', //活动日历列表
  20. signDey: "/userSign/listStatus", //签到日期列表
  21. continuousDye: "/userSign/signInStatus", //连续签到天数
  22. userSign: "/userSign/signIn", //签到
  23. signRule: "/credit/credit_rules", //签到规则
  24. wxMsg: '/user/updateMsg',
  25. // 获取服务资质
  26. getAppIcp: "/mall/getAppIcp",
  27. /**
  28. * 获取首页按钮
  29. */
  30. wxCustomizeModule: "/wxCustomizeModule/list",
  31. /**
  32. * 抖音消息推送获取模板id
  33. */
  34. templateId: "/wxMsg/ttTemplateList",
  35. //问卷列表
  36. questionnaire: "/wxQuestionOneself/list",
  37. //问卷详情
  38. questionnaireDetail: "/wxQuestionOneself/detailsById",
  39. //提交问卷
  40. submitQuestin: "/wxQuestionOneself/userAdd",
  41. //投诉建议add
  42. suggest: "/wxOpinion/add",
  43. /**
  44. * 接口用途:login
  45. */
  46. login: "/user/login",
  47. /**
  48. * 授权后获取用户的昵称,unionId等信息
  49. */
  50. getUserInfo: "/user/getUserInfo",
  51. //图片上传
  52. imgUpload: '/upload/awsFileUpload',
  53. /**
  54. * 接口用途:授权后获取用户的手机号
  55. */
  56. getUserPhone: "/user/getUserPhone",
  57. /**
  58. * 检查用户授权状态
  59. */
  60. checkUserStatus: "/user/checkUserStatus",
  61. /**
  62. * 检查用户手机授权状态
  63. */
  64. checkPhoneStatus: "/user/checkPhoneStatus",
  65. /**
  66. * 商户优惠信息
  67. */
  68. listByMerchant: "/wxCouponChannel/listByMerchant",
  69. /**
  70. * 获取券价格与库存
  71. */
  72. couponPriceAndStock: "/wxCoupon/couponPriceAndStock",
  73. /**
  74. * 获取券适用门店List
  75. */
  76. couponMerchant: "/wxCoupon/couponMerchant",
  77. /**
  78. * 获取适用门店所在的城市list
  79. */
  80. couponMerchantCity: "/wxCoupon/couponMerchantCity",
  81. /**
  82. * 获取券详情
  83. */
  84. newCouponDetail: '/wxCoupon/couponDetail',
  85. /**
  86. * 优惠券详情
  87. */
  88. couponDetail: "/wxCoupon/detail",
  89. /**
  90. * 购物车订单详情
  91. */
  92. goodsDetail: "/order/goodsDetail",
  93. /**
  94. * 获取直播商品列表的价格和库存
  95. */
  96. batchCouponPriceAndStock: "/wxCoupon/batchCouponPriceAndStock",
  97. /**
  98. * 优惠券图文混排详情
  99. */
  100. couponHtmlDetail: "/wxCoupon/html",
  101. couponHtmlDetailForPkg: "/couponOrder/html",
  102. /**
  103. * 获取样式
  104. */
  105. setType: '/wxMiniappTheme/getOne',
  106. /**
  107. * 业态查询
  108. * filter
  109. * 2 券
  110. * 1 商户
  111. */
  112. businessList: "/wxBusiness/listAll",
  113. /**
  114. * 频道查询
  115. */
  116. couponChannelList: "/wxCouponChannel/list",
  117. /**
  118. * 直播商品列表
  119. */
  120. couponChannelDouyinLiveList: "/wxCouponChannel/douyinLiveList",
  121. /**
  122. * 换一换change
  123. */
  124. change: "/wxCouponChannel/change",
  125. /**
  126. * 下订单
  127. */
  128. orderSave: "/order/save",
  129. /**
  130. * 多少量下单
  131. */
  132. goodsShopCartSave: "/order/goodsShopCartSave",
  133. /**
  134. * 支付订单
  135. */
  136. payOrderCreate: "/pay/create",
  137. /**
  138. * 2.0订单支付
  139. */
  140. payOrderCreate_2: "/pay/ttcreatev2",
  141. /**
  142. * 订单状态更新
  143. */
  144. payOrderUpdate: "/pay/updatePayOrder",
  145. /**
  146. * 订单列表 /order/list
  147. */
  148. orderList: "/order/listGoods_v1",
  149. getWeRunData: '/user/getWeRunData',
  150. /**
  151. * 订单详情
  152. */
  153. orderDetail: "/order/detail_v1",
  154. /**
  155. * 订单退款状态
  156. */
  157. getRefundStatus: "/order/getRefundStatus",
  158. /**
  159. * 查询预约状态
  160. */
  161. getUserReservation: "/wxCouponOrderReservation/getUserReservation",
  162. /**
  163. * 保存/更改预约信息
  164. */
  165. saveOrderReservation: "/wxCouponOrderReservation/saveOrUpdate",
  166. /**
  167. * 查询预约详情
  168. */
  169. getOrderReservationDetail: "/wxCouponOrderReservation/detail",
  170. /**
  171. * 取消预约
  172. */
  173. cancelReservation: "/wxCouponOrderReservation/cancelReservation",
  174. /**
  175. * 获取im客服id
  176. */
  177. getIm: "/mallIm/getIm",
  178. // 券包详情
  179. // orderDetailAll: "/order/detail_v1",
  180. /**
  181. * 券包
  182. */
  183. couponOrderList: "/couponOrder/list",
  184. /**
  185. * 券包详情
  186. */
  187. couponOrderDetail: "/couponOrder/detail", /// TODO
  188. /**
  189. * 验证码发送
  190. */
  191. sendValidationCode: "/wxMsgValidationcode/sendvalidationcode",
  192. /**
  193. * 验证码确认
  194. */
  195. validationCode: "/wxMsgValidationcode/hasvalidationcode",
  196. /**
  197. * 车场信息获取
  198. */
  199. scoreLevelInfo: '/mall/scoreLevelInfo',
  200. getParkInfo: "/wxPark/info",
  201. /**
  202. * 用户所绑车牌获取
  203. */
  204. userCarCount: "/user/carCount",
  205. /**
  206. * 用户所绑车牌获取
  207. */
  208. getUserCarList: "/user/carList",
  209. /**
  210. * 联合登录
  211. */
  212. carInit: "/car/init",
  213. /**
  214. * 绑车牌
  215. */
  216. bindCar: "/car/bindCar",
  217. /**
  218. * 解绑车牌
  219. */
  220. unbindCar: "/car/unbindCar",
  221. /**
  222. * 停车费
  223. */
  224. getCarStopFee: "/car/getCarStopFee",
  225. /**
  226. * 停车费抵扣 (TJD)
  227. */
  228. deductionFee: "/car/deductionFee",
  229. /**
  230. * 优免券领取
  231. */
  232. getCarCoupon: "/car/getCoupon",
  233. /**
  234. * 停车券包
  235. */
  236. couponOrderCarList: "/car/couponOrderList",
  237. /**
  238. * banner
  239. */
  240. bannerlist: "/wxCampaign/list",
  241. /**
  242. * banner详情页面
  243. */
  244. bannerDetail: "/wxCampaign/findById",
  245. /**
  246. * 授权个人信息
  247. * 和授权手机号
  248. * 和login页面
  249. * 页面的图标
  250. */
  251. marketicon: '/mall/getAppIcon',
  252. /**
  253. * 获取停车场状态
  254. */
  255. getParkStatus: '/car/getParkStatus',
  256. /**
  257. * 检查核销的状态
  258. */
  259. getStatus: "/couponOrder/getStatus",
  260. /**
  261. * 获得成长值
  262. */
  263. getScore: '/user/userinfo',
  264. /**
  265. * 小程序分享
  266. * title
  267. * 描述
  268. */
  269. getWeapNote: '/mall/getWeapNote',
  270. /**
  271. * 商场信息(小程序分享)
  272. */
  273. getMallInfo: '/mall/mallInfo',
  274. /**
  275. * 小程序获取游戏路径
  276. */
  277. getGame: '/game/getOne',
  278. /**
  279. * 小程序获取广告路径
  280. */
  281. getGg: '/floatingLayer/getFloatingLayer',
  282. /**
  283. * 小程序某一个游戏信息
  284. */
  285. getOneGame: '/game/getOneGame',
  286. /**
  287. * 用户更新信息
  288. */
  289. updateInfo: "/user/updateUserInfo",
  290. /**
  291. * 查询问卷
  292. */
  293. getQuestion: "/wxQuestion/getQuestion",
  294. /**
  295. * 提交问卷
  296. */
  297. answerQuestion: "/wxQuestion/answerQuestion",
  298. /**
  299. *
  300. 获取打折商户列表
  301. */
  302. discountMerchantList: "/mall/discountMerchantList",
  303. /**
  304. * 卡包分页列表接口
  305. */
  306. cardorderList: "/couponOrder/cardList",
  307. /**
  308. * 卡券详情接口
  309. */
  310. cardDetail: "/couponOrder/cardDetail",
  311. /**
  312. * C端扫B端储值卡支付订单
  313. */
  314. cardPayOrder: "/cardPay/order_create",
  315. /**
  316. * 兑换历史列表
  317. */
  318. scoreHistory: "/scoreHistory/list",
  319. /**
  320. * 获取用户折扣率
  321. */
  322. getDiscountInfo: "/user/getDiscountInfo",
  323. /**
  324. * C端扫B端储值卡交易流水列表接口
  325. */
  326. cardpayList: "/cardPay/list",
  327. /**
  328. * 根据code查询接口
  329. */
  330. findByCode: "/merchant/findByCode",
  331. /**
  332. * 参与砍价
  333. */
  334. pressOrderJoin: "/press/pressOrderJoin",
  335. /**
  336. * 我的砍价列表
  337. */
  338. pressOrderList: "/order/pressOrderList",
  339. /**
  340. * 砍价订单详情
  341. */
  342. pressOrderDetail: "/order/pressOrderDetail",
  343. /**
  344. *
  345. */
  346. getPressOrderStatus: "/press/getPressOrderStatus",
  347. /**
  348. * 查询转赠卡状态
  349. */
  350. queryCardStatus: "/couponOrder/queryCardStatus",
  351. /**
  352. * 领取转赠卡
  353. */
  354. cardAccept: '/couponOrder/cardAccept',
  355. /**
  356. * 获取我的拼团列表
  357. */
  358. getMySepllList: '/orderGroup/queryOrderGroup',
  359. /**
  360. *查询差1个的团购信息
  361. */
  362. queryRemainOne: '/orderGroup/queryRemainOne',
  363. /**
  364. * *分页列表接口
  365. */
  366. merchantList: "/merchant/list",
  367. /*
  368. * 查询拼团状态
  369. */
  370. queryOrderGroupStatus: '/orderGroup/queryOrderGroupStatus',
  371. /**
  372. * 去拼团
  373. */
  374. toOrderGroup: '/orderGroup/toOrderGroup',
  375. /**
  376. * 查询是否已参团
  377. */
  378. queryAttendStatus: '/orderGroup/queryAttendStatus',
  379. /**
  380. * 专题
  381. */
  382. topicShow: "/topic/show",
  383. /**
  384. * 专题详情
  385. */
  386. topicFindById: "/topic/findById",
  387. /**
  388. * 积分券详情
  389. */
  390. integralDetail: '/wxCoupon/findById',
  391. /**
  392. * 会员积分记录
  393. */
  394. integralList: '/credit/list',
  395. /**
  396. * 用户更新位置信息
  397. */
  398. updateLBS: "/user/updateLBS",
  399. /**
  400. * 用户更新信息
  401. */
  402. updateUserInfo: "/user/updateUserInfo",
  403. /**
  404. * 用户更新scene
  405. */
  406. updateScene: "/user/updateScene",
  407. /**
  408. * 富文本详情
  409. */
  410. printHtmlById: "/wxCampaign/printHtmlById",
  411. acfindById: "/wxActivity/findById",
  412. acPrintHtmlById: "/wxActivity/printHtmlById",
  413. //参与活动
  414. activityJoin: "/wxActivityJoin/join",
  415. //签到
  416. activitySign: "/wxActivityJoin/sign",
  417. activityList: "/wxActivityJoin/list",
  418. //获取未支付的订单
  419. getUnPaidOrder: "/order/getUnPaidOrder",
  420. getCouponOrderByPassword: '/couponPassword/getCouponOrderByPassword',
  421. getbuildingfloorlist: '/wxMallBuilding/getbuildingfloorlist',
  422. //商场信息接口
  423. getMallInfo: "/mall/mallInfo",
  424. // 获取楼层楼座数据
  425. getbuildingfloorlist: "/wxMallBuilding/getbuildingfloorlist",
  426. // 获取所有直播间和商品信息
  427. getReplayList: "/live/replayList",
  428. // 获取直播房间回放数据和商品信息
  429. getRoomList: "/live/roomList",
  430. //商城地图
  431. getStoreMap: "/wxMallBuilding/getbuildingfloorlist",
  432. //判断有没有蜂鸟地图
  433. ifFengMap: '/fengniaomap/getConfig',
  434. //分享小程序二维码
  435. getQrcodeFx: "/user/userinfoQrCode",
  436. //添加收货地址
  437. collectSite: "/userBasicInfoAddress/saveOrUpdate",
  438. //收货地址列表
  439. siteList: "/userBasicInfoAddress/list",
  440. //查询收货地址
  441. siteCheck: "/userBasicInfoAddress/findById",
  442. //删除收获地址
  443. siteDel: "/userBasicInfoAddress/del",
  444. //确认收货
  445. verify: "/couponOrder/verify",
  446. //全包下订单
  447. couponPackageSave: "/order/couponPackageSave",
  448. //获取动态核销码
  449. dynamicId: "/couponOrder/dynamicId",
  450. /**
  451. * 获取门店资质
  452. */
  453. certification: "/merchant/findCorp",
  454. /**
  455. * 交易快照
  456. */
  457. getSnapshot: "/order/getSnapshot",
  458. /**
  459. * 退款
  460. */
  461. refund: "/order/refund",
  462. /**
  463. * 查询退款详情
  464. */
  465. getRefund: "/order/getRefund",
  466. /*
  467. *查询Spuid
  468. */
  469. getSpuid: '/wxCouponChannel/getChannelPoi',
  470. /**
  471. * 获取支付订单
  472. */
  473. getchanId: "/couponOrder/getChannelPoi",
  474. /**
  475. * 获取客服链接
  476. */
  477. getServiceUrl: "/ttopen/merchantPoi/query_customer_service_url",
  478. /**
  479. * 取消订单
  480. */
  481. orderCancel: "/order/cancel",
  482. /**
  483. * 判断是否支付
  484. */
  485. continueToPay: "/order/continueToPay",
  486. },
  487. weapp: {
  488. AppId: weappId
  489. },
  490. };
  491. module.exports = config;