tangning 2 years ago
parent
commit
95616b730a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/views/mobile/index.vue
  2. 1 1
      src/views/pc/index.vue

+ 1 - 1
src/views/mobile/index.vue

@@ -6,7 +6,6 @@ import { openPay, getOrderInfo, wxLogin } from '@/api/api'
 import { useRoute } from 'vue-router'
 import { GetRequest, getWeChatCode } from '@/utils/index'
 import { useI18n } from 'vue-i18n'
-const payType = ref('0')
 const route = useRoute()
 const orderDetal = ref({
   payStatus:0
@@ -15,6 +14,7 @@ const orderSn = ref(route.query.id || GetRequest('id'))
 const { t } = useI18n()
 const userStore = useUserStore();
 const isEur = userStore.isEur
+const payType = ref(isEur?'5':'0')
 const openId = computed(() => userStore.getOpenId);
 const is_zfb = ref(false)
 const is_weixn = ref(false)

+ 1 - 1
src/views/pc/index.vue

@@ -25,7 +25,7 @@ let PAYSID = {
   alipay: 1,
   paypal: 2
 }
-const selectedPayType = ref('alipay')
+const selectedPayType = ref(isEur?'paypal':'alipay')
 watch(selectedPayType, () => {
   getCode()
 })