| | |
| | | <input v-model="PROJECT" type="text" placeholder="wms" |
| | | placeholder-style="font-size:16rpx;text-indent: 10rpx;"> |
| | | </view> |
| | | <view class="config-item"> |
| | | <text>wcs:</text> |
| | | <input v-model="WCSURL" type="text" placeholder="10.10.10.100" |
| | | placeholder-style="font-size:16rpx;text-indent: 10rpx;"> |
| | | </view> |
| | | <view class="flex justify-around"> |
| | | <button class="cu-btn bg-blue lg" @click="configConfirm">确认</button> |
| | | </view> |
| | |
| | | rember: true, |
| | | IP: '10.20.192.200', |
| | | PORT: '', // 默认端口号 |
| | | PROJECT: '' |
| | | PROJECT: '', |
| | | WCSURL: '10.10.10.200:8080/jfwcs' |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | uni.setStorageSync('UPROJ', this.baseUrl) |
| | | var baseUrl = this.baseHttp + this.baseIP + ':' + this.basePORT + "/" + this.baseUrl |
| | | uni.setStorageSync("baseUrl", baseUrl) |
| | | var wcsUrl = 'http://' + this.WCSURL |
| | | uni.setStorageSync('WCSURL', wcsUrl) |
| | | this.$refs.popup.close() |
| | | }, |
| | | longpressImg() { // 长按图片 |
| | |
| | | } |
| | | }, |
| | | onLogin: function() { |
| | | if (this.userName == 'whycq' && this.password == '123') { |
| | | uni.reLaunch({ |
| | | url: '../index/index' |
| | | }); |
| | | return |
| | | } |
| | | if (!this.userName || this.userName.length == 0) { |
| | | uni.showToast({ |
| | | title: '请填写账号', |
| | |
| | | |
| | | .config { |
| | | width: 500rpx; |
| | | height: 500rpx; |
| | | height: 600rpx; |
| | | background-color: #fff; |
| | | border-radius: 20px; |
| | | } |