Files
cardtest/pages/couponDetails/couponDetails.wxml
张慢慢 a7995d90bc [更新]
2021-05-24 13:56:00 +08:00

114 lines
3.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 卡券详情 -->
<view class="details">
<view class="detailsTop">
<view class="detailsTop-name">
{{details.name}}
</view>
<view class="detailsTop-time">
有效期: {{details.startTime}} - {{details.endTime}}
</view>
</view>
<view class="source">活动来源 {{details.activity_name}}</view>
<view class="detailsBar">
<view class="detailsCode-text">劵码</view>
<image src="{{barcode}}" mode="widthFix"></image>
</view>
<view class="detailsCode-text">
{{details.code}}
</view>
<view class="detailsCode">
<image src="{{qrcode}}"></image>
<view class="detailsCode-text">
<text>请出示以上券码给网点工作人员</text>
</view>
<block wx:if="{{details.card_type == 'merchant_card'}}">
<view class="detailsCode-join {{details.is_get == true ? 'active':''}}">
<send-coupon send_coupon_params="{{merchantcardinfo.send_coupon_params}}" sign="{{ merchantcardinfo.sign }}" send_coupon_merchant="{{merchantcardinfo.send_coupon_merchant}}" wx:if="{{details.is_get == true}}">
已加入微信卡包
</send-coupon>
<send-coupon send_coupon_params="{{merchantcardinfo.send_coupon_params}}" sign="{{ merchantcardinfo.sign }}" send_coupon_merchant="{{merchantcardinfo.send_coupon_merchant}}" bindcustomevent="getcoupon" wx:else>
加入微信卡包
</send-coupon>
</view>
</block>
<block wx:if="{{details.card_type == 'card'}}">
<view class="detailsCode-join {{details.is_get == true ? 'active':''}}" wx:if="{{details.is_get == true}}">
已加入微信卡包
</view>
<view class="detailsCode-join {{details.is_get == true ? 'active':''}}" bindtap="join" wx:else>
加入微信卡包
</view>
</block>
</view>
<!-- 门店定位 -->
<view class="detailsStore">
<view class="detailsStore-top">
<view class="detailsStore-title">
适用门店
</view>
<navigator class="detailsStore-row" hover-class="none" url="/pages/store/store?id={{details.id}}" wx:if="{{longitude != 0 && latitude != 0}}">
查看所有
<image src="/static/icon/arrow_left.png"></image>
</navigator>
</view>
<view class="location" wx:if="{{longitude == 0 && latitude == 0}}">
<image class="location-img" src="/static/img/location_img.jpg"></image>
<text>您尚未授权本时生活开启定位服务</text>
<text>不能看到附近的商家哦,点击下方按钮开启</text>
<button class="location-btn" size="mini" open-type="openSetting">
开启定位服务
</button>
</view>
<view wx:else>
<block wx:if="{{stores != ''}}">
<view class="detailsStore-list" data-id="{{item.store_id}}" wx:for="{{stores}}" wx:key="stores"
bindtap="detailsTap">
<image src="{{item.cover}}" class="detailsStore-logo"></image>
<view class="detailsStore-cont">
<view class="detailsStore-left">
<view class="nowrap detailsStore-name">
{{item.title}}
</view>
<view class="detailsStore-place">
<text class="nowrap">{{item.address}}</text>
{{item.km}}
</view>
</view>
<image class="detailsStore-tel" src="/static/icon/tel.png" catchtap="tel"
data-tel="{{item.mobile}}"></image>
</view>
</view>
</block>
<block wx:else>
<view class="pages-hint">
<image src="/static/img/null_icon.png"></image>
<view>暂无门店</view>
</view>
</block>
</view>
</view>
</view>
<!-- 使用须知 -->
<view class="detailsText">
<view class="detailsText-title">
使用须知
</view>
<view class="detailsText-tips">
<rich-text nodes="{{remark}}"></rich-text>
</view>
</view>
<!-- 内容介绍 -->
<view class="detailsText">
<view class="detailsText-title">
内容介绍
</view>
<view class="detailsText-tips" wx:if="{{content != null}}">
<rich-text nodes="{{content}}"></rich-text>
</view>
</view>