|
@@ -13,7 +13,7 @@
|
|
<image :src="eye?Frame:browse" class='login_icon_eye' alt="" @click="showpsd">
|
|
<image :src="eye?Frame:browse" class='login_icon_eye' alt="" @click="showpsd">
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item prop="userInfo.name" class="label_left">
|
|
<u-form-item prop="userInfo.name" class="label_left">
|
|
- <image :src="user_img" class='login_icon' alt="">
|
|
|
|
|
|
+ <image :src="ip_img" class='login_icon' alt="">
|
|
<u--input v-model="addressIp"></u--input>
|
|
<u--input v-model="addressIp"></u--input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u--form>
|
|
</u--form>
|
|
@@ -28,6 +28,7 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import login from "@/static/login_img/login.png"
|
|
import login from "@/static/login_img/login.png"
|
|
|
|
+ import ip_img from "@/static/login_img/ip.png"
|
|
import Frame from "@/static/login_img/Frame.png"
|
|
import Frame from "@/static/login_img/Frame.png"
|
|
import lockon from "@/static/login_img/lock-on.png"
|
|
import lockon from "@/static/login_img/lock-on.png"
|
|
import user from "@/static/login_img/user.png"
|
|
import user from "@/static/login_img/user.png"
|
|
@@ -38,6 +39,7 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
login_img: login,
|
|
login_img: login,
|
|
|
|
+ ip_img:ip_img,
|
|
browse: browse,
|
|
browse: browse,
|
|
user_img: user,
|
|
user_img: user,
|
|
lockon: lockon,
|
|
lockon: lockon,
|
|
@@ -49,7 +51,7 @@
|
|
eye: true,
|
|
eye: true,
|
|
popupType:'',
|
|
popupType:'',
|
|
popupMessage:'',
|
|
popupMessage:'',
|
|
- addressIp:this.$storage.getJson('addressIp')?this.$storage.getJson('addressIp'):'192.168.3.177:8080'
|
|
|
|
|
|
+ addressIp:this.$storage.getJson('addressIp')?this.$storage.getJson('addressIp'):'192.168.3.177'
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -64,8 +66,8 @@
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
|
|
|
|
- config.uni_app_web_api_url='http://'+this.addressIp+'/api'
|
|
|
|
- config.web_socket_url='ws://'+this.addressIp+'/ws/'
|
|
|
|
|
|
+ config.uni_app_web_api_url='http://'+this.addressIp+':8080/api'
|
|
|
|
+ config.web_socket_url='ws://'+this.addressIp+':8080/ws/'
|
|
if(!this.addressIp){
|
|
if(!this.addressIp){
|
|
this.ExchangeMessage('error', '请输入IP地址')
|
|
this.ExchangeMessage('error', '请输入IP地址')
|
|
return
|
|
return
|