#
whycq
2024-12-12 c299f99d637eb8f30b7571979bf710c3bcd74ee8
pages/login/login.vue
@@ -4,7 +4,7 @@
        <scroll-view scroll-y class="page">
         
            <view class="text-center" :style="[{animation: 'show ' + 0.4+ 's 1'}]">
            <image src="../../static/logo.png" mode='aspectFit' class="zai-logo" @longtap='longpressImg'></image>
            <image src="../../static/rylogo.png" mode='aspectFit' class="zai-logo" @longtap='longpressImg'></image>
         </view>
            <view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]">
            <block v-if="loginWay==1">
@@ -44,7 +44,6 @@
            </view>
        </scroll-view>
      
      <view>
         <uni-popup ref="popup" type="right">
            <view class="config">
@@ -59,7 +58,7 @@
               </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">
                  <button class="cu-btn bg-blue lg" @click="configConfirm">确认</button>
@@ -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'
                        });