Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4292c0f819 |
@@ -109,6 +109,7 @@
|
|||||||
<text class="door-order-loading">加载订单信息...</text>
|
<text class="door-order-loading">加载订单信息...</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="door-btn-detail" @click="goOrderDetail" v-if="orderInfo">查看订单详情</view>
|
||||||
<view class="door-btn-close" @click="handleClose">返回首页</view>
|
<view class="door-btn-close" @click="handleClose">返回首页</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -232,6 +233,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 跳转订单详情
|
||||||
|
goOrderDetail() {
|
||||||
|
const orderId = this.orderInfo.order_id || this.orderInfo.order_no;
|
||||||
|
uni.navigateTo({ url: `/pages/order/detail?order_id=${orderId}` });
|
||||||
|
},
|
||||||
|
|
||||||
// 关闭遮罩
|
// 关闭遮罩
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.step = '';
|
this.step = '';
|
||||||
@@ -534,9 +541,21 @@ export default {
|
|||||||
padding: 16rpx 0;
|
padding: 16rpx 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ====== 查看订单详情按钮 ====== */
|
||||||
|
.door-btn-detail {
|
||||||
|
margin-top: 32rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #fff;
|
||||||
|
padding: 24rpx 80rpx;
|
||||||
|
background: linear-gradient(135deg, #2979ff, #1e60e0);
|
||||||
|
border-radius: 48rpx;
|
||||||
|
letter-spacing: 2rpx;
|
||||||
|
box-shadow: 0 8rpx 24rpx rgba(41, 121, 255, 0.35);
|
||||||
|
}
|
||||||
|
|
||||||
/* ====== 关闭按钮 ====== */
|
/* ====== 关闭按钮 ====== */
|
||||||
.door-btn-close {
|
.door-btn-close {
|
||||||
margin-top: 48rpx;
|
margin-top: 24rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: rgba(255, 255, 255, 0.85);
|
color: rgba(255, 255, 255, 0.85);
|
||||||
padding: 24rpx 100rpx;
|
padding: 24rpx 100rpx;
|
||||||
|
|||||||
@@ -500,11 +500,7 @@ export default {
|
|||||||
uni.clearStorageSync();
|
uni.clearStorageSync();
|
||||||
uni.showToast({ title: '已退出登录', icon: 'success' });
|
uni.showToast({ title: '已退出登录', icon: 'success' });
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// 跳转到干净的URL,去掉code/state参数,避免重复使用旧code
|
uni.reLaunch({ url: '/pages/index/scan' });
|
||||||
const url = new URL(window.location.href);
|
|
||||||
url.searchParams.delete('code');
|
|
||||||
url.searchParams.delete('state');
|
|
||||||
window.location.href = url.toString();
|
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
onVConsoleChange(e) {
|
onVConsoleChange(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user