From ebc6e7ee67f13e7aa311e737dfcb4c5caed112ee Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 15 八月 2024 18:23:57 +0800
Subject: [PATCH] ll

---
 wechat_jiaxuan/pages/detailDis/product.wxml |   47 +++++++++++++++++++----------------------------
 1 files changed, 19 insertions(+), 28 deletions(-)

diff --git a/wechat_jiaxuan/pages/detailDis/product.wxml b/wechat_jiaxuan/pages/detailDis/product.wxml
index 0ad9ce2..6fb6f4b 100644
--- a/wechat_jiaxuan/pages/detailDis/product.wxml
+++ b/wechat_jiaxuan/pages/detailDis/product.wxml
@@ -1,4 +1,4 @@
-<view class="container">
+<view class="container" style="padding-top: {{ origin != 'b' && info.users && info.users.id ? '148' : '0' }}rpx;">
   <!-- 鍚嶇墖 -->
   <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" />
   <!-- banner杞挱 -->
@@ -21,19 +21,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="widthFix"></image>
-      <view  class="play">
+      <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">浜у搧璇︽儏</view>
-    <view class="line" wx:for="{{ info.productParamList }}">
-      <view class="label">{{ item.paramName }}锛�</view>
-      <view class="val">{{ item.paramValue }}</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>
   <!-- 瀵屾枃鏈� -->
@@ -49,16 +55,16 @@
   </view>
   <!-- footer -->
   <view wx:if="{{ origin && origin == 'b' }}">
-    <button open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
+    <button hover-class="none" open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
   </view>
   <view wx:else class="footer" style="padding-bottom: {{bottomLift}}px;">
     <view class="btns">
-      <button class="item btn">
-        <image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
-        <image wx:else data-code="collect" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
+      <button hover-class="none" data-code="{{ info.isCollection ? 'collect_cancel' : 'collect' }}" bindtap="handleAction" class="item btn">
+        <image wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
+        <image wx:else class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
         <view class="name">鏀惰棌</view>
       </button>
-      <button open-type="share" class="item btn" bindtap="handleShare">
+      <button hover-class="none" open-type="share" class="item btn" bindtap="handleShare">
         <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
         <view class="name">鍒嗕韩</view>
       </button>
@@ -68,20 +74,5 @@
       </view>
     </view>
   </view>
-  <!--  -->
-  <van-popup position="bottom" show="{{ showShare }}" bind:close="onClose">
-    <view class="share_modal">
-      <view class="btns">
-        <button open-type="share" class="item" bindtap="handleShare">
-          <image src="../../static/icon/wechat.png"></image>
-          <view>鍙戦�佸ソ鍙�</view>
-        </button>
-        <button class="item" bindtap="handleDown">
-          <image src="../../static/icon/download.png"></image>
-          <view>涓嬭浇娴锋姤</view>
-        </button>
-      </view>
-      <view bindtap="onClose" class="cancel">鍙栨秷</view>
-    </view>
-  </van-popup>
+
 </view>
\ No newline at end of file

--
Gitblit v1.9.3