|
@@ -56,7 +56,7 @@
|
|
|
</v-card>
|
|
|
<!-- 结算 -->
|
|
|
<CtDialog :visible="showPay" titleClass="text-h6" :widthType="3" title="订单信息" @submit="handleSubmit" @close="handleClose">
|
|
|
- <confirm ref="confirmRef" :data="skuInfo" @paySuccess="showPay = false"></confirm>
|
|
|
+ <confirm ref="confirmRef" :data="skuInfo" @paySuccess="paySuccess"></confirm>
|
|
|
</CtDialog>
|
|
|
</template>
|
|
|
|
|
@@ -153,15 +153,16 @@ const handleChangeCount = async (count, id) => {
|
|
|
const confirmRef = ref()
|
|
|
const handleSubmit = () => {
|
|
|
if (confirmRef.value) confirmRef.value.onConfirm()
|
|
|
- // 更新购物车列表,如果来自购物车
|
|
|
- // if (state.orderPayload.items[0].cartId > 0) {
|
|
|
- // sheep.$store('cart').getList();
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
const handleClose = () => {
|
|
|
showPay.value = false
|
|
|
}
|
|
|
+const paySuccess = () => {
|
|
|
+ // 更新购物车列表
|
|
|
+ showPay.value = false
|
|
|
+ getCartList()
|
|
|
+}
|
|
|
|
|
|
// 结算
|
|
|
const showPay = ref(false)
|