| | |
| | | <u-input v-model="form.obj" placeholder="请输入工作单位" /> |
| | | </u-form-item> |
| | | <u-form-item label="辖区" left-icon="account-fill" label-width="200"> |
| | | <u-input type="select" placeholder="请选择辖区" :border="true" @click="mapShow = true" /> |
| | | <u-input type="select" placeholder="请选择辖区" :border="true" @click="openLoginMap" /> |
| | | <!-- <u-select v-model="showxq" mode="mutil-column-auto" :list="listxq" @confirm="confirmxq"></u-select> --> |
| | | </u-form-item> |
| | | <u-form-item label="性别" label-width="200" left-icon="man"> |
| | |
| | | <div class="login-map-content"> |
| | | <u-icon class="login-map-close" name="close" @click="mapShow = false"></u-icon> |
| | | |
| | | <web-view style="width: 100%; height: 100%;" src="http://223.82.109.183:2082/xcxMapJQ/xcxmap.html"> |
| | | <web-view style="width: 100%; height: 100%;" :src="loginMapUrl"> |
| | | </web-view> |
| | | </div> |
| | | </div> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | loginMapUrl: "", |
| | | radioList: [{ |
| | | name: '是', |
| | | disabled: false |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | getLocation() { |
| | | openLoginMap() { |
| | | var that = this |
| | | uni.getLocation({ |
| | | type: 'wgs84', |
| | | success: function(res) { |
| | |
| | | title: '位置', //标注点名 |
| | | alpha: 1, //透明度 |
| | | }] |
| | | |
| | | var data = [{ |
| | | "id": '100000', |
| | | "place": '无数据', |
| | | "state": '0', |
| | | "dtype": '0', |
| | | "size": '300', |
| | | "jd": res.longitude, |
| | | "wd": res.latitude |
| | | }] |
| | | data = JSON.stringify(data); |
| | | |
| | | that.loginMapUrl = 'http://223.82.109.183:2082/loginMap/loginMap.html?data=' + data |
| | | that.mapShow = true |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | zc() { |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + '/zc/inster', |
| | | method: 'POST', |
| | | data: { |
| | | username: this.form.user |
| | | }, |
| | | success: (res) => { |
| | | uni.showToast({ |
| | | title: '注册成功,请等待审核', |
| | | icon:'none', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | var that = this; |
| | | this.$refs.uForm.validate(valid => { |
| | | if (valid) { |
| | |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | |
| | | }, |
| | | depl() { |
| | | var that = this; |
| | |
| | | }, |
| | | onReady() { |
| | | this.$refs.uForm.setRules(this.rules); |
| | | |
| | | }, |
| | | watch: { |
| | | faceState() { |