lyuis 7 bulan lalu
induk
melakukan
62da854956
1 mengubah file dengan 11 tambahan dan 10 penghapusan
  1. 11 10
      pages/index/download.vue

+ 11 - 10
pages/index/download.vue

@@ -103,37 +103,38 @@ export default {
 							var u = navigator.userAgent;
 							if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { //安卓手机
 								// 小米应用商店
-								    if (u.match(/mi\s/i) == 'mi ') {
+								this.$queue.appConfirm(ua)
+								    if (ua.match(/xiaomi/i) == 'xiaomi') {
 								        window.location.href = 'https://app.mi.com/details?id=uni.app.UNI0B0096D';
 								    
 								    // vivo应用商店
-								    } else if (u.match(/vivo/i) == 'vivo') {
+								    } else if (ua.match(/vivo/i) == 'vivo') {
 								        window.location.href = 'https://h5coml.vivo.com.cn/h5coml/appdetail_h5/browser_v2/index.html?appId=3629014';
 										return this.$queue.showToast('vivo系统请在应用商店搜索“亿职赞”')
 								    // OPPO应用商店
-								    } else if (u.match(/oppo/i) == 'oppo') {
+								    } else if (ua.match(/oppo/i) == 'oppo') {
 								        window.location.href = 'https://api.appstore.oppomobile.com/app/detail?packageName=uni.app.UNI0B0096D';
 								    
 								    // 荣耀应用商店
-								    } else if (u.match(/honor/i) == 'honor') {
+								    } else if (ua.match(/honor/i) == 'honor') {
 								        window.location.href = 'https://appgallery.huawei.com/app/C116155907'; // 替换为实际应用ID
 								    
 								    // 华为应用市场
-								    } else if (u.match(/huawei/i) == 'huawei') {
+								    } else if (ua.match(/huawei/i) == 'huawei') {
 								        window.location.href = 'https://appgallery.huawei.com/app/C116155907'; // 替换为实际应用ID
 								    
 								    // 三星应用商店
-								    } else if (u.match(/samsung/i) == 'samsung') {
+								    } else if (ua.match(/samsung/i) == 'samsung') {
 								        window.location.href = 'https://galaxystore.samsung.com/detail/uni.app.UNI0B0096D';
 								    
 								    // 魅族应用商店
-								    } else if (u.match(/meizu/i) == 'meizu') {
+								    } else if (ua.match(/meizu/i) == 'meizu') {
 								        window.location.href = 'https://app.meizu.com/apps/uni.app.UNI0B0096D';
 								    
 								    
 								    // 默认跳转(Google Play或官方下载页)
 								    } else {
-								        window.location.href = 'https://play.google.com/store/apps/details?id=uni.app.UNI0B0096D';
+								        this.$queue.showToast('请在手机应用市场内搜索“亿职赞”')
 								    }
 		
 							} else if (u.indexOf('iPhone') > -1) { //苹果手机
@@ -389,8 +390,8 @@ page {
 				font-weight: 600;
 				color: #ffffff;
 				width: 130rpx;
-				padding: 10rpx 0;
-				background: #3478F6;
+				padding: 4rpx 0;
+				background: #3478F6dd;
 				border-radius: 32rpx;
 				margin-right: 13rpx;
 			}