From 0e292005a339a4974712541a831e9746c4ee0a7b Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 29 三月 2024 14:38:17 +0800
Subject: [PATCH] 音频播放按钮

---
 pages/bookExhibitionList/index.js |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/pages/bookExhibitionList/index.js b/pages/bookExhibitionList/index.js
index babb3d4..bd39345 100644
--- a/pages/bookExhibitionList/index.js
+++ b/pages/bookExhibitionList/index.js
@@ -26,8 +26,7 @@
     },
     product: {
       value: '*',
-      options: [
-        {
+      options: [{
           value: '*',
           label: '鎬诲垎绫�',
         },
@@ -64,11 +63,11 @@
 
 
   /**
-    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
-    */
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
+   */
   onLoad(options) {
 
-
+    console.log(this.data.keynoteDisabled, 'keynoteDisabled');
     // console.log(this.data.filteredItems, 88888);
     const systInfo = wx.getSystemInfoSync();
     const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
@@ -287,14 +286,20 @@
     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
       })
-
-    } else {
+    }
+    if (!newPrice) {
       this.setData({
         keynoteDisabled: true
       })
@@ -313,9 +318,6 @@
       this.bookExhibitionGet(newValue)
       this.onLoad()
     }
-
-
-
   },
 
   // 閲嶇偣椤圭洰
@@ -327,7 +329,9 @@
   },
   handleConfirm(event) {
 
-    const { value } = event.detail;
+    const {
+      value
+    } = event.detail;
     // 纭鎿嶄綔鐨勫鐞嗛�昏緫
 
     console.log('纭鎿嶄綔锛岄�変腑鐨勫�间负锛�', value);
@@ -342,10 +346,6 @@
     this.bookExhibitionGet()
   },
   onSwapRight() {
-    // console.log('xxxxxx');
-    // this.data.nameSort = 'Asc'
-
-
     if (!this.data.nameSort) {
       this.setData({
         nameSort: 'Desc',

--
Gitblit v1.9.1