detail.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <van-tabs active="{{showType }}" color="#09afff" bind:change="onTabChange">
  2. <van-tab title="待支付" name="1"></van-tab>
  3. <van-tab title="已支付" name="2"></van-tab>
  4. </van-tabs>
  5. <view class="orders">
  6. <view class="order" wx:for="{{detailList}}" wx:key="id" wx:for-item="item">
  7. <view class="h">
  8. <view class="l">订单编号:{{item.orderSn}}</view>
  9. <view class="r">{{item.orderStatusText}}</view>
  10. </view>
  11. <view wx:if="{{showType=='1'}}" class="create-time">创建时间:{{item.createTime}}</view>
  12. <view class="goods">
  13. <view class="img">
  14. <image src="{{item.picUrl}}"></image>
  15. </view>
  16. <view class="info">
  17. <text class="name">{{item.goodsName}}</text>
  18. <text class="number" wx:if="{{showType=='2'}}">共{{item.number}}件商品</text>
  19. </view>
  20. <!--<view class="time">{{item.addTime}}</view>-->
  21. <view class="status">
  22. <view class="time">电话:{{item.mobile}}</view>
  23. <view class="btn" data-mobile="{{item.mobile}}" bindtap="makeCall">拨打</view>
  24. </view>
  25. </view>
  26. <view class="flexb">
  27. <view class="flex">实付:¥{{item.actualPrice}}</view>
  28. <!-- <view class="flex">分红:¥{{item.total}}</view> -->
  29. <view class="flex" wx:if="{{showType=='2'}}">分佣状态:{{item.commissionStatus}}
  30. </view>
  31. <view class="flex edit-wrapper" wx:if="{{showType=='1'}}" >
  32. <text class="edit-amount" bindtap="showEditDialog" data-id="{{item.id}}" data-price="{{item.actualPrice}}">修改支付金额</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="no-order" wx:if="{{detailList.length <= 0}}">
  38. <view class="c">
  39. <text>还没有任何客户订单呢</text>
  40. </view>
  41. </view>
  42. <van-dialog
  43. use-slot
  44. title="修改支付金额"
  45. show="{{ dialogShow}}"
  46. show-cancel-button
  47. bind:close="onClose"
  48. bind:confirm="editAmount"
  49. >
  50. <view class="price-wrapper">
  51. <input class="weui-input" type="digit" placeholder="请输入支付金额" value="{{actualPrice}}" bindinput="bindKeyInput"/>
  52. </view>
  53. </van-dialog>