整理订单状态显示及功能按钮

This commit is contained in:
geng.tang@qq.com
2024-01-26 15:31:43 +08:00
parent e954472f26
commit 3b5615eeef
10 changed files with 346 additions and 165 deletions

View File

@@ -102,8 +102,8 @@
<view class="xieyi">
<checkbox-group @change="onAgree" style="display: flex; align-items: center;">
<checkbox :checked="agree" />我已同意并阅读<div class="xieyi-text" @click="showXieyi">服务协议</div><div
class="xieyi-text" @click="showXieyi">隐私协议</div>
<checkbox :checked="agree" />我已同意并阅读<div class="xieyi-text" @click="showXieyi(64)">租赁合同</div><div
class="xieyi-text" @click="showXieyi(51)">隐私协议</div>
</checkbox-group>
</view>
</view>
@@ -180,8 +180,8 @@
onShow() {
var time = new Date().getTime() + 60 * 60 * 1000 * 24
const expirationTime = dateFormat('YYYY-mm-dd HH:MM:SS', new Date(time))
console.log("time: ", time);
console.log("expirationTime: ", expirationTime);
// console.log("time: ", time);
// console.log("expirationTime: ", expirationTime);
payQuery(752).then(res => {
console.log("res123: ", res);
})
@@ -213,8 +213,8 @@
onAgree() {
this.agree = !this.agree
},
showXieyi() {
this.$navTo('pages/help/xieyi')
showXieyi(xyId) {
this.$navTo('pages/help/xieyi?id=' + xyId)
},
copyCode(text) {
// #ifndef H5
@@ -322,25 +322,37 @@
},
complete: () => {
checkFreeze(orderId).then(() => {
app.$success("下单成功")
setTimeout(() => {
uni.redirectTo({
url: '/pages/order/index'
})
}, 100)
checkFreeze(orderId).then((res) => {
console.log(record.equipmentCategory + ": " + res)
if(res.code == 0){
app.$success("下单成功")
setTimeout(() => {
uni.redirectTo({
url: '/pages/order/index'
})
}, 100)
}
else {
app.$error(res.errMsg)
}
})
}
});
} else {
checkFreeze(orderId).then(() => {
app.$success("下单成功")
setTimeout(() => {
uni.redirectTo({
url: '/pages/order/index'
})
}, 100)
checkFreeze(orderId).then((res) => {
console.log(res)
if(res.code == 0){
app.$success("下单成功")
setTimeout(() => {
uni.redirectTo({
url: '/pages/order/index'
})
}, 100)
}
else {
app.$error(res.errMsg)
}
})
}