#
whycq
2022-12-05 a36ae49aa9b90b0c726fbeff442f06119b1adaac
pages/login/login.vue
@@ -44,7 +44,6 @@
            </view>
        </scroll-view>
      
      <view>
         <uni-popup ref="popup" type="right">
            <view class="config">
@@ -59,9 +58,9 @@
               </view>
               <view class="config-item">
                  <text>项目:</text>
                  <input v-model="PROJECT" type="text" placeholder="jkwms" placeholder-style="font-size:16rpx;text-indent: 10rpx;">
                  <input v-model="PROJECT" type="text" placeholder="wms" placeholder-style="font-size:16rpx;text-indent: 10rpx;">
               </view>
               <view class="flex justify-around">
               <view style="height: 100rpx;width:100%;display: flex;justify-content: center;align-items: flex-end">
                  <button class="cu-btn bg-blue lg" @click="configConfirm">确认</button>
               </view>
            </view>
@@ -205,7 +204,6 @@
            uni.setStorageSync('UPORT',this.basePORT)
            this.baseUrl = this.PROJECT
            uni.setStorageSync('UPROJ',this.baseUrl)
            this.$refs.popup.close()
         },
         longpressImg() { // 长按图片
@@ -269,7 +267,6 @@
                  duration: 1000
               });
            },6000)
            console.log(this.baseUrl)
            uni.request({
                url: this.baseHttp + this.baseIP + ':' +this.basePORT +"/" +this.baseUrl + '/login.action',
                data: {
@@ -297,7 +294,7 @@
                     }
                     uni.setStorageSync('token', res.data.token);
                     setTimeout(() => {
                        uni.navigateBack();      //   小程序用这个  把首页路由放第一个
                        //uni.navigateBack();      //   小程序用这个  把首页路由放第一个
                        uni.reLaunch({
                           url: '../index/index'
                        });
@@ -351,6 +348,9 @@
      width: 500rpx;
      height: 500rpx;
      background-color: #fff;
      border-radius: 30rpx;
      display: flex;
      flex-direction: column;
   }
   .config-title {
      height: 100rpx;
@@ -359,20 +359,22 @@
      line-height: 100rpx;
   }
   .config-item {
      height: 100rpx;
      height: 80rpx;
      margin-top: 10rpx;
      border-bottom: 1px solid #e8e8e8;
      display: flex;
      justify-content: center;
      align-items: flex-end;
   }
   .config-item text {
      display: inline-block;
      float: left;
      text-indent: 1em;
      width: 150rpx;
   }
   .config-item input {
      display: inline-block;
      float: right;
      margin-right: 50rpx;
      width: 300rpx;
      height: 50rpx;
      border: 1px solid #aaaaaa;
      /* height: 50rpx; */
      /* border: 1px solid #aaaaaa; */
      border-radius: 10rpx;
      font-size: 16rpx;
      text-indent: 10rpx;