apiurl.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. /*
  2. 接口统一管理
  3. */
  4. const apiurl = {
  5. // 小程序获取openid
  6. wxinfo: {
  7. url: '/member/wechat/appletGetOpenId',
  8. type: 'get'
  9. },
  10. // 授权获取微信手机号
  11. getMobile: {
  12. url: '/member/wechat/appletGetMobileV1',
  13. type: 'get'
  14. },
  15. // 小程序openid登录
  16. login: {
  17. url: '/member/auth/appletLogin',
  18. type: 'post'
  19. },
  20. // 重新登录
  21. reLogin: {
  22. url: '/auth/login',
  23. type: 'post'
  24. },
  25. // 查询登录用户信息
  26. memberInfo: {
  27. url: '/member/memberInfo/getInfoById',
  28. type: 'get'
  29. },
  30. // 修改用户信息
  31. updateMemberInfo: {
  32. url: '/memberInfo/update',
  33. type: 'put'
  34. },
  35. // 获取协议
  36. getAgreement: {
  37. url: '/system/common/getAgreement',
  38. type: 'get'
  39. },
  40. // 列表游玩攻略
  41. introductionList: {
  42. url: '/merchant/merchantIntroduction/pageList',
  43. type: 'get'
  44. },
  45. // 列表查询推荐路线
  46. recommendedList: {
  47. url: '/merchant/merchantRoute/pageList',
  48. type: 'get'
  49. },
  50. //轮播图
  51. swiperList: {
  52. url: '/advList/pageList',
  53. type: 'get'
  54. },
  55. //轮播图详情
  56. swiperDetails: {
  57. url: '/advList/selectById',
  58. type: 'get'
  59. },
  60. // 商品分类信息
  61. goodsTypeTree: {
  62. url: '/goodsType/tree',
  63. type: 'get'
  64. },
  65. // 商品分类信息列表
  66. goodsTypeList: {
  67. url: '/goodsType/list',
  68. type: 'get'
  69. },
  70. // 商品列表
  71. memberGoodList: {
  72. url: '/goods/memberGoodList',
  73. type: 'get'
  74. },
  75. // 商品详情
  76. memberGoodDetails: {
  77. url: '/goods/memberGetById',
  78. type: 'get'
  79. },
  80. // 商品海报
  81. getPoster: {
  82. url: '/goods/getPoster',
  83. type: 'put'
  84. },
  85. // 商品评价
  86. commentList: {
  87. url: '/goods/commentList',
  88. type: 'get'
  89. },
  90. // 旭烁简介
  91. xsGetIntro: {
  92. url: '/shop/getIntro',
  93. type: 'get'
  94. },
  95. // 提交合作加盟联系信息
  96. shopContact: {
  97. url: '/shopContact/insert',
  98. type: 'post'
  99. },
  100. // 商行产品类型
  101. shopGoodsType: {
  102. url: '/dict/data/type/area_name',
  103. type: 'get'
  104. },
  105. // 商行产品列表
  106. shopGoods: {
  107. url: '/shopGoods/pageList',
  108. type: 'get'
  109. },
  110. // 热销商品列表
  111. topGoodList: {
  112. url: '/goods/selectTopGoodList',
  113. type: 'get'
  114. },
  115. // 动态类型列表
  116. shopNewsType: {
  117. url: '/shopNewsType/list',
  118. type: 'get'
  119. },
  120. // 动态列表
  121. shopNewsList: {
  122. url: '/shopNews/pageList',
  123. type: 'get'
  124. },
  125. // 动态详情
  126. shopNews: {
  127. url: '/shopNews/selectById',
  128. type: 'get'
  129. },
  130. // 动态详情增加浏览量
  131. addViewCount: {
  132. url: '/shopNews/addViewCount',
  133. type: 'put'
  134. },
  135. // 购物车
  136. // 商品加入购物车
  137. addCart: {
  138. url: '/goodsCart/insert',
  139. type: 'post'
  140. },
  141. // 购物车列表
  142. cartList: {
  143. url: '/goodsCart/pageList',
  144. type: 'get'
  145. },
  146. // 修改购物车商品数量
  147. updateQuantity: {
  148. url: '/goodsCart/updateQuantity',
  149. type: 'post'
  150. },
  151. // 批量移除
  152. deleteCarts: {
  153. url: '/goodsCart/deleteByIds',
  154. type: 'delete'
  155. },
  156. // 地址列表
  157. addrList: {
  158. url: '/memberAddress/pageList',
  159. type: 'get'
  160. },
  161. // 添加地址
  162. addAddr: {
  163. url: '/memberAddress/insert',
  164. type: 'post'
  165. },
  166. // 查看详情
  167. getAddrById: {
  168. url: '/memberAddress/selectById',
  169. type: 'get'
  170. },
  171. // 修改地址
  172. editAddr: {
  173. url: '/memberAddress/update',
  174. type: 'put'
  175. },
  176. // 删除地址
  177. delAddr: {
  178. url: '/memberAddress/deleteById',
  179. type: 'delete'
  180. },
  181. // 查询登录用户订单量
  182. statisticsOrder: {
  183. url: '/order/statisticsOrder',
  184. type: 'get'
  185. },
  186. // 订单列表
  187. orderList: {
  188. url: '/order/pageList',
  189. type: 'get'
  190. },
  191. // 订单详情
  192. orderDetails: {
  193. url: '/order/selectById',
  194. type: 'get'
  195. },
  196. // 添加商品浏览量
  197. goodsAddView: {
  198. url: '/goods/addViewCount',
  199. type: 'put'
  200. },
  201. // 订单
  202. // 订单提交
  203. submitOrder: {
  204. url: '/order/submit',
  205. type: 'post'
  206. },
  207. // 订单结算详情
  208. getSettlement: {
  209. url: '/order/getSettlement',
  210. type: 'post'
  211. },
  212. // 提交积分订单
  213. submitCreditOrder: {
  214. url: '/order/submitCreditOrder',
  215. type: 'post'
  216. },
  217. // 订单退款提交
  218. refundSubmit: {
  219. url: '/order/refundSubmit',
  220. type: 'post'
  221. },
  222. // 订单退款详情
  223. refundInfo: {
  224. url: '/order/refundInfo',
  225. type: 'post'
  226. },
  227. // 订单确认收货
  228. confirmReceipt: {
  229. url: '/order/confirm',
  230. type: 'post'
  231. },
  232. // 评价
  233. addGoodsComment: {
  234. url: '/order/addGoodsComment',
  235. type: 'post'
  236. },
  237. // 查看订单明细评价
  238. getOrderDetailComment: {
  239. url: '/order/getOrderDetailComment',
  240. type: 'get'
  241. },
  242. // 订单查询物流
  243. getDilevery: {
  244. url: '/order/getDilevery',
  245. type: 'post'
  246. },
  247. // 订单关闭
  248. cancelOrder: {
  249. url: '/order/cancel',
  250. type: 'post'
  251. },
  252. // 订单支付
  253. gotoPay: {
  254. url: '/payment/gotoPay',
  255. type: 'post'
  256. },
  257. // 支付查询
  258. payQuery: {
  259. url: '/payment/payQuery',
  260. type: 'post'
  261. },
  262. // 积分规则
  263. memberCreditDesc: {
  264. url: '/memberCreditDesc/getByName',
  265. type: 'get'
  266. },
  267. // 查询登录用户积分
  268. memberCredit: {
  269. url: '/memberCreditLog/getMemberCredit',
  270. type: 'get'
  271. },
  272. // 查询积分明细列表
  273. creditList: {
  274. url: '/memberCreditLog/pageList',
  275. type: 'get'
  276. },
  277. // 提交充值订单
  278. addRechargeOrder: {
  279. url: '/rechargeOrder/insert',
  280. type: 'post'
  281. },
  282. // 充值
  283. rechargePay: {
  284. url: '/payment/rechargePay',
  285. type: 'post'
  286. },
  287. // 是否存在支付密码
  288. getExistPayPassword: {
  289. url: '/memberInfo/getExistPayPassword',
  290. type: 'get'
  291. },
  292. // 修改支付密码
  293. updatePayPassword: {
  294. url: '/memberInfo/updatePayPassword',
  295. type: 'put'
  296. },
  297. // 忘记密码更改
  298. resetPayPassword: {
  299. url: '/memberInfo/resetPayPassword',
  300. type: 'put'
  301. },
  302. // 校验支付密码
  303. checkPayPassword: {
  304. url: '/memberInfo/checkPayPassword',
  305. type: 'post'
  306. },
  307. // 获取短信验证码
  308. getCode: {
  309. url: '/memberInfo/getCode',
  310. type: 'post'
  311. },
  312. // 交易明细
  313. selectBalanceLogList: {
  314. url: '/memberInfo/selectBalanceLogList',
  315. type: 'get'
  316. },
  317. // 实名认证
  318. factorAuth: {
  319. url: '/memberInfo/factorAuth',
  320. type: 'post'
  321. },
  322. // 注册协议
  323. getRegistinfoByName: {
  324. url: '/memberCreditDesc/getRegistinfoByName',
  325. type: 'get'
  326. },
  327. // 带参小程序解码
  328. uncompress: {
  329. url: '/common/uncompress',
  330. type: 'get'
  331. },
  332. // 会员权益列表
  333. memberLevel: {
  334. url: '/memberLevel/pageList',
  335. type: 'get'
  336. },
  337. // 查询楼栋信息树
  338. selectBrandFloorTree: {
  339. url: '/brandInfo/selectBrandFloorTree',
  340. type: 'get'
  341. },
  342. // 品牌分类
  343. brandCategoryType: {
  344. url: '/dict/data/type/brand_category_type',
  345. type: 'get'
  346. },
  347. // 查询品牌信息
  348. brandList: {
  349. url: '/brandInfo/pageList',
  350. type: 'get'
  351. },
  352. // 品牌详情
  353. brandInfo: {
  354. url: '/brandInfo/selectById',
  355. type: 'get'
  356. },
  357. }
  358. /*
  359. * 特殊处理接口
  360. */
  361. const otherApiUrl = {
  362. // 文件上传
  363. uploadFile: '/file/upload/single/minio',
  364. }
  365. export {
  366. apiurl,
  367. otherApiUrl
  368. }