会员中心页面修改,余额明细调整,开通会员页面调整

This commit is contained in:
2025-09-25 20:27:54 +08:00
parent 84f782afa1
commit a39c9f4d72
36 changed files with 2818 additions and 427 deletions

View File

@@ -0,0 +1 @@
export const prveUrl='/market'

View 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
View 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
})
}

View File

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

View File

@@ -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({

View File

@@ -85,4 +85,10 @@ page,
}
.no-wrap{
white-space: nowrap;
}
.line-through{
text-decoration: line-through;
}
.u-flex-1{
flex:1;
}