Kirin 3 years ago
parent
commit
d84e73270a
1 changed files with 8 additions and 7 deletions
  1. 8 7
      app/admin/view/system/system_store/add.php

+ 8 - 7
app/admin/view/system/system_store/add.php

@@ -151,8 +151,10 @@
                                 <Row>
                                     <i-Col span="13">
                                         <span>第三方门店:</span>
-                                        <Radio v-model="form.is_triple">是</Radio>
-                                        <Radio v-model="!form.is_triple">否</Radio>
+                                        <RadioGroup v-model="form.is_triple" @on-change="changeModel">
+                                            <Radio :label="1" :key="1"><span>是</span></Radio>
+                                            <Radio :label="0" :key="0"><span>否</span></Radio>
+                                        </RadioGroup>
                                     </i-Col>
                                 </Row>
                             </Form-Item>
@@ -174,11 +176,7 @@
 <script src="{__ADMIN_PATH}js/layuiList.js"></script>
 
 <script>
-    var storeData = {
-    :
-    json_encode($store)
-    }
-    ;
+    var storeData = {:json_encode($store)};
     mpFrame.start(function (Vue) {
         $.each(city, function (key, item) {
             city[key].value = item.label;
@@ -216,6 +214,9 @@
                 }
             },
             methods: {
+                changeModel(newval) {
+                   console.log(newval);
+                }
                 changeDayTime: function (date) {
                     this.$set(this.form, 'day_time', date);
                 },