From 7cd2d5f404b9845cfe2cbc29334e7785346fde01 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 08 八月 2024 16:38:11 +0800
Subject: [PATCH] lll

---
 wechat_staff/pages/detailDis/product.wxml |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/wechat_staff/pages/detailDis/product.wxml b/wechat_staff/pages/detailDis/product.wxml
index 9384c24..1c26f22 100644
--- a/wechat_staff/pages/detailDis/product.wxml
+++ b/wechat_staff/pages/detailDis/product.wxml
@@ -20,19 +20,25 @@
   <!-- video -->
   <view wx:if="{{ info.video }}" class="video">
     <view class="title">浜у搧瑙嗛</view>
-    <view class="img_wrap">
+    <view bindtap="playVideo" class="img_wrap">
       <image class="img" src="{{ info.coverImage }}" mode="aspectFill"></image>
       <view  class="play">
         <view>鎾斁</view>
-        <image bindtap="playVideo" src="../../static/icon/ic_play.png" class="icon"></image>
+        <image src="../../static/icon/ic_play.png" class="icon"></image>
       </view>
     </view>
   </view>
-  <view class="detail">
-    <view class="title" bind:tap="goTestPage">浜у搧璇︽儏</view>
-    <view class="line" wx:for="{{ info.productParamList }}">
-      <view class="label">{{ item.paramName }}锛�</view>
-      <view class="val">{{ item.paramValue }}</view>
+   <view class="detail">
+    <view class="title">浜у搧璇︽儏</view>
+    <block wx:for="{{ info.productParamList }}">
+      <view wx:if="{{ index < 5 || isFold }}" class="line" >
+        <view class="label">{{ item.paramName }}锛�</view>
+        <view class="val">{{ item.paramValue }}</view>
+      </view>
+    </block>
+    <view wx:if="{{ info.productParamList.length > 5 }}" class="fold" bindtap="changeFold">
+      <text>{{ isFold ? '鏀惰捣' : '灞曞紑' }}</text>
+      <van-icon class="icon" name="{{ isFold ? 'arrow-up' : 'arrow-down' }}" />
     </view>
   </view>
   <!-- 瀵屾枃鏈� -->

--
Gitblit v1.9.3