shuishen
2022-02-19 def72f26109265550b29e93d873ceccb7ecbb96c
pages/registerUser/registerUser.vue
@@ -15,7 +15,7 @@
            <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">
@@ -43,7 +43,7 @@
         <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>
@@ -59,6 +59,7 @@
   export default {
      data() {
         return {
            loginMapUrl: "",
            radioList: [{
                  name: '是',
                  disabled: false
@@ -286,7 +287,8 @@
         };
      },
      methods: {
         getLocation() {
         openLoginMap() {
            var that = this
            uni.getLocation({
               type: 'wgs84',
               success: function(res) {
@@ -305,10 +307,40 @@
                     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) {
@@ -319,6 +351,8 @@
                  });
               }
            });
         },
         depl() {
            var that = this;
@@ -458,6 +492,7 @@
      },
      onReady() {
         this.$refs.uForm.setRules(this.rules);
      },
      watch: {
         faceState() {