抖音c端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

479 lignes
11 KiB

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