You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.8 KiB
Plaintext

<template name="templateCouponPackage">
<view class="shop_content_flex">
<block wx:for="{{listPackage}}" wx:key="item">
<view class="shop_content_item" bindtap="goto_detail" data-shoptype="{{item.shopType}}" data-id="{{item.id}}" data-productid="{{item.productId}}" data-schemeid="{{item.schemeId}}">
<view class="shop_content_item_package">
<block wx:if="{{item.shopType==0}}">
<image src="{{item.logoUrl}}"></image>
</block>
<block wx:else>
<image src="{{item.imageUrl}}"></image>
</block>
</view>
<view class="shop_content_item_name">
<block wx:if="{{item.shopType==0}}">
{{item.title}}
</block>
<block wx:else>
{{item.productName}}
</block>
</view>
<view class="shop_content_item_worth">
<block wx:if="{{item.shopType==0}}">
{{item.worth}}
<text class="unit" decode="true">&nbsp;&nbsp;积分</text>
</block>
<block wx:else>
<block wx:if="{{item.type==0}}">
<!-- 纯积分 -->
{{item.pointWorth}}
<text class="unit" decode="true">&nbsp;&nbsp;积分</text>
</block>
<block wx:if="{{item.type==1}}">
<!-- 混合 -->
{{item.pointWorth}}
<text class="unit" decode="true">&nbsp;&nbsp;积分 +</text> {{item.amountWorth}}
<text class="unit" decode="true">&nbsp;&nbsp;元</text>
</block>
<block wx:if="{{item.type==2}}">
<!-- 纯金额 -->
{{item.amountWorth}}
<text class="unit" decode="true">&nbsp;&nbsp;元</text>
</block>
</block>
</view>
</view>
</block>
</view>
</template>