Files
Smart-Farm/front/shop/pages/refund/detail.wxml
2025-12-22 17:13:05 +08:00

1 line
5.3 KiB
Plaintext

<block wx:if="{{detail.id}}"><view class="shop-refund-detail"><uni-nav-bar vue-id="415e6ed8-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" color="#fff" backgroundColor="{{scrollTop<20?'':primaryColor}}" leftIcon="icon-left" title="退款详情" bind:__l="__l"></uni-nav-bar><view style="{{'height:'+(configInfo.navBarHeight+'px')+';'}}"></view><image class="common-bg abs" mode="aspectFill" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/bg-cash.png"></image><view class="pl-lg pr-lg c-base" style="height:120rpx;"><view class="f-sm-title text-bold pt-md">{{statusType[detail.status]}}</view><block wx:if="{{detail.status==2}}"><view class="f-caption">{{"退款成功,退款金额¥"+detail.refund_price}}</view></block></view><view class="ml-md mr-md pd-lg fill-base f-paragraph c-title box-shadow radius-24"><block wx:for="{{detail.order_goods}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['order-item','flex-center',[(index!=0)?'mt-md':'']]}}"><image class="avatar box-shadow-mini radius-24" mode="aspectFill" lazy-load="{{true}}" src="{{item.goods_cover}}"></image><view class="flex-1 ml-lg"><view class="f-paragraph c-title text-bold max-490 ellipsis">{{''+item.goods_name+''}}</view><view class="f-caption c-title max-490 ellipsis">{{item.spe_name+''}}</view><view class="flex-y-baseline mt-sm"><view class="flex-1 f-paragraph c-warning">{{"¥"+item.goods_price+''}}</view><view class="f-caption c-caption">{{"x "+item.goods_num+''}}</view></view></view></view></block><view class="flex-between mt-lg pt-md b-1px-t"><view class="c-title ml-sm mr-sm">{{''+('共'+detail.all_goods_num+'件')}}</view><view class="flex-y-baseline f-desc c-title">合计:<view class="f-title c-warning">{{"¥"+detail.apply_price}}</view><block wx:if="{{detail.car_price*1>0}}"><view class="f-caption c-caption ml-sm">{{"含配送费:¥"+detail.car_price+''}}</view></block></view></view></view><view class="mt-md ml-md mr-md pd-lg fill-base f-caption c-title box-shadow radius-24"><view class="flex-between pb-lg f-title c-title text-bold b-1px-b">退款信息</view><view class="pt-lg f-desc"><view class="flex-column"><view>退款原因</view><view class="c-caption mt-sm"><text style="word-break:break-all;" decode="emsp">{{detail.text}}</text></view></view><block wx:if="{{$root.g0}}"><view class="flex-column mt-md"><view>上传图片</view><view class="flex-warp"><block wx:for="{{detail.imgs}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><image class="refund-img mt-md mr-md radius-10" mode="aspectFill" src="{{item}}" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({item})}}" bindtap="__e"></image></block></block></view></view></block></view></view><view class="order-text-info mt-md ml-md mr-md pd-lg fill-base f-caption c-title box-shadow radius-24"><view class="flex-warp pt-sm"><view class="text c-caption">订单编号</view><view class="flex-1 flex-y-center">{{detail.order_code+''}}<view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="copy-btn sm flex-center fill-body" style="{{'color:'+(primaryColor)+';'}}" bindtap="__e">复制</view></view></view><block wx:if="{{detail.send_type==2}}"><block><view class="flex-warp pt-md"><view class="text c-caption">付款单号</view><view class="flex-1 flex-y-center">{{detail.transaction_id+''}}<view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="copy-btn sm flex-center fill-body" style="{{'color:'+(primaryColor)+';'}}" bindtap="__e">复制</view></view></view><block wx:if="{{detail.status==2}}"><view class="flex-warp pt-md"><view class="text c-caption">退款单号</view><view class="flex-1 flex-y-center">{{detail.out_refund_no+''}}<view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="copy-btn sm flex-center fill-body" style="{{'color:'+(primaryColor)+';'}}" bindtap="__e">复制</view></view></view></block></block></block><view class="flex-warp pt-md"><view class="text c-caption">申请时间</view><view class="flex-1">{{detail.create_time}}</view></view><block wx:if="{{detail.status>1}}"><block><view class="flex-warp pt-md"><view class="text c-caption">处理时间</view><view class="flex-1">{{detail.refund_time}}</view></view><view class="flex-warp pt-md"><view class="text c-caption">处理人</view><view class="flex-1">{{detail.refund_user_name}}</view></view></block></block></view><view class="{{[[(detail.status==1)?'space-max-footer':''],[(detail.status!=1)?'space-footer':'']]}}"></view><block wx:if="{{detail.status!=2}}"><view class="footer-btn fix fill-base pl-lg pr-lg"><view class="flex-between"><view></view><view class="flex-y-center"><block wx:if="{{detail.status==1}}"><view data-event-opts="{{[['tap',[['toChangeOrder',['cancel_item']]]]]}}" class="common-btn disabled flex-center f-caption c-title radius" catchtap="__e">取消退款</view></block><block wx:if="{{detail.status==3}}"><view data-event-opts="{{[['tap',[['toTel',['$event']]]]]}}" class="common-btn flex-center f-caption c-base radius" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">联系店主</view></block></view></view><view class="space-safe"></view></view></block><common-popup class="vue-ref" vue-id="415e6ed8-2" type="CANCEL_REFUND_ORDER" info="{{popupInfo}}" data-ref="cancel_item" data-event-opts="{{[['^confirm',[['confirmUpdate']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view></block>