<view class="BoxBg">
    <navbar back home text="使用优惠券" background='#fff' color="#000"></navbar>
    <view style="height:{{navigationBarHeight}} "></view>
    
    <view class="container">
        
        <view class="logoBox">
            <image src="{{data.coverImg}}" class="logo" mode='aspectFill'/>
        </view>
        <view class="quanDataBox">
            <view class="qianTitle">{{data.title}}</view>
            <view class="subhead">{{data.subTitle}}</view>
            <view class="payBox">
                <view class="selling">¥{{data.couponPrice/100}}</view>
                <view class="original">¥{{data.price/100}}</view>
                <view class="past" tt:if="{{data.autoRefund==1}}" >过期不退款</view>
            </view>
            <view class="timevalidity">有效期至：{{expiredTime}}</view>
            <view class="manjian" tt:if="{{data.usePrice}}">满{{data.usePrice/100}}元可用</view>
            <view class="manjian" tt:if="{{!data.usePrice}}">仅限本店使用</view>
            <image class="line" mode="widthFix" src="../../../assets/itemImg/topLine.png" />
            <view class="zhuangtai">
                <image tt:if="{{couponorderstatus==1}}" src="../../../assets/itemImg/wm01.jpg" mode='widthFix'></image>
                <image tt:if="{{couponorderstatus==2}}" src="../../../assets/itemImg/wm02.jpg" mode='widthFix'></image>
                <image tt:if="{{couponorderstatus==3}}" src="../../../assets/itemImg/wm03.jpg" mode='widthFix'></image>
                <image tt:if="{{couponorderstatus==0&&validStatus==0}}" src="../../../assets/itemImg/wm04.jpg" mode='widthFix'></image>
                <view class="panel" tt:if="{{couponorderstatus==0&&validStatus!=0}}">
                    <view class="rqImg">
                        <canvas canvas-id="qrcode" style="width: 420rpx;; height: 420rpx;margin: 28rpx auto;" />
                    </view>
                    <!--   -->
                    <view class="closeRq" tt:if="{{showhieRq}}" bindtap="setRq">
                        <image class="updataRqCode" mode='widthFix' src="../../../assets/itemImg/upDataRqF.png"></image>
                        <view class="upDataRq">点一点刷新二维码</view>
                    </view>
                    <view class="coedTiem" tt:if="{{!showhieRq&&expiredSeconds>1}}">二维码在
                        <text style="color:red">{{expiredSeconds}}s</text> 
                       后失效
                    </view>
                    <view class="barnum">{{code}}</view>
                </view>
            </view>

            <view class="shopData"> 
                <store  merchantVoList="{{data.merchantVoList}}"></store>
            </view> 
            <image class="line" mode="widthFix" src="../../../assets/itemImg/topLine.png" />
            <view class="note">
                <view style='height:60rpx;line-height:60rpx;'>
                    <text class="shiji">实付金额:</text>
                    <text style='font-size:24rpx;text-align:right;color: #FF4949;float: right;margin-right: 50rpx;'>元</text>
                    <text class='moneys'>{{data.couponPrice/100}}</text>
                </view>
                <view class="orderDate" tt:if="{{data.couponOrderStatus==0}}">{{createDate}}</view>
                <view class="orderDate1" tt:if="{{data.couponOrderStatus==1}}">{{updateDate}}</view>
                <view class="orderDate2" tt:if="{{data.couponOrderStatus==2}}">{{updateDate}}</view>
                <view class="orderDate3" tt:if="{{data.couponOrderStatus==3}}">{{updateDate}}</view>

                <view class="orderNum">{{data.orderId}}</view>
            </view>
            <view class="notes">
                <view class="notesText">购买须知</view>
                <text class="introduce" tt:if="{{curHtml==''}}"> {{data.remark}}</text>
                <!-- <text class="notesText" tt:if="{{curHtml==""}}">{{detailObj.remark}}</text> -->
                <rich-text class="rich_text"  tt:if="{{curHtml!=''}}" nodes="{{curHtml}}"></rich-text>
            </view>
        </view>
    </view>
</view>