|
@@ -130,17 +130,17 @@ let allShoppingNum = computed(() => {
|
|
})
|
|
})
|
|
return addNum
|
|
return addNum
|
|
})
|
|
})
|
|
-// watch(allShoppingNum, (val) => {
|
|
|
|
-// if (val > 100 && paddleShow.value) {
|
|
|
|
-// paddleShow.value = false
|
|
|
|
-// if (payMethod.value === 'paddle') {
|
|
|
|
-// payMethod.value = 'paypal'
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// if (val <= 100 && !paddleShow.value) {
|
|
|
|
-// paddleShow.value = true
|
|
|
|
-// }
|
|
|
|
-// })
|
|
|
|
|
|
+watch(allShoppingNum, (val) => {
|
|
|
|
+ if (val > 100 && paddleShow.value) {
|
|
|
|
+ paddleShow.value = false
|
|
|
|
+ if (payMethod.value === 'paddle') {
|
|
|
|
+ payMethod.value = 'paypal'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (val <= 100 && !paddleShow.value) {
|
|
|
|
+ paddleShow.value = true
|
|
|
|
+ }
|
|
|
|
+})
|
|
const getShopping = () => {
|
|
const getShopping = () => {
|
|
get(
|
|
get(
|
|
baseUrl + '/api/shopping-cart?vpp_member_id=' + useInfo.value.id
|
|
baseUrl + '/api/shopping-cart?vpp_member_id=' + useInfo.value.id
|
|
@@ -233,7 +233,7 @@ const payMethod = ref('paypal')
|
|
const countryCode = ref('US')
|
|
const countryCode = ref('US')
|
|
const postCode = ref('')
|
|
const postCode = ref('')
|
|
const paypalLoading = ref(true)
|
|
const paypalLoading = ref(true)
|
|
-const paddleShow = ref(false)
|
|
|
|
|
|
+const paddleShow = ref(true)
|
|
|
|
|
|
// 查询支付状态
|
|
// 查询支付状态
|
|
const getState = (trade_no, payMethod) => {
|
|
const getState = (trade_no, payMethod) => {
|