proDetail.wxml 4.27 KB
<!-- packagesList/pages/productDetail/components/proDetail/proDetail.wxml -->
<view class="view-prod custom-class">
  <view class="pro-head">
  <view class="select-card" wx:if="{{detailType == 'pro'}}" bindtap="selectCard">
    <glsx-image custom-class="icon-card" src="home/icon-card.png"></glsx-image>
    <view>{{showCard ? '视频' : '名片'}}</view>
  </view>
    <!-- 有视频 -->
    <block wx:if="{{!showCard}}">
    <!-- <video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" /> -->
    <video class="frame" id="video" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" bindplay="handleVideoPlay" data-attr="crowdVideoCtx"/>
      <image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
      <view class="title-wrap">
        <view class="title">{{prodItemVideo.name}}</view>
        <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>
    <user-info wx:if="{{detailType == 'pro' && showCard}}" class="card-info" cardInfo="{{cardInfo}}"></user-info>
  </view>
  <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 title="合作方式" />
      <van-tab title="适配产品" /> -->
    </van-tabs>
  </view>
  <view class="prod-detail">
    <block wx:for="{{productImgs}}" wx:key="index">
      <!-- <image webp wx:if="{{ index < 3}}" mode="widthFix" class="img-items" webp src="{{item.url?item.url:item}}?v={{img_version}}"> -->
        <image webp wx:if="{{ index < 3}}" mode="widthFix" class="img-items" src="{{item.url?item.url: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" />
            请联系我 -->
            <view style="color:#3666fe">{{sharephone}}</view>
          </view>
        </block>
        <!-- 查看活动那个详情  1.3才有 -->
        <!-- <block wx:if="{{ index == 1 && actNum == 3 && activeUrl}}"> -->
        <block wx:if="{{ index == 0 && actNum == 3 && activeUrl}}">
          <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 webp wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item {{item.className?item.className:''}} img-item{{index}} img-item{{actNum}}{{index}}" src="{{item.url?item.url:item}}?v={{img_version}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}" /> -->
          <image webp wx:if="{{ index >= 3 && !showLeftFlag}}" mode="widthFix" webp class="img-items {{item.className?item.className:''}}" src="{{item.url?item.url:item}}?v={{img_version}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}">
        <!-- 众筹-视频 -->
        <block wx:if="{{ index == 3 && actNum == 3 }}">
          <!-- <video class="crowd-video" src="{{videoBaseUrl}}video/crowd-detail.mp4" /> -->
          <video class="crowd-video" id="crowd-video" bindplay="handleVideoPlay" data-attr="videoCtx" src="{{videoBaseUrl}}video/crowd-detail.mp4" />
        </block>
      </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> -->