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.
24 lines
1.3 KiB
24 lines
1.3 KiB
<wxs module="formate" src="./../index.wxs"></wxs>
|
|
<view class="flex content" wx:for="{{dataList}}" wx:key="index" data-index="{{index}}" bindtap="lookItem">
|
|
<wux-image width="{{120}}" height="{{120}}" wux-class="page-icon" lazyLoad="true" src="{{item.litimgUrl}}" mode="aspectFill">
|
|
<view class="image-load" slot="loading">
|
|
<text class="icon--refresher"></text>
|
|
</view>
|
|
</wux-image>
|
|
<view style="flex:1;padding:0rpx 20rpx;height:120px">
|
|
<view class="flex flex-justify" style="height:30px;padding-top:5px">
|
|
<view class="page-name">{{item.name}}</view>
|
|
<view class="page-num" wx:if="{{item.sellMode == 1}}">{{item.viewNum}} 浏览</view>
|
|
<view class="page-num" wx:elif="{{item.sellMode == 2}}">已拼{{item.soldNum}}{{item.unit}}</view>
|
|
</view>
|
|
<view style="height:50px">
|
|
<view class="page-outline">{{formate.formateText(item.outline, 16)}}</view>
|
|
<view class="page-outline" style="margin-top: 8rpx">{{formate.formateText(item.summary, 14)}}</view>
|
|
</view>
|
|
<view class="flex flex-justify" style="align-items:flex-end;height:30px;padding-bottom:3px">
|
|
<view class="page-price">¥{{item.price}}</view>
|
|
<view class="page-stock">库存:{{item.stockNumber}}{{item.unit}}</view>
|
|
<button class="cu-btn bg-red round shadow-blur page-btn">立即抢购</button>
|
|
</view>
|
|
</view>
|
|
</view>
|