|
@@ -4,20 +4,22 @@
|
|
<!-- <view style="position:absolute;top:10px;right:10px;z-index:99;color:#2a98ff" @tap="goSeverConfig">服务器配置</view> -->
|
|
<!-- <view style="position:absolute;top:10px;right:10px;z-index:99;color:#2a98ff" @tap="goSeverConfig">服务器配置</view> -->
|
|
|
|
|
|
<!-- #ifdef APP-PLUS-->
|
|
<!-- #ifdef APP-PLUS-->
|
|
- <view style="position:absolute;top:20px;right:15px;z-index:99;color:#2a98ff" @tap="goSeverConfig">服务器配置</view>
|
|
|
|
|
|
+ <view style="position:absolute;top:30px;right:15px;z-index:99;color:#2a98ff" @tap="goSeverConfig">服务器配置</view>
|
|
<!--#endif-->
|
|
<!--#endif-->
|
|
|
|
|
|
|
|
|
|
<view class="bg">
|
|
<view class="bg">
|
|
- <!-- <image class="bgImage" :src="bg" v-if="bg" /> -->
|
|
|
|
- <!-- <image class="bgImage" src="@/static/images/wt/bg.png" v-if="!bg" /> -->
|
|
|
|
|
|
+ <image class="bgImage" :src="bg" v-if="bg" />
|
|
|
|
+ <!-- <image class="bgImage" src="@/static/images/wt/bg.png" v-else /> -->
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="middle login">
|
|
<view class="middle login">
|
|
<view class="top">
|
|
<view class="top">
|
|
- <image class="logo" :src="logo" mode="widthFix" v-if="logo" />
|
|
|
|
- <text class="title">{{ title }}移动端登录</text>
|
|
|
|
|
|
+ <image class="logo" :src="logo" v-if="logo" />
|
|
|
|
+ <image class="logo" src="@/static/logo200.png" v-else />
|
|
|
|
+ <text class="title" v-if="title">{{ title }}</text>
|
|
|
|
+ <text class="title" v-else>移动端配置</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view id="login-input" style="margin-top: 20px" v-if="switchText == '账号密码登录'">
|
|
<view id="login-input" style="margin-top: 20px" v-if="switchText == '账号密码登录'">
|
|
@@ -75,10 +77,10 @@ const { proxy } = getCurrentInstance();
|
|
|
|
|
|
const data = reactive({
|
|
const data = reactive({
|
|
/** saas数据 */
|
|
/** saas数据 */
|
|
- bg: "/static/images/wt/bg.png",
|
|
|
|
- logo: "/static/logo.png",
|
|
|
|
- title: undefined,
|
|
|
|
- bottomTitle: undefined,
|
|
|
|
|
|
+ bg: "",
|
|
|
|
+ logo: "",
|
|
|
|
+ title: '',
|
|
|
|
+ bottomTitle: '',
|
|
/** login数据 */
|
|
/** login数据 */
|
|
phone: undefined,
|
|
phone: undefined,
|
|
verify: undefined,
|
|
verify: undefined,
|
|
@@ -169,6 +171,7 @@ function env() {
|
|
|
|
|
|
//#ifdef H5
|
|
//#ifdef H5
|
|
var linkUrl=window.location.host;
|
|
var linkUrl=window.location.host;
|
|
|
|
+ // var linkUrl='ces.cn';
|
|
//#endif
|
|
//#endif
|
|
|
|
|
|
//#ifdef APP-PLUS
|
|
//#ifdef APP-PLUS
|
|
@@ -264,11 +267,10 @@ async function submitRes() {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
login({
|
|
login({
|
|
username: username.value,
|
|
username: username.value,
|
|
password: password.value,
|
|
password: password.value,
|
|
|
|
+ tenantId: tenantId.value,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -294,12 +296,12 @@ async function info() {
|
|
async function getMobileTenantConfigApi(params) {
|
|
async function getMobileTenantConfigApi(params) {
|
|
getMobileTenantConfig(params).then((res) => {
|
|
getMobileTenantConfig(params).then((res) => {
|
|
if (res.data.length > 0) {
|
|
if (res.data.length > 0) {
|
|
- let data = res.data.data[0];
|
|
|
|
- bg.value = data.loginBackUrl;
|
|
|
|
|
|
+ let data = res.data[0];
|
|
title.value = data.loginTitle;
|
|
title.value = data.loginTitle;
|
|
-
|
|
|
|
bottomTitle.value = data.loginFooter;
|
|
bottomTitle.value = data.loginFooter;
|
|
tenantId.value = data.tenantId;
|
|
tenantId.value = data.tenantId;
|
|
|
|
+ bg.value = data.loginBackUrl;
|
|
|
|
+ logo.value=data.loginLogo;
|
|
uni.setStorageSync("homeTitle", data.loginTitle);
|
|
uni.setStorageSync("homeTitle", data.loginTitle);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -378,8 +380,9 @@ onLoad(() => {
|
|
display: flex;
|
|
display: flex;
|
|
margin-bottom: 60px;
|
|
margin-bottom: 60px;
|
|
.logo {
|
|
.logo {
|
|
- width: 50px;
|
|
|
|
- height: 50px;
|
|
|
|
|
|
+ width: 40px;
|
|
|
|
+ height: auto;
|
|
|
|
+ max-height:50px;
|
|
margin: 0 20px 0 auto;
|
|
margin: 0 20px 0 auto;
|
|
}
|
|
}
|
|
.title {
|
|
.title {
|