买单修改
This commit is contained in:
parent
9463c13b91
commit
7ad64cea7c
Binary file not shown.
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 80 KiB |
@ -62,17 +62,20 @@ function handleResponse(response) {
|
||||
/**
|
||||
* 处理 token 失效
|
||||
*/
|
||||
function handleUnauthorized() {
|
||||
// 如果 localStorage 中本来就没有 token,说明是未登录状态,不做处理
|
||||
if (!localStorage.getItem('member_token')) {
|
||||
function handleUnauthorized(requestToken) {
|
||||
// 只有本次请求发出时携带的 token 失效,才清除登录状态
|
||||
if (!requestToken) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 如果本地 token 已经被新的登录流程更新,不处理旧请求的 401/403
|
||||
if (localStorage.getItem('member_token') !== requestToken) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 清除登录状态
|
||||
localStorage.removeItem('member_token');
|
||||
localStorage.removeItem('member_username');
|
||||
|
||||
// 跳转到登录页
|
||||
if (window.location.hash !== '#/Login') {
|
||||
window.location.href = '#/Login';
|
||||
}
|
||||
@ -81,10 +84,10 @@ function handleUnauthorized() {
|
||||
/**
|
||||
* 统一错误处理
|
||||
*/
|
||||
function handleError(err) {
|
||||
function handleError(err, requestToken) {
|
||||
// token 失效
|
||||
if (err.status === ERR_CODE.UNAUTHORIZED || err.status === ERR_CODE.FORBIDDEN) {
|
||||
handleUnauthorized();
|
||||
handleUnauthorized(requestToken);
|
||||
}
|
||||
return Promise.reject(err);
|
||||
}
|
||||
@ -120,14 +123,16 @@ function fetchWithTimeout(url, options, timeout = DEFAULT_TIMEOUT) {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
export function request(url, data, method = 'POST', timeout = DEFAULT_TIMEOUT) {
|
||||
const requestToken = localStorage.getItem('member_token');
|
||||
return fetchWithTimeout(BASE_URL + url, {
|
||||
method,
|
||||
headers: getHeaders(),
|
||||
body: JSON.stringify(data),
|
||||
}, timeout).then(handleResponse).catch(handleError);
|
||||
}, timeout).then(handleResponse).catch(err => handleError(err, requestToken));
|
||||
}
|
||||
|
||||
export const get = (url, params, timeout = DEFAULT_TIMEOUT) => {
|
||||
const requestToken = localStorage.getItem('member_token');
|
||||
let query = '';
|
||||
if (params) {
|
||||
query = '?' + new URLSearchParams(params).toString();
|
||||
@ -135,7 +140,7 @@ export const get = (url, params, timeout = DEFAULT_TIMEOUT) => {
|
||||
return fetchWithTimeout(BASE_URL + url + query, {
|
||||
method: 'GET',
|
||||
headers: getHeaders(),
|
||||
}, timeout).then(handleResponse).catch(handleError);
|
||||
}, timeout).then(handleResponse).catch(err => handleError(err, requestToken));
|
||||
};
|
||||
|
||||
export const post = (url, data, timeout = DEFAULT_TIMEOUT) => request(url, data, 'POST', timeout);
|
||||
@ -159,7 +164,7 @@ export function postForm(url, formData, timeout = DEFAULT_TIMEOUT) {
|
||||
method: 'POST',
|
||||
headers,
|
||||
body: formData,
|
||||
}, timeout).then(handleResponse).catch(handleError);
|
||||
}, timeout).then(handleResponse).catch(err => handleError(err, token));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
20
src/main.js
20
src/main.js
@ -52,16 +52,16 @@ datadicStore.init()
|
||||
const userStore = useUserStore()
|
||||
|
||||
// 全局前置守卫
|
||||
router.beforeEach((to, from, next) => {
|
||||
if (to.meta.noLogin) {
|
||||
return next();
|
||||
}
|
||||
const isLogin = userStore.isLogin;
|
||||
if (!isLogin) {
|
||||
return next({ name: 'Login', query: { redirect: to.fullPath } });
|
||||
}
|
||||
next();
|
||||
});
|
||||
// router.beforeEach((to, from, next) => {
|
||||
// if (to.meta.noLogin) {
|
||||
// return next();
|
||||
// }
|
||||
// const isLogin = userStore.isLogin;
|
||||
// if (!isLogin) {
|
||||
// return next({ name: 'Login', query: { redirect: to.fullPath } });
|
||||
// }
|
||||
// next();
|
||||
// });
|
||||
|
||||
app.config.globalProperties.$datadic = {
|
||||
get: (code) => dictCache[code] || null,
|
||||
|
||||
@ -320,20 +320,6 @@ const routes = [
|
||||
component: () => import('./views/User/Checkout/CheckoutTrade.vue'),
|
||||
meta: { title: '订单详情' }
|
||||
},
|
||||
// {
|
||||
// path: '/Refresh',
|
||||
// name: 'Refresh',
|
||||
// component: { render: () => null },
|
||||
// meta: { noLogin: true },
|
||||
// beforeRouteEnter(to, from, next) {
|
||||
// next(vm => {
|
||||
// setTimeout(() => {
|
||||
// const redirect = to.query.redirect || '/Home'
|
||||
// vm.$router.replace(decodeURIComponent(redirect))
|
||||
// }, 50)
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
{
|
||||
path: '/SyncAuth',
|
||||
name: 'SyncAuth',
|
||||
|
||||
@ -3426,6 +3426,11 @@
|
||||
.top {
|
||||
.box;
|
||||
.box-align-center;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: calc(var(--van-nav-bar-height, 46px) + env(safe-area-inset-top));
|
||||
z-index: 998;
|
||||
padding: 0 4vw;
|
||||
height: 12vw;
|
||||
background-color: #ffffff;
|
||||
@ -3452,7 +3457,7 @@
|
||||
}
|
||||
|
||||
.list {
|
||||
padding: 0 4vw;
|
||||
padding: 16vw 4vw 0;
|
||||
margin-top: 4vw;
|
||||
|
||||
.item {
|
||||
|
||||
@ -17,7 +17,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
this.$router.back();
|
||||
this.$navigate('/My');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -86,6 +86,12 @@ export default {
|
||||
Promise.all([
|
||||
this.$get('/v1/client/DUsersClient').then(data => {
|
||||
this.wallet.Balance = data.data.zijin;
|
||||
if (data.data.userlevelname === '会员') {
|
||||
this.$showFailToast('您还未购买礼包产品成为VIP,暂不能提现!')
|
||||
setTimeout(() => {
|
||||
this.$navigate('/My')
|
||||
}, 1500);
|
||||
}
|
||||
}).catch(err => {
|
||||
this.$showFailToast(err.message);
|
||||
}),
|
||||
@ -94,6 +100,7 @@ export default {
|
||||
})
|
||||
])
|
||||
|
||||
|
||||
},
|
||||
selectCard(item) {
|
||||
this.card = item;
|
||||
|
||||
@ -26,9 +26,9 @@
|
||||
<span>付款时间:</span>
|
||||
<p>{{ $formatGMT(data.paytime, 'yyyy-MM-dd HH:mm:ss') }}</p>
|
||||
</div>
|
||||
<div class="detail" v-if="data.payway">
|
||||
<div class="detail" v-if="data.paychannelname">
|
||||
<span>支付方式:</span>
|
||||
<p>{{ data.payway }}</p>
|
||||
<p>{{ data.paychannelname }}</p>
|
||||
</div>
|
||||
<div class="detail">
|
||||
<span>交易单号:</span>
|
||||
@ -53,13 +53,13 @@
|
||||
<span>用户实付金额:</span>
|
||||
<p>¥{{ data.paymoney?.toFixed(2) }}</p>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="detail" v-if="data.discountratio">
|
||||
<span>商家惠利比例:</span>
|
||||
<p>{{ data.discountratio }}%</p>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
|
||||
<div class="detail">
|
||||
<span>商家惠利金额:</span>
|
||||
<p>-¥{{ data.discount }}</p>
|
||||
|
||||
@ -24,9 +24,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="save-btn">
|
||||
<van-button type="primary" color="#ca2904" round block :loading="loading" @click="handleSave">{{ loading ?
|
||||
'生成中...' : ('保存图片')
|
||||
}}</van-button>
|
||||
<van-button type="primary" color="#ca2904" round block :loading="loading"> 长按图片保存 </van-button>
|
||||
</div>
|
||||
</div>
|
||||
</BasePage>
|
||||
@ -69,47 +67,40 @@ export default {
|
||||
this.bgLoaded = true
|
||||
},
|
||||
|
||||
|
||||
async generateImage() {
|
||||
if (this.loading) return
|
||||
this.loading = true
|
||||
try {
|
||||
await this.$nextTick()
|
||||
// Wait for fonts with fallback for WeChat/Safari compatibility
|
||||
if (document.fonts && document.fonts.ready) {
|
||||
await document.fonts.ready
|
||||
}
|
||||
await new Promise(resolve => setTimeout(resolve, 500))
|
||||
const el = this.$refs.paycodeOriginalRef
|
||||
if (!el) {
|
||||
throw new Error('Element not found')
|
||||
}
|
||||
this.generatedImage = await toDataURL(el, { format: 'png', pixelRatio: 3, useCORS: true })
|
||||
if (!el) throw new Error('Element not found')
|
||||
|
||||
// 等待元素内所有 <img>加载完成(覆盖背景、商家头像、vue - qr 渲染完成的 img)
|
||||
const imgs = Array.from(el.querySelectorAll('img'))
|
||||
await Promise.all(imgs.map(img => {
|
||||
if (img.complete && img.naturalWidth > 0) return
|
||||
Promise.resolve()
|
||||
return new Promise(resolve => {
|
||||
img.onload = img.onerror = resolve
|
||||
})
|
||||
}))
|
||||
|
||||
// 等 vue-qr 内部的 canvas 真正画出来(vue-qr 内部用 canvas 绘图)
|
||||
await new Promise(resolve => setTimeout(resolve, 100))
|
||||
|
||||
this.generatedImage = await toDataURL(el, {
|
||||
format: 'png',
|
||||
pixelRatio: 3, useCORS: true
|
||||
})
|
||||
} catch (e) {
|
||||
console.error('生成收款码失败:', e)
|
||||
this.$showFailToast('生成失败')
|
||||
} finally {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
async handleSave() {
|
||||
if (this.loading) return
|
||||
try {
|
||||
this.loading = true
|
||||
if (!this.generatedImage) {
|
||||
await this.generateImage()
|
||||
}
|
||||
if (this.generatedImage) {
|
||||
downloadByDataURL(this.generatedImage, `收款码_${this.shopname}`)
|
||||
this.$showSuccessToast('保存成功')
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('保存失败:', e)
|
||||
this.$showFailToast('保存失败')
|
||||
} finally {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -75,19 +75,19 @@
|
||||
|
||||
<div class="datecount">
|
||||
<div class="dc-item">
|
||||
<span>{{ active == 0 ? '今日' : '本月' }}营业额(元)</span>
|
||||
<span>{{ active == 0 ? '当日' : '当月' }}营业额(元)</span>
|
||||
<b>{{ chartData.yingyee?.toFixed(2) }}</b>
|
||||
</div>
|
||||
<div class="dc-item">
|
||||
<span>{{ active == 0 ? '今日' : '本月' }}抵扣积分</span>
|
||||
<span>{{ active == 0 ? '当日' : '当月' }}应收(元)</span>
|
||||
<b>{{ chartData.yingshou?.toFixed(2) }}</b>
|
||||
</div>
|
||||
<div class="dc-item">
|
||||
<span>{{ active == 0 ? '今日' : '本月' }}订单数</span>
|
||||
<span>{{ active == 0 ? '当日' : '当月' }}订单数</span>
|
||||
<b>{{ chartData.dingdanshu }}</b>
|
||||
</div>
|
||||
<div class="dc-item">
|
||||
<span>{{ active == 0 ? '今日' : '本月' }}收入(元)</span>
|
||||
<span>{{ active == 0 ? '当日' : '当月' }}惠利金额(元)</span>
|
||||
<b>{{ chartData.youhui?.toFixed(2) }}</b>
|
||||
</div>
|
||||
</div>
|
||||
@ -173,10 +173,24 @@ export default {
|
||||
this.chart = window.echarts.init(this.$refs.chartRef);
|
||||
}
|
||||
const dates = this.chartData.orderchart.map(item => item.adddate?.slice(5));
|
||||
const values = this.chartData.orderchart.map(item => item.ordermoney);
|
||||
const values = this.chartData.orderchart.map(item => Number(item.ordermoney || 0));
|
||||
this.chart.clear();
|
||||
this.chart.off('click');
|
||||
this.chart.getZr().off('click');
|
||||
this.chart.setOption({
|
||||
tooltip: {
|
||||
trigger: 'axis'
|
||||
show: true,
|
||||
// tooltip 触发方式:item 表示点击/滑过数据点显示
|
||||
trigger: 'item',
|
||||
triggerOn: 'mousemove|click',
|
||||
renderMode: 'html',
|
||||
confine: true,
|
||||
// tooltip 弹框样式在这里配置,不写则使用 ECharts 默认样式
|
||||
// extraCssText: 'z-index:999999;box-shadow:0 2px 8px rgba(0,0,0,.15);',
|
||||
// tooltip 展示内容在这里配置
|
||||
formatter(params) {
|
||||
return `${params.name}<br/>${params.seriesName}:${Number(params.value || 0).toFixed(2)}`;
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
left: '12%',
|
||||
@ -200,9 +214,12 @@ export default {
|
||||
}
|
||||
},
|
||||
series: [{
|
||||
name: '营业额',
|
||||
data: values,
|
||||
type: 'line',
|
||||
smooth: true,
|
||||
showSymbol: true,
|
||||
symbolSize: 6,
|
||||
lineStyle: { color: '#e4bb4e', width: 2 },
|
||||
itemStyle: { color: '#e4bb4e' },
|
||||
areaStyle: {
|
||||
@ -213,6 +230,19 @@ export default {
|
||||
}
|
||||
}]
|
||||
});
|
||||
// 扩大点击范围:点击图表区域时,自动显示离点击位置最近的数据点 tooltip
|
||||
this.chart.getZr().on('click', event => {
|
||||
if (!values.length) return;
|
||||
const pointInPixel = [event.offsetX, event.offsetY];
|
||||
if (!this.chart.containPixel('grid', pointInPixel)) return;
|
||||
const pointInGrid = this.chart.convertFromPixel({ seriesIndex: 0 }, pointInPixel);
|
||||
const dataIndex = Math.max(0, Math.min(values.length - 1, Math.round(pointInGrid[0])));
|
||||
this.chart.dispatchAction({
|
||||
type: 'showTip',
|
||||
seriesIndex: 0,
|
||||
dataIndex
|
||||
});
|
||||
});
|
||||
},
|
||||
getCount() {
|
||||
this.$get('/v1/client/DShopsClient/statistics').then(res => {
|
||||
|
||||
@ -38,7 +38,8 @@
|
||||
</van-cell>
|
||||
|
||||
<!-- 微信支付 -->
|
||||
<van-cell title="微信支付" is-link @click="payMethod = ['wechat']" v-if="orderInfo.mallstate !== 5">
|
||||
<van-cell title="微信支付" is-link @click="payMethod = ['wechat']"
|
||||
v-if="orderInfo.mallstate !== 5 && $isWechat()">
|
||||
<template #icon>
|
||||
<img class="pay-icon" src="/img/pay_weixin.png" />
|
||||
</template>
|
||||
@ -232,6 +233,17 @@ export default {
|
||||
}
|
||||
|
||||
.pay {
|
||||
&::before {
|
||||
content: '';
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background: #fff;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
text-align: center;
|
||||
padding-top: 16.667vw;
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<b style="#d2220d">{{ data.statename }}</b>
|
||||
</div>
|
||||
|
||||
<div class="_address">
|
||||
<div class="_address" v-if="data.mallstate !== 4">
|
||||
<div class="icon">
|
||||
<img src="/img/address.png">
|
||||
</div>
|
||||
@ -22,7 +22,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="_goods">
|
||||
<div class="_goods" v-if="data.mallstate === 4">
|
||||
<img :src="$file(data.shopimg)">
|
||||
<div class="c">
|
||||
<div class="name">
|
||||
<span>{{ data.shopname }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="_goods" v-else>
|
||||
<img :src="$file(data.proimg)">
|
||||
<div class="c">
|
||||
<div class="name">
|
||||
@ -146,6 +154,10 @@
|
||||
发货时间
|
||||
<span>{{ $formatGMT(data.exporttime, 'yyyy-MM-dd HH:mm:ss') }}</span>
|
||||
</p>
|
||||
<p v-if="data.mallstate === 4">
|
||||
完成时间
|
||||
<span>{{ $formatGMT(data.paytime, 'yyyy-MM-dd HH:mm:ss') }}</span>
|
||||
</p>
|
||||
<p v-if="data.receipttime">
|
||||
完成时间
|
||||
<span>{{ $formatGMT(data.receipttime, 'yyyy-MM-dd HH:mm:ss') }}</span>
|
||||
|
||||
@ -37,8 +37,9 @@
|
||||
<span>{{ item.proskuname }}</span>
|
||||
<p>x{{ item.buynums }}</p>
|
||||
</div>
|
||||
<div class="concession">
|
||||
<span v-if="item.mallstate !== 5">¥{{ item.proskusaleprice?.toFixed(2) }}</span>
|
||||
<div class="concession" v-if="item.mallstate !== 4">
|
||||
<span v-if="item.mallstate !== 5">¥{{ item.proskusaleprice?.toFixed(2)
|
||||
}}</span>
|
||||
<span v-else>{{ item.proskusaleprice?.toFixed(2) }}积分</span>
|
||||
<p v-if="item.discountratio && item.mallstate !== 5">惠利{{ item.discountratio }}%</p>
|
||||
</div>
|
||||
@ -54,9 +55,10 @@
|
||||
<b :class="'b' + item.state">{{ item.statename }}</b>
|
||||
<div class="btn_box">
|
||||
<button v-if="item.state === 0" @click="cancelTrade(item)">取消订单</button>
|
||||
<button v-if="!item.shopname" @click="$navigate(`TradeDetail?ordernum=${item.ordernum}`)">查看详情</button>
|
||||
<button v-else @click="$navigate(`MerchantTradeDetail?id=${item.ordernum}`)">查看详情</button>
|
||||
<button v-if="item.state === 3 || item.state === 4" @click="showLogistics(item)">物流信息</button>
|
||||
<button @click="$navigate(`TradeDetail?ordernum=${item.ordernum}`)">查看详情</button>
|
||||
<!-- <button v-else @click="$navigate(`MerchantTradeDetail?id=${item.ordernum}`)">查看详情</button> -->
|
||||
<button v-if="item.state === 3 || item.state === 4 && item.mallstate !== 4"
|
||||
@click="showLogistics(item)">物流信息</button>
|
||||
|
||||
<button v-if="item.state === 3" @click="confirmReceipt(item)">确认收货</button>
|
||||
<!-- <button v-if="item.state === 3" @click="refundTrade(item)">退款</button> -->
|
||||
|
||||
@ -88,7 +88,8 @@ export default {
|
||||
"shopuserid": ''
|
||||
},
|
||||
jifenDeduction: 0,
|
||||
quanDeduction: 0
|
||||
quanDeduction: 0,
|
||||
lastChecked: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -119,16 +120,21 @@ export default {
|
||||
})
|
||||
},
|
||||
toggleDeduction(type) {
|
||||
if (type === 'jifen') {
|
||||
if (!this.data.user.xiaofeijifen || this.data.user.xiaofeijifen <= 0) return;
|
||||
this.checked = '1'
|
||||
this.req.isjifen = this.checked === '1';
|
||||
this.req.ishuiyuanka = false;
|
||||
} else if (type === 'quan') {
|
||||
if (!this.data.user.xiaofeiquan || this.data.user.xiaofeiquan <= 0) return;
|
||||
this.checked = '2';
|
||||
this.req.ishuiyuanka = this.checked === '2';
|
||||
const target = type === 'jifen' ? '1' : '2';
|
||||
if (type === 'jifen' && (!this.data.user.xiaofeijifen || this.data.user.xiaofeijifen <= 0)) return;
|
||||
if (type === 'quan' && (!this.data.user.xiaofeiquan || this.data.user.xiaofeiquan <= 0)) return;
|
||||
|
||||
if (this.lastChecked === target) {
|
||||
// 再次点击同一项:取消选中
|
||||
this.checked = '';
|
||||
this.req.isjifen = false;
|
||||
this.req.ishuiyuanka = false;
|
||||
this.lastChecked = '';
|
||||
} else {
|
||||
this.checked = target;
|
||||
this.req.isjifen = target === '1';
|
||||
this.req.ishuiyuanka = target === '2';
|
||||
this.lastChecked = target;
|
||||
}
|
||||
},
|
||||
calcDeduction() {
|
||||
|
||||
@ -222,14 +222,11 @@ export default {
|
||||
components: { ManagerPopup },
|
||||
computed: {
|
||||
},
|
||||
beforeRouteEnter(to, from, next) {
|
||||
if (!localStorage.getItem('member_token')) {
|
||||
next({ name: 'Login', query: { redirect: to.fullPath } });
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!localStorage.getItem('member_token')) {
|
||||
this.$router.replace({ name: 'Login', query: { redirect: this.$route.fullPath } });
|
||||
return;
|
||||
}
|
||||
this.init();
|
||||
this.$get('/v1/client/HWxinfoClient/qrcode').then(res => {
|
||||
this.FollowQRCode = res.data;
|
||||
|
||||
@ -150,9 +150,9 @@ export default {
|
||||
},
|
||||
});
|
||||
});
|
||||
} else {
|
||||
window.location.href = `https://uri.amap.com/navigation?to=${lon},${lat},${encodeURIComponent(fullAddress)}&mode=car&src=shop`;
|
||||
}
|
||||
} else {
|
||||
window.open(`https://uri.amap.com/navigation?to=${lon},${lat},${fullAddress}&mode=car&src=shop`, '_blank');
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@ -180,7 +180,7 @@
|
||||
{{ data.total.totalsum?.toFixed(2) }}
|
||||
</b>
|
||||
|
||||
<button class="r" @click="$navigate('Cashout')">
|
||||
<button class="r" @click="toCashout">
|
||||
提现
|
||||
</button>
|
||||
</div>
|
||||
@ -317,6 +317,7 @@ export default {
|
||||
loading: false,
|
||||
showTerm: false,
|
||||
list: [],
|
||||
isVIP: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -326,11 +327,23 @@ export default {
|
||||
}).catch(err => {
|
||||
this.$showFailToast(err.message || '加载失败');
|
||||
})
|
||||
|
||||
this.$get('/v1/client/DUsermoneysClient/select').then(res => {
|
||||
// console.log(res.data);
|
||||
this.$get('/v1/client/DUsersClient').then(data => {
|
||||
this.isVIP = data.data.userlevelname;
|
||||
|
||||
})
|
||||
// this.$get('/v1/client/DUsermoneysClient/select').then(res => {
|
||||
// // console.log(res.data);
|
||||
// })
|
||||
},
|
||||
toCashout() {
|
||||
if (this.isVIP === '会员') {
|
||||
this.$showFailToast('您还未购买礼包产品成为VIP,暂不能提现!')
|
||||
setTimeout(() => {
|
||||
// this.$navigate('/My')
|
||||
}, 1500);
|
||||
return
|
||||
}
|
||||
this.$navigate('Cashout');
|
||||
},
|
||||
onconfirm(value) {
|
||||
this.date = this.currentDate;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user