aa
jiangping
2024-08-02 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21
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>
  <!-- 富文本 -->