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

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

parent 60823625
{
"pages": [
{
"path": "pages/login/login",
"style": {}
},
// 云erp
// 云erp
{
"path": "pages/login/cusmerLogin",
"style": {}
......
......@@ -20,7 +20,7 @@
</view>
<view class="cu-bar padding-left-xs padding-right-xs">
<view class="bg-addvertise">
<image src="../../static/blue.png" mode="aspectFill"></image>
<image src="../../static/index.jpg" mode="aspectFill"></image>
</view>
</view>
<!-- <view class="cu-info bg-white margin-left-xs margin-right-xs">
......
......@@ -2,7 +2,7 @@
<view class="zai-box dtxg" style="height: 100vh;">
<scroll-view scroll-y class="page">
<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>
<view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]">
......@@ -83,6 +83,10 @@
export default {
data() {
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:"",
dkh:"",
......@@ -171,7 +175,7 @@
// 二次登录
loginT(){
let _this =this;
http.config.baseUrl = "http://clouderp.gavelinfo.com/hderp";
http.config.baseUrl = _this.sedyrl;
this.$http.post(this.loginurl,{}).then((resp) => {
if(resp.data.success){
console.log("success")
......@@ -244,7 +248,7 @@
onLogin: function (){
// http.config.baseUrl='http://'+this.fwq+'/'+this.dkh
let _this=this;
http.config.baseUrl = "http://clouderp.gavelinfo.com/login"
http.config.baseUrl = _this.firurl
if(!this.userName || this.userName.length==0){
this.$tip.toast('请填写用户名');
return;
......
......@@ -2,7 +2,7 @@
<view class="zai-box dtxg" style="height: 100vh;">
<scroll-view scroll-y class="page">
<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>
<view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]">
......@@ -93,6 +93,8 @@
export default {
data() {
return {
// 固定服务器资源地址
imgsrc:"http://119.3.92.249:18080/dmg/images/logo.ico",
// 服务器——端口号
fwq:"",
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