buyFreeCoupon.wxml 3.24 KB
<!--pack-activity/pack/buyFreeCoupon.wxml-->
<nav backgroundColor="#f6f6fd">向商家付款</nav>
<view class="sellInfo">
    <image src="{{seller.seller_image}}" mode="" />
    <view class="font32r">{{seller.sellername}}</view>
</view>
<view class="payBox">
    <view class="font32r">付款金额</view>
    <view class="payView">
        <text>¥</text>
        <input type="digit" bindchange="bindKeyInput" />
    </view>
    <view bindtap="showCouponModal" class="couponsBox {{available == '1' ? 'colorOrange':'colorNine'}}">
        <view class="couponLeft">优惠金额</view>
        <view class="couponRight">
            <text wx:if="{{discountPrice}}">{{discountPrice}}</text>
            <view class="more" style="margin-top: 6rpx;"></view>
        </view>
    </view>
    <view class="couponsWrap">
        <view class="couponLeft">抵扣后</view>
        <view class="couponRight" wx:if="{{actualPrice && inputValue}}">¥{{actualPrice}}</view>
    </view>
    <view class="payBtn font32r" bindtap="confirmPayment">付款</view>
</view>
<my-modal id="couponModal" fadeStyle="slideUp" height="{{couponArr.length > '3' ? '80%' : '60%'}}">
    <view slot="modalName" class="titleModal">
        <view class="couponTotal">所有优惠券</view>
        <view bindtap="checkCertificate" class="btn font32r">确认选择</view>
    </view>
    <view slot="modalContent">
        <view class="couponBox">
            <checkbox-group bindchange="checkboxChange">
                <view wx:for="{{couponArr}}" class="couponItems {{item.showCpupon == '0' ? 'couponNo' : ''}}">
                    <view class="itemLeft">
                        <view class="priceText" wx:if="{{item.price}}">
                            <view class="icons font24r">¥</view><text class="priceText">{{item.price}}</text>
                        </view>
                        <view class="icons font20r" wx:if="{{item.desc!='0'}}">消费满{{item.desc}}元可用</view>
                        <view class="icons font20r" wx:if="{{item.desc=='0'}}">无门槛</view>
                    </view>
                    <view class="itemRight">
                        <view class="anameText">
                            <text class="font40r">{{item.aname}}</text>
                            <view class="discountText1 font20r">{{item.accumulationShow == '1' ? '可' : '不可'}}叠加</view>
                        </view>
                        <view wx:if="{{item.endDateStr}}" class="font20r bottomTitle">有效日期:<view class="bottom font20r">{{item.endDateStr}}</view>
                        </view>
                        <view wx:if="{{item.noonText || item.noonText}}" class="font20r bottomTitle"><text>不可使用:</text><view wx:if="{{item.noonText}}" class="bottom font20r">{{item.noonText}}</view>
                        </view>
                        <view wx:if="{{item.nigText}}" class="bottom font20r nodate">{{item.nigText}}</view>
                        <view wx:if="{{item.exp_date.week_show=='无'}}" class="bottom font20r">无使用时间限制</view>
                    </view>
                    <checkbox disabled="{{item.showCpupon == '0'}}" value="{{item.activity_id}}" checked="{{item.checked}}" />
                </view>
            </checkbox-group>
        </view>
    </view>
</my-modal>