lll
liukangdong
2024-08-08 7cd2d5f404b9845cfe2cbc29334e7785346fde01
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>
  <!-- 富文本 -->