Files
cardtest/pages/order/order.wxml
2021-06-10 15:12:48 +08:00

107 lines
4.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 活动订单 -->
<view class="order-tab">
<view class="order-tab-item {{stateType == 'all' ? 'active':''}}" data-state="all" bindtap="orderTab">
全部
</view>
<view class="order-tab-item {{stateType == 'unpay' ? 'active':''}}" data-state="unpay" bindtap="orderTab">
待支付
<!-- <view class="state-tips" wx:if="{{counts.init != 0}}">{{counts.init}}</view> -->
</view>
<view class="order-tab-item {{stateType == 'paid' ? 'active':''}}" data-state="paid" bindtap="orderTab">
{{orderType == 'welfare' || orderType == 'rights' ? '待发货' : '已支付'}}
<!-- <view class="state-tips" wx:if="{{counts.paid != 0}}">{{counts.paid}}</view> -->
</view>
<!-- <view class="order-tab-item {{stateType == 'delivered' ? 'active':''}}" data-state="delivered" bindtap="orderTab">
待签收
<view class="state-tips" wx:if="{{counts.paid != 0}}">{{counts.paid}}</view>
</view> -->
<view class="order-tab-item {{stateType == 'delivered' ? 'active':''}}" data-state="delivered" bindtap="orderTab" wx:if="{{orderType == 'welfare' || orderType == 'rights'}}">
已发货
<!-- <view class="state-tips" wx:if="{{counts.send != 0}}">{{counts.send}}</view> -->
</view>
<view class="order-tab-item {{stateType == 'completed' ? 'active':''}}" data-state="completed" bindtap="orderTab" wx:else>
已完成
<!-- <view class="state-tips" wx:if="{{counts.send != 0}}">{{counts.send}}</view> -->
</view>
</view>
<!-- 列表 -->
<view class="order-content" wx:if="{{orderArr != ''}}">
<view class="order-content-li" wx:for="{{orderArr}}" wx:key="orderArr">
<!-- <view class="order-name">
<image src="/static/icon/activity_icon.png"></image>
</view> -->
<view class="uni-border-down order-store">
<view class="order-store-title nowrap">{{item.orderid}}</view>
<view class="order-store-stateText red" wx:if="{{item.state_text == '未支付' || item.status_text == '未支付'}}">
{{item.state_text ||item.status_text}}
</view>
<view class="order-store-stateText green" wx:elif="{{item.state_text == '已支付' || item.status_text == '已支付'}}">
{{item.state_text || item.status_text}}
</view>
<view class="order-store-stateText" wx:else>{{item.state_text || item.status_text}}</view>
</view>
<view class="order-goods">
<image class="order-goods-cover" src="{{item.items.cover || item.source.right.cover}}" mode="aspectFill"></image>
<view class="order-goods-content">
<view class="order-goods-content-name nowrap">{{item.items.title || item.source.right.title}}</view>
<view class="orderVirtual" wx:if="{{orderType == 'welfare' || orderType == 'welfareGoods'}}">
{{item.type_text}}
</view>
<view class="orderVirtual {{item.items.type != 'virtual' ? '' : 'active'}}" wx:else>
<block wx:if="{{item.items.type == 'virtual'}}">红包电子券</block>
<block wx:else>实物券</block>
</view>
<view class="order-goods-content-price nowrap">
<text>¥{{item.items.price || item.source.welfare.price}}</text> × {{item.items.qty ? item.items.qty : '1'}}
</view>
</view>
</view>
<view class="uni-border-top order-btns">
<navigator class="order-btn" url="/pages/orderData/orderData?id={{item.orderid}}&orderType={{orderType}}">订单详情</navigator>
<view class="order-btn" bindtap="orderDelete" data-id="{{item.orderid}}" wx:if="{{item.canCancel == true || item.can.cancel == true}}">
取消订单
</view>
<view class="order-btn order-btn-back" bindtap="submitPay" data-id="{{item.orderid}}" wx:if="{{item.canPay == true || item.can.pay == true}}">
立即支付
</view>
<!-- <view class="order-btn order-btn-back" bindtap="" data-id="{{item.orderid}}" wx:if="{{item.canSign == true}}">待签收</view> -->
</view>
</view>
<view class="pagesLoding" wx:if="{{lodingStats}}">
<block wx:if="{{page.has_more}}">
<image class="pagesLoding-icon" src="/static/icon/refresh_loding.gif" mode="widthFix"></image>加载中...
</block>
<block wx:else>
没有更多了~
</block>
</view>
</view>
<view class="pack-center pages-hint" wx:else>
<image src="https://storage.funnyzhibo.com/images/2020/05/06/null_icon.png"></image>
<view>暂无订单</view>
</view>
<view class="payWayBack {{pay.payState ? 'active' : ''}}" bindtap="submitPay"></view>
<view class="payWay {{pay.payState ? 'active' : ''}}">
<view class="payWay-name">请选择支付方式</view>
<radio-group bindchange="radioChange">
<view class="payContList-label">
<view class="payContList-label-name">
<image class="payContList-label-img" src="/static/img/wx.jpg"></image>
微信支付
</view>
<radio class="radio" value="1" checked></radio>
</view>
<!-- <view class="payContList-label">
<view class="payContList-label-name">
<image class="payContList-label-img" src="/static/img/wqb.jpg"></image>
沃钱包支付
</view>
<radio class="radio" value="2"></radio>
</view> -->
</radio-group>
<button class="payWayBtn" bindtap="orderPay">确认</button>
</view>