1234567891011121314151617181920212223242526272829303132333435 |
- <wxs module="wxs">
- function formatDate(time) {
- var timeTemp = getDate(time);
- var timeString = timeTemp.toLocaleDateString() + timeTemp.toLocaleTimeString();
- return timeString.replace('/','-').replace('/','-').replace('上午',' ').replace('下午',' ');
- }
- module.exports.formatDate = formatDate;
- </wxs>
- <view class='my-read'>
- <view class='read-article' wx:for="{{ wareCards }}" wx:key="{{ index }}" bindtap='toWork' data-lessonId='{{ item.id }}' data-title='{{ item.title }}'>
- <view class='video-preview'>
- <image src='{{ item.iconImg }}'></image>
- </view>
- <view class='content-title'>
- {{ item.title }}
- </view>
- <view class='content-detail'>
- <view class='left'>{{ item.summary }}</view>
- <view class='right'>
- <view class='right-detail'>
- <view class='play-img'>
- <image src='../../../static/image/hotPlays.png'></image>
- </view>
- <text>{{ item.playAmount }}</text>
- </view>
- <view class='right-detail'>
- <view class='point-img'>
- <image src='../../../static/image/like.png'></image>
- </view>
- <text>{{ item.likeAmount }}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
|