shish пре 6 година
родитељ
комит
ae4659429b
1 измењених фајлова са 21 додато и 34 уклоњено
  1. 21 34
      store/src/admin/adminShop/bind.vue

+ 21 - 34
store/src/admin/adminShop/bind.vue

@@ -9,16 +9,7 @@
 
         <tui-list-cell class="line-cell" :hover="false">
           <div class="tui-title required" style="width:120rpx;">手机号</div>
-          <input
-            v-model="form.mobile"
-            placeholder-class="phcolor"
-            class="tui-input"
-            name="mobile"
-            placeholder="请输入"
-            maxlength="50"
-            type="number"
-            style="width:400rpx;"
-          />
+          <view style="width:400rpx;"></view>
           <button
             class="admin-button-com blue mini-btn"
             open-type="getPhoneNumber"
@@ -27,16 +18,7 @@
         </tui-list-cell>
         <tui-list-cell class="line-cell" :hover="false">
           <div class="tui-title required" style="width:120rpx;">昵称</div>
-          <input
-            v-model="form.realName"
-            placeholder-class="phcolor"
-            class="tui-input"
-            name="nickname"
-            placeholder="请输入"
-            maxlength="40"
-            type="text"
-            style="width:400rpx;"
-          />
+          <view style="width:400rpx;"></view>
           <button
             class="admin-button-com blue mini-btn"
             open-type="getUserInfo"
@@ -77,19 +59,18 @@ export default {
     return {
       form: {
         mobile: "",
-        nickname: "",
-        recommendAdminId: 0,
-        shopId: 0,
-        adminId: 0
+        recommendAdminId: "",
+        shopId: "",
+        adminId: ""
       },
       levelSelData: {}
     };
   },
   computed: {},
   onLoad(props) {
-    //console.log(encodeURIComponent('adminId=18533&shopId=15680'))
+    console.log(encodeURIComponent("adminId=18533&shopId=15680"));
     const scene = decodeURIComponent(props.scene);
-    //console.log(scene);
+    console.log(scene);
     var sceneItem = scene.split("&");
     var arr, name, value;
     var sceneArray = new Array();
@@ -99,8 +80,8 @@ export default {
       value = arr[1];
       sceneArray[name] = value;
     }
-    this.recommendAdminId = sceneArray.adminId;
-    this.shopId = sceneArray.shopId;
+    this.form.recommendAdminId = sceneArray.adminId;
+    this.form.shopId = sceneArray.shopId;
   },
   methods: {
     confirmFn() {
@@ -115,21 +96,27 @@ export default {
         {
           name: "mobile",
           rule: ["required"],
-          msg: ["请输入手机号"]
+          msg: ["请点击生成手机号"]
         },
         {
-          name: "nickname",
+          name: "shopId",
           rule: ["required"],
-          msg: ["请输入昵称"]
+          msg: ["系统错误(shopId)"]
         },
         {
-          name: "shopId",
+          name: "recommendAdminId",
           rule: ["required"],
-          msg: ["系统错误(shopId)"]
+          msg: ["系统错误(recommendAdminId)"]
+        },
+        {
+          name: "adminId",
+          rule: ["required"],
+          msg: ["请点击生成昵称"]
         }
       ];
       // 进行表单检查
-      let formData = e.detail.value;
+      let formData = this.form;
+      console.log(formData)
       let checkRes = form.validation(formData, rules);
       // 验证通过!
       if (!checkRes) {