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

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