#
zjj
2024-09-09 321a8a61f3cbc8c0c507d7339e1d46f59ec535c2
pages/login/login.vue
@@ -9,7 +9,7 @@
      <!-- logo -->
      <view class="logo">
         <view class="logo-box">
            <image src="../../static/img/LkyLogo.jpg" mode="aspectFit"></image>
            <image src="../../static/img/zy_logo.png" mode="aspectFit"></image>
         </view>
      </view>
      <view class="content">
@@ -76,6 +76,18 @@
                  <view class="popup-item-left">项目:</view>
                  <view class="popup-item-right"><input type="text" v-model="url.project"></view>
               </view>
               <view class="popup-item">
                  <view class="popup-item-left">WCSIP:</view>
                  <view class="popup-item-right"><input type="text" v-model="url.wcsIp"></view>
               </view>
               <view class="popup-item">
                  <view class="popup-item-left">WCS端口:</view>
                  <view class="popup-item-right"><input type="text" v-model="url.wcsPort"></view>
               </view>
               <view class="popup-item">
                  <view class="popup-item-left">WCS项目:</view>
                  <view class="popup-item-right"><input type="text" v-model="url.wcsProject"></view>
               </view>
               <view class="btn">
                  <view class="btn-left" @click="close">取消</view>
                  <view class="btn-right" @click="settingConfirm">确认</view>
@@ -116,6 +128,7 @@
               project: ''
            },
            baseUrl: '',
            wcsBaseUrl: '',
            user: {
               userName: '',
               password: '',
@@ -166,7 +179,9 @@
         // 保存ip
         settingConfirm() {
            this.baseUrl = "http://" + this.url.ip + ':' + this.url.port + '/' + this.url.project
            this.wcsBaseUrl = "http://" + this.url.wcsIp + ':' + this.url.wcsPort + '/' + this.url.wcsProject
            uni.setStorageSync('baseUrl', this.baseUrl);
            uni.setStorageSync('wcsBaseUrl',this.wcsBaseUrl)
            uni.setStorageSync('url', this.url);
            this.$refs.inputDialog.close()
         },
@@ -360,7 +375,7 @@
      display: flex;
      justify-content: center;
   }
   .logo-box {
   .logo-box {
      margin: auto 0;
   }
   image {