Commit afb1922b authored by 李苏's avatar 李苏 💬

服务器写死

parent 752a0d45
...@@ -9,9 +9,9 @@ try { ...@@ -9,9 +9,9 @@ try {
} }
let newUrl = 'http://'+fwq let newUrl = 'http://'+fwq
if (process.env.NODE_ENV == 'development') { if (process.env.NODE_ENV == 'development') {
BASE_URL = "http://192.168.30.57:9080/xgwcs" BASE_URL = "http://10.2.175.100:8080/xgwcs"
} else { } else {
BASE_URL = "http://192.168.30.57:9080/xgwcs" BASE_URL = "http://10.2.175.100:8080/xgwcs"
} }
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<view class="padding-xs bg-white" style=""> <view class="padding-xs bg-white" style="">
<view class="cu-form-group "> <view class="cu-form-group ">
<view class="title">库位码</view> <view class="title">库位码</view>
<input :focus="kwmFocus" v-model="code" @confirm="searchKwm()" placeholder="扫描库位码"></input> <input v-model="code" @confirm="searchKwm()" placeholder="扫描库位码"></input>
<Scan :app="app" :params="'code'" :do="'searchKwm'" ></Scan> <Scan :app="app" :params="'code'" :do="'searchKwm'" ></Scan>
</view> </view>
</view> </view>
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<input type="password" v-model="password" placeholder-class="input-empty" maxlength="20" <input type="password" v-model="password" placeholder-class="input-empty" maxlength="20"
password data-key="password" @input="inputChange" @confirm="toLogin" /> password data-key="password" @input="inputChange" @confirm="toLogin" />
</view> </view>
<view @click="gofwqsz" class="padding text-right" style="color: #4399FC;"> <!-- <view @click="gofwqsz" class="padding text-right" style="color: #4399FC;">
服务器设置 服务器设置
</view> </view> -->
<checkbox-group class="flex" @change="CheckboxChange"> <checkbox-group class="flex" @change="CheckboxChange">
<view></view> <view></view>
<checkbox class='round' :class="checkbox[0].checked?'checked':''" :checked="checkbox[0].checked?true:false" value="Y"></checkbox> <checkbox class='round' :class="checkbox[0].checked?'checked':''" :checked="checkbox[0].checked?true:false" value="Y"></checkbox>
...@@ -144,18 +144,18 @@ ...@@ -144,18 +144,18 @@
}, },
toLogin:function() { toLogin:function() {
const that = this; const that = this;
uni.getStorage({ // uni.getStorage({
key:'sqlPort', // key:'sqlPort',
success:function(e){ // success:function(e){
console.log(e) // console.log(e)
if(e.data=="") // if(e.data=="")
that.$tip.toast('请先设置服务器'); // that.$tip.toast('请先设置服务器');
return false // return false
}, // },
fail() { // fail() {
that.$tip.toast('请先设置服务器'); // that.$tip.toast('请先设置服务器');
} // }
}) // })
if(!this.userName || this.userName.length==0){ if(!this.userName || this.userName.length==0){
this.$tip.toast('请填写用户名'); this.$tip.toast('请填写用户名');
return; return;
......
...@@ -29,11 +29,10 @@ ...@@ -29,11 +29,10 @@
export default { export default {
onLoad() { onLoad() {
// this.showLoading() this.showLoading()
this.$Router.replaceAll({name:'login'}) setTimeout(()=>{
// setTimeout(()=>{ appUpdate(this)
// appUpdate(this) },500)
// },500)
// #ifdef H5 // #ifdef H5
this.$Router.replaceAll({name:'login'}) this.$Router.replaceAll({name:'login'})
......
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