<!--pages/index/scanResult/index.wxml-->
|
<view class="content" wx:if="{{!isOther}}">
|
<view class="productWall" wx:if="{{productInfo.length > 0}}">
|
<view class="product" wx:for="{{productInfo}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
<view class="productImg">
|
<image class="icon" src="{{item.icon}}" mode="aspectFit" />
|
</view>
|
<view class="productInfo">
|
<text wx:if="{{item.name}}" class="publicCss">{{ item.name }}</text>
|
<text wx:if="{{item.tourism_ISBN}}" class="publicCss">ISBN:{{ item.tourism_ISBN }}</text>
|
<text wx:if="{{item.tourism_author}}" class="publicCss">作者:{{ item.tourism_author }}</text>
|
<text wx:if="{{item.price}}" class="publicCss">价格:<text style="color:red">¥{{ item.price }}</text></text>
|
</view>
|
</view>
|
</view>
|
<view class="selectCard" wx:if="{{activeCodeAndStoreChannelLinks.length>0}}">
|
<t-cell title="{{description?description:'选择激活商品'}}" bordered="{{false}}" bindtap="selectPage" description="{{activeInfo && activeInfo.productIds.length>0?'已选择'+ activeInfo.productIds.length +'件商品':''}}" data-info="{{activeCodeAndStoreChannelLinks}}" arrow />
|
</view>
|
<view class="couponWall" wx:if="{{couponList.length > 0}}">
|
<view class="coupon" wx:for="{{couponList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
<image class="couponIcon" src="/static/images/web/coupon.png" mode="aspectFit" />
|
<view class="price">¥{{ item.value }}元</view>
|
<view class="couponInfo">
|
<text>{{ item.name }}</text>
|
<text class="timer">{{
|
item.isForAllProduct ? "全场可用" : "仅可购买指定商品"
|
}}</text>
|
<view class="timer">
|
<text>{{ item.start }}</text>
|
<text>~</text>
|
<text>{{ item.end }}</text>
|
</view>
|
</view>
|
</view>
|
</view>
|
<view class="button-example" wx:if="{{productInfo.length > 0 || couponList.length > 0}}">
|
<t-button theme="danger" bindtap="useActiveCode" size="large" block>{{textValue}}</t-button>
|
</view>
|
<view class="text">
|
<rich-text space="emsp" nodes="{{rules.tourism_content}}" />
|
</view>
|
</view>
|
<view wx:else class="empyt">
|
<t-empty icon="error-circle" description="请扫描正确的二维码" />
|
</view>
|