Browse Source

修改地址

lex 2 years ago
parent
commit
57b39d0075
2 changed files with 4 additions and 6 deletions
  1. 2 3
      src/student/download/index.tsx
  2. 2 3
      src/student/download/transfer.tsx

+ 2 - 3
src/student/download/index.tsx

@@ -33,8 +33,7 @@ export default defineComponent({
       let urlAndroid = ''
       if (location.origin.indexOf('online.lexiaoya.cn') > -1) {
         if (state.type === 'student') {
-          urlIos =
-            'https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E7%AE%A1%E7%90%86%E7%AB%AF/id1671473981?uo=4'
+          urlIos = ''
           urlAndroid = 'https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-student.apk'
         } else if (state.type === 'teacher') {
           urlIos =
@@ -59,7 +58,7 @@ export default defineComponent({
       }
 
       if (browser().ios || /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
-        window.location.href = urlIos
+        urlIos && (window.location.href = urlIos)
       } else if (/(Android)/i.test(navigator.userAgent)) {
         window.location.href = urlAndroid
       } else {

+ 2 - 3
src/student/download/transfer.tsx

@@ -93,8 +93,7 @@ export default defineComponent({
       let urlAndroid = ''
       if (location.origin.indexOf('online.lexiaoya.cn') > -1) {
         if (this.type === 'student') {
-          urlIos =
-            'https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E7%AE%A1%E7%90%86%E7%AB%AF/id1671473981?uo=4'
+          urlIos = ''
           urlAndroid = 'https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-student.apk'
         } else if (this.type === 'teacher') {
           urlIos =
@@ -119,7 +118,7 @@ export default defineComponent({
       }
 
       if (browser().ios || /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
-        window.location.href = urlIos
+        urlIos && (window.location.href = urlIos)
       } else if (/(Android)/i.test(navigator.userAgent)) {
         window.location.href = urlAndroid
       } else {