YY %!s(int64=2) %!d(string=hai) anos
pai
achega
3580769b93
Modificáronse 1 ficheiros con 9 adicións e 6 borrados
  1. 9 6
      src/views/platSettings/config/index.vue

+ 9 - 6
src/views/platSettings/config/index.vue

@@ -12,8 +12,8 @@
       <template #agree>
         <editor v-model="form.agree" url="/files/point/config/upload" />
       </template>
-      <template #bottom_title>
-        <data-form :span="24" :fields="testfields" v-model="form.bottom_title" labelWidth="auto" :isSave="false"> </data-form>
+      <template #bottom_menu>
+        <data-form :span="24" :fields="testfields" v-model="form.bottom_menu" labelWidth="auto" :isSave="false"> </data-form>
       </template>
     </data-form>
   </div>
@@ -35,16 +35,16 @@ export default {
         { label: '购物赠送积分', model: 'buyPoint', custom: true },
         { label: '自动关闭订单时间', model: 'autoCloseOrder', custom: true },
         // { label: '积分计划', model: 'pointPlan' },
-        { label: '底部文字', model: 'bottom_title', custom: true },
+        { label: '底部文字', model: 'bottom_title' },
         { label: '底部菜单', model: 'bottom_menu', custom: true },
         { label: '分享图片', model: 'share', type: 'upload', limit: 1, url: '/files/point/config/upload' },
         { label: '用户协议', model: 'agree', custom: true },
       ],
       rules: {},
-      form: {},
+      form: { bottom_menu: {} },
       testfields: [
-        { label: '是否使用', model: 'is_use', type: 'radio' },
-        { label: '菜单列表', model: 'list', custom: true },
+        { label: '是否使用', model: 'is_use' },
+        { label: '菜单列表', model: 'list' },
       ],
     };
   },
@@ -73,6 +73,9 @@ export default {
             autoCloseOrder: this.form.config.autoCloseOrder,
           };
         }
+        if (!this.form.bottom_menu) {
+          console.log('1');
+        }
       }
     },
     async toSave({ data }) {