chore: logo固定

main
wx-jincw 3 weeks ago
parent edcdd0aa59
commit c6a9aac008

@ -5,6 +5,7 @@ ENV = 'development'
VUE_APP_BASE_API = 'http://127.0.0.1:18091' VUE_APP_BASE_API = 'http://127.0.0.1:18091'
# VUE_APP_BASE_API = 'http://124.71.134.146:18091' # VUE_APP_BASE_API = 'http://124.71.134.146:18091'
# VUE_APP_BASE_API = 'https://crmeb.test.jiutianda.cn' # VUE_APP_BASE_API = 'https://crmeb.test.jiutianda.cn'
# VUE_APP_BASE_API = 'http://wangyi.test.jiutianda.cn'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. # to control whether the babel-plugin-dynamic-import-node plugin is enabled.

@ -44,7 +44,7 @@
}, },
data(){ data(){
return { return {
logoUrl:'' logoUrl:'/static/images/logo.png'
} }
}, },
computed:mapGetters(['isLogin','userInfo']), computed:mapGetters(['isLogin','userInfo']),
@ -106,15 +106,15 @@
}) })
}, },
getLogoUrl(){ getLogoUrl(){
let that = this; // let that = this;
if (Cache.has(LOGO_URL)) { // if (Cache.has(LOGO_URL)) {
this.logoUrl = Cache.get(LOGO_URL); // this.logoUrl = Cache.get(LOGO_URL);
return; // return;
} // }
getLogo().then(res=>{ // getLogo().then(res=>{
that.logoUrl = res.data.logoUrl // that.logoUrl = res.data.logoUrl
Cache.set(LOGO_URL,that.logoUrl); // Cache.set(LOGO_URL,that.logoUrl);
}) // })
}, },
close(){ close(){
let pages = getCurrentPages(), currPage = pages[pages.length - 1]; let pages = getCurrentPages(), currPage = pages[pages.length - 1];

@ -8,8 +8,7 @@
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
//移动端商城API //移动端商城API
// let domain = 'http://124.71.134.146:18093' let domain = 'http://wangyi2.test.jiutianda.cn'
let domain = 'https://crmebxcx.test.jiutianda.cn'
module.exports = { module.exports = {
// 请求域名 格式: https://您的域名 // 请求域名 格式: https://您的域名
@ -18,7 +17,7 @@ module.exports = {
// #ifdef MP // #ifdef MP
HTTP_REQUEST_URL: domain, HTTP_REQUEST_URL: domain,
// #endif // #endif
HTTP_ADMIN_URL:'http://124.71.134.146:18091', //PC后台的API请求地址上传图片用,影响h5上传头像 HTTP_ADMIN_URL:'http://wangyi2.test.jiutianda.cn', //PC后台的API请求地址上传图片用,影响h5上传头像
// #ifdef H5 // #ifdef H5
//H5接口是浏览器地址 //H5接口是浏览器地址
// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host, // HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,

@ -2,7 +2,7 @@
<view class="register absolute"> <view class="register absolute">
<view class="shading"> <view class="shading">
<view class="pictrue acea-row row-center-wrapper"> <view class="pictrue acea-row row-center-wrapper">
<image src="../../static/images/logo2.png"></image> <image src="../../static/images/logo.png"></image>
</view> </view>
</view> </view>
<view class="whiteBg"> <view class="whiteBg">

@ -2,7 +2,7 @@
<view class="appBox"> <view class="appBox">
<div class="shading"> <div class="shading">
<image :src="logoUrl" v-if="logoUrl" /> <image :src="logoUrl" v-if="logoUrl" />
<image src="/static/images/logo2.png" v-else /> <image src="/static/images/logo.png" v-else />
</div> </div>
<mobileLogin :isUp="isUp" :isShow="isShow" :platform="platform" :isPos="isPos" :appleShow="appleShow" :authKey="authKey" @wechatPhone="wechatPhone"></mobileLogin> <mobileLogin :isUp="isUp" :isShow="isShow" :platform="platform" :isPos="isPos" :appleShow="appleShow" :authKey="authKey" @wechatPhone="wechatPhone"></mobileLogin>
</view> </view>

@ -3,7 +3,7 @@
<div class="shading"> <div class="shading">
<!-- <image :src="logoUrl"/> --> <!-- <image :src="logoUrl"/> -->
<image :src="logoUrl"/> <image :src="logoUrl"/>
<!-- <image src="/static/images/logo2.png" v-if="!logoUrl" /> --> <!-- <image src="/static/images/logo.png" v-if="!logoUrl" /> -->
</div> </div>
<div class="whiteBg" v-if="formItem === 1"> <div class="whiteBg" v-if="formItem === 1">
<div class="list" v-if="current !== 1"> <div class="list" v-if="current !== 1">
@ -96,7 +96,7 @@
captcha: "", captcha: "",
formItem: 1, formItem: 1,
type: "login", type: "login",
logoUrl: "", logoUrl: "/static/images/logo.png",
keyCode: "", keyCode: "",
codeUrl: "", codeUrl: "",
codeVal: "", codeVal: "",
@ -271,10 +271,10 @@
let that = this let that = this
}, },
async getLogoImage() { async getLogoImage() {
let that = this; // let that = this;
getLogo().then(res => { // getLogo().then(res => {
that.logoUrl = res.data.logoUrl?res.data.logoUrl:'/static/images/logo2.png'; // that.logoUrl = res.data.logoUrl?res.data.logoUrl:'/static/images/logo.png';
}); // });
}, },
async loginMobile() { async loginMobile() {
let that = this; let that = this;

@ -2,7 +2,7 @@
<div class="register absolute"> <div class="register absolute">
<div class="shading"> <div class="shading">
<div class="pictrue acea-row row-center-wrapper"> <div class="pictrue acea-row row-center-wrapper">
<image src="../../../static/images/logo2.png" /> <image src="../../../static/images/logo.png" />
</div> </div>
</div> </div>
<div class="whiteBg"> <div class="whiteBg">

@ -67,7 +67,7 @@
statusBarHeight: statusBarHeight, statusBarHeight: statusBarHeight,
isHome: false, isHome: false,
isPhoneBox: false, isPhoneBox: false,
logoUrl: '', logoUrl: '/static/images/logo.png',
code: '', code: '',
authKey: '', authKey: '',
options: '', options: '',
@ -80,9 +80,9 @@
routinePhone routinePhone
}, },
onLoad(options) { onLoad(options) {
getLogo().then(res => { // getLogo().then(res => {
this.logoUrl = res.data.logoUrl // this.logoUrl = res.data.logoUrl
}) // })
let that = this let that = this
// #ifdef H5 // #ifdef H5
document.body.addEventListener("focusout", () => { document.body.addEventListener("focusout", () => {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Loading…
Cancel
Save