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