|  |  |  | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </scroll-view> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <view> | 
|---|
|  |  |  | <uni-popup ref="popup" type="right"> | 
|---|
|  |  |  | <view class="config"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </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="lywms" placeholder-style="font-size:16rpx;text-indent: 10rpx;"> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="flex justify-around"> | 
|---|
|  |  |  | <button class="cu-btn bg-blue lg" @click="configConfirm">确认</button> | 
|---|
|  |  |  | 
|---|
|  |  |  | uni.setStorageSync('UPORT',this.basePORT) | 
|---|
|  |  |  | this.baseUrl = this.PROJECT | 
|---|
|  |  |  | uni.setStorageSync('UPROJ',this.baseUrl) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.$refs.popup.close() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | longpressImg() { // 长按图片 | 
|---|
|  |  |  | 
|---|
|  |  |  | duration: 1000 | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | },6000) | 
|---|
|  |  |  | console.log(this.baseUrl) | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: this.baseHttp + this.baseIP + ':' +this.basePORT +"/" +this.baseUrl + '/login.action', | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | uni.setStorageSync('token', res.data.token); | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | uni.navigateBack();      //   小程序用这个  把首页路由放第一个 | 
|---|
|  |  |  | // uni.navigateBack();      //   小程序用这个  把首页路由放第一个 | 
|---|
|  |  |  | uni.reLaunch({ | 
|---|
|  |  |  | url: '../index/index' | 
|---|
|  |  |  | }); | 
|---|