From 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 02 八月 2024 11:09:06 +0800
Subject: [PATCH] aa
---
wechat_jiaxuan/pages/detailDis/product.wxml | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/wechat_jiaxuan/pages/detailDis/product.wxml b/wechat_jiaxuan/pages/detailDis/product.wxml
index becec78..f5bb0eb 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>
<!-- 瀵屾枃鏈� -->
--
Gitblit v1.9.3