liyongli il y a 4 ans
Parent
commit
b7dd316a10
1 fichiers modifiés avec 20 ajouts et 15 suppressions
  1. 20 15
      src/view/skeleton/index.vue

+ 20 - 15
src/view/skeleton/index.vue

@@ -33,6 +33,10 @@ import {
 import "vant/lib/cascader/style";
 import "vant/lib/field/style";
 import "vant/lib/popup/style";
+
+// import { getBase } from "../../api/getList.js";
+// import { getUrl } from "../../utils.js";
+
 export default {
   data() {
     return {
@@ -41,14 +45,14 @@ export default {
       show: false,
       options: [
         {
-          text: '第一季',
-          value: '1',
-          children: [{ text: '杭州市', value: '330100' }],
+          text: "第一季",
+          value: "1",
+          children: [{ text: "杭州市", value: "330100" }],
         },
         {
-          text: '第二季',
-          value: '2',
-          children: [{ text: '南京市', value: '320100' }],
+          text: "第二季",
+          value: "2",
+          children: [{ text: "南京市", value: "320100" }],
         },
       ],
     };
@@ -61,15 +65,16 @@ export default {
   methods: {
     onFinish() {},
     onChange(data) {
-        console.log(data)
-    //   if (value === this.options[0].value) {
-    //     setTimeout(() => {
-    //       this.options[0].children = [
-    //         { text: '杭州市', value: '330100' },
-    //         { text: '宁波市', value: '330200' },
-    //       ];
-    //     }, 500);
-    //   }
+      console.log(data);
+      // let season = getUrl("season");
+      //   if (value === this.options[0].value) {
+      //     setTimeout(() => {
+      //       this.options[0].children = [
+      //         { text: '杭州市', value: '330100' },
+      //         { text: '宁波市', value: '330200' },
+      //       ];
+      //     }, 500);
+      //   }
     },
   },
 };