index.wxml 3.05 KB
<view class="view-prod">
  <!-- 有视频 -->
  <block >
    <video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}"></video>
    <image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
    <view class="title-wrap">
      <view class="title">{{prodItemVideo.name}}</view>
      <!-- <glsx-image class="check" src="index/poster/check.png" /> -->
      <image class="check" wx:if="{{actNum != 2}}" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
      <view class="num" wx:if="{{actNum != 2}}">{{prodItemVideo.view}}</view>
    </view>
  </block>

  <!-- 无视频 -->
  <!-- <image class="no-video" wx:if="{{actNum == 2}}" src="{{IMG_URL}}index/poster/no-video.png?v={{img_version}}" /> -->
  <view class="tab-wrap">
    <van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
      <van-tab wx:for="{{tabList}}" title="{{item}}" wx:key="idnex" />
      <!-- <van-tab title="项目亮点"></van-tab>
      <van-tab title="合作案例"></van-tab>
      <van-tab title="合作方式"></van-tab>
      <van-tab title="适配产品"></van-tab> -->
    </van-tabs>
  </view>
  <view class="prod-detail">
    <block wx:for="{{senceData[actNum].productImgs}}" wx:key="index">
      <image wx:if="{{ index < 3}}" webp class="img-item img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}">
        <block wx:if="{{ index == 0}}">
          <!-- && phone -->
          <view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
            <!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
            <glsx-image webp src="index/phone.png" class="icon"></glsx-image>
            请联系我
            <view style="color:#3666fe">
              {{phone}}
            </view>
          </view>
        </block>
        <!-- 查看活动那个详情  1.3才有 -->
        <block wx:if="{{ index == 1 && actNum == 3}}">
          <view class="check-act" bindtap="checkActive">
            点击查看活动页面
          </view>
          <!-- <button class="check-act" type="default" plain="true" bindtap="checkActive">查看活动详情</button> -->
        </block>
        <!-- 获取更多详情 -->
        <!-- <block wx:if="{{ index == 2 && showLeftFlag}}">
          <button class="more-btn" data-index="{{index}}" bindgetphonenumber="getUserInfo" open-type="getPhoneNumber">
            点击查看更多详情
          </button>
        </block> -->
      </image>
      <image wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}">
      </image>
    </block>
    <view class="occupancy" wx:if="{{!isShare}}">
      <!-- padding底部 占位元素 -->
    </view>
  </view>
</view>
<!-- 申请按钮 不是分享出去的显示按钮 -->
<apply-button wx:if="{{!isShare}}" downShow="{{false}}"></apply-button>
<!-- 授权昵称 -->
<!-- <view wx:if="{{authNcknameShow}}"  class="user-profile" bindtap="getUserProfile"></view> -->