123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <!--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}}" data-wechatstatus="{{item.wechatStatus}}" bind:tap="onDetail">
- <view class="item-top">
- <view class="item-mid">订单编号:{{ item.orderNo }}</view>
- <text class="{{ item.wechatStatus == 'WAIT_PAY' ? 'red' : item.wechatStatus == 'CLOSED' ? 'cancel' : '' }}">{{ 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">{{item.goodsName}}</view>
- <view class="goods-price">¥<text>{{item.salePrice}}</text></view>
- </view>
- <view class="goods-type">
- <view>
- <view class="goods-card" wx:if="{{ item.typeName }}">{{item.typeName}}</view>
- </view>
- <block wx:if="{{ item.originalPrice > item.salePrice }}">
- <view class="goods-num">优惠前 ¥<text>{{ item.originalPrice }}</text></view>
- </block>
- </view>
- </view>
- </view>
- <view class="item-footer">
- <view class="goodsInfo-count">
- <view class="goods-price">
- <text class="before">共{{ item.studentPaymentOrderDetails.length }}件 <block wx:if="{{ item.discountPrice > 0 }}">,共减</block></text>
- <block wx:if="{{ item.discountPrice > 0 }}">
- <text class="stuff red">¥</text>
- <text class="priceZ">{{ item.discountPrice }}</text>
- </block>
- <!-- <text class="priceF">.{{ goodsInfo.decimalPart }}</text> -->
- <text class="afterTxt">应付:</text>
- <text class="stuff">¥</text>
- <text class="afterPrice">{{ item.integerPart }}.{{ item.decimalPart }}</text>
- </view>
- </view>
- <button class="sure" type="primary" wx:if="{{ item.wechatStatus == 'WAIT_PAY' }}" catch:tap="onPay" data-id="{{item.id}}">继续支付</button>
- </view>
- </view>
- </view>
- </block>
- <block wx:else>
- <view class="empty-box">
- <image src="https://oss.dayaedu.com/ktyq/1739864764800.png"></image>
- <view class="empty-text">暂无订单</view>
- </view>
- </block>
- </scroll-view>
- <!-- <view class="bottom-section">
- <view class="orders" bind:tap="onOne">
- <image src="./images/icon-home.png" />
- <text>首页</text>
- </view>
- <view class="orders active">
- <image src="./images/icon-order-active.png" />
- <text>订单</text>
- </view>
- </view> -->
- </view>
- <!-- 申请退款 -->
- <!-- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound> -->
- </view>
|