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.
71 lines
2.7 KiB
Plaintext
71 lines
2.7 KiB
Plaintext
<template name="templatePointProduct">
|
|
<block wx:if="{{vipProduct.length>0}}">
|
|
<view class="shop_content_flex">
|
|
<block wx:for="{{vipProduct}}" wx:key="item">
|
|
<view class="shop_content_item" bindtap="goto_detail" data-shoptype="{{item.shopType}}" data-productid="{{item.productId}}" data-schemeid="{{item.schemeId}}">
|
|
<view class="shop_content_item_package">
|
|
<image src="{{item.imageUrl}}"></image>
|
|
</view>
|
|
<view class="shop_content_item_name">
|
|
{{item.productName}}
|
|
</view>
|
|
<view class="shop_content_item_worth">
|
|
<block wx:if="{{item.type==0}}">
|
|
<!-- 纯积分 -->
|
|
{{item.pointWorth}}
|
|
<text class="unit" decode="true"> 积分</text>
|
|
</block>
|
|
<block wx:if="{{item.type==1}}">
|
|
<!-- 混合 -->
|
|
{{item.pointWorth}}
|
|
<text class="unit" decode="true"> 积分 +</text> {{item.amountWorth}}
|
|
<text class="unit" decode="true"> 元</text>
|
|
</block>
|
|
<block wx:if="{{item.type==2}}">
|
|
<!-- 纯金额 -->
|
|
{{item.amountWorth}}
|
|
<text class="unit" decode="true"> 元</text>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</block>
|
|
|
|
|
|
|
|
<block wx:if="{{memberProduct.length>0}}">
|
|
<view class="shop_content_flex">
|
|
<block wx:for="{{memberProduct}}" wx:key="item">
|
|
<view class="shop_content_item" bindtap="goto_detail" data-shoptype="{{item.shopType}}" data-productid="{{item.productId}}" data-schemeid="{{item.schemeId}}">
|
|
<view class="shop_content_item_package">
|
|
<image src="{{item.imageUrl}}"></image>
|
|
</view>
|
|
<view class="shop_content_item_name">
|
|
{{item.productName}}
|
|
</view>
|
|
<view class="shop_content_item_worth">
|
|
<block wx:if="{{item.type==0}}">
|
|
<!-- 纯积分 -->
|
|
{{item.pointWorth}}
|
|
<text class="unit" decode="true"> 积分</text>
|
|
</block>
|
|
<block wx:if="{{item.type==1}}">
|
|
<!-- 混合 -->
|
|
{{item.pointWorth}}
|
|
<text class="unit" decode="true"> 积分 +</text> {{item.amountWorth}}
|
|
<text class="unit" decode="true"> 元</text>
|
|
</block>
|
|
<block wx:if="{{item.type==2}}">
|
|
<!-- 纯金额 -->
|
|
{{item.amountWorth}}
|
|
<text class="unit" decode="true"> 元</text>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</block>
|
|
|
|
|
|
</template> |