抖音小程序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.

466 lines
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. * 订单状态更新
  136. */
  137. payOrderUpdate: "/pay/updatePayOrder",
  138. /**
  139. * 订单列表 /order/list
  140. */
  141. orderList: "/order/listGoods_v1",
  142. getWeRunData: '/user/getWeRunData',
  143. /**
  144. * 订单详情
  145. */
  146. orderDetail: "/order/detail_v1",
  147. // 券包详情
  148. // orderDetailAll: "/order/detail_v1",
  149. /**
  150. * 券包
  151. */
  152. couponOrderList: "/couponOrder/list",
  153. /**
  154. * 券包详情
  155. */
  156. couponOrderDetail: "/couponOrder/detail", /// TODO
  157. /**
  158. * 验证码发送
  159. */
  160. sendValidationCode: "/wxMsgValidationcode/sendvalidationcode",
  161. /**
  162. * 验证码确认
  163. */
  164. validationCode: "/wxMsgValidationcode/hasvalidationcode",
  165. /**
  166. * 车场信息获取
  167. */
  168. scoreLevelInfo: '/mall/scoreLevelInfo',
  169. getParkInfo: "/wxPark/info",
  170. /**
  171. * 用户所绑车牌获取
  172. */
  173. userCarCount: "/user/carCount",
  174. /**
  175. * 用户所绑车牌获取
  176. */
  177. getUserCarList: "/user/carList",
  178. /**
  179. * 联合登录
  180. */
  181. carInit: "/car/init",
  182. /**
  183. * 绑车牌
  184. */
  185. bindCar: "/car/bindCar",
  186. /**
  187. * 解绑车牌
  188. */
  189. unbindCar: "/car/unbindCar",
  190. /**
  191. * 停车费
  192. */
  193. getCarStopFee: "/car/getCarStopFee",
  194. /**
  195. * 停车费抵扣 (TJD)
  196. */
  197. deductionFee: "/car/deductionFee",
  198. /**
  199. * 优免券领取
  200. */
  201. getCarCoupon: "/car/getCoupon",
  202. /**
  203. * 停车券包
  204. */
  205. couponOrderCarList: "/car/couponOrderList",
  206. /**
  207. * banner
  208. */
  209. bannerlist: "/wxCampaign/list",
  210. /**
  211. * banner详情页面
  212. */
  213. bannerDetail: "/wxCampaign/findById",
  214. /**
  215. * 授权个人信息
  216. * 和授权手机号
  217. * 和login页面
  218. * 页面的图标
  219. */
  220. marketicon: '/mall/getAppIcon',
  221. /**
  222. * 获取停车场状态
  223. */
  224. getParkStatus: '/car/getParkStatus',
  225. /**
  226. * 检查核销的状态
  227. */
  228. getStatus: "/couponOrder/getStatus",
  229. /**
  230. * 获得成长值
  231. */
  232. getScore: '/user/userinfo',
  233. /**
  234. * 小程序分享
  235. * title
  236. * 描述
  237. */
  238. getWeapNote: '/mall/getWeapNote',
  239. /**
  240. * 商场信息(小程序分享)
  241. */
  242. getMallInfo: '/mall/mallInfo',
  243. /**
  244. * 小程序获取游戏路径
  245. */
  246. getGame: '/game/getOne',
  247. /**
  248. * 小程序获取广告路径
  249. */
  250. getGg: '/floatingLayer/getFloatingLayer',
  251. /**
  252. * 小程序某一个游戏信息
  253. */
  254. getOneGame: '/game/getOneGame',
  255. /**
  256. * 用户更新信息
  257. */
  258. updateInfo: "/user/updateUserInfo",
  259. /**
  260. * 查询问卷
  261. */
  262. getQuestion: "/wxQuestion/getQuestion",
  263. /**
  264. * 提交问卷
  265. */
  266. answerQuestion: "/wxQuestion/answerQuestion",
  267. /**
  268. *
  269. 获取打折商户列表
  270. */
  271. discountMerchantList: "/mall/discountMerchantList",
  272. /**
  273. * 卡包分页列表接口
  274. */
  275. cardorderList: "/couponOrder/cardList",
  276. /**
  277. * 卡券详情接口
  278. */
  279. cardDetail: "/couponOrder/cardDetail",
  280. /**
  281. * C端扫B端储值卡支付订单
  282. */
  283. cardPayOrder: "/cardPay/order_create",
  284. /**
  285. * 兑换历史列表
  286. */
  287. scoreHistory: "/scoreHistory/list",
  288. /**
  289. * 获取用户折扣率
  290. */
  291. getDiscountInfo: "/user/getDiscountInfo",
  292. /**
  293. * C端扫B端储值卡交易流水列表接口
  294. */
  295. cardpayList: "/cardPay/list",
  296. /**
  297. * 根据code查询接口
  298. */
  299. findByCode: "/merchant/findByCode",
  300. /**
  301. * 参与砍价
  302. */
  303. pressOrderJoin: "/press/pressOrderJoin",
  304. /**
  305. * 我的砍价列表
  306. */
  307. pressOrderList: "/order/pressOrderList",
  308. /**
  309. * 砍价订单详情
  310. */
  311. pressOrderDetail: "/order/pressOrderDetail",
  312. /**
  313. *
  314. */
  315. getPressOrderStatus: "/press/getPressOrderStatus",
  316. /**
  317. * 查询转赠卡状态
  318. */
  319. queryCardStatus: "/couponOrder/queryCardStatus",
  320. /**
  321. * 领取转赠卡
  322. */
  323. cardAccept: '/couponOrder/cardAccept',
  324. /**
  325. * 获取我的拼团列表
  326. */
  327. getMySepllList: '/orderGroup/queryOrderGroup',
  328. /**
  329. *查询差1个的团购信息
  330. */
  331. queryRemainOne: '/orderGroup/queryRemainOne',
  332. /**
  333. * *分页列表接口
  334. */
  335. merchantList: "/merchant/list",
  336. /*
  337. * 查询拼团状态
  338. */
  339. queryOrderGroupStatus: '/orderGroup/queryOrderGroupStatus',
  340. /**
  341. * 去拼团
  342. */
  343. toOrderGroup: '/orderGroup/toOrderGroup',
  344. /**
  345. * 查询是否已参团
  346. */
  347. queryAttendStatus: '/orderGroup/queryAttendStatus',
  348. /**
  349. * 专题
  350. */
  351. topicShow: "/topic/show",
  352. /**
  353. * 专题详情
  354. */
  355. topicFindById: "/topic/findById",
  356. /**
  357. * 积分券详情
  358. */
  359. integralDetail: '/wxCoupon/findById',
  360. /**
  361. * 会员积分记录
  362. */
  363. integralList: '/credit/list',
  364. /**
  365. * 用户更新位置信息
  366. */
  367. updateLBS: "/user/updateLBS",
  368. /**
  369. * 用户更新信息
  370. */
  371. updateUserInfo: "/user/updateUserInfo",
  372. /**
  373. * 用户更新scene
  374. */
  375. updateScene: "/user/updateScene",
  376. /**
  377. * 富文本详情
  378. */
  379. printHtmlById: "/wxCampaign/printHtmlById",
  380. acfindById: "/wxActivity/findById",
  381. acPrintHtmlById: "/wxActivity/printHtmlById",
  382. //参与活动
  383. activityJoin: "/wxActivityJoin/join",
  384. //签到
  385. activitySign: "/wxActivityJoin/sign",
  386. activityList: "/wxActivityJoin/list",
  387. //获取未支付的订单
  388. getUnPaidOrder: "/order/getUnPaidOrder",
  389. getCouponOrderByPassword: '/couponPassword/getCouponOrderByPassword',
  390. getbuildingfloorlist: '/wxMallBuilding/getbuildingfloorlist',
  391. //商场信息接口
  392. getMallInfo: "/mall/mallInfo",
  393. // 获取楼层楼座数据
  394. getbuildingfloorlist: "/wxMallBuilding/getbuildingfloorlist",
  395. // 获取所有直播间和商品信息
  396. getReplayList: "/live/replayList",
  397. // 获取直播房间回放数据和商品信息
  398. getRoomList: "/live/roomList",
  399. //商城地图
  400. getStoreMap:"/wxMallBuilding/getbuildingfloorlist",
  401. //判断有没有蜂鸟地图
  402. ifFengMap:'/fengniaomap/getConfig',
  403. //分享小程序二维码
  404. getQrcodeFx:"/user/userinfoQrCode",
  405. //添加收货地址
  406. collectSite:"/userBasicInfoAddress/saveOrUpdate",
  407. //收货地址列表
  408. siteList: "/userBasicInfoAddress/list",
  409. //查询收货地址
  410. siteCheck: "/userBasicInfoAddress/findById",
  411. //删除收获地址
  412. siteDel: "/userBasicInfoAddress/del",
  413. //确认收货
  414. verify:"/couponOrder/verify",
  415. //全包下订单
  416. couponPackageSave :"/order/couponPackageSave",
  417. //获取动态核销码
  418. dynamicId:"/couponOrder/dynamicId",
  419. /**
  420. * 获取门店资质
  421. */
  422. certification:"/merchant/findCorp",
  423. /**
  424. * 交易快照
  425. */
  426. getSnapshot:"/order/getSnapshot",
  427. /**
  428. * 退款
  429. */
  430. refund:"/order/refund",
  431. /**
  432. * 查询退款详情
  433. */
  434. getRefund:"/order/getRefund",
  435. /*
  436. *查询Spuid
  437. */
  438. getSpuid:'/wxCouponChannel/getChannelPoi',
  439. /**
  440. * 获取支付订单
  441. */
  442. getchanId:"/couponOrder/getChannelPoi",
  443. /**
  444. * 获取客服链接
  445. */
  446. getServiceUrl:"/ttopen/merchantPoi/query_customer_service_url",
  447. /**
  448. * 取消订单
  449. */
  450. orderCancel:"/order/cancel"
  451. },
  452. weapp: {
  453. AppId: weappId
  454. },
  455. };
  456. module.exports = config;