USER-20230908AJ\Administrator 5 mesi fa
parent
commit
f23222cf76

+ 9 - 1
src/App.vue

@@ -4,11 +4,19 @@
   </div>
 </template>
 <script>
+import tools from '@/utils/tools'
+
 export default {
   data() {
     return {};
   },
-  mounted() { },
+  mounted() {
+    let isMobile=tools.hasMobile()
+    console.log("isMobile:",isMobile)
+    if(isMobile){
+      window.location="https://wap.gmcyy.com"
+    }
+  },
   methods: {},
   beforeDestroy() {
     this.$eventBus.$off('langChange')

+ 3 - 2
src/locales/Arab.json

@@ -202,6 +202,7 @@
     "text6": "رصيد الحساب",
     "text7": "اللجنة اليوم",
     "text8": "معدل العمولة المقدرة لكل تذكرة هو 0.4 ٪ ~ 0.6 في المائة .",
-    "text9": "تبدأ سرقة التذاكر"
+    "text9": "تبدأ سرقة التذاكر",
+    "text10": "يرجى طلب الحصول على التذاكر من الخدمة"
   }
-}
+}

+ 2 - 1
src/locales/en.json

@@ -202,6 +202,7 @@
 		"text6": "Account Balance",
 		"text7": "Today's Commission",
 		"text8": "Estimated commission rate per ticket: 0.4%~0.6%",
-		"text9": "Grab tickets"
+		"text9": "Grab tickets",
+		"text10": "Please apply to the service for ticket grab permission"
 	}
 }

+ 2 - 1
src/locales/zh-CN.json

@@ -202,6 +202,7 @@
 		"text6": "帳戶餘額",
 		"text7": "今日佣金",
 		"text8": "每張票的預估佣金利率為0.4%~0.6%",
-		"text9": "開始搶票"
+		"text9": "開始搶票",
+		"text10": "请向服务申请抢票权限"
 	}
 }

+ 11 - 0
src/utils/tools.js

@@ -22,4 +22,15 @@ tools.getLang=function(){
   return   localStorage.getItem('lang') || 'en'
 }
 
+tools.hasMobile=function() {
+  let isMobile = false;
+  if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
+    isMobile = true;
+  }
+  if (document.body.clientWidth < 800) {
+    isMobile = true;
+  }
+  return isMobile
+}
+
 export default tools

+ 1 - 1
src/views/Forestage/Tourism/index.vue

@@ -201,7 +201,7 @@ export default {
 
 		handleGoodsItem(item) {
       if(this.userInfo.is_opne!==1){
-        tools.error(this.lang ==='en'?'Please apply for ticket grabbing permission from the service':'请向服务申请抢票权限')
+        tools.error(this.$t('other.text10'))
         this.getInfo();
         return false
       }

+ 1 - 1
src/views/Forestage/Tourism/order-sett.vue

@@ -36,7 +36,7 @@ export default {
     setOpen(dialogVisible){
       this.dialogVisible=dialogVisible===true;
       if( this.dialogVisible){
-        this.time=15
+        this.time=3
         this.timeServe=setInterval(()=>{
           this.time--;
           this.text = this.time ;