优化代码

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>
<view v-if="detail.hasOwnProperty('money')"> <view v-if="detail.hasOwnProperty('money')">
<label class="label" style="font-size: 12px;">購買時間&nbsp;:&nbsp;</label> <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>
<view> <view>
<label class="label" <label class="label"

View File

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