|
|
@@ -22,9 +22,6 @@ const offsetPoints = computed(() => {
|
|
|
}
|
|
|
return Number(unref(orderInfo)?.offsetPoints)
|
|
|
})
|
|
|
-const totalMoney = computed(() => {
|
|
|
- return unref(offsetPoints) > (Number(unref(orderInfo)?.price) * 100) ? '0.00' : (((Number(unref(orderInfo)?.price) * 1000) + (Number(unref(orderInfo)?.transfee) * 1000)) - unref(offsetPoints)) / 1000
|
|
|
-})
|
|
|
const deliveryType = ref(1)
|
|
|
onLoad((options: any) => {
|
|
|
console.log(options.data)
|
|
|
@@ -61,7 +58,7 @@ async function handlePay() {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- const orderNumber = await getOrderPayMent('XSB', deliveryType.value, Number(orderInfo.value?.skuList[0].shopId), orderItemList, unref(remarks))
|
|
|
+ const orderNumber = await getOrderPayMent(orderInfo.value.transfee, 'XSB', deliveryType.value, Number(orderInfo.value?.skuList[0].shopId), orderItemList, unref(remarks))
|
|
|
const res = await handleCommonPayMent(orderNumber)
|
|
|
await clearCart(orderInfo.value.skuList)
|
|
|
if (res.payType !== 1) {
|
|
|
@@ -176,7 +173,7 @@ async function handlePay() {
|
|
|
总计:
|
|
|
</view>
|
|
|
<view class="text-#FF4D3A font-semibold">
|
|
|
- ¥ {{ totalMoney }}
|
|
|
+ ¥ {{ orderInfo?.totalPrice }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -194,7 +191,7 @@ async function handlePay() {
|
|
|
<view class="font-semibold10 flex items-baseline text-36rpx">
|
|
|
<text class="text-24rpx">
|
|
|
¥
|
|
|
- </text> {{ totalMoney }}
|
|
|
+ </text> {{ orderInfo?.totalPrice }}
|
|
|
</view>
|
|
|
<view class="ml20rpx text-22rpx">
|
|
|
共减¥{{ offsetPoints / 100 }}
|