123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <!--pages/orders/orders.wxml-->
- <view class="container">
- <navigation-bar title="我的订单"></navigation-bar>
- <view class="record-content">
- <view class="record-tab">
- <view wx:for="{{tabList}}" wx:key="id" class="{{item.id == tabIdx ? 'active' : ''}}" catch:tap="switchTab" data-idx="{{item.id}}">
- {{item.label}}
- </view>
- </view>
- <scroll-view class="record-list" type="list" scroll-y bindscrolltolower="loadMore">
- <block wx:if="{{ recordList.length }}">
- <view class="list-item-group">
- <view class="list-item" wx:for="{{recordList}}" wx:key="index" data-orderno="{{item.orderNo}}" bind:tap="onDetail">
- <!-- <view class="item-top">
- <view class="item-mid">订单号:{{ item.orderNo }}</view>
- <text class="{{ item.wechatStatus == 'WAIT_PAY' || item.wechatStatus == 'WAIT_USE' ? 'red' : '' }}">{{ item.statusName }}</text>
- </view> -->
- <view class="item-content" wx:for="{{item.studentPaymentOrderDetails}}" wx:key="studentIndex">
- <image class='goods-icon' src="{{item.goodsUrl}}" mode="" />
- <view class="goods-desc">
- <view class="goodsInfo">
- <view class="goods-name">
- <text class="{{ outerItem.wechatStatus == 'WAIT_PAY' || outerItem.wechatStatus == 'WAIT_USE' ? 'red' : '' }}">{{ outerItem.statusName }}</text>
- {{item.goodsName}}
- </view>
- <view class="goods-price">¥ {{(item.originalPrice)}}</view>
- </view>
- <view class="goods-type">
- <view class="goods-card" wx:if="{{ item.typeName }}">{{item.typeName}}</view>
- <view class="goods-num">共 1 件</view>
- </view>
- </view>
- </view>
- <view class="item-footer">
- <view class="order-price">
- <!-- 订单金额:<text class="price">¥ {{item.amount}}</text> -->
- 订单号:{{ item.orderNo }}
- </view>
- <button class="sure" type="primary" wx:if="{{ item.wechatStatus == 'WAIT_PAY' }}" catch:tap="onPay" data-id="{{item.id}}">继续支付</button>
- <button type="primary" wx:else catch:tap="onOne" data-id="{{item.id}}">再次购买</button>
- </view>
- </view>
- </view>
- </block>
- <block wx:else>
- <view class="empty-box">
- <image src="https://oss.dayaedu.com/ktyq/1731839238916.png"></image>
- <view class="empty-text">暂无订单</view>
- </view>
- </block>
- </scroll-view>
- </view>
- </view>
|