confirm.wxml 5.6 KB

1
  1. <view class="confirm"><view class="bg"></view><view class="container"><view class="station"><image src="{{orderInfo.stationPic}}" mode="scaleToFill"></image><view class="info"><view class="name">{{''+orderInfo.stationName+''}}</view><view class="content"><view><text>枪 号:</text><text>{{selectedGas.oilGunNo+"号"}}</text></view><view><text>品 名:</text><text>{{selectedGas.oilName}}</text></view><view><text>枪标价:</text><text>{{"¥"+selectedGas.oilPrice+"/"+(orderInfo.cardOilsType==4?"Kg":"L")}}</text></view><view><text>优惠价:</text><text>{{"¥"+discountPrice+"/"+(orderInfo.cardOilsType==4?"Kg":"L")}}</text></view></view></view></view><view><view><view class="icon price"></view>订单金额</view><text class="price">{{"¥"+orderInfo.receivableAmt}}</text></view><view><view><view class="icon oil"></view>加油升数</view><text>{{orderInfo.oilLiters+(orderInfo.cardOilsType==4?"Kg":"L")}}</text></view><view><view><view class="icon discount"></view>优惠金额</view><text>{{"¥"+discountAmt}}</text></view><block wx:if="{{couponEnabledFlag=='1'}}"><view data-event-opts="{{[['tap',[['goSelectCoupon',['$event']]]]]}}" class="{{['dispose','coupon',selectedCoupon.couponType=='1'?'direct':'',selectedCoupon.couponType=='2'?'rate':'']}}" bindtap="__e"><view class="title"><text>优惠券</text><block wx:if="{{!!selectedCoupon.id}}"><text>{{creditNameplate}}</text></block></view><view class="tip"><text class="icon"></text><text>{{couponTip}}</text></view><view class="{{['extra',couponsList.length==0?'disable':'']}}">{{''+couponMore+''}}</view></view></block><block wx:if="{{orderInfo.oilsCardFlag==1}}"><view data-event-opts="{{[['tap',[['selectPayType',['$event']]]]]}}" class="dispose dzk" bindtap="__e"><view class="title"><text>电子卡</text><text>{{''+(availableCouponToCredit?"电子卡支付更优惠":"不可用")}}</text></view><view class="tip"><text class="icon"></text><block wx:if="{{availableCouponToCredit}}"><text hidden="{{!(availableCredit)}}">{{"您的"+cardTypeTranslate[orderInfo.cardOilsType]+"余额"}}<text>{{' '+orderInfo.balance+' '}}</text>元,可用来支付此订单</text><text hidden="{{!(!availableCredit)}}">{{cardTypeTranslate[orderInfo.cardOilsType]+"余额"}}<text>{{' '+orderInfo.balance+' '}}</text>元,<text>不足以</text>完成此笔订单</text></block><block wx:else><text>您目前选中的优惠券不可使用电子卡</text></block></view><view class="{{['extra','icon',payType===1?'selected':'',availableCredit?'':'forbid']}}"></view></view></block></view><view class="submit"><view class="area"><block wx:if="{{orderInfo.oilsCardFlag==0}}"><text data-event-opts="{{[['tap',[['selectPayType',['$event']]]]]}}" class="type" bindtap="__e">实付款</text></block><text data-event-opts="{{[['tap',[['selectPayType',['$event']]]]]}}" hidden="{{!(orderInfo.oilsCardFlag==1&&payType==2)}}" class="type" bindtap="__e">微信付款</text><text data-event-opts="{{[['tap',[['selectPayType',['$event']]]]]}}" hidden="{{!(orderInfo.oilsCardFlag==1&&payType==1)}}" class="type" bindtap="__e">电子卡付款</text><block wx:if="{{orderInfo.oilsCardFlag==1&&availableCredit}}"><text data-event-opts="{{[['tap',[['selectPayType',['$event']]]]]}}" class="icon" bindtap="__e"></text></block><text class="amount">{{"¥"+amt}}</text><button class="btn" loading="{{wxPayLoading}}" disabled="{{wxPayLoading}}" data-event-opts="{{[['tap',[['goPay',['$event']]]]]}}" bindtap="__e">提交订单</button></view></view><uni-popup class="pay vue-ref" vue-id="dde80104-1" type="bottom" maskClick="false" data-ref="pay" bind:__l="__l" vue-slots="{{['default']}}"><view class="cont"><view data-event-opts="{{[['tap',[['backToSelectPayType',['$event']]]]]}}" class="close" bindtap="__e"></view><view class="amount"><text>¥</text>{{''+amt+''}}</view><view data-event-opts="{{[['tap',[['selectPayType',['$event']]]]]}}" class="type" bindtap="__e"><text>付款方式</text><text>{{''+(payType==2?'微信支付':'电子卡支付')}}</text><text></text></view><button class="pay" type="default" loading="{{creditPayLoading}}" data-event-opts="{{[['tap',[['creditPay',['$event']]]]]}}" bindtap="__e">立即付款</button></view></uni-popup><uni-popup class="coupon vue-ref" vue-id="dde80104-2" type="bottom" maskClick="false" data-ref="coupon" bind:__l="__l" vue-slots="{{['default']}}"><view class="coupon-container"><view data-event-opts="{{[['tap',[['closeCoupon',['$event']]]]]}}" class="close" bindtap="__e"></view><view class="title">优惠券</view><scroll-view class="coupon-scroll" scroll-y="true"><block wx:for="{{$root.l0}}" wx:for-item="ele" wx:for-index="__i0__"><view data-event-opts="{{[['tap',[['selectCoupon',['$0'],[[['couponsList','',__i0__]]]]]]]}}" class="{{['coupon',ele.$orig.couponType==1?'direct':'',ele.$orig.couponType==2?'rate':'']}}" bindtap="__e"><view class="left"><view class="amount">{{''+(ele.$orig.couponType==1?'¥':'')+(ele.$orig.couponType==2?'% ':'')+''}}<text class="value">{{ele.$orig.couponAmt}}</text></view><view class="condition">{{ele.$orig.couponThresholdAmt==0?"无门槛":"满"+ele.$orig.couponThresholdAmt+"元可用"}}</view></view><view class="right"><view class="title"><text class="type">{{(ele.$orig.couponType==1?'立减劵':'')+(ele.$orig.couponType==2?'折扣劵':'')}}</text></view><view class="content"><view class="items"><view class="item scope">适用:<text>{{ele.g0}}</text></view><view class="item valid">截止:<text>{{ele.$orig.couponEffectiveTime}}</text></view></view><view class="btn"><view class="{{['extra','icon',selectedCoupon.id===ele.$orig.id?'selected':'']}}"></view></view></view></view></view></block></scroll-view></view></uni-popup></view>