|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<view class="body" :style="{height:screenHeight}">
|
|
|
- <!-- <image class="login-bg" :src="staticUrl+'/img/login-bg.png'" mode="widthFix"></image> -->
|
|
|
+ <image v-if="isDevelop" class="login-bg" :src="loginBg" mode="widthFix"></image>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
<view style="height: 40%;position: relative;z-index: 10;">
|
|
|
- <view class="logo-wrap">
|
|
|
- <img :src="staticUrl+'/img/logo.png'" class="logo" alt="">
|
|
|
+ <view class="logo-wrap" :class="{dev:isDevelop}">
|
|
|
+ <img :src="logoSrc" class="logo" :class="{dev:isDevelop}" alt="">
|
|
|
<!-- <img :src="sitename" class="sitename" alt=""> -->
|
|
|
<!-- <u--image :src="logoSrc" width="200rpx" height="200rpx"></u--image>
|
|
|
<u--image :src="sitename" width="460rpx" height="142rpx"></u--image> -->
|
|
@@ -117,7 +117,8 @@
|
|
|
bname:'旭烁集团',
|
|
|
//屏幕高度
|
|
|
screenHeight: "",
|
|
|
- logoSrc: "/static/logo.png",
|
|
|
+ loginBg: `${this.$commonConfig.staticUrl}/img/login-page-bg-dev.png`,
|
|
|
+ logoSrc: `${this.$commonConfig.staticUrl}/img/logo.png`,
|
|
|
// sitename:"/static/sitename.png",
|
|
|
miniappLoginInfo:null,
|
|
|
hasUserInfo:false,
|
|
@@ -135,9 +136,17 @@
|
|
|
backUrl:null,
|
|
|
scene:'',
|
|
|
retailId:'',
|
|
|
+ isDevelop:undefined,
|
|
|
};
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
+ // console.log('envVersion',wx.getAccountInfoSync().miniProgram.envVersion);
|
|
|
+ console.log('this.$isDevelop',this.$isDevelop);
|
|
|
+ if(this.$isDevelop){
|
|
|
+ this.isDevelop = true;
|
|
|
+ this.logoSrc = `${this.$commonConfig.staticUrl}/img/logo-dev.png`;
|
|
|
+ }
|
|
|
+
|
|
|
// console.log("onLoad e=======",e)
|
|
|
if(e&&e.scene){
|
|
|
this.scene = e.scene;
|
|
@@ -504,7 +513,7 @@
|
|
|
position: fixed;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
- bottom: 0;
|
|
|
+ top: 0;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.body {
|
|
@@ -513,6 +522,10 @@
|
|
|
text-align: center;
|
|
|
.logo-wrap {
|
|
|
padding-top: 25vh;
|
|
|
+ &.dev{
|
|
|
+ padding-top: 530rpx;
|
|
|
+ margin-bottom: 125rpx;
|
|
|
+ }
|
|
|
img{
|
|
|
display: block;
|
|
|
margin: 0 auto;
|
|
@@ -520,6 +533,10 @@
|
|
|
.logo{
|
|
|
width: 480rpx;
|
|
|
height: 263rpx;
|
|
|
+ &.dev{
|
|
|
+ width: 380rpx;
|
|
|
+ height: 140rpx;
|
|
|
+ }
|
|
|
}
|
|
|
.sitename{
|
|
|
width: 460rpx;
|