|
@@ -4,7 +4,7 @@
|
|
|
<!-- <view style="position:absolute;top:10px;right:10px;z-index:99;color:#2a98ff" @tap="goSeverConfig">服务器配置</view> -->
|
|
|
|
|
|
<!-- #ifdef APP-PLUS-->
|
|
|
- <view style="position:absolute;top:10px;right:10px;z-index:99;color:#2a98ff" @tap="goSeverConfig">服务器配置</view>
|
|
|
+ <view style="position:absolute;top:20px;right:15px;z-index:99;color:#2a98ff" @tap="goSeverConfig">服务器配置</view>
|
|
|
<!--#endif-->
|
|
|
|
|
|
|
|
@@ -173,19 +173,13 @@ function env() {
|
|
|
|
|
|
//#ifdef APP-PLUS
|
|
|
var linkUrl=newPublicStore.serveUrl;
|
|
|
- if(!newPublicStore.serveUrl){
|
|
|
- uni.showToast({
|
|
|
- title: '请进行服务器配置...',
|
|
|
- icon: "none",
|
|
|
- })
|
|
|
- }else{
|
|
|
- uni.showToast({
|
|
|
- title: linkUrl,
|
|
|
- icon: "none",
|
|
|
- })
|
|
|
- }
|
|
|
//#endif
|
|
|
|
|
|
+// uni.showToast({
|
|
|
+// title: '服务器链接地址为'+linkUrl,
|
|
|
+// icon: "none",
|
|
|
+// })
|
|
|
+
|
|
|
getMobileTenantConfigApi({ url:linkUrl });
|
|
|
|
|
|
// let port = uni.getSystemInfoSync().platform;
|
|
@@ -214,6 +208,19 @@ function env() {
|
|
|
/** 点击提交按钮 */
|
|
|
async function submitRes() {
|
|
|
|
|
|
+
|
|
|
+ //#ifdef APP-PLUS
|
|
|
+ var linkUrl=newPublicStore.serveUrl;
|
|
|
+ if(!newPublicStore.serveUrl){
|
|
|
+ uni.showToast({
|
|
|
+ title: '首次登录请先进行服务器配置...',
|
|
|
+ icon: "none",
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //#endif
|
|
|
+
|
|
|
+
|
|
|
if (switchText.value == "账号密码登录") {
|
|
|
if (!phone.value) {
|
|
|
uni.showToast({
|