From d8872903e30f0a53abefcd279ae03258341e931f Mon Sep 17 00:00:00 2001 From: cuiqian2004 <cuiqian2004@163.com> Date: 星期四, 20 三月 2025 09:10:31 +0800 Subject: [PATCH] test --- pages/login/index.vue | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/pages/login/index.vue b/pages/login/index.vue index 7958b0d..1cb579e 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -70,7 +70,10 @@ </uni-popup> <!-- 鐗堟湰鍗囩骇寮圭獥缁撴潫 --> </view> - + <!-- <button @click="onClickWms">鐧诲綍wms</button> + <view class="webview"> + <web-view ref="webview" src="http://115.29.185.26:5000/mobox3/#/"></web-view> + </view> --> </view> </template> @@ -145,7 +148,7 @@ title: this.translateSys("tip"), content: this.translate("tip_no_web_server"), showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -171,7 +174,7 @@ title: this.translateSys("error"), content: tip, showCancel: false, - confirmText: this.translateSys("cancel") + confirmText: this.translateSys('close') }); } @@ -340,7 +343,7 @@ title: this.translateSys('tip'), content: this.translate('tip_no_web_server'), showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -349,7 +352,7 @@ title: this.translateSys('tip'), content: this.translate('tip_no_user_account'), showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -358,7 +361,7 @@ title: this.translateSys('tip'), content: this.translate('tip_no_user_password'), showCancel: false, - confirmText: this.translateSys('cancel') + confirmText: this.translateSys('close') }); return; } @@ -395,10 +398,16 @@ title: this.translateSys("error"), content: tip, showCancel: false, - confirmText: this.translateSys("cancel") + confirmText: this.translateSys('close') }); } + }, + onClickWms() { + let otherAppSchemeURL = "testapp://pages/index/index"; // 鏇挎崲涓虹洰鏍嘺pp鐨剆cheme URL + plus.runtime.openURL(otherAppSchemeURL, function(error) { + console.error('鎵撳紑搴旂敤澶辫触: ', error); + }, "uni.TeatApp"); }, translate(t) { if (typeof this.$t == "function") return this.$t(`page.${t}`) @@ -409,8 +418,9 @@ else return t; }, }, - onLoad() { + onLoad(options) { //鑾峰彇mac鍦板潃 + var url = utils.session.getValue('server'); var username = utils.session.getValue('account'); var userpwd = utils.session.getValue('password'); -- Gitblit v1.9.1