绿满眶商城微信小程序-uniapp
pages/userPermissions/addStoreMember.vue
@@ -19,7 +19,7 @@
               <u-input v-model="form.password" placeholder="请输入密码" border="none" type="password" />
            </u-form-item>
            <u-form-item label="超级管理员" prop="isSuper" borderBottom required="true">
            <u-form-item label="店铺管理员" prop="isSuper" borderBottom required="true">
               <view class="switch-wrapper">
                  <u-switch v-model="form.isSuper"></u-switch>
               </view>
@@ -295,12 +295,11 @@
                     id: this.form.id,
                     mobile: this.form.mobile,
                     realName: this.form.realName,
                     password: this.form.password,
                     password: this.md5(this.form.password),
                     role: this.form.role,
                     isSuper:this.form.isSuper,
                     departmentId:this.form.departmentId,
                  }
                  if (form.id) {
                     update(form).then(res => {
                        this.loading = false;
@@ -314,7 +313,7 @@
                           setTimeout(() => uni.navigateBack(), 1500);
                        }
                     })
                  } else {
                  } else {0
                     add(form).then(res => {
                        this.loading = false;
                        if (res.statusCode === 200) {