jiangping
2024-09-27 04b4bddaac0a222760113899568d20b45af701f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<view class="main_app">
  <buoyClient class="buoyClient" showPurpose="1" class="buoyClient" />
  <detailFooter bindenjoy="handleEnjoy" path="0" info="{{info}}" />
  <!-- banner轮播 -->
  <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>
  <!-- video -->
  <view wx:if="{{ info.video }}" class="video">
    <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">产品详情</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>
  <!-- 富文本 -->
  <view wx:if="{{info.content}}">
    <mp-html content="{{info.content}}"></mp-html>
  </view>
  <view class="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>
    </view>
  </view>
</view>