|
|
@@ -11,8 +11,8 @@
|
|
|
<view class="middle-content">
|
|
|
<text class="title" :style="{ color: useStore.loginBg ? '#FFFFFF' : '#000000' }">请登录</text>
|
|
|
<!-- #ifdef APP-PLUS || MP-WEIXIN -->
|
|
|
- <view class="prompt" v-if="!linkUrl">首次账号登录请先配置服务器</view>
|
|
|
- <view class="setting" @tap="goSeverConfig"> 配置服务器 </view>
|
|
|
+ <!-- <view class="prompt" v-if="!linkUrl">首次账号登录请先配置服务器</view>
|
|
|
+ <view class="setting" @tap="goSeverConfig"> 配置服务器 </view> -->
|
|
|
<!--#endif-->
|
|
|
</view>
|
|
|
|
|
|
@@ -40,7 +40,7 @@
|
|
|
<view class="middle-switch">
|
|
|
<text class="switch-loginMethod" @click="switchMode(1)">{{ switchText === "验证码登录" ? "账号密码登录" : "验证码登录" }}</text>
|
|
|
<view style="margin: auto"></view>
|
|
|
- <text class="switch-register" @click="switchMode(2)">注册账号1</text>
|
|
|
+ <text class="switch-register" @click="switchMode(2)">注册账号</text>
|
|
|
</view>
|
|
|
<!--#endif-->
|
|
|
|
|
|
@@ -175,8 +175,15 @@ function getVerifyCode() {
|
|
|
* @初始化
|
|
|
*/
|
|
|
function init() {
|
|
|
+
|
|
|
uni.setStorageSync("serveUrl", "manager.usky.cn");
|
|
|
+ linkUrl.value = uni.getStorageSync("serveUrl");
|
|
|
+ // linkUrl.value = "localhost:81";
|
|
|
+ useStore.GetMobileTenantConfig({ url: linkUrl.value });
|
|
|
+
|
|
|
+
|
|
|
state.tokenData = uni.getStorageSync("App-Token");
|
|
|
+
|
|
|
useStore.SetInterval("codeTime"); //调用倒计时定时器
|
|
|
if (uni.getStorageSync("App-Token")) {
|
|
|
proxy.$tab.reLaunch("/pages/index");
|