优化问题

This commit is contained in:
duan
2024-05-28 11:03:19 +08:00
parent e0781543b4
commit d3dccd5da9
5 changed files with 13 additions and 8 deletions

View File

@@ -38,7 +38,7 @@
支付方式
</view>
<view class="towcontentow_T">
微信支付
{{paytype==1?'微信支付':'余额支付'}}
</view>
</view>
<view class="towcontenthere flex-colum" v-if="orderinfo">
@@ -91,12 +91,15 @@
const hour = date.getHours(); // 获取小时
const minute = date.getMinutes(); // 获取分钟
const second = date.getSeconds(); // 获取秒数
const formattedDate = `${year}-${month}-${day} ${hour<10? '0'+hour:hour}:${minute<10? '0'+minute:minute}:${second<10? '0'+second:second}`; // 拼接成格式化后的日期字符串
const formattedDate =
`${year}-${month}-${day} ${hour<10? '0'+hour:hour}:${minute<10? '0'+minute:minute}:${second<10? '0'+second:second}`; // 拼接成格式化后的日期字符串
return formattedDate
}
},
data() {
return {
paytype: 1,
titlename: '支付详情',
orderId: "",
opacitys: false,
@@ -142,6 +145,8 @@
}
},
onLoad(e) {
console.log(e,'调试1')
this.paytype = e.radiovalue1
this.orderId = e.orderId
setTimeout(() => {
this.GetTop()