Merge branch 'test' into dev

This commit is contained in:
linxi
2025-06-30 15:42:21 +08:00
4 changed files with 14 additions and 5 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
<template> <template>
<view class="order-details" style="padding: 30rpx;" @click="handleBody"> <view class="order-details" style="padding: 30rpx;" @click="handleBody">
<!-- 给header上与data上加on为退款订单--> <!-- 给header上与data上加on为退款订单-->
<view class=" v12-pa-3 v12-white" :class="refundOrder ? 'on' : ''" style="border-radius: 20rpx;"> <view class=" v12-pa-3 v12-white" :class="refundOrder ? 'on' : ''" style="border-radius: 20rpx;" v-if="!isGift">
<!-- <view class="status-img-box"> <!-- <view class="status-img-box">
<image class="status-img" :src="getStatusImg(orderInfo)" mode=""></image> <image class="status-img" :src="getStatusImg(orderInfo)" mode=""></image>
</view> --> </view> -->
@@ -492,7 +492,8 @@ export default {
payPassword: null, payPassword: null,
webUrl: this.$VUE_APP_RESOURCES_URL, webUrl: this.$VUE_APP_RESOURCES_URL,
pageKeyId: Object.freeze('userOrderInfo'), pageKeyId: Object.freeze('userOrderInfo'),
logistics: {} logistics: {},
isGift: false
}; };
}, },
computed: { computed: {
@@ -501,6 +502,9 @@ export default {
}, },
...mapGetters(["userInfo"]) ...mapGetters(["userInfo"])
}, },
onLoad(opts) {
this.isGift = !!opts.isGift
},
onShow() { onShow() {
const chooseAddress = uni.getStorageSync('chooseAddress') || {} const chooseAddress = uni.getStorageSync('chooseAddress') || {}
const addressId = chooseAddress.id || '' const addressId = chooseAddress.id || ''
+2
View File
@@ -309,6 +309,7 @@ export default {
uni.hideLoading(); uni.hideLoading();
this.getComment() this.getComment()
this.reply = '' this.reply = ''
this.currentComment = {}
this.item.replyCount === null ? this.item.replyCount = 1 : this.item.replyCount++ this.item.replyCount === null ? this.item.replyCount = 1 : this.item.replyCount++
}) })
}, },
@@ -765,6 +766,7 @@ export default {
} }
.info-section { .info-section {
word-break: break-all; word-break: break-all;
min-height: 100vh;
.info-item + .info-item { .info-item + .info-item {
margin: 32rpx 0 0 0; margin: 32rpx 0 0 0;
} }
+1 -1
View File
@@ -181,7 +181,7 @@ export default {
} }
replyMessage(params).then(res => { replyMessage(params).then(res => {
this.fetchList() // 查询消息列表 this.fetchList() // 查询消息列表
uni.hideLoading uni.hideLoading()
}) })
}, },
+5 -2
View File
@@ -403,11 +403,14 @@ export default {
this.$refs.giftTips.showTips = true this.$refs.giftTips.showTips = true
}, },
giftItemClickHanlde(item) { giftItemClickHanlde(item) {
if (this.cateIndex === 0) return console.log(item);
// if (this.cateIndex === 0) return
this.$yrouter.push({ this.$yrouter.push({
path: '/pages/order/OrderDetails/index', path: '/pages/order/OrderDetails/index',
query: { query: {
id: item.orderId id: item.orderId,
isGift: 1
} }
}) })
} }