Files
CompanyProject/衣莎项目/源码/YiShaXiYi/user/order/order.wxml
2024-09-27 01:32:49 +08:00

156 lines
7.8 KiB
Plaintext

<!-- 头部 -->
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
<wux-dialog id="wux-dialog" />
<wux-dialog id="wux-dialog--alert" />
<wux-toast id="wux-toast" />
<wux-popup closable visible="{{ ShowSupplement }}" bind:close="CloseViewInfo">
<view class="default_money">
<div class="left_t">补款金额</div>
<view class="right_m">{{ SupplementClickItem.extra_money || 0 }}元</view>
</view>
<view class="default_money">
<div class="left_t">补款原因</div>
<view class="right_m">{{ SupplementClickItem.extra_reason || '无'}}</view>
</view>
<wux-radio-group title="支付方式" name="b" value="{{ defaultPayType }}" bind:change="PayTypeChange">
<wux-radio title="微信" value="2" />
<wux-radio title="会员卡" value="1" />
</wux-radio-group>
<wux-radio-group wx:if="{{ defaultPayType == 1 }}" title="会员卡选择" name="b" value="{{ defaultCard }}" bind:change="CardTypeChange">
<scroll-view scroll-y="true" style="height: 200rpx;" scroll-top="{{0}}">
<wux-radio wx:for="{{ cardList }}" wx:key="id" title="{{ item.title }}-{{ item.discount / 10 }}折-{{item.money}}元" value="{{ index }}" />
</scroll-view>
</wux-radio-group>
<view slot="footer" class="popup__button" bindtap="submitSupplement">确定</view>
</wux-popup>
<view class="order">
<view class="order_tab" style="top:{{system.statusHeight+system.titleHeight+'px'}}">
<i-tabs current="{{ current }}" color="#1dbf45" bindchange="handleChange">
<i-tab key="1" title="全部"></i-tab>
<i-tab key="2" title="服务中"></i-tab>
<i-tab key="3" title="已完成"></i-tab>
</i-tabs>
</view>
<view wx:if="{{orderData.length>0}}" class="order_list">
<view class="order_row mt20" wx:for="{{orderData}}" wx:key="{{index}}">
<view class="order_title">
<view class="order_icon">
<image src="/static/img/icon/order-3_03.png" />
</view>
<view class="order_num">订单号:{{item.order_num}}</view>
<view class="order_state">{{item.status}}</view>
</view>
<view data-isopen="{{ ( (item.pay_status == 1 && (item.type == 1 || item.type == 2 || item.type == 3 )) || (item.logic_type == 3 && item.type == 4 && item.pay_status == 1)) ? '1':'0' }}" class="order_info flex-con2" data-id="{{item.id}}" catchtap="openOrder">
<view>
<view class="info_p">
衣物数量:{{item.total_count <= 0 ? '待录入' : item.total_count}}
</view>
<view class="info_p mt10">
订单金额:{{item.realPrice == '0.00' ? '待统计' : '¥'+item.realPrice}}
</view>
<view class="info_p mt10">下单时间:{{item.create_time}}</view>
</view>
</view>
<view class="order_sub flex-con2">
<view class="openInfo ml20" data-id="{{item.id}}" wx:if="{{item.type == 9 && item.shop_id == 2}}" catchtap="openCase">
开柜取衣
</view>
<view class="openInfo ml20" data-id="{{item.id}}" wx:if="{{item.type == 10 && item.shop_id == 2}}" catchtap="openCase">
开柜取衣
</view>
<view class="openInfo ml20" data-id="{{item.id}}" wx:if="{{item.type == 5}}" data-id="{{item.id}}" catchtap="openOrder">
去支付
</view>
<view data-type="num" catchtap="openTips" class="openInfo ml20" data-id="{{item.id}}" data-item="{{item}}" wx:if="{{(item.type == 3 || item.type == 1) && item.shop_id == 2}}">
增减衣物数量
</view>
<view class="cancel ml20" data-id="{{item.id}}" data-showextra="{{ (item.pay_status == 2 || (item.logic_type == 3 && item.type == 4 && item.pay_status == 2)) ? 'true': 'false' }}" catchtap="openOrder">查看详情</view>
<view wx:if="{{ item.extra_status == 2 }}" class="cancel ml20" data-id="{{item.id}}" data-items="{{ item }}" catchtap="Supplement">
补款
</view>
<view wx:if="{{ item.extra_status == 3 }}" class="cancel ml20">
已补款
</view>
<view data-id="{{item.id}}" wx:if="{{ (item.pay_status == 1 && (item.type == 1 || item.type == 2 || item.type == 3 )) || (item.logic_type == 3 && item.type == 4 && item.pay_status == 1) }}" class="cancel ml20" data-id="{{item.id}}" catchtap="refund">
申请退款
</view>
<view wx:if="{{ item.pay_status == 2 || (item.logic_type == 3 && item.type == 4 && item.pay_status == 2) }}" data-id="{{item.id}}" class="cancel" catchtap="cancelOrder">
取消订单
</view>
<form report-submit bindsubmit="receivingGoods">
<button wx:if="{{ item.type == 10 && item.shop_id == 1 }}" class="openInfo ml20" data-id="{{item.id}}" form-type="submit">
确认收货
</button>
</form>
</view>
</view>
</view>
<view wx:elif="{{orderData.length<=0}}" class="empty flex-con3">
<view>
<image class="empty_img" src="/static/img/icon/order-konw-icon.png" />
<view class="mt20">暂无内容</view>
</view>
</view>
</view>
<!-- 增减衣物 -->
<view wx:if="{{isTips}}" class="backwash_tips flex-con3 tips">
<view>
<view class="tips_cen">
<view class="tips_cen_tit">本次洗护数量</view>
<view class="flex-con3 mt30">
<view class="tips_cen_num flex-con3">
<view class="num_img" catchtap="reduce">
<image src="/static/img/icon/j1.png" />
</view>
<view class="num_text">{{changeCount.total_count}}</view>
<view class="num_img" catchtap="add">
<image src="/static/img/icon/j2.png" />
</view>
</view>
</view>
<view data-type="remarks" class="tips_remarks" catchtap="openTips">
<view class="flex1 clamp1">{{changeCount.remarks}}</view>
<view class="remarks_xiu">修改</view>
</view>
<view class="tips_cen_sub" catchtap="chCount">提交并打开衣柜</view>
<view class="mt20 tips_ts">提示:请在洗衣柜附近开柜!</view>
</view>
<view class="tips_img" data-type="num" catchtap="closeTips">
<image src="/static/img/icon/colse_tips.png" />
</view>
</view>
</view>
<!-- 修改备注 -->
<view wx:if="{{isRemarks}}" class="tipsRemarks flex-con3 tips">
<view>
<view class="tips_cen">
<view class="tips_cen_tit">洗护备注</view>
<view class="flex-con3 mt30">
<view class="tips_cen_text">
<textarea maxlength="50" placeholder="添加备注:如洗护要求、衣物特殊污渍等" bindinput="remarksInput" value="{{changeCount.remarks}}"></textarea>
<span class="tips_text_span">{{changeCount.remarks.length}}/50个字</span>
</view>
</view>
<view class="tips_cen_sub" data-type="remarks" catchtap="closeTips">完成</view>
</view>
<view data-type="remarks" class="tips_img" catchtap="closeTips">
<image src="/static/img/icon/colse_tips.png" />
</view>
</view>
</view>
<!-- 加载动画 -->
<loading-prog isLoading="{{isLoading}}"></loading-prog>
<!-- toasta提示 -->
<i-toast id="toast" />