You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
3.8 KiB
74 lines
3.8 KiB
<!--pages/index/subpage/brand/brandDetails/brandDetails.wxml-->
|
|
<view class="video" wx:if="{{infoObject.type===1}}">
|
|
<video style="width: 100%; " initial-time='0.01' muted autoplay object-fit="cover" src="{{cdn+(infoObject.content)}}">
|
|
<!-- <l-icon name="left" color="black" size="48" class="back" bindtap="back" /> -->
|
|
</video>
|
|
</view>
|
|
<view class="video" wx:if="{{infoObject.type===2}}">
|
|
<image mode="widthFix" src="{{cdn+(infoObject.cover)}}" style="width: 100%;">
|
|
<!-- <l-icon name="left" color="black" size="48" class="back" bindtap="back" /> -->
|
|
</image>
|
|
</view>
|
|
<view class="video" wx:if="{{infoObject.type===3}}">
|
|
<image src="{{cdn+(infoObject.cover)}}" style="width: 100%;height: 100%;">
|
|
<!-- <l-icon name="left" color="black" size="48" class="back" bindtap="back" /> -->
|
|
</image>
|
|
</view>
|
|
<view class="main">
|
|
<view class="main_title">{{infoObject.title}}</view>
|
|
<view class="title_tt">
|
|
<view class="card_time">{{infoObject.creatAt}}</view>
|
|
<!-- <view class="card_time">285w次播放 </view> -->
|
|
</view>
|
|
<view wx:if="{{infoObject.type===3}}">
|
|
<rich-text nodes="{{infoObject.content}}"></rich-text>
|
|
<!-- <text class="title_text">{{infoObject.content}}</text> -->
|
|
</view>
|
|
</view>
|
|
<view class="data_tup">
|
|
<view class="d-flex">
|
|
<view class="d-flex-list">
|
|
<button class="share_btn" open-type="share">
|
|
</button>
|
|
<image src="../brandDetails/images/ic_fenxiang@3x.png" style="width: 48rpx;height: 48rpx;vertical-align: middle;margin-right: 10rpx;"></image>
|
|
<text style="width: 48rpx;height: 48rpx;">分享</text>
|
|
</view>
|
|
<view class="d-flex-list" bindtap="collection">
|
|
<image src="../brandDetails/images/ic_shoucang@3x.png" style="width: 48rpx;height: 48rpx;vertical-align: middle;margin-right: 10rpx;"></image>
|
|
<text style="width: 48rpx;height: 48rpx;">{{isClick?'已收藏': '收藏'}}</text>
|
|
</view>
|
|
<view class="d-flex-list" data-link="{{cdn+(infoObject.content)}}" bindtap="handleDownload" wx:if="{{infoObject.type===1}}">
|
|
<image src="../brandDetails/images/ic_baocun@3x.png" style="width: 48rpx;height: 48rpx;vertical-align: middle;margin-right: 10rpx;"></image>
|
|
<text>保存</text>
|
|
</view>
|
|
<view class="d-flex-list" bindtap="preserve" wx:else>
|
|
<image src="../brandDetails/images/ic_baocun@3x.png" style="width: 48rpx;height: 48rpx;vertical-align: middle;margin-right: 10rpx;"></image>
|
|
<text>保存</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 任务展示 -->
|
|
<view class="quest">
|
|
<view class="quest_text">相关推荐</view>
|
|
<!-- <view class="quest_crad" wx:for="{{questes}}" wx:key="index" bindtap="to"> -->
|
|
<view class="card_main" wx:for="{{records}}" wx:key="index" data-cycle_id="{{item}}" bindtap="detail">
|
|
<view class="crad_left_top">
|
|
<view class="card_title">{{item.title}}</view>
|
|
<view class="crad_text">{{item.content}}</view>
|
|
<!-- <rich-text class="crad_text" nodes="{{item.content}}"></rich-text> -->
|
|
<view class="card_time">{{item.creatAt}}</view>
|
|
</view>
|
|
<!-- <view class="crad_image"></view> -->
|
|
<view class="crad_right">
|
|
<view class="crad_right_type" wx:if="{{item.type === 1}}">视频</view>
|
|
<view class="crad_right_type" wx:if="{{item.type === 2}}">图片</view>
|
|
<view class="crad_right_type" wx:if="{{item.type === 3}}">文章</view>
|
|
<view class="crad_right_num">
|
|
<!-- {{item.type === 1 ? item.num+'次播放' : item.num+'次阅读'}}{{item.duration}} -->
|
|
</view>
|
|
<image class="crad_image" src="{{cdn+(item.cover)}}"></image>
|
|
</view>
|
|
</view>
|
|
<!-- </view> -->
|
|
</view> |