tangning 2 年之前
父节点
当前提交
9161496889
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/mobile/index.vue

+ 4 - 2
src/views/mobile/index.vue

@@ -19,7 +19,9 @@ const openId = computed(() => userStore.getOpenId);
 const is_zfb = ref(false)
 const is_zfb = ref(false)
 const is_weixn = ref(false)
 const is_weixn = ref(false)
 var browser = navigator.userAgent.toLowerCase();
 var browser = navigator.userAgent.toLowerCase();
-  if(browser.match(/Alipay/i)=="alipay"){
+  if(isEur){
+    payType.value = '5'
+  }else if(browser.match(/Alipay/i)=="alipay"){
     console.log("支付宝app的浏览器");
     console.log("支付宝app的浏览器");
     is_zfb.value = true
     is_zfb.value = true
     payType.value = '4'
     payType.value = '4'
@@ -47,7 +49,7 @@ onMounted(() => {
 async function handelPay() {
 async function handelPay() {
   let apiData = {
   let apiData = {
     orderSn: orderSn.value,
     orderSn: orderSn.value,
-    payType: is_weixn.value ? '1' : payType.value,
+    payType: isEur ? '5' ? is_weixn.value ? '1' : payType.value,
     openId:openId.value,
     openId:openId.value,
   }
   }
   const res = await openPay(apiData)
   const res = await openPay(apiData)