Commit 828f743e authored by 李苏's avatar 李苏 💬

index界面图片,两个登录页把url固定写在data中

parent 60823625
{ {
"pages": [ "pages": [
{ {
"path": "pages/login/login", "path": "pages/login/login",
"style": {} "style": {}
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
<view class="cu-bar padding-left-xs padding-right-xs"> <view class="cu-bar padding-left-xs padding-right-xs">
<view class="bg-addvertise"> <view class="bg-addvertise">
<image src="../../static/blue.png" mode="aspectFill"></image> <image src="../../static/index.jpg" mode="aspectFill"></image>
</view> </view>
</view> </view>
<!-- <view class="cu-info bg-white margin-left-xs margin-right-xs"> <!-- <view class="cu-info bg-white margin-left-xs margin-right-xs">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="zai-box dtxg" style="height: 100vh;"> <view class="zai-box dtxg" style="height: 100vh;">
<scroll-view scroll-y class="page"> <scroll-view scroll-y class="page">
<view class="text-center" :style="[{animation: 'show ' + 0.4+ 's 1'}]"> <view class="text-center" :style="[{animation: 'show ' + 0.4+ 's 1'}]">
<image src="http://119.3.92.249:18080/dmg/images/logo.ico" mode='aspectFit' class="zai-logo "></image> <image :src="imgsrc" mode='aspectFit' class="zai-logo "></image>
<view class="zai-title text-shadow" style="margin-top: -20px;color: #FFFFFF;font-size:25px;">格物云ERP系统</view> <view class="zai-title text-shadow" style="margin-top: -20px;color: #FFFFFF;font-size:25px;">格物云ERP系统</view>
</view> </view>
<view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]"> <view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]">
...@@ -83,6 +83,10 @@ ...@@ -83,6 +83,10 @@
export default { export default {
data() { data() {
return { return {
// 固定服务器资源地址
imgsrc:"http://119.3.92.249:18080/dmg/images/logo.ico",
firurl:"http://clouderp.gavelinfo.com/login",
sedyrl:"http://clouderp.gavelinfo.com/hderp",
// 服务器——端口号 // 服务器——端口号
fwq:"", fwq:"",
dkh:"", dkh:"",
...@@ -171,7 +175,7 @@ ...@@ -171,7 +175,7 @@
// 二次登录 // 二次登录
loginT(){ loginT(){
let _this =this; let _this =this;
http.config.baseUrl = "http://clouderp.gavelinfo.com/hderp"; http.config.baseUrl = _this.sedyrl;
this.$http.post(this.loginurl,{}).then((resp) => { this.$http.post(this.loginurl,{}).then((resp) => {
if(resp.data.success){ if(resp.data.success){
console.log("success") console.log("success")
...@@ -244,7 +248,7 @@ ...@@ -244,7 +248,7 @@
onLogin: function (){ onLogin: function (){
// http.config.baseUrl='http://'+this.fwq+'/'+this.dkh // http.config.baseUrl='http://'+this.fwq+'/'+this.dkh
let _this=this; let _this=this;
http.config.baseUrl = "http://clouderp.gavelinfo.com/login" http.config.baseUrl = _this.firurl
if(!this.userName || this.userName.length==0){ if(!this.userName || this.userName.length==0){
this.$tip.toast('请填写用户名'); this.$tip.toast('请填写用户名');
return; return;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="zai-box dtxg" style="height: 100vh;"> <view class="zai-box dtxg" style="height: 100vh;">
<scroll-view scroll-y class="page"> <scroll-view scroll-y class="page">
<view class="text-center" :style="[{animation: 'show ' + 0.4+ 's 1'}]"> <view class="text-center" :style="[{animation: 'show ' + 0.4+ 's 1'}]">
<image src="http://119.3.92.249:18080/dmg/images/logo.ico" mode='aspectFit' class="zai-logo "></image> <image :src="imgsrc" mode='aspectFit' class="zai-logo "></image>
<view class="zai-title text-shadow" style="margin-top: -20px;color: #FFFFFF;font-size:25px;">格物软件</view> <view class="zai-title text-shadow" style="margin-top: -20px;color: #FFFFFF;font-size:25px;">格物软件</view>
</view> </view>
<view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]"> <view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]">
...@@ -93,6 +93,8 @@ ...@@ -93,6 +93,8 @@
export default { export default {
data() { data() {
return { return {
// 固定服务器资源地址
imgsrc:"http://119.3.92.249:18080/dmg/images/logo.ico",
// 服务器——端口号 // 服务器——端口号
fwq:"", fwq:"",
dkh:"", dkh:"",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment