修改:后台操作,充值、积分功能。手机端进行限制

This commit is contained in:
2025-12-18 15:30:23 +08:00
parent 56772970e2
commit 4df53c611b
4 changed files with 25 additions and 13 deletions

View File

@@ -19,7 +19,7 @@
:class="item.orderType !== '充值' ? 'text1' : 'text2'">{{item.orderType !== '充值' ? '' : '+'}}{{item.changeAmount}}</text>
</view>
<view class="recharge-record-block-row_">{{item.productName}}</view>
<view class="recharge-record-block-row_">{{$t('user.orderSn')}}{{item.payNo}}<wd-icon name="file-copy"
<view class="recharge-record-block-row_" v-if="item.relationId">{{$t('user.orderSn')}}{{item.payNo}}<wd-icon name="file-copy"
size="14px" color="#65A1FA" style="margin-left: 10rpx;" @click="copyToClipboard()"></wd-icon>
</view>
<view class="time">{{item.createTime}}</view>
@@ -75,10 +75,14 @@
* 跳转订单详情
*/
const toDetails = (order: IOrder) => {
console.log(order.relationId, "order");
uni.navigateTo({
url: '/pages/user/order/details?orderId=' + order.relationId
})
if (order.relationId) {
uni.navigateTo({
url: '/pages/user/order/details?orderId=' + order.relationId
})
} else {
uni.showToast({ title: t('user.cannotView'), icon: 'none' });
}
}
</script>