| | |
| | | <view class="popup-item-right"><input type="text" v-model="url.project"></view> |
| | | </view> |
| | | <view class="btn"> |
| | | <view class="btn-left" @click="close">取消</view> |
| | | <view class="btn-right" @click="settingConfirm">确认</view> |
| | | <view class="btn-left" @click="close()">取消</view> |
| | | <view class="btn-right" @click="settingConfirm()">确认</view> |
| | | </view> |
| | | </view> |
| | | </uni-popup> |
| | |
| | | }, |
| | | // 保存ip |
| | | settingConfirm() { |
| | | console.log(this.baseUrl); |
| | | this.baseUrl = "http://" + this.url.ip + ':' + this.url.port + '/' + this.url.project |
| | | uni.setStorageSync('baseUrl', this.baseUrl); |
| | | uni.setStorageSync('url', this.url); |
| | | this.$refs.inputDialog.close() |
| | | console.log(this.baseUrl); |
| | | // this.$refs.inputDialog.close() |
| | | }, |
| | | onLogin() { |
| | | let that = this |
| | | console.log(this.baseUrl); |
| | | uni.request({ |
| | | url: that.baseUrl + '/login.action', |
| | | fail(result) { |