1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <!--pages/orders/order-detail.wxml-->
- <view class="container">
- <navigation-bar title="订单详情"></navigation-bar>
- <scroll-view class="record-list" type="list" scroll-y>
- <view class="scroll-container">
- <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="order-content">
- <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>¥</text>{{ item.originalPrice }}</view>
- </view>
- <view class="goods-type">
- <view class="goods-card">{{ item.typeName }}</view>
- <view class="goods-num">x1</view>
- </view>
- </view>
- </view>
- <view class="qrcode-section" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
- <view class="qrcode-wrap">
- <!-- <canvas class='my_draw_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas> -->
- <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.4 : 1 }};" show-menu-by-longpress="true"></image>
- <view class="loader" wx:if="{{!canvasImg}}"></view>
- </view>
- <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">扫描二维码或点击激活按钮使用</view>
- <view class="qrcode-text used" wx:else>二维码已使用</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>
- <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
- <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-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 red">¥{{ goodsInfo.refundAmount }}</view>
- </view>
- <view class="order-item" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' }}">
- <view class="title">退款路径</view>
- <view class="value">{{ goodsInfo.refundStyleStr }}</view>
- </view>
- </view>
- <view class="btn-refound" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' && tabIdx == 5 }}">申请退款</view>
- </view>
- </scroll-view>
- <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
- <view class="orders" bind:tap="onService">
- <image src="./images/icon-service.png" />
- <text>客服</text>
- </view>
- <!-- <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">申请退款</button>
- <block wx:else> -->
- <button type="primary" bind:tap="cancelRefound" disabled="{{cancelRefoundStatus}}" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}">取消退款</button>
- <button type="primary" wx:else bind:tap="onSubmit">再来一单</button>
- <!-- </block> -->
- </view>
- <service popShow="{{ showService }}" bind:changePop="changePop"></service>
- <!-- 退费 -->
- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
- </view>
|