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.
|
|
|
<!--components/spu-preview/index.wxml-->
|
|
|
|
<!-- <wxs src="../../wxs/price.wxs" module="p"></wxs> //这里是将折扣前后价格的逻辑放在了price.wxs内部 -->
|
|
|
|
<view class="card" bindtap="detail" data-cycle_id="{{data}}">
|
|
|
|
<!-- <view class="type">{{data.type === 1 ? '视频' : '文章'}}</view> -->
|
|
|
|
<view class="type" wx:if="{{data.type === 1}}">视频</view>
|
|
|
|
<view class="type" wx:if="{{data.type === 2}}">图片</view>
|
|
|
|
<view class="type" wx:if="{{data.type === 3}}">文章</view>
|
|
|
|
|
|
|
|
<!-- <view></view> -->
|
|
|
|
<image style="width: 334rpx;height: 250rpx;border-radius: 16rpx 16rpx 0rpx 0rpx;" src="{{cdn+(data.cover)}}"></image>
|
|
|
|
<view class="tip">
|
|
|
|
<!-- <image wx:if="{{data.type === 1 ? '视频' : '文章'}}" style="width: 16rpx;height: 18rpx;margin-right: 5rpx;" src="../../pages/index/shortimage/img_xingtue@2x.png"></image> -->
|
|
|
|
<!-- {{data.count}} -->
|
|
|
|
<!-- <view class="crad_right_num">
|
|
|
|
{{data.type === 1 ? data.num+'次播放' : data.num+'次阅读'}}{{item.duration}}
|
|
|
|
</view> -->
|
|
|
|
<!-- <view class="crad_right_num">
|
|
|
|
{{data.time}}
|
|
|
|
</view>
|
|
|
|
<view wx:if="{{data.type === 1}}" class="time">{{data.time}}</view> -->
|
|
|
|
</view>
|
|
|
|
<view class="title">
|
|
|
|
{{data.title}}
|
|
|
|
</view>
|
|
|
|
<view class="date">
|
|
|
|
{{data.creatAt}}
|
|
|
|
</view>
|
|
|
|
</view>
|