userInfo.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /**
  2. *@des 个人中心相关接口
  3. *@author stav stavyan@qq.com
  4. *@blog https://stavtop.club
  5. *@date 2019/11/16 11:04:16
  6. */
  7. // 个人信息
  8. const memberInfo = '/tiny-shop/v1/member/member/index';
  9. // 个人信息修改
  10. const memberUpdate = '/tiny-shop/v1/member/member/update';
  11. // 收货地址列表
  12. const addressList = '/tiny-shop/v1/member/address/index';
  13. // 默认收货地址
  14. const addressDefault = '/tiny-shop/v1/member/address/default';
  15. // 默认收货地址
  16. const addressDetail = '/tiny-shop/v1/member/address/view';
  17. // 创建收货地址
  18. const addressCreate = '/tiny-shop/v1/member/address/create';
  19. // 修改收货地址
  20. const addressUpdate = '/tiny-shop/v1/member/address/update';
  21. // 修改收货地址
  22. const addressDelete = '/tiny-shop/v1/member/address/delete';
  23. // 获取优惠券列表
  24. const couponList = '/tiny-shop/v1/marketing/coupon-type/index';
  25. // 获取我的优惠券列表
  26. const myCouponList = '/tiny-shop/v1/member/coupon/index';
  27. // 优惠券详情
  28. const couponDetail = '/tiny-shop/v1/marketing/coupon-type/view';
  29. // 领取优惠券
  30. const couponReceive = '/tiny-shop/v1/marketing/coupon-type/create';
  31. const couponClear = '/tiny-shop/v1/member/coupon/clear';
  32. // 获取我的订单
  33. const orderList = '/tiny-shop/v1/member/order/index';
  34. // 订单确认收货
  35. const orderTakeDelivery = '/tiny-shop/v1/member/order/take-delivery';
  36. // 退货/退款申请
  37. const orderRefundApply = '/tiny-shop/v1/member/order-product/refund-apply';
  38. // 产品退货提交物流
  39. const orderProductSalesReturn =
  40. '/tiny-shop/v1/member/order-product/refund-sales-return';
  41. // 关闭退货/退款申请
  42. const closeOrderRefundApply = '/tiny-shop/v1/member/order-product/refund-close';
  43. // 获取订单详情
  44. const orderDetail = '/tiny-shop/v1/member/order/view';
  45. // 删除已关闭订单
  46. const orderDelete = '/tiny-shop/v1/member/order/delete';
  47. // 获取我的足迹
  48. const footPrintList = '/tiny-shop/v1/member/footprint/index';
  49. // 删除我的足迹
  50. const footPrintDel = '/tiny-shop/v1/member/footprint/delete';
  51. // 收藏列表
  52. const collectList = '/tiny-shop/v1/member/collect/index';
  53. // 积分余额日志
  54. const creditsLogList = '/tiny-shop/v1/member/credits-log/index';
  55. // 创建订单评价
  56. const evaluateCreate = '/tiny-shop/v1/member/evaluate/create';
  57. // 追加评价
  58. const evaluateAgain = '/tiny-shop/v1/member/evaluate/again';
  59. // 订单礼品
  60. const orderProductIndex = '/tiny-shop/v1/member/order-product/index';
  61. // 发票列表
  62. const invoiceList = '/tiny-shop/v1/member/invoice/index';
  63. // 发票列表
  64. const invoiceCreate = '/tiny-shop/v1/member/invoice/create';
  65. // 发票编辑
  66. const invoiceUpdate = '/tiny-shop/v1/member/invoice/update';
  67. // 发票详情
  68. const invoiceDetail = '/tiny-shop/v1/member/invoice/view';
  69. // 默认发票
  70. const invoiceDefault = '/tiny-shop/v1/member/invoice/default';
  71. // 删除发票
  72. const invoiceDel = '/tiny-shop/v1/member/invoice/delete';
  73. // 开票列表
  74. const orderInvoiceList = '/tiny-shop/v1/member/order-invoice/index';
  75. // 发票补领
  76. const orderInvoiceCreate = '/tiny-shop/v1/member/order-invoice/create';
  77. // 意见反馈列表
  78. const opinionList = '/tiny-shop/v1/member/opinion/index';
  79. // 意见反馈创建
  80. const opinionCreate = '/tiny-shop/v1/member/opinion/create';
  81. // 意见反馈详情
  82. const opinionDetail = '/tiny-shop/v1/member/opinion/view';
  83. // 第三方授权列表
  84. const thirdPartyAuthList = '/tiny-shop/v1/member/auth/index';
  85. // 解除第三方授权列表
  86. const thirdPartyAuthDelete = '/tiny-shop/v1/member/auth/delete';
  87. // 充值金额
  88. const rechargeConfigIndex = '/tiny-shop/v1/member/recharge-config/index';
  89. // 订单售后
  90. // 申请退款/退货
  91. const orderCustomerRefundApply = '/tiny-shop/v1/member/order-customer/apply';
  92. // 退货提交物流
  93. const orderCustomerSalesReturn =
  94. '/tiny-shop/v1/member/order-customer/sales-return';
  95. // 退款/退货关闭申请
  96. const orderCustomerRefundClose = '/tiny-shop/v1/member/order-customer/close';
  97. // 上传图片
  98. const uploadImage = '/tiny-shop/v1/common/file/images';
  99. // 消息通知
  100. // 消息列表
  101. const notifyIndex = '/tiny-shop/v1/member/notify/index';
  102. // 消息详情
  103. const notifyView = '/tiny-shop/v1/member/notify/view';
  104. // 单个消息阅读
  105. const notifyRead = '/tiny-shop/v1/member/notify/read';
  106. // 全部已读
  107. const notifyReadAll = '/tiny-shop/v1/member/notify/read-all';
  108. // 删除一条或者多条
  109. const notifyClear = '/tiny-shop/v1/member/notify/clear';
  110. // 清空消息记录
  111. const notifyClearAll = '/tiny-shop/v1/member/notify/clear-all';
  112. // 未读消息个数
  113. const notifyUnRreadCount = '/tiny-shop/v1/member/notify/un-read-count';
  114. // 消息提醒配置
  115. const notifySubscriptionConfigIndex =
  116. '/tiny-shop/v1/member/notify-subscription-config/index';
  117. // 修改消息提醒配置
  118. const notifySubscriptionConfigUpConfig =
  119. '/tiny-shop/v1/member/notify-subscription-config/up-config';
  120. // 虚拟码列表
  121. const orderProductVirtualIndex =
  122. '/tiny-shop/v1/member/order-product-virtual/index';
  123. // 虚拟码详情
  124. const orderProductVirtualView =
  125. '/tiny-shop/v1/member/order-product-virtual/view';
  126. // 虚拟码详情
  127. const productVirtualVerificationVerify =
  128. '/tiny-shop/v1/order/product-virtual-verification/verify';
  129. // 会员等级
  130. const memberLevelIndex = '/tiny-shop/v1/member/member-level/index';
  131. export {
  132. memberInfo,
  133. memberUpdate,
  134. addressList,
  135. addressCreate,
  136. addressDefault,
  137. addressDetail,
  138. addressUpdate,
  139. addressDelete,
  140. couponList,
  141. myCouponList,
  142. couponClear,
  143. couponDetail,
  144. orderList,
  145. orderRefundApply,
  146. closeOrderRefundApply,
  147. orderProductSalesReturn,
  148. orderDetail,
  149. orderDelete,
  150. orderTakeDelivery,
  151. couponReceive,
  152. footPrintList,
  153. footPrintDel,
  154. collectList,
  155. creditsLogList,
  156. evaluateCreate,
  157. evaluateAgain,
  158. invoiceList,
  159. invoiceCreate,
  160. invoiceUpdate,
  161. invoiceDetail,
  162. invoiceDefault,
  163. invoiceDel,
  164. orderInvoiceCreate,
  165. orderInvoiceList,
  166. uploadImage,
  167. opinionList,
  168. opinionCreate,
  169. opinionDetail,
  170. thirdPartyAuthList,
  171. thirdPartyAuthDelete,
  172. rechargeConfigIndex,
  173. orderCustomerSalesReturn,
  174. orderCustomerRefundApply,
  175. orderCustomerRefundClose,
  176. orderProductIndex,
  177. notifyIndex,
  178. notifyView,
  179. notifyRead,
  180. notifyReadAll,
  181. notifyClear,
  182. notifyClearAll,
  183. notifyUnRreadCount,
  184. notifySubscriptionConfigUpConfig,
  185. notifySubscriptionConfigIndex,
  186. orderProductVirtualIndex,
  187. orderProductVirtualView,
  188. productVirtualVerificationVerify,
  189. memberLevelIndex
  190. };