feat: 订单支付|商品详情调整

This commit is contained in:
duanshuwen
2025-10-28 20:34:18 +08:00
parent 16fde7aade
commit eed2eea123
8 changed files with 175 additions and 203 deletions

View File

@@ -28,11 +28,16 @@
<uni-icons fontFamily="znicons" size="20" color="#333">
{{ zniconsMap["zn-refund"] }}
</uni-icons>
<text class="font-size-14 font-600 color-171717 ml-8">退订规则</text>
<text class="font-size-14 font-600 color-171717 ml-8">
{{ refundTitle }}
</text>
</view>
<view class="font-size-14 color-525866 line-height-16">
<!-- {{ commodityPurchaseInstruction.refundContent }} -->
·不予退款12小时以内取消或未入住不予退款
<view
class="font-size-14 color-525866 line-height-16 mb-4"
v-for="(item, index) in commodityPurchaseInstruction"
:key="index"
>
{{ item }}
</view>
</view>
</view>
@@ -64,9 +69,22 @@ const emit = defineEmits(["update:modelValue"]);
const popupRef = ref(null);
// 获取退款模板
const refundTitle = computed(() => {
if (props.orderData.commodityPurchaseInstruction) {
return (
props.orderData.commodityPurchaseInstruction.refundTitle || "退订规则"
);
}
return "退订规则";
});
const commodityPurchaseInstruction = computed(() => {
if (props.orderData.commodityPurchaseInstruction) {
return props.orderData.commodityPurchaseInstruction;
// 以换行符为分隔符,将字符串转换为数组
return props.orderData.commodityPurchaseInstruction.refundContent.split(
"\n"
);
}
return {};