1
935090232@qq.com
2020-12-01 611146e69aaa62296cf84f2ccb5aca5ebba17677
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/**
* 服务端接口
*
*/
var util = require('util.js');
 
 
 
 
//认证接口
var auth = {
  //查询认证信息
  getAuthInfo: '/wxapi/auth/findAuth',
  add: '/wxapi/auth/add',
  modify: '/wxapi/auth/modify',
  storeQuery: '/wxapi/shopStoreAction/getshopStore',
  //绑定手机号
  bindingPhoneNumber:"/wxapi/shopBindingPhoneNumber/bindingPhoneNumber",
}
 
//广告
var ad = {
  //首页轮播图
  getByType: '/wxapi/ad/getByType/',
  //根据页面code获取页面的广告元素
  getAdPage: '/wxapi/ad/getAdPage/',
  //根据code找广告
  getAdByCode:'/wxapi/ad/getAdByCode',
}
 
var article = {
  //根据类型查询文章分类
  findArticleByType: '/wxapi/article/findArticleByType',
  findArticleType: '/wxapi/Article/findArticleType',
  findArticById: '/wxapi/Article/findArticById/',
  findArtice: '/wxapi/Article/findArticle'
}
 
var address = {
  newaddress: '/wxapi/shopAddressAction/saveReceiveAddress',
  editaddress: '/wxapi/shopAddressAction/updateReceiveAddress',
  queryaddress: '/wxapi/shopAddressAction/findReceiveAddress',
  deleteladdress: '/wxapi/shopAddressAction/deleteByAddrId',
  showaddress: '/wxapi/shopAddressAction/findAddrByAddrId'
}
 
 
//优惠券模块
var coupon = {
  //领取优惠券
  receiveCoupon: "/wxapi/shopCoupon/receiveCoupon/",
  //根据tag查询优惠券
  getCouponListByTag: "/wxapi/shopCoupon/getCouponListByTag/",
}
 
//产品相关模块
var goods = {
  //搜索产品
  searchGoods: "/wxapi/ShopProduct/getShopProductShowList",
  //查询产品详情
  productInfo: "/wxapi/ShopProduct/getProductById/",
  //加入产品到购物车
  saveShoppingCart: "/wxapi/ShoppingCart/saveShoppingCart",
  //获取购物车数量
  getUserCartCount:"/wxapi/ShoppingCart/getUserCartCount/",
 
}
 
//数据字典
var dataDictionary = {
  //根据父节点字段获取子节点列表
  getListByParentCode:"/wxapi/dataDictionary/getListByParentCode/",
  //根据code获取字典getByCode
  getByCode: "/wxapi/dataDictionary/getByCode/",
 
}
//购物车
var shoppingCart={
  //查询购物车列表
  findShoppingCart:"/wxapi/ShoppingCart/findShoppingCart",
  updateCarNumberByCartId:"/wxapi/ShoppingCart/updateCarNumberByCartId/",
  updateCartAllSelected:'/wxapi/ShoppingCart/updateCartAllSelected/',
  updateCartSelected:'/wxapi/ShoppingCart/updateCartSelected/',
  deleteByCartId:'/wxapi/ShoppingCart/deleteByCartId/',
}
 
//订单接口
var order={
  //计算下单界面数据
  calculationCartOrder: "/wxapi/shopOrder/calculationCartOrder",
  getOrderStatusCount: "/wxapi/shopOrder/getOrderStatusCount",
}
 
//预约接口
var yuyue = {
  //获取门店列表
  getShopList: "/wxapi/yuyue/getShopList",
  //根据id获取门店信息
  findShopInfoById: "/wxapi/yuyue/findShopInfoById",
  //获取预约时间表
  getTimeList: "/wxapi/yuyue/getTimeList",
  //获取预约日期
  getYYDayAndWeek: "/wxapi/yuyue/getYYDayAndWeek",
  //获取排版美疗师列表
  getPaiBanBeauticianList:"/wxapi/yuyue/getPaiBanBeauticianList",
  //创建预约单
  createServiceOrder:"/wxapi/yuyue/createServiceOrder",
  //根据id查询预约订单的详情
  getServiceOrderById:"/wxapi/yuyue/getServiceOrderById/",
  //取消订单
  cancelOrderById:"/wxapi/yuyue/cancelOrderById/",
  //搜索订单列表
    getServiceOrderList:  "/wxapi/yuyue/getServiceOrderList",
    //删除订单
    removeOrderById:"/wxapi/yuyue/removeOrderById/"
 
}
 
var productAttribute={
  getByCode:"/wxapi/ProductAttribute/getByCode/"
}
 
//团购接口
var groupBuy = {
  //查询进行中的团购列表
  showGroupByList: "/wxapi/groupBuy/showGroupByList/",
  //查询拼团详情{actId}
  findGroupBuyInfo:"/wxapi/groupBuy/findGroupBuyInfo/",
  //查询用户拼团信息{actId}
  findOwnerGroupBuyInfo:"/wxapi/groupBuy/findOwnerGroupBuyInfo/",
  //查询成团的信息,团成员
  findGroupJoinInfo:"/wxapi/groupBuy/findGroupJoinInfo/",
  //拼团开团接口
  createGroupBuy:"/wxapi/groupBuy/createGroupBuy", 
  //加入拼团接口
  joinGroupBuy:"/wxapi/groupBuy/joinGroupBuy",
  //计算价格
  calPrice:"/wxapi/groupBuy/calPrice",
}
 
//秒杀活动
var  seckill={
  //查询当前门店正在进行的秒杀活动
  findSecKillActList:"/wxapi/seckill/findSecKillActList/",
  //查询一场活动的产品列表
  findSecKillGoodsListById:"/wxapi/seckill/findSecKillGoodsListById/",
  //查询秒杀详情
  findSecKillGoodsInfo:"/wxapi/seckill/findSecKillGoodsInfo/",
  //计算秒杀价格
  calSecKillPrice:"/wxapi/seckill/calSecKillPrice",
  //创建秒杀订单
  createSecKill:"/wxapi/seckill/createSecKill",
}
 
var shalong={
  //查询沙龙活动
 findSalong:"/wxapi/salon/findSalonActivitiesInPage",
 //根据id查询沙龙详情
  findSalongById:"/wxapi/salon/findSalonInfoById/",
  //报名沙龙
  joinSalong:"/wxapi/salon/joinSalonActivity"
 
}
 
//皮肤检测接口
var checkInfo={
  //检测记录列表查询
  recordList:"/wxapi/skinCheck/showSkinList",
  findById:"/wxapi/skinCheck/findById"
}
 
module.exports = {
  auth: auth,
  dataDictionary: dataDictionary,
  ad: ad,
  article: article,
  address: address,
  coupon: coupon,
  goods: goods,
  shoppingCart: shoppingCart,
  order: order,
  yuyue: yuyue,
  productAttribute: productAttribute,
  groupBuy: groupBuy,
  checkInfo: checkInfo,
  seckill:seckill,
  shalong:shalong,
 
}