fix: 修复支付问题
This commit is contained in:
@@ -80,7 +80,8 @@ const refundTitle = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const commodityPurchaseInstruction = computed(() => {
|
const commodityPurchaseInstruction = computed(() => {
|
||||||
if (props.orderData.commodityPurchaseInstruction) {
|
if (props.orderData.commodityPurchaseInstruction &&
|
||||||
|
props.orderData.commodityPurchaseInstruction.refundContent) {
|
||||||
// 以换行符为分隔符,将字符串转换为数组
|
// 以换行符为分隔符,将字符串转换为数组
|
||||||
return props.orderData.commodityPurchaseInstruction.refundContent.split(
|
return props.orderData.commodityPurchaseInstruction.refundContent.split(
|
||||||
"\n"
|
"\n"
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
/>
|
/>
|
||||||
<text
|
<text
|
||||||
class="font-size-16 font-500 color-white"
|
class="font-size-16 font-500 color-white"
|
||||||
@click="$onMultipleClicks(() => emit('payClick', orderData))"
|
|
||||||
>立即支付</text
|
>立即支付</text
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
@@ -59,6 +58,11 @@ const totalAmt = computed(() => {
|
|||||||
const { specificationPrice } = props.orderData;
|
const { specificationPrice } = props.orderData;
|
||||||
return count.value * Number(specificationPrice) * totalDays;
|
return count.value * Number(specificationPrice) * totalDays;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const handleBooking = () => {
|
||||||
|
emit("payClick", props.orderData);
|
||||||
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
'bg-2D91FF': ['1', '2', '3', '4', '5', '6'].includes(statusCode),
|
'bg-2D91FF': ['1', '2', '3', '4', '5', '6'].includes(statusCode),
|
||||||
},
|
},
|
||||||
]"
|
]"
|
||||||
@click="$onmultipleClicks(() => handleButtonClick(orderData))"
|
@click="handleButtonClick(orderData)"
|
||||||
>
|
>
|
||||||
{{ buttonText }}
|
{{ buttonText }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user