优化代码

This commit is contained in:
zhongshilong 2025-04-30 10:32:46 +08:00
parent b03827da53
commit 94d9adfe64
2 changed files with 3 additions and 5 deletions

View File

@ -35,7 +35,7 @@
</view>
<view v-if="detail.hasOwnProperty('money')">
<label class="label" style="font-size: 12px;">購買時間&nbsp;:&nbsp;</label>
<label>{{$moment(Number(detail.createTimes||detail.createTimestamp)).format('YYYY-MM-DD HH:mm:ss')}}</label>
<label>{{$moment(Number(detail.purchaseTime)).format('YYYY-MM-DD HH:mm:ss')}}</label>
</view>
<view>
<label class="label"

View File

@ -202,14 +202,12 @@
type: this.detail.optionType,
name: this.userInfo.email,
money: this.value,
money_wallet: this.userInfo.wallet.address,
createTimes: this.$moment().valueOf()
money_wallet: this.userInfo.wallet.address,
}
_pushBuyInfo({
'buyinfo': data,
...this.detail,
money: this.value,
createTimes:data.createTimes,
money: this.value,
}).then((res) => {
uni.hideLoading()
let toast = {