84 lines
3.6 KiB
Plaintext
84 lines
3.6 KiB
Plaintext
<!--packageA/member/coupon_v2_detail/coupon_v2_detail.wxml-->
|
|
|
|
<view class="detail">
|
|
<view class="conten">
|
|
<view class="image">
|
|
<image src="{{img_url}}"></image>
|
|
</view>
|
|
<view class="coupon_name">
|
|
<text>{{info.belongs_to_coupon.name}}</text>
|
|
</view>
|
|
<view class="coupon_list">
|
|
<view style="background: #29BA9C;color: #fff;" catchtap='presenter' wx:if="{{info.isPresenter}}">转赠</view>
|
|
<!-- <view style="border: solid 2rpx #2878e4;color: #2878e4;">核销</view>
|
|
<view style="border: solid 2rpx #0b6725;color: #0b6725;">分享</view> -->
|
|
</view>
|
|
<view class="money">
|
|
<block wx:if="{{info.belongs_to_coupon.coupon_method == 2}}">
|
|
<view class="meet">
|
|
<view class="meet_txt">满{{info.belongs_to_coupon.enough}}可用</view>
|
|
</view>
|
|
<view class="moneyTxt">
|
|
{{info.belongs_to_coupon.discount}}折
|
|
</view>
|
|
</block>
|
|
<block wx:else>
|
|
<view class="meet">
|
|
<view class="meet_txt">满{{info.belongs_to_coupon.enough}}立减</view>
|
|
</view>
|
|
<view class="moneyTxt {{info.belongs_to_coupon.deduct.length >= 6?'moneyTxt_none':'moneyTxt'}}" >
|
|
<text>{{language['money']}}</text>
|
|
{{info.belongs_to_coupon.deduct}}
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<view class="line"></view>
|
|
<view class="explain">
|
|
<view class="explainTxt">
|
|
<text>有效期:</text>{{info.time_start}} — {{info.time_end}}
|
|
</view>
|
|
<view class="explainTxt">
|
|
<text>券张数:</text>{{info.num}}张
|
|
</view>
|
|
<view class="explainTxt">
|
|
<text>适用范围:</text>{{info.belongs_to_coupon.coupon_type_name}}
|
|
</view>
|
|
<view>
|
|
<view class="explainText">使用规则:</view>
|
|
<view class="explainText">{{rule}}</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
<view class="immediate" catchtap='goBuy' data-info="{{info}}">立即使用</view>
|
|
</view>
|
|
</view>
|
|
<van-dialog use-slot asyncClose show="{{presentershow}}" show-cancel-button bind:confirm="onconfirm" bind:cancel="onclose">
|
|
<view style="text-align: center;margin: 20rpx 0;font-weight: 700;">提示</view>
|
|
<view class="usercontent">
|
|
<view class="left">请输入用户ID</view>
|
|
<view class="right"><input value="{{usermessage.value}}" confirm-type='done' bindinput="usermesbutInput" bindblur="getmemberInfo" placeholder="请输入用户ID" type="number" /></view>
|
|
<text style="margin-left:40rpx;">昵称:{{memberInfo}}</text>
|
|
|
|
<view class="recharge-wrapper" wx:if="{{multiple_use.is_open || (memberInfo&&memberInfo!='查无此用户'&&config_info.switch)}}">
|
|
<view class="num-box">
|
|
<view>赠送张数</view>
|
|
<view class="num">
|
|
<view class="leftnav" bindtap="rentDeleteNumber">-</view>
|
|
<input type="number" bindinput="changeRechargeNum" model:value="{{rechargeNum}}" class="shownum" />
|
|
<view class="rightnav" bindtap="rentAddNumber">+</view>
|
|
</view>
|
|
</view>
|
|
<view class="nums" style="padding-left:20px;color: #f15151;" wx:if="{{multiple_use.is_open}}">拥有数量 {{multiple_use.nums}}</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
<!-- <van-field value="{{ usermessage.value }}" bind:blur="usermesbut" label="用户ID" placeholder="请输入用户ID" /> -->
|
|
</van-dialog>
|
|
<van-dialog use-slot show="{{showRechargePay}}" show-cancel-button bind:confirm="_presenterPost" custom-style="">
|
|
<view style="text-align: center;margin: 20rpx 0;font-weight: 700;">{{config_info.protocol_name}}</view>
|
|
<view style="margin:0 20rpx;height:420rpx;overflow: scroll;">
|
|
<rich-text nodes='{{config_info.protocol_content}}'></rich-text>
|
|
</view>
|
|
</van-dialog> |