http.api.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. // 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作,更多内容详见uView对拦截器的介绍部分:
  2. // https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F
  3. const install = (Vue, vm) => {
  4. // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
  5. vm.$u.api = {
  6. // 根据系统模板d获取对应模板设置内容
  7. getSettingDataByMessageId: (params = '') => vm.$u.post(
  8. `/System/ApiPushMessage/getSettingDataByMessageIds`, params),
  9. // 获取app版本
  10. getVersion: (params = '') => vm.$u.post(`/System/ApiBasicSetup/getVersion`, params),
  11. // App微信授权登录获取unionID
  12. unionIDUserinfo: (params = '') => vm.$u.post(`/Common/Login/userinfo`, params),
  13. // 获取网页版access_token type 1 公众号 2开放平台 {"code":"","type":2}
  14. getAccessToken: (params = '') => vm.$u.post(`/Common/Login/access_token`, params),
  15. // 判断订单支付状态
  16. orderquery: (params = '') => vm.$u.post(`/Common/Pay/orderquery`, params),
  17. // 字节跳动获取分享小程序码
  18. byteCreateQRCode: (params = '') => vm.$u.post(`/Common/Login/byteCreateQRCode`, params),
  19. // 获取分享微信小程序码
  20. createwxaqrcode: (params = '') => vm.$u.post(`/common/login/createwxaqrcode`, params),
  21. // 获取基础资料
  22. getCustomerInfo: (params = '') => vm.$u.get(`/Customer/ApiCustomer/getCustomerInfo`, params),
  23. //基础资料
  24. editCustomerInfo: (params = '') => vm.$u.post(`/Customer/ApiCustomer/editCustomerInfo`, params),
  25. //首页模版及数据
  26. getTemplate: (params = '') => vm.$u.get(`/System/ApiTemplate/getTemplate`, params),
  27. //首页(万能模版)
  28. getHome: (params = '') => vm.$u.get(`/System/ApiPage/home`, params),
  29. //首页模版及数据2
  30. homePage: (params = '') => vm.$u.post(`/System/ApiTemplate/homePage`, params),
  31. //首页模版及数据2
  32. getDetailById: (id, params = '') => vm.$u.get(`/System/ApiPage/getDetailById/${id}`, params),
  33. /**
  34. * 地区
  35. * */
  36. // 获取省份
  37. getAllProvince: () => vm.$u.get(`/Common/SysAreaChina/getAllProvince`),
  38. // 获取省下的市
  39. getAllCityByProvinceCode: (code = '') => vm.$u.get(
  40. `/Common/SysAreaChina/getAllCityByProvinceCode/${code}`),
  41. // 获取市下的区
  42. getAllAreaByCityCode: (code = '') => vm.$u.get(`/Common/SysAreaChina/getAllAreaByCityCode/${code}`),
  43. /**
  44. * 生成七牛上传凭证
  45. * */
  46. uploadToken: (params = '') => vm.$u.post(`/Common/Upload/uploadToken`, params),
  47. UploadDel: (params = '') => vm.$u.post(`/Common/Upload/delete`, params),
  48. // 短信登录
  49. smsLogin: (params = '') => vm.$u.post(`/UserCenter/ApiUserCenter/smsLogin`, params),
  50. // 用户登录
  51. login: (params = '') =>
  52. vm.$u.post(`/UserCenter/ApiUserCenter/login`, params),
  53. //用户注册
  54. addUserCenter: (params = '') =>
  55. vm.$u.post(`/UserCenter/ApiUserCenter/register`, params),
  56. // 发送验证码
  57. sendMobileCode: (params = '') =>
  58. vm.$u.post(`/Common/SmsCode/sendMobileCode`, params),
  59. // 判断用户是否注册过
  60. mobileIsRegister: (id, params = '') =>
  61. vm.$u.get(`/UserCenter/ApiUserCenter/mobileIsRegister/${id}`, params),
  62. // 忘记密码
  63. forgetPassword: (params = '') =>
  64. vm.$u.post(`/UserCenter/ApiUserCenter/changePassword`, params),
  65. // 小程序绑定手机号
  66. appletsBindMobile: (params = '') =>
  67. vm.$u.post(`/UserCenter/ApiUserCenter/appletsBindMobile`, params),
  68. // 根据openID进行登录 ApiUser/User/getUserInfoByOpenId
  69. getOpenId: (params = '') =>
  70. vm.$u.post(`/Common/Login/login`, params),
  71. // 小程序判断是否已绑定 UserCenter/ApiUserCenter/checkBindMiniProgram post
  72. checkBindMiniProgram: (params = '') =>
  73. vm.$u.post(`/UserCenter/ApiUserCenter/checkBindMiniProgram`, params),
  74. // 小程序解密接口 Common/Login/decryptData
  75. decryptData: (params = '') =>
  76. vm.$u.post(`/Common/Login/decryptData`, params),
  77. // 头条小程序登陆
  78. microappLogin: (params = '') =>
  79. vm.$u.post(`/Common/Login/microappLogin`, params),
  80. /*-------------分类-----------*/
  81. // 分类模版详情
  82. getClassSettingInfo: (params = '') =>
  83. vm.$u.post(`/System/ApiClassSetting/getClassSettingInfo`, params),
  84. // 商品列表 Goods/Goods/search post
  85. goodSearch: (params = '') =>
  86. vm.$u.post(`/Goods/Goods/search`, params),
  87. // 商品列表 Goods/ApiGoods/getGoodsByCategory post
  88. getGoodsByCategory: (params = '') =>
  89. vm.$u.post(`/Goods/ApiGoods/getGoodsByCategory`, params),
  90. // 商品详情
  91. getGoodsDetail: (id, params = '') =>
  92. vm.$u.get(`/Goods/ApiGoods/getGoodsDetail/${id}`, params),
  93. // 分类列表 GoodsCategory/ApiGoodsCategory/getAllCategory get
  94. getAllCategory: (params = '') =>
  95. vm.$u.post(`/GoodsCategory/ApiGoodsCategory/getAllCategory`, params),
  96. // 子分类 GoodsCategory/ApiGoodsCategory/getAllCategoryByPid/1
  97. getAllCategoryByPidid: (id, params = '') =>
  98. vm.$u.get(`/GoodsCategory/ApiGoodsCategory/getAllCategoryByPid/${id}`, params),
  99. // 所有一级分类 GoodsCategory/ApiGoodsCategory/getAllCategoryByPid get
  100. getAllCategoryByPid: (params = '') =>
  101. vm.$u.get(`/GoodsCategory/ApiGoodsCategory/getAllCategoryByPid`, params),
  102. // 小程序服务列表
  103. getAllGoodsSupport: (params = '') =>
  104. vm.$u.post(`/Goods/apiGoods/getAllGoodsSupport`, params),
  105. // 小程序品牌列表
  106. getAllBrand: (params = '') =>
  107. vm.$u.post(`/Goods/apiGoods/getAllBrand`, params),
  108. /*-------------常购清单------------*/
  109. // 收藏/取消收藏
  110. collectGoods: (id) => vm.$u.get(`/Goods/ApiGoods/collect/${id}`),
  111. // 常购清单
  112. normalList: (params = '') =>
  113. vm.$u.post(`/Goods/ApiGoods/normalList`, params),
  114. /*-------------购物车------------*/
  115. // 加入购物车 Cart/ApiCart/addCart post
  116. addCart: (params = '') =>
  117. vm.$u.post(`/Cart/ApiCart/addCart`, params),
  118. // 获取购物车 Cart/ApiCart/getCartByUserCenterId get
  119. getCartByUserCenterId: (params = '') =>
  120. vm.$u.get(`/Cart/ApiCart/getCartByUserCenterId`, params),
  121. // 移除购物车 Cart/ApiCart/delCart post
  122. delCart: (params = '') =>
  123. vm.$u.post(`/Cart/ApiCart/delCart`, params),
  124. // 购物车商品选中/取消
  125. updateSelection: (params = '') =>
  126. vm.$u.post(`/Cart/ApiCart/updateSelection`, params),
  127. // 更新购物车某个商品数量 Cart/ApiCart/updateBuyNum/5 put
  128. updateBuyNum: (id, params = '') =>
  129. vm.$u.put(`/Cart/ApiCart/updateBuyNum/${id}`, params),
  130. // 确认订单
  131. confirmationOfOrder: (params = '') =>
  132. vm.$u.post(`/Cart/ApiCart/confirmationOfOrder`, params),
  133. // 组合商品立即购买
  134. buyNow: (params = '') =>
  135. vm.$u.post(`/Cart/ApiCart/buyNow`, params),
  136. // 商品立即购买
  137. goodsBuyNow: (params = '') =>
  138. vm.$u.post(`/cart/apiCart/goodsBuyNow`, params),
  139. /*----------地址管理---------------*/
  140. // 客户地址添加 Customer/ShippingAddress/addShippingAddress post
  141. addShippingAddress: (params = '') =>
  142. vm.$u.post(`/Customer/ShippingAddress/addShippingAddress`, params),
  143. // 客户地址删除 Customer/ShippingAddress/deleteShippingAddress/1 del
  144. deleteShippingAddress: (id, params = '') =>
  145. vm.$u.delete(`/Customer/ShippingAddress/deleteShippingAddress/${id}`, params),
  146. // 客户地址修改 Customer/ShippingAddress/updateShippingAddress put
  147. updateShippingAddress: (id, params = '') =>
  148. vm.$u.put(`/Customer/ShippingAddress/updateShippingAddress/${id}`, params),
  149. // 客户地址详情 Customer/ShippingAddress/getShippingAddressInfo/1 get
  150. getShippingAddressInfo: (id, params = '') =>
  151. vm.$u.get(`/Customer/ShippingAddress/getShippingAddressInfo/${id}`, params),
  152. // 客户类型
  153. getCustomerSourceList: (params = '') =>
  154. vm.$u.get(`/Customer/ApiCustomer/getCustomerSourceList`, params),
  155. // 客户余额明细记录
  156. getAllCustomerBalanceDetail: (params = '') =>
  157. vm.$u.post(`/Customer/apiCustomer/getAllCustomerBalanceDetail`, params),
  158. // 地址
  159. getAllShippingAddress: (params = '') =>
  160. vm.$u.post(`/Customer/ShippingAddress/getAllShippingAddress`, params),
  161. /*---------客户订单---------*/
  162. // 用户订单状态数量统计
  163. getOrderStatusNum: (params = '') =>
  164. vm.$u.post(`/Order/ApiOrder/getOrderStatusNum`, params),
  165. // 提交银行打款凭证
  166. addOrderBankData: (params = '') =>
  167. vm.$u.post(`/Order/ApiOrder/addOrderBankData`, params),
  168. // 售后订单列表
  169. getAllOrderReturn: (params = '') =>
  170. vm.$u.post(`/Order/ApiOrder/getAllOrderReturn`, params),
  171. // 订单退货添加
  172. addOrderReturn: (params = '') =>
  173. vm.$u.post(`/Order/ApiOrder/addOrderReturn`, params),
  174. // 订单物流查询
  175. getExpressInfoByOrderId: (id, params = '') =>
  176. vm.$u.post(`/Order/ApiOrder/getExpressInfoByOrderId/${id}`, params),
  177. // 订单
  178. getOrderSelect: (params = '') =>
  179. vm.$u.post(`/Order/ApiOrder/getOrderSelect`, params),
  180. // 添加订单
  181. addOrder: (params = '') =>
  182. vm.$u.post(`/Order/ApiOrder/addOrder`, params),
  183. // 获取订单详情
  184. getOrderInfoById: (id, params = '') =>
  185. vm.$u.get(`/Order/ApiOrder/getOrderInfoById/${id}`, params),
  186. // 取消订单&&确认收货
  187. updateOrderStatus: (id, params = '') =>
  188. vm.$u.put(`/Order/ApiOrder/updateOrderStatus/${id}`, params),
  189. // 支付方式列表
  190. getPaymentType: (params = '') =>
  191. vm.$u.post(`/System/ApiPayment/getPaymentType`, params),
  192. // 订单再次支付 Order/ApiOrder/payOrder POST
  193. payOrder: (params = '') =>
  194. vm.$u.post(`/Order/ApiOrder/payOrder`, params),
  195. //商品列表页调整购买数量 Cart/ApiCart/updateCartNum/1 put
  196. updateCartNum: (id, params = '') =>
  197. vm.$u.put(`/Cart/ApiCart/updateCartNum/${id}`, params),
  198. // 获取用户基本设置 System/ApiBasicSetup/getBasicField get
  199. getBasicField: (params = '') =>
  200. vm.$u.post(`/System/ApiBasicSetup/getBasicField`, params),
  201. // 商品收藏 Customer/ApiCustomer/collect/19
  202. collect: (id, params = '') =>
  203. vm.$u.get(`/Customer/ApiCustomer/collect/${id}`, params),
  204. /*---------优惠券---------*/
  205. // 优惠券列表(注册,在线支付,主动领取)
  206. couponList: (params = '') =>
  207. vm.$u.post(`/Market/ApiCoupon/couponList`, params),
  208. // 领取优惠券
  209. receive: (params = '') =>
  210. vm.$u.post(`/Market/ApiCoupon/receive`, params),
  211. // 优惠券盒子
  212. couponAll: (params = '') =>
  213. vm.$u.post(`/Market/ApiCoupon/selectAll`, params),
  214. // 获取秒杀列表 Market/ApiActivity/getActivityAll
  215. getActivityAll: (params = '') =>
  216. vm.$u.get(`/Market/ApiActivity/getActivityAll`, params),
  217. // 企业详情
  218. getEnterpriseInfo: (params = '') =>
  219. vm.$u.get(`/Enterprise/ApiEnterprise/getEnterpriseInfo`, params),
  220. // 会员卡列表 Market/ApiVipCard/getAllVipCard
  221. getAllVipCard: (params = '') =>
  222. vm.$u.post(`/Market/ApiVipCard/getAllVipCard`, params),
  223. // 我的会员卡 Market/ApiVipCard/getMyVipCards
  224. getMyVipCards: (params = '') =>
  225. vm.$u.post(`/Market/ApiVipCard/getMyVipCards`, params),
  226. // 会员卡详情 Market/ApiVipCard/getVipInfo/1
  227. getVipInfo: (id, params = '') =>
  228. vm.$u.get(`/Market/ApiVipCard/getVipInfo/${id}`, params),
  229. // 创建会员卡订单 Market/ApiVipCard/createVipCardOrder
  230. createVipCardOrder: (params = '') =>
  231. vm.$u.post(`/Market/ApiVipCard/createVipCardOrder`, params),
  232. // 获取公司的基本设置
  233. getBasicSetup: (params = '') =>
  234. vm.$u.get(`/System/ApiBasicSetup/getBasicField`, params),
  235. // 一键领取优惠券(会员卡) Market/ApiCoupon/oneKeyReceive
  236. oneKeyReceive: (params = '') =>
  237. vm.$u.post(`/Market/ApiCoupon/oneKeyReceive`, params),
  238. // 订单列表获取我的会员卡 Cart/ApiCart/getVipCard
  239. orderVipCard: (params = '') =>
  240. vm.$u.get(`/Cart/ApiCart/getVipCard`, params),
  241. /* 分销中心 */
  242. // 分销商申请
  243. applicationBusinessman: (params = '') =>
  244. vm.$u.post(`/Commission/ApiCommissionBusinessman/applicationBusinessman`, params),
  245. // 分销商详情
  246. getInfoBusinessman: (params = '') =>
  247. vm.$u.get(`/Commission/ApiCommissionBusinessman/getInfoBusinessman`, params),
  248. // 查询设置
  249. getDistributionSetting: (params = '') =>
  250. vm.$u.post(`/Commission/ApiCommissionSetting/getSetting`, params),
  251. // 添加上下级关系
  252. relationshipBusinessman: (params = '') =>
  253. vm.$u.post(`/Commission/ApiCommissionBusinessman/relationshipBusinessman`, params),
  254. // 查询文字设置
  255. getTxtSetting: (params = '') =>
  256. vm.$u.post(`/Commission/ApiCommissionSetting/getTxtSetting`, params),
  257. // 查询分销商的下级
  258. getAllSub: (params = '') =>
  259. vm.$u.post(`/Commission/ApiCommissionBusinessman/getAllSub`, params),
  260. // 查询升级商品
  261. getBuyGoods: (params = '') =>
  262. vm.$u.get(`/Commission/ApiCommissionSetting/getBuyGoods`, params),
  263. // 分销中心订单
  264. getCommissionOrder: (params = '') =>
  265. vm.$u.post(`/Commission/ApiCommissionBusinessman/getCommissionOrder`, params),
  266. // 分销订单详情
  267. getCommissionOrderInfo: (id, params = '') =>
  268. vm.$u.post(`/Commission/ApiCommissionBusinessman/getCommissionOrderInfo/${id}`, params),
  269. // 申请提现
  270. WithdrawalsAdd: (params = '') =>
  271. vm.$u.post(`/Commission/ApiCommissionWithdrawals/add`, params),
  272. // 获取提现申请列表
  273. CommissionWithdrawalsGetAll: (params = '') =>
  274. vm.$u.post(`/Commission/ApiCommissionWithdrawals/getAll`, params),
  275. // 获取提现申请详情
  276. CommissionWithdrawalsDetail: (id, params = '') =>
  277. vm.$u.get(`/Commission/ApiCommissionWithdrawals/detail/${id}`, params),
  278. // 等级说明
  279. getAllGrade: (params = '') =>
  280. vm.$u.get(`/Commission/ApiCommissionBusinessman/getAllGrade`, params),
  281. // 排行榜
  282. commissionTop: (params = '') =>
  283. vm.$u.get(`/Commission/ApiCommissionBusinessman/commissionTop`, params),
  284. // 获取设置(小程序)
  285. MerchantGetSeting: (params = '') =>
  286. vm.$u.get(`/Merchant/ApiMerchant/getSetting`, params),
  287. // 商户入驻申请(小程序)
  288. MerchantApply: (params = '') =>
  289. vm.$u.post(`/Merchant/ApiMerchant/addApply`, params),
  290. // 入驻申请修改(小程序)
  291. updateApply: (id, params = '') =>
  292. vm.$u.put(`/Merchant/ApiMerchant/updateApply/${id}`, params),
  293. // 取消入驻申请(小程序)
  294. delApply: (id, params = '') =>
  295. vm.$u.get(`/Merchant/ApiMerchant/delApply/${id}`, params),
  296. // 商户详情(小程序)
  297. getInfoMerchant: (params = '') =>
  298. vm.$u.get(`/Merchant/ApiMerchant/getInfoMerchant`, params),
  299. // 商户列表
  300. getAllApiMerchant: (params = '') => vm.$u.post(`/Merchant/ApiMerchant/getAll`, params),
  301. // 获取店铺页面
  302. shopHome: (params = '') =>
  303. vm.$u.post(`/System/ApiTemplate/shopHome`, params),
  304. // 商户设置
  305. getSettingMerchant: (params = '') => vm.$u.post(`/Merchant/Merchant/getSetting`, params),
  306. /*------组合套餐------*/
  307. // 组合套餐列表
  308. listsApiComBinPackage: (params = '') => vm.$u.post(`/Market/ApiComBinPackage/lists`, params),
  309. // 组合套餐详情
  310. detailsApiComBinPackage: (id, params = '') => vm.$u.get(`/Market/ApiComBinPackage/details/${id}`,
  311. params),
  312. /*------需求提报------*/
  313. // 新增需求提报
  314. addCustomerdemand: (params = '') => vm.$u.post(`/Customer/ApiCustomer/addCustomerdemand`, params),
  315. /*------余额管理------*/
  316. // 修改余额支付密码
  317. updatePayPassword: (params = '') => vm.$u.post(`/Customer/ApiCustomer/updatePayPassword`, params),
  318. // 添加余额支付密码
  319. addpayPassword: (params = '') => vm.$u.post(`/Customer/ApiCustomer/addpayPassword`, params),
  320. // 校验余额支付密码
  321. checkPayPassword: (params = '') => vm.$u.post(`/Customer/ApiCustomer/checkPayPassword`, params),
  322. // 余额明细
  323. getAllMemberBalanceDetail: (params = '') => vm.$u.post(
  324. `/Customer/apiCustomer/getAllMemberBalanceDetail`, params),
  325. /*------股权------*/
  326. // 股权商品详情
  327. getIntegralGoodsInfo: (id, params = '') => vm.$u.get(
  328. `/Integral/ApiIntegralGoods/getIntegralGoodsInfo/${id}`, params),
  329. // 股权商品兑换列表
  330. getAllIntegralGoodsExchange: (params = '') => vm.$u.post(
  331. `/Integral/ApiIntegralGoods/getAllIntegralGoodsExchange`, params),
  332. // 股权流水
  333. getAllCustomerIntegralDesc: (params = '') => vm.$u.post(
  334. `/Customer/ApiCustomer/getAllCustomerIntegralDesc`, params),
  335. // 股权商品列表
  336. getAllIntegralGoods: (params = '') => vm.$u.post(`/Integral/ApiIntegralGoods/getAllIntegralGoods`,
  337. params),
  338. // 股权兑换商品
  339. addIntegralGoodsExchange: (params = '') => vm.$u.post(
  340. `/Integral/ApiIntegralGoods/addIntegralGoodsExchange`, params),
  341. // 股权商品兑换详情
  342. getIntegralGoodsExchangeInfo: (id, params = '') => vm.$u.get(
  343. `/Integral/ApiIntegralGoods/getIntegralGoodsExchangeInfo/${id}`, params),
  344. /*------提现------*/
  345. // 新增提现
  346. addReflectDetail: (params = '') => vm.$u.post(`/Customer/apiCustomer/addReflectDetail`, params),
  347. // 获取所有提现记录
  348. getAllReflectDetail: (params = '') => vm.$u.post(`/Customer/apiCustomer/getAllReflectDetail`, params),
  349. // 项目列表
  350. getItemList:(params = '') => vm.$u.get(`/shop/ApiShopProject/list`, params),
  351. // 项目详情
  352. getItemDetail:(params = '') => vm.$u.get(`/shop/ApiShopProject/details`, params),
  353. // 计算详情价格
  354. calculation:(params = '') => vm.$u.post(`/shop/ApiShopProject/calculation`, params),
  355. //获取门店列表
  356. getStoreList: (params = '') => vm.$u.post(`/shop/ApiShop/getAll`, params),
  357. //全部员工列表
  358. getAllygList: (params = '') => vm.$u.get(`/Department/ApiStaff/staffAll`, params),
  359. //选择时间员工
  360. getTimeYgList: (params = '') => vm.$u.post(`/shop/ApiShopProject/choice`, params),
  361. //员工预约时间
  362. getYgYyTimeArea: (params = '') => vm.$u.post(`/shop/ApiShopProject/choice_time`, params),
  363. // 创建项目订单
  364. createItemOrder: (params = '') => vm.$u.post(`/shop/ApiShopProject/create`, params),
  365. //hop/ApiShopSubscribe/list 用户项目列表
  366. getMyItem: (params = '') => vm.$u.post(`/shop/ApiShopSubscribe/list`, params),
  367. // 取消预约项目/shop/ApiShopSubscribe/cancel
  368. itemCancel: (params = '') => vm.$u.post(`/shop/ApiShopSubscribe/cancel`, params),
  369. //支付待支付的项目shop/ApiShopProject/payment
  370. itemPayment: (params = '') => vm.$u.post(`/shop/ApiShopProject/payment`, params),
  371. // 抵用券列表shop/ApiShopCard/userCard
  372. getDyquanList:(params = '') => vm.$u.post(`/shop/ApiShopCard/userCard`, params),
  373. // 优惠卡列表
  374. getYhkList:(params = '') => vm.$u.post(`/shop/ShopCard/list`, params),
  375. //优惠卡详情
  376. getYhkDetail:(params = '') => vm.$u.post(`/shop/ShopCard/details`, params),
  377. //购买优惠卡
  378. buyYhk:(params = '') => vm.$u.post(`/shop/ApiShopCard/buy_card`, params),
  379. // 我的优惠卡
  380. getMyyhkList:(params = '') => vm.$u.post(`/shop/ApiShopCard/card_order`, params),
  381. // 提交员工评价
  382. pjYg:(params = '') => vm.$u.post(`/shop/ApiShopSubscribe/comment`, params),
  383. //员工详情/Department/staff/getStaffInfo
  384. getYgdetail:(params = '') => vm.$u.post(`/Department/staff/getStaffInfo`, params),
  385. // 员工评价列表
  386. getYgPj:(params = '') => vm.$u.post(`/shop/ApiShopSubscribe/comment_list`, params),
  387. //获取1招商2连锁3共享股东4高管
  388. getOtherList:(params = '') => vm.$u.post(`/Enterprise/Personnel/list`, params),
  389. //用户股权
  390. getGq:(params = '') => vm.$u.get(`/UserCenter/ApiUserCenter/holders`, params),
  391. //用户分红股份
  392. getFh:(params = '') => vm.$u.get(`/UserCenter/ApiUserCenter/holders_bonus`, params),
  393. //用户基础股份
  394. getBsGf:(params = '') => vm.$u.get(`/UserCenter/ApiUserCenter/holders_record`, params),
  395. // 文章详情
  396. getArtDetail:(params = '') => vm.$u.get(`/Enterprise/Article/details`, params),
  397. // 审核状态
  398. getSh:(params = '') => vm.$u.get(`/System/ApiBasicSetup/over_examination`, params),
  399. /*------新分销合伙人------*/
  400. // 合伙人详情
  401. getCommissionPartnerData: (params = '') =>
  402. vm.$u.post(`/NewCommission/ApiNewCommissionPartner/getCommissionPartnerData`, params),
  403. //余额明细
  404. getCommissionBalanceDetail: (params = '') =>
  405. vm.$u.post(`/NewCommission/ApiNewCommissionPartner/getCommissionPartnerBalanceDetail`, params),
  406. //佣金明细
  407. getCommissionDetail: (params = '') =>
  408. vm.$u.post(`/NewCommission/ApiNewCommissionPartner/getCommissionPartnerDetail`, params),
  409. //提现记录
  410. getPartnerCashApplyList: (params = '') =>
  411. vm.$u.post(`/NewCommission/ApiNewCommissionPartner/getPartnerApplyCashList`, params),
  412. //提现申请
  413. partnerCashApply: (params = '') =>
  414. vm.$u.post(`/NewCommission/ApiNewCommissionPartner/partnerApplyCash`, params),
  415. //提现方式
  416. getPartnerCashType: (params = '') =>
  417. vm.$u.post(`/NewCommission/ApiNewCommissionPartner/getPartnerCashType`, params),
  418. //提现详情
  419. getPartnerApplyCashInfo: (params = '') =>
  420. vm.$u.post(`/NewCommission/ApiNewCommissionPartner/getPartnerApplyCashInfo`, params),
  421. /*------新门店代理------*/
  422. // 合伙人详情
  423. getAgentData: (params = '') =>
  424. vm.$u.post(`/NewCommission/ApiNewAgent/getApiAgentData`, params),
  425. //余额明细
  426. getAgentBalanceDetail: (params = '') =>
  427. vm.$u.post(`/NewCommission/ApiNewAgent/getApiAgentBalanceDetail`, params),
  428. //佣金明细
  429. getAgentDetail: (params = '') =>
  430. vm.$u.post(`/NewCommission/ApiNewAgent/getApiAgentDetail`, params),
  431. //提现记录
  432. getAgentCashApplyList: (params = '') =>
  433. vm.$u.post(`/NewCommission/ApiNewAgent/getApiAgentApplyCashList`, params),
  434. //提现申请
  435. agentCashApply: (params = '') =>
  436. vm.$u.post(`/NewCommission/ApiNewAgent/apiAgentApplyCash`, params),
  437. //提现方式
  438. getAgentCashType: (params = '') =>
  439. vm.$u.post(`/NewCommission/ApiNewAgent/getApiAgentCashType`, params),
  440. //提现详情
  441. getAgentApplyCashInfo: (params = '') =>
  442. vm.$u.post(`/NewCommission/ApiNewAgent/getApiAgentApplyCashInfo`, params),
  443. };
  444. }
  445. export default {
  446. install
  447. }