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

服务器写死

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