From 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 05 八月 2024 18:38:20 +0800
Subject: [PATCH] ‘’

---
 wechat_jiaxuan/pages/detailDis/product.wxml |   39 +++++++++++++++------------------------
 1 files changed, 15 insertions(+), 24 deletions(-)

diff --git a/wechat_jiaxuan/pages/detailDis/product.wxml b/wechat_jiaxuan/pages/detailDis/product.wxml
index becec78..3de3cca 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杞挱 -->
@@ -10,7 +10,7 @@
         </swiper-item>
       </block>
     </swiper>
-    <view class="indicator">{{current}}/{{info.bannerImgList.length}}</view>
+    <view class="indicator">{{current + 1}}/{{info.bannerImgList.length}}</view>
   </view>
   <view class="main_content">
     <view class="title">{{ info.title }}</view>
@@ -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>
   <!-- 瀵屾枃鏈� -->
@@ -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