zengh
2022-02-22 b4a036fc21a2df9a98e83a3876d5d79ee0b80c10
pages/registerUser/registerUser.vue
@@ -414,38 +414,14 @@
                  }
                  var that = this;
                  var d = that.form;
                  var url = that.$store.state.piAPI + '/zc/inster',
                     data = {
                        // deptid: ,
                        password: d.pass,
                        password2: d.passTwo,
                        phone: d.phone,
                        sex: d.sex == '男' ? 1 : 2,
                        sname: d.name,
                        username: d.user,
                        deptid: d.objId,
                        parentId: d.jsid,
                        jurisdiction: d.xqobjId,
                        cardid: d.carId,
                        address: d.address
                     }
                  uni.request({
                     url: url,
                     method: 'POST',
                     data: data,
                     success: (res) => {
                        uni.showToast({
                           title: '注册成功,请等待审核',
                           icon: 'none',
                           duration: 2000
                  that.$refs.uForm.validate(valid => {
                     if (valid) {
                        var d = that.form;
                        uni.navigateTo({
                           url: '/pages/registerUser/idphoto?data= ' +
                              encodeURIComponent(JSON.stringify(
                                 d))
                        });
                        setTimeout(function() {
                           uni.navigateTo({
                              url: '/pages/loging/loging'
                           })
                        }, 2000);
                     }
                  });