会员中心页面修改,余额明细调整,开通会员页面调整
This commit is contained in:
1
common/api/market/config.js
Normal file
1
common/api/market/config.js
Normal file
@@ -0,0 +1 @@
|
||||
export const prveUrl='/market'
|
||||
12
common/api/market/recharge.js
Normal file
12
common/api/market/recharge.js
Normal file
@@ -0,0 +1,12 @@
|
||||
// 引入 request 文件
|
||||
import request from '@/common/api/request.js'
|
||||
import {prveUrl} from './config.js'
|
||||
|
||||
export const config = (data) => {
|
||||
const shopId=uni.getStorageSync('shopId')||'';
|
||||
return request({
|
||||
url: prveUrl + '/user/recharge/config',
|
||||
method: 'get',
|
||||
data: {...data,shopId:shopId}
|
||||
})
|
||||
}
|
||||
25
common/api/market/vip.js
Normal file
25
common/api/market/vip.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// 引入 request 文件
|
||||
import request from '@/common/api/request.js'
|
||||
import {prveUrl} from './config.js'
|
||||
|
||||
export const list = (data) => {
|
||||
return request({
|
||||
url: prveUrl + '/user/member/list',
|
||||
method: 'get',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
export const detail = (data) => {
|
||||
return request({
|
||||
url: prveUrl + '/user/member/detail',
|
||||
method: 'get',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
export const config = (data) => {
|
||||
return request({
|
||||
url: prveUrl + '/user/member/config',
|
||||
method: 'get',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@@ -62,4 +62,12 @@ export const APIrmPlaceOrder = (data) => {
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//会员开通
|
||||
export const joinMember = (data) => {
|
||||
return request({
|
||||
url: url + '/user/order/joinMember',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@@ -6,6 +6,7 @@ export default (params) => {
|
||||
let toast = params.toast || true;
|
||||
let token=uni.cache.get('token') || '';
|
||||
const shopId=uni.cache.get('shopId')*1;
|
||||
const userInfo=uni.cache.get('userInfo')||{};
|
||||
// #ifdef H5
|
||||
token="21f0a0b10e1d40ce9c6464037fedb792"
|
||||
// #endif
|
||||
@@ -25,9 +26,9 @@ export default (params) => {
|
||||
platformType: 'ALI',
|
||||
// #endif
|
||||
token,
|
||||
id: uni.cache.get('userInfo').id || '',
|
||||
id: userInfo.id || '',
|
||||
shopId:shopId || '',
|
||||
userId: uni.cache.get('userInfo').id || '',
|
||||
userId: userInfo.id || '',
|
||||
}
|
||||
if (toast) {
|
||||
uni.showLoading({
|
||||
|
||||
@@ -85,4 +85,10 @@ page,
|
||||
}
|
||||
.no-wrap{
|
||||
white-space: nowrap;
|
||||
}
|
||||
.line-through{
|
||||
text-decoration: line-through;
|
||||
}
|
||||
.u-flex-1{
|
||||
flex:1;
|
||||
}
|
||||
Reference in New Issue
Block a user