product.wxml 5.93 KB
<!-- pages/tab/discovery/components/product/product.wxml -->
<view class="prod-wrap">
  <view class="big-title">
    特色产品
    <block wx:if="{{phone}}">
      <view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
        <!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
        <image webp src="{{IMGURL}}phone.png?v={{img_version}}" class="icon"></image>
        请联系我 
        <view style="color:#3666fe">
          {{phone}}
        </view>
      </view>
    </block>
  </view>
  <scroll-view class="nav-wrap" scroll-x="{{true}}" wx:if="{{!isShare && origin =='home'}}">
    <block wx:for="{{navList}}" wx:key="index">
      <text class='nav {{activeNavIdx==index ? "active-nav": ""}}' bindtap="changeNav" data-index="{{index}}">{{item}}</text>
    </block>
  </scroll-view>
  <view class="prod-item">
    <view class="prod-card">
      <view class="card-img">
        <!-- <text class="img-desc">轻改类</text>
								 <image src="{{IMGURL}}discovery_prod1.png?v={{img_version}}" /> -->
        <image webp src="{{IMGURL}}prod/{{senceData[actNum].productList[activeNavIdx].img}}.png?v={{img_version}}" />
      </view>
      <view class="prod-info">
        <text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
        <!-- senceData[actNum]['productList'][activeNavIdx].changeSale || -->
        <text class="sale" wx:if="{{ actNum!=4}}" decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}}&nbsp;<text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].varType == 1? senceData[actNum]['productList'][activeNavIdx].flow : senceData[actNum]['productList'][activeNavIdx].sale}}</text>
        </text>
        <text class="earnings" wx:if="{{ actNum!=4}}" decode="{{true}}">预估收益&nbsp;<text class="earnings-num font-number">¥{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
        </text>
      </view>
      <view class="share-btn" wx:if="{{!isShare && origin =='home' && actNum!=4}}" bindtap="onShareFn">
        <image webp class="icon" src="{{IMGURL}}share.png?v={{img_version}}" />
        <text>去分享</text>
      </view>
    </view>
  </view>
</view>
<view class="project-wrap {{isShow ?'check-prod':''}}">
  <!-- stickyTop+88  -->
  <!-- style="top:{{isShare ? stickyTop :  stickyTop}}rpx" -->
  <view class="stickyTab" style="top:{{isShare ? stickyTop :  stickyTop}}rpx"  >
    <tab outClassName="project-tab" openScroll="{{true}}" tab="{{tab}}" index="{{curTabIdx}}" bindclick="changeTab" productHeight />
  </view>
   <!-- wx:if="{{navFixed}}" -->
  <!-- <view class="stickyTab stickyTab-fixed">
    <tab outClassName="project-tab" openScroll="{{true}}" tab="{{tab}}" index="{{curTabIdx}}" bindclick="changeTab" productHeight />
  </view> -->
  <!-- style="{height:{{allHeight}}px}"  scroll-y="{{true}}" 	 bindscroll="scrolltoupper"-->
  <!-- <scroll-view class="project-img" scroll-into-view="{{intoViewId}}"> -->
    <view class="project-img" hover-class="none" hover-stop-propagation="false">
       <block wx:for="{{tab}}" wx:key="index">
      <!-- wx:if="{{showVideo && index==5 && tab.length < 5}}" -->
      <view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" wx:if="{{index != 5}}">
        <!-- wx:if="{{index!=5}}" -->
        <image webp class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png?v={{img_version}}" />
        <view class="video-bg" wx:if="{{!isShare && index==5 && senceData[actNum].videoList.length}}">
          <view class="video-list">
            <block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
              <view class="video-item">
                <video poster="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}" title="{{item.name}}" src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" />
                <view class="video-text">{{item.name}}</view>
              </view>
            </block>
            <!-- <view class="video-tips">- 如需开通请咨询客服 -</view> -->
          </view>
        </view>
        <!-- wx:if="{{ actNum != 2 && index == 4}}" -->
        <!-- wx:if="{{isShare && actNum != 2 && index == 4}}" -->
        <!-- wx:if="{{ isShare && actNum != 2 && index == 4}}" -->
        <button wx:if="{{ isShare && isAuthphone && !getMoreBtn && index == 4}}" class="more-btn" data-index="{{index}}" bindgetphonenumber="getUserInfo" open-type="getPhoneNumber">
          点击查看更多详情
        </button>
      </view>
      <view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" wx:if="{{index == 5 && outshowVideo}}">
        <!-- wx:if="{{index!=5}}" -->
        <image webp class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png?v={{img_version}}" />
        <view class="video-bg" wx:if="{{!isShare && index==5 && senceData[actNum].videoList.length}}">
          <view class="video-list">
            <block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
              <view class="video-item">
                <view class="download" bindtap="downVideo" data-url="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}">视频下载</view>
                <video poster="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}" title="{{item.name}}" src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" />
                <!-- <image class="video-card" webp bindtap="getVideoUrl" data-title="{{item.name}}" data-src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}"  src="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}"></image> -->
                <view class="video-text">{{item.name}}</view>
              </view>
            </block>
          </view>
        </view>
      </view>
    </block>
    </view>
   
  <!-- </scroll-view> -->
</view>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>