From 41bd8b2b50dc308ea3a5784efccd856c073b3f37 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 21 八月 2024 15:04:55 +0800
Subject: [PATCH] ll
---
wechat_staff/pages/detailDis/product.wxml | 54 +++++++++++++++++++++++++++++++++---------------------
1 files changed, 33 insertions(+), 21 deletions(-)
diff --git a/wechat_staff/pages/detailDis/product.wxml b/wechat_staff/pages/detailDis/product.wxml
index 15b08ec..74f8ce9 100644
--- a/wechat_staff/pages/detailDis/product.wxml
+++ b/wechat_staff/pages/detailDis/product.wxml
@@ -1,32 +1,44 @@
<view class="main_app">
- <buoyClient showPurpose="1" />
+ <buoyClient class="buoyClient" showPurpose="1" class="buoyClient" />
<detailFooter bindenjoy="handleEnjoy" path="0" info="{{info}}" />
<!-- banner杞挱 -->
- <swiper class="banner_swiper" circular indicator-dots autoplay style="height:{{bannerHeight}}rpx" duration>
- <block wx:for="{{ info.bannerImgList }}">
- <swiper-item>
- <image bindload="bannerbindload" mode="widthFix" src="{{ item }}"></image>
- </swiper-item>
- </block>
- </swiper>
+ <view class="swiper_wrap">
+ <swiper bindchange="bindchange" class="banner_swiper" circular indicator-dots="{{false}}" autoplay style="height:{{bannerHeight}}rpx" duration>
+ <block wx:for="{{ info.bannerImgList }}">
+ <swiper-item>
+ <image data-url="{{ item }}" bindtap="priviewBanner" bindload="bannerbindload" mode="widthFix" src="{{ item }}"></image>
+ </swiper-item>
+ </block>
+ </swiper>
+ <view class="indicator">{{current + 1}}/{{info.bannerImgList.length}}</view>
+ </view>
<view class="main_content">
<view class="title">{{ info.title }}</view>
<view class="desc" wx:if="{{ info.subtitle }}">{{ info.subtitle }}</view>
- <view class="text">{{ info.intro }}</view>
+ <view class="text">{{ info.intro }}</view>
</view>
<!-- video -->
<view wx:if="{{ info.video }}" class="video">
- <view class="title" >浜у搧瑙嗛</view>
- <view class="img_wrap">
- <image class="img" src="{{ info.coverImage }}" mode="widthFix"></image>
- <view bindtap="playVideo" class="play">鎾斁</view>
+ <view class="title">浜у搧瑙嗛</view>
+ <view bindtap="playVideo" class="img_wrap">
+ <image class="img" src="{{ info.coverImage }}" mode="aspectFill"></image>
+ <view class="play">
+ <view>鎾斁</view>
+ <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>
<!-- 瀵屾枃鏈� -->
@@ -34,10 +46,10 @@
<mp-html content="{{info.content}}"></mp-html>
</view>
<view class="spaceList">
- <view class="item" wx:for="{{ info.spaceList }}">
+ <view data-url="{{ item.spaceImg }}" bindtap="priviewSpace" class="item" wx:for="{{ spaceList }}">
<!-- <view class="name">{{ item.spaceName }}</view> -->
- <image src="{{ item.spaceImg }}" mode="widthFix" class="img"></image>
- <!-- <mp-html content="{{item.spaceContent}}"></mp-html> -->
+ <!-- <image src="{{ item.spaceImg }}" mode="widthFix" class="img"></image> -->
+ <mp-html content="{{item.spaceContent}}"></mp-html>
</view>
</view>
</view>
\ No newline at end of file
--
Gitblit v1.9.3