chore(util): 格式化util.js
This commit is contained in:
@@ -628,7 +628,6 @@ export default {
|
|||||||
|
|
||||||
} else if (link.appid) {
|
} else if (link.appid) {
|
||||||
// 跳转其他小程序
|
// 跳转其他小程序
|
||||||
|
|
||||||
uni.navigateToMiniProgram({
|
uni.navigateToMiniProgram({
|
||||||
appId: link.appid,
|
appId: link.appid,
|
||||||
path: link.page
|
path: link.page
|
||||||
@@ -636,7 +635,6 @@ export default {
|
|||||||
|
|
||||||
} else if (link.name == 'MOBILE' && !link.wap_url) {
|
} else if (link.name == 'MOBILE' && !link.wap_url) {
|
||||||
// 拨打电话
|
// 拨打电话
|
||||||
|
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: link.mobile,
|
phoneNumber: link.mobile,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
@@ -1180,7 +1178,7 @@ export default {
|
|||||||
// 但是会包含uniacid参数,所以这里通过uniacid参数来判断是否为快应用环境
|
// 但是会包含uniacid参数,所以这里通过uniacid参数来判断是否为快应用环境
|
||||||
_isQuickApp = ua.indexOf('uniacid=') !== -1;
|
_isQuickApp = ua.indexOf('uniacid=') !== -1;
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) { }
|
||||||
|
|
||||||
if (!_isQuickApp) {
|
if (!_isQuickApp) {
|
||||||
const systemInfo = this.getDeviceInfo();
|
const systemInfo = this.getDeviceInfo();
|
||||||
@@ -1201,7 +1199,7 @@ export default {
|
|||||||
// #ifndef QUICKAPP-WEBVIEW-HUAWEI
|
// #ifndef QUICKAPP-WEBVIEW-HUAWEI
|
||||||
const systemInfo = this.getDeviceInfo();
|
const systemInfo = this.getDeviceInfo();
|
||||||
return systemInfo.brand === 'HUAWEI' || systemInfo.manufacturer === 'HUAWEI' ||
|
return systemInfo.brand === 'HUAWEI' || systemInfo.manufacturer === 'HUAWEI' ||
|
||||||
(typeof qh !== 'undefined' && qh.platform === 'huawei');
|
(typeof qh !== 'undefined' && qh.platform === 'huawei');
|
||||||
// #endif
|
// #endif
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user