店铺会员制Vip功能增加
This commit is contained in:
@@ -34,20 +34,18 @@ const shops = (categoryId,page) => {
|
||||
|
||||
// 店铺详情
|
||||
const shopsDetail = (shopId) => {
|
||||
console.log(shopId,'shopId.....')
|
||||
return request({
|
||||
url: 'mall/shops/' + shopId,
|
||||
})
|
||||
}
|
||||
|
||||
// 店铺商品
|
||||
const shopsGoods = (shopId, categoryId,page) => {
|
||||
const shopsGoods = (data) => {
|
||||
console.log(data,'shopsGoods.....')
|
||||
return request({
|
||||
url: 'mall/goods',
|
||||
data: {
|
||||
shop_id:shopId,
|
||||
category_id:categoryId,
|
||||
page:page,
|
||||
}
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -51,10 +51,21 @@ const relationsVerify = (invite) => {
|
||||
})
|
||||
}
|
||||
|
||||
// 我的卡券
|
||||
const myCard = (data) => {
|
||||
data.receive = 'desc'
|
||||
return request({
|
||||
url: 'mall/shops/users',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export {
|
||||
info,
|
||||
chainSeed,
|
||||
invitationCode,
|
||||
relationsBind,
|
||||
relationsVerify
|
||||
relationsVerify,
|
||||
myCard
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ const vipPay = () => {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取支付信息
|
||||
// 获取支付信息
|
||||
const payInfo = (orderId) => {
|
||||
return request({
|
||||
url: 'user/identities/pay/' + orderId + '/wechat'
|
||||
@@ -36,6 +36,28 @@ const agreement = (id) => {
|
||||
})
|
||||
}
|
||||
|
||||
// 店铺会员
|
||||
const shopVipInfo = (id) => {
|
||||
return request({
|
||||
url: 'mall/shops/'+id+'/identities'
|
||||
})
|
||||
}
|
||||
|
||||
//开通店铺会员
|
||||
const shopVipCreate = (id,identity) => {
|
||||
return request({
|
||||
url: 'mall/shops/'+id+'/identities/'+identity,
|
||||
method:'POST'
|
||||
})
|
||||
}
|
||||
|
||||
// 开通店铺会员微信支付
|
||||
const shopVipWeChat = (id) => {
|
||||
return request({
|
||||
url: 'mall/shops/identities/wechat/'+id,
|
||||
method:'POST'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export {
|
||||
@@ -43,4 +65,7 @@ export {
|
||||
vipPay,
|
||||
payInfo,
|
||||
agreement,
|
||||
shopVipInfo,
|
||||
shopVipCreate,
|
||||
shopVipWeChat
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user