浏览代码

华为平板下载

lex 1 年之前
父节点
当前提交
57438e115b
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/student/down-load/download.tsx
  2. 2 2
      src/student/down-load/transfer.tsx

+ 1 - 1
src/student/down-load/download.tsx

@@ -94,7 +94,7 @@ export default defineComponent({
         //   window.location.href =
         //     'https://itunes.apple.com/cn/app/id1626971149?mt=8'
         // }
-      } else if (/(Android)/i.test(navigator.userAgent)) {
+      } else if (browser().huawei || /(Android)/i.test(navigator.userAgent)) {
         window.location.href = urlAndroid
       } else {
         this.$toast('请用手机或移动设备打开')

+ 2 - 2
src/student/down-load/transfer.tsx

@@ -59,7 +59,7 @@ export default defineComponent({
       // ColexiuStudent 唤起学生端
       // ColexiuTeacher 唤起老师端
       window.location.href = `ColexiuStudent://linkUrl=${iosStr}`
-    } else if (/(Android)/i.test(navigator.userAgent)) {
+    } else if (browser().huawei || /(Android)/i.test(navigator.userAgent)) {
       window.location.href = `colexiustudent://html:8888/SplashActivity?url=${iosStr}`
     } else {
       Toast('请用手机或移动设备打开')
@@ -80,7 +80,7 @@ export default defineComponent({
       ) {
         window.location.href =
           'https://itunes.apple.com/cn/app/id1626971695?mt=8'
-      } else if (/(Android)/i.test(navigator.userAgent)) {
+      } else if (browser().huawei || /(Android)/i.test(navigator.userAgent)) {
         window.location.href = this.androidUrl // 'https://oss.dayaedu.com/appstore/clx-student-domain.apk'
       } else {
         this.$toast('请用手机或移动设备打开')