From 56b70cdad0a96691eaf37e04a79ef5e92b892480 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 19 四月 2024 11:14:40 +0800
Subject: [PATCH] bug1

---
 pages/bookExhibitionList/index.js |  171 +++++++++++++++++++++++++++------------------------------
 1 files changed, 81 insertions(+), 90 deletions(-)

diff --git a/pages/bookExhibitionList/index.js b/pages/bookExhibitionList/index.js
index 64570f8..e3b7d50 100644
--- a/pages/bookExhibitionList/index.js
+++ b/pages/bookExhibitionList/index.js
@@ -8,22 +8,6 @@
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
-    product: {
-      value: 'all',
-      options: [{
-          value: 'all',
-          label: '鍏ㄩ儴浜у搧',
-        },
-        {
-          value: 'new',
-          label: '鏈�鏂颁骇鍝�',
-        },
-        {
-          value: 'hot',
-          label: '鏈�鐏骇鍝�',
-        },
-      ],
-    },
     loading: true,
     hidden: true,
     totalSize: '',
@@ -45,32 +29,32 @@
     sorter: {
       value: 'default',
     },
-    // product: {
-    //   value: '*',
-    //   options: [{
-    //       value: '*',
-    //       label: '鎬诲垎绫�',
-    //     },
-    //     {
-    //       value: 'jsek_bFHigherEducation',
-    //       //閲嶇偣椤圭洰
-    //       price: 'jsek_higherEducation',
-    //       label: '楂樼瓑鏁欒偛',
-    //     },
-    //     {
-    //       value: 'jsek_bFVocationalEducation',
-    //       //閲嶇偣椤圭洰
-    //       price: 'jsek_vocationalEducation',
-    //       label: '鑱屼笟鏁欒偛',
-    //     },
-    //     {
-    //       value: 'jsek_bFTeacherEducation',
-    //       //閲嶇偣椤圭洰
-    //       price: 'jsek_teacherEducation',
-    //       label: '鏁欏笀鏁欒偛',
-    //     },
-    //   ],
-    // },
+    product: {
+      value: '*',
+      options: [{
+          value: '*',
+          label: '鎬诲垎绫�',
+        },
+        {
+          value: 'jsek_bFHigherEducation',
+          //閲嶇偣椤圭洰
+          price: 'jsek_higherEducation',
+          label: '楂樼瓑鏁欒偛',
+        },
+        {
+          value: 'jsek_bFVocationalEducation',
+          //閲嶇偣椤圭洰
+          price: 'jsek_vocationalEducation',
+          label: '鑱屼笟鏁欒偛',
+        },
+        {
+          value: 'jsek_bFTeacherEducation',
+          //閲嶇偣椤圭洰
+          price: 'jsek_teacherEducation',
+          label: '鏁欏笀鏁欒偛',
+        },
+      ],
+    },
     multipleSelect: {
       value: [],
       options: [],
@@ -376,52 +360,62 @@
   },
 
 
+
+
+  // 鎬诲垎绫�
+  // 鎬诲垎绫�
   onChange(e) {
-    console.log(e);
+    // e.stopImmediatePropagation();
+
+
+
+
+
+
+
+
+
+
+    this.data.page.size = 16 //鏇存敼鏄剧ず鐨勫��
+    const newValue = e.detail.value;
+    const selectedOption = this.data.product.options.find(option => option.value === newValue);
+    const newPrice = selectedOption ? selectedOption.price : null;
+    const bookExhibitionListsubsidiary = []
+    this.setData({
+      bookExhibitionListsubsidiary: this.data.bookExhibitionList
+    })
+    console.log(bookExhibitionListsubsidiary, 'bookExhibitionListsubsidiary');
+    console.log(newValue, 'newValue');
+    console.log(newPrice, 'newPrice');
+
+    if (newPrice) {
+      this.setData({
+        keynoteDisabled: false
+      })
+    }
+    if (!newPrice) {
+      this.setData({
+        keynoteDisabled: true
+      })
+    }
+    console.log(newValue);
+    this.setData({
+      'product.value': newValue,
+      'product.price': newPrice, // 灏嗛�変腑鐨� price 鍊间繚瀛樺湪鏁版嵁涓�
+    });
+    this.bookExhibitionGet(newValue);
+    this.keyProjectsGet(newPrice);
+    // 璋冪敤鏇存柊椤甸潰鏁版嵁鐨勫嚱鏁帮紝浼犲叆鏂扮殑 value 鍜� price 鍊�
+
+    if (this.data.keynoteValue) {
+      //濡傛灉鏈夋暟鎹氨娓呯┖骞跺埛鏂伴〉闈�
+      this.data.keynoteValue = []
+      this.bookExhibitionGet(newValue)
+      this.onLoad()
+    }
+    // e.stopImmediatePropagation()
+
   },
-
-  // 鎬诲垎绫�
-  // 鎬诲垎绫�
-  // onChange(e) {
-
-  //   this.data.page.size = 16 //鏇存敼鏄剧ず鐨勫��
-  //   const newValue = e.detail.value;
-  //   const selectedOption = this.data.product.options.find(option => option.value === newValue);
-  //   const newPrice = selectedOption ? selectedOption.price : null;
-  //   const bookExhibitionListsubsidiary = []
-  //   this.setData({
-  //     bookExhibitionListsubsidiary: this.data.bookExhibitionList
-  //   })
-  //   console.log(bookExhibitionListsubsidiary, 'bookExhibitionListsubsidiary');
-  //   console.log(newValue, 'newValue');
-  //   console.log(newPrice, 'newPrice');
-
-  //   if (newPrice) {
-  //     this.setData({
-  //       keynoteDisabled: false
-  //     })
-  //   }
-  //   if (!newPrice) {
-  //     this.setData({
-  //       keynoteDisabled: true
-  //     })
-  //   }
-  //   console.log(newValue);
-  //   this.setData({
-  //     'product.value': newValue,
-  //     'product.price': newPrice, // 灏嗛�変腑鐨� price 鍊间繚瀛樺湪鏁版嵁涓�
-  //   });
-  //   this.bookExhibitionGet(newValue);
-  //   this.keyProjectsGet(newPrice);
-  //   // 璋冪敤鏇存柊椤甸潰鏁版嵁鐨勫嚱鏁帮紝浼犲叆鏂扮殑 value 鍜� price 鍊�
-
-  //   if (this.data.keynoteValue) {
-  //     //濡傛灉鏈夋暟鎹氨娓呯┖骞跺埛鏂伴〉闈�
-  //     this.data.keynoteValue = []
-  //     this.bookExhibitionGet(newValue)
-  //     this.onLoad()
-  //   }
-  // },
 
   // 閲嶇偣椤圭洰
   handleMultipleSelect(e) {
@@ -430,9 +424,6 @@
     });
   },
   handleConfirm(event) {
-
-
-
     const {
       value
     } = event.detail;
@@ -500,7 +491,7 @@
     console.log(e.detail.value, 'e.detail.value');
     this.bookExhibitionGet()
   },
-  onTest() {
+  onOpend() {
     console.log(7555);
   }
 })
\ No newline at end of file

--
Gitblit v1.9.1