shopxo/sourcecode/baidu/default/pages/user-faovr/user-faovr.swan
2020-11-21 16:42:35 +08:00

23 lines
1.4 KiB
Plaintext
Executable File

<scroll-view scroll-y="{{true}}" class="scroll-box" bindscrolltolower="scroll_lower" lower-threshold="30">
<view class="list-item" s-if="data_list.length > 0">
<view class="goods-item oh bg-white spacing-mb" s-for="item, index in data_list">
<navigator url="/pages/goods-detail/goods-detail?goods_id={{item.goods_id}}" hover-class="none">
<image class="goods-image fl" src="{{item.images}}" mode="aspectFill" />
<view class="goods-base">
<view class="goods-title multi-text">{{item.title}}</view>
<view class="oh goods-price">
<text class="sales-price">{{currency_symbol}}{{item.price}}</text>
<text s-if="item.original_price > 0" class="original-price">{{currency_symbol}}{{item.original_price}}</text>
</view>
</view>
</navigator>
<button class="submit-cancel" type="default" size="mini" bindtap="cancel_event" data-value="{{item.goods_id}}" data-index="{{index}}" hover-class="none">取消</button>
</view>
</view>
<view s-if="data_list.length == 0">
<import src="/pages/common/nodata.swan" />
<template is="nodata" data="{{{status: data_list_loding_status}}}"></template>
</view>
<import src="/pages/common/bottom_line.swan" />
<template is="bottom_line" data="{{{status: data_bottom_line_status}}}"></template>
</scroll-view>