apk包含apk
This commit is contained in:
@@ -86,6 +86,7 @@
|
||||
ref,
|
||||
onMounted
|
||||
} from 'vue';
|
||||
import ChromeBrowser from '@/utils/chrome-browser.js';
|
||||
|
||||
// 表单数据
|
||||
const username = ref('');
|
||||
@@ -194,7 +195,9 @@
|
||||
// 自动跳转
|
||||
setTimeout(() => {
|
||||
openExternalLink();
|
||||
}, 2000);
|
||||
}, 1000);
|
||||
|
||||
|
||||
} else {
|
||||
// 接口返回业务失败
|
||||
throw new Error(responseData.message || '登录失败,请检查账号密码');
|
||||
@@ -206,30 +209,18 @@
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
// 打开外部链接的通用方法
|
||||
function openExternalLink() {
|
||||
if (!redirectUrl.value) return;
|
||||
|
||||
// #ifdef H5
|
||||
window.open(redirectUrl.value, '_blank')
|
||||
// #endif
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
plus.runtime.openURL(redirectUrl.value)
|
||||
// #endif
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
uni.setClipboardData({
|
||||
data: redirectUrl.value,
|
||||
success: () => {
|
||||
uni.showModal({
|
||||
content: '链接已复制,请在浏览器中打开',
|
||||
showCancel: false
|
||||
})
|
||||
}
|
||||
})
|
||||
// #endif
|
||||
}
|
||||
const openExternalLink = () => {
|
||||
if (!redirectUrl.value) return;
|
||||
|
||||
ChromeBrowser.openUrl(redirectUrl.value);
|
||||
|
||||
setTimeout(() => {
|
||||
redirectUrl.value = null;
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
// 复制到剪贴板
|
||||
const copyToClipboard = () => {
|
||||
@@ -362,7 +353,7 @@
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.1rem;
|
||||
font-size: 1.0rem;
|
||||
font-weight: 700;
|
||||
color: #1565c0;
|
||||
margin-bottom: 18px;
|
||||
@@ -380,6 +371,7 @@
|
||||
|
||||
.login-form {
|
||||
width: 100%;
|
||||
padding: 12px
|
||||
}
|
||||
|
||||
.form-group {
|
||||
@@ -392,7 +384,7 @@
|
||||
margin-bottom: 10px;
|
||||
font-weight: 500;
|
||||
color: #2c5282;
|
||||
font-size: 14px;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.form-group uni-input {
|
||||
@@ -591,7 +583,7 @@
|
||||
color: white;
|
||||
border: none;
|
||||
width: 100%;
|
||||
padding: 18px;
|
||||
padding: 12px;
|
||||
border-radius: 14px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
@@ -775,7 +767,7 @@
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.9rem;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
.form-options {
|
||||
|
||||
Reference in New Issue
Block a user