矿机租赁项目 用户选择支付 平台换算浮动价格版本

This commit is contained in:
2025-11-04 14:52:19 +08:00
parent a2fc94b402
commit ccf22ff707
12 changed files with 70 additions and 12 deletions

View File

@@ -204,7 +204,16 @@ export default {
});
return
}
try { this.$router.push(`/account/order-detail/${id}`) } catch (e) {
try {
const curPath = (this.$route && this.$route.path) || ''
const from = curPath.indexOf('/account/orders') === 0 ? 'buyer' : (curPath.indexOf('/account/seller-orders') === 0 ? 'seller' : '')
try { if (from) sessionStorage.setItem('orderDetailFrom', from) } catch (e) {}
if (from) {
this.$router.push({ path: `/account/order-detail/${id}`, query: { from } })
} else {
this.$router.push(`/account/order-detail/${id}`)
}
} catch (e) {
this.$message({
message: '无法跳转到详情页',
type: 'error',