店铺会员制Vip功能增加

This commit is contained in:
2022-08-11 15:48:33 +08:00
parent 7e8ed7115d
commit 4b3d83007b
35 changed files with 6869 additions and 2379 deletions

View File

@@ -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
}