| | |
| | | <view class="scroll-item" v-for="net in network"> |
| | | <view class="item-title" style="">{{net.name}}</view> |
| | | <view style="display: flex;align-items: center;"> |
| | | <input class="settings-input1" type="text" v-model="net.ip"> |
| | | <input class="settings-input1" type="text" v-model="net.ip" placeholder="请输入ip"> |
| | | <text style="font-weight: 900;">:</text> |
| | | <input class="settings-input2" type="text" v-model="net.port"> |
| | | <input class="settings-input2" type="text" v-model="net.port" placeholder="请输入端口"> |
| | | <text style="font-weight: 900;">/</text> |
| | | <input class="settings-input3" type="text" v-model="net.address"> |
| | | <input class="settings-input3" type="text" v-model="net.address" placeholder="请输入地址"> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | |
| | | username: '', |
| | | password: '' |
| | | }, |
| | | network: [ |
| | | { |
| | | name: 'wcs', |
| | | ip: '10.10.10.200', |
| | | port: '9090', |
| | | address: 'jmwcs' |
| | | } |
| | | ], |
| | | network: [{}], |
| | | load: { |
| | | loading: false, |
| | | btnText: '登录' |
| | |
| | | this.load.btnText = '登录中'; |
| | | uni.setStorageSync('user', this.user); |
| | | let res = await common.onLogin(this.user) |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | setTimeout(() => { |
| | | uni.showToast({ |
| | |
| | | }) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: `/pages/home/home`, |
| | | url: `/pages/project/jmAGV/home`, |
| | | }); |
| | | }, 300) |
| | | if (!this.remberPassword) { |