#
whycq
2023-07-15 8870d754b409d3b5604cae6cd345a6800a830875
pages/login/login.vue
@@ -67,6 +67,11 @@
                  <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>
@@ -137,7 +142,8 @@
            rember: true,
            IP: '10.20.192.200',
            PORT: '', // 默认端口号
            PROJECT: ''
            PROJECT: '',
            WCSURL: '10.10.10.200:8080/jfwcs'
         };
      },
      mounted() {
@@ -216,6 +222,8 @@
            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() { // 长按图片
@@ -248,6 +256,12 @@
            }
         },
         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: '请填写账号',
@@ -373,7 +387,7 @@
   .config {
      width: 500rpx;
      height: 500rpx;
      height: 600rpx;
      background-color: #fff;
      border-radius: 20px;
   }