123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <!--pages/orders/order-detail.wxml-->
- <view class="container">
- <navigation-bar title="{{ statusList[status].title }}"></navigation-bar>
- <scroll-view class="record-list" type="list" scroll-y >
- <!-- <view class="order-status" wx:if="{{statusList[status]}}">
- <view class="status">
- <image src="{{ statusList[status].logo }}"></image>
- <text>{{ statusList[status].title }}</text>
- </view>
- <view class="tips" wx:if="{{ statusList[status].content }}">{{ statusList[status].content }}</view>
- </view> -->
- <view class="goods-content" wx:if="{{ goodsInfo.goods && goodsInfo.goods.length > 0 }}">
- <view class="item-content" wx:for="{{ goodsInfo.goods }}" wx:key="index">
- <image class='goods-icon' src="{{ item.goodsUrl }}" mode="" />
- <view class="goods-desc">
- <view class="goodsInfo">
- <view class="goods-name">{{ item.goodsName }}</view>
- <view class="goods-price">¥ <text>{{ item.originalPrice }}</text></view>
- </view>
- <view class="goods-type">
- <view class="innerGroup">
- <view class="goods-card" wx:if="{{ item.typeName }}">{{item.typeName}}</view>
- <view wx:if="{{ item.giftStatus === 'GIFTED' }}" class="innerFree">已<text>赠{{ item.giftLongTime }}</text></view>
- </view>
- <view class="goods-num">x{{item.goodsNum}}</view>
- </view>
- </view>
- </view>
- </view>
- <view class="order-time">
- <view class="order-item">
- <view class="title">订单编号</view>
- <view class="value">
- {{ goodsInfo.orderNo }}
- <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view>
- </view>
- </view>
- <view class="order-item">
- <view class="title">下单时间</view>
- <view class="value">{{ goodsInfo.createTime }}</view>
- </view>
- </view>
- <view class="order-content" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
- <!-- <view class="qrcode-title" >{{ goodsInfo.wechatStatus == 'WAIT_USE' ? '请扫码激活' : '激活码已使用' }}</view> -->
- <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}"><text>扫描二维码</text>或<text>点击激活按钮</text>使用<block wx:if="{{ goodsInfo.giftStatus === 'WAIT_GIFT' }}">
- ,<text class="free">当天激活</text><text class="free blod">赠{{ goodsInfo.giftLongTime }}</text>
- </block>
- </view>
- <view class="qrcode-text used" wx:else><view>下载<text>「音乐数字课堂」</text>APP,畅享音乐之旅</view><view class="downloadApp" bind:tap="onDownloadApp">下载APP</view>
- </view>
- <view class="qrcode-line"></view>
- <view class="qrcode-section">
-
- <view class="qrcode-block">
- <view class="left-text">{{goodsInfo.wechatStatus == 'WAIT_USE' ? '待使用' : '已使用'}}</view>
- <view class="qrCodeSection">
- <view class="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used'}}">
- <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.5 : 1 }};" show-menu-by-longpress="true"></image>
- <view class="loader" wx:if="{{!canvasImg}}"></view>
- </view>
- <view class="qrcode-btn--section" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">
- <button class="download" disabled="{{ !canvasImg ? true : false }}" bind:tap="onDownload">下载二维码</button>
- <button class="submit" disabled="{{ !canvasImg ? true : false }}" bind:tap="onActivation" data-code="{{ goodsInfo.code }}">立即激活</button>
- </view>
- </view>
- </view>
- </view>
- <view class="download-task" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
- <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1733725573779.png"></image>
- </view>
- </view>
- <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
- <view class="order-item">
- <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
- <view class="value">{{ goodsInfo.refundTime || '' }}</view>
- </view>
- <view class="order-item">
- <view class="title">退款金额</view>
- <view class="value">¥{{ goodsInfo.refundAmount }}</view>
- </view>
- <view class="order-item" wx:if="{{goodsInfo.wechatStatus != 'REFUNDING'}}">
- <view class="title">退款路径</view>
- <view class="value">{{ goodsInfo.refundStyleStr }}</view>
- </view>
- </view>
- <view class="scroll-brank"></view>
- </scroll-view>
- <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
- <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
- <block wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
- <button type="primary" class="refoundWaiteUse" bind:tap="useRefound">申请退款</button>
- <button type="primary" bind:tap="onSubmit">再次购买</button>
- </block>
- <block wx:else>
- <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}" disabled="{{cancelRefoundStatus}}">取消退款</button>
- <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
- </block>
- </view>
- <!-- 客服 -->
- <service wx:if="{{serviceShow}}"></service>
- <!-- 退费 -->
- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
- </view>
|