From d41f1f707dc643b726a42b9d2a63b186dd9e4f28 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 06 八月 2024 16:12:38 +0800
Subject: [PATCH] ll

---
 wechat_staff/pages/productVideo/index.wxml |   31 +++++++++++++++++++++----------
 1 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/wechat_staff/pages/productVideo/index.wxml b/wechat_staff/pages/productVideo/index.wxml
index cf98cff..289b0fb 100644
--- a/wechat_staff/pages/productVideo/index.wxml
+++ b/wechat_staff/pages/productVideo/index.wxml
@@ -2,24 +2,35 @@
   <buoyClient class="buoyClient"/>
   <!-- 鍒嗙被 -->
   <view>
-    <scroll-view wx:if="{{ category.length > 0 }}" scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;">
+    <scroll-view wx:if="{{ category.length > 0 && category.length == 1 }}" scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;">
       <view class="scroll_cate">
-        <view bindtap="cateClick" data-code="{{item.labelCode}}" wx:for="{{ category }}" class="item {{ tagCodes == item.labelCode ? 'active': '' }}">{{ item.labelName }}</view>
+        <view bindtap="cateClick" data-index="{{index}}" data-code="{{item.labelValueCode}}" wx:for="{{ category[0].valueVos }}" class="item {{ activeIndex == index ? 'active': '' }}">{{ item.labelValueName }}</view>
       </view>
     </scroll-view>
-    <!-- <scroll-view scroll-x="true" style="width: 710rpx;margin-bottom: 28rpx;">
-      <view class="scroll_cate second_list">
-        <view bindtap="seCateClick" data-index="{{index}}" wx:for="{{ secondCategory }}" class="item {{ index == 0 ? 'active': '' }}">{{ index }}{{ item }}</view>
+    <block wx:if="{{ category.length > 1 }}">
+      <scroll-view class="query_wrap_scroll" scroll-x>
+        <view class="query_wrap">
+          <view data-index="{{index}}" wx:for="{{ category }}" class="item" bindtap="changeShowParams">
+            <view class="name">{{ item.tempParamName || item.labelName }}</view>
+            <van-icon name="{{ index == activeIndex ? 'arrow-up' : 'arrow-down' }}" />
+          </view>
+        </view>
+      </scroll-view>
+      <view wx:if="{{ activeParam.length > 0 }}" class="query_form">
+        <view class="list">
+          <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ category[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view>
+        </view>
+        <view class="btns">
+          <view class="btn" bindtap="cancelParam">鍙栨秷</view>
+          <view class="btn sub" bindtap="subParam">纭</view>
+        </view>
       </view>
-    </scroll-view> -->
+      <view wx:if="{{ activeParam.length > 0 }}" class="shade"></view>
+    </block>
   </view>
   <!-- content -->
   <view class="content">
     <view wx:for="{{ dataList }}" class="item">
-      <!-- <view bindtap="itemClick" data-videourl="{{ item.videoUrl }}" data-id="{{ item.id }}" class="img_wrap">
-        <image class="img" src="{{ item.coverImage }}" mode="widthFix"></image>
-        <image class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image>
-      </view> -->
       <video id="{{ item.id }}" poster="{{ item.coverImage }}" data-item="{{ item }}" bindplay="itemClick" class="img_wrap" src="{{ item.videoUrl }}"	show-center-play-btn show-fullscreen-btn></video>
 
       <view class="title">{{ item.title }}</view>

--
Gitblit v1.9.3