Compare commits

...

1 Commits

Author SHA1 Message Date
kk 4292c0f819 退出登录跳转至扫码页/完成交易页增加查看订单详情按钮
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 50s
2026-07-11 16:41:57 +08:00
2 changed files with 21 additions and 6 deletions
+20 -1
View File
@@ -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;
+1 -5
View File
@@ -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) {