抖音小程序C端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

239 行
10 KiB

  1. <navbar home back text="订单详情"></navbar>
  2. <view style="height:{{navigationBarHeight}} "></view>
  3. <view class='order' tt:if="{{showPage}}">
  4. <view tt:if="{{order.orderStatus==1}}" class='tips'>
  5. <image class='success' src='{{succUrl}}' mode='widthFix'></image>
  6. <view tt:if="{{order.salePrice/100==0}}" class='msg'>
  7. <text>交易成功</text>
  8. <!-- <text>请尽快到门店使用,有效期至{{}}</text> -->
  9. </view>
  10. <view tt:if="{{order.salePrice/100!=0}}" class='msg'>
  11. <text>付款成功</text>
  12. <!-- <text>请尽快到门店使用,有效期至{{}}</text> -->
  13. </view>
  14. </view>
  15. <view class='section'>
  16. <view class='sectionTit'>
  17. <text>{{order.title}}</text>
  18. </view>
  19. <view class='detail_msg' bindtap="goDetail">
  20. <view class='logo'>
  21. <image mode='aspectFill' src='{{order.coverImg}}'></image>
  22. </view>
  23. <view class='info'>
  24. <view class="salePriceStr ">
  25. <view class='rmb'>¥</view>
  26. <view class="pri01">{{(order.payment)/100}}</view>
  27. <view class="throgh">{{(order.price)/100}}</view>
  28. </view>
  29. <view class="subTitle">
  30. <text>{{order.subTitle}}</text>
  31. </view>
  32. <view class="xidanTiem">
  33. <text>下单时间:</text>{{createDate}}
  34. </view>
  35. <image class="infoArrow" src="{{chevronUrl}}" mode='widthFix'></image>
  36. <view class="goRefund" catchtap="goRefund" data-id="{{order.id}}" tt:if="{{order.couponOrderStatus==0||order.couponOrderStatus==3}}">{{order.couponOrderStatus==0?'申请退款':'退款进度'}}</view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="zhuangtai">
  41. <image tt:if="{{order.couponOrderStatus==1}}" src="{{wm01Url}}" mode='widthFix'></image>
  42. <image tt:if="{{order.couponOrderStatus==2}}" src="{{wm02Url}}" mode='widthFix'></image>
  43. <image tt:if="{{order.couponOrderStatus==3}}" src="{{wm03Url}}" mode='widthFix'></image>
  44. <image tt:if="{{order.couponOrderStatus==0&&order.validStatus==0}}" src="{{wm04Url}}" mode='widthFix'></image>
  45. <view class="panel" tt:if="{{order.couponOrderStatus==0&&order.validStatus!=0}}">
  46. <view class="canWrap">
  47. <canvas canvas-id="qrcode" style="width: 1200rpx; height: 800rpx;" />
  48. </view>
  49. <image src="{{tempFilePath}}" mode="aspectFit" />
  50. <view class="closeRq" tt:if="{{showhieRq}}" bindtap="setRq">
  51. <image class="updataRqCode" mode='widthFix' src="{{upDataRqUrlF}}"></image>
  52. <view class="upDataRq">点一点刷新二维码</view>
  53. </view>
  54. <view class="coedTiem" tt:if="{{!showhieRq&&expiredSeconds>1}}">二维码在
  55. <text style="color:red">{{expiredSeconds}}s</text>
  56. 后失效
  57. </view>
  58. <!-- <view class="barnum buy"><text>兑换码:</text>{{code}}</view> -->
  59. </view>
  60. </view>
  61. <view class='classif'>
  62. <!--
  63. couponOrderStatus
  64. 0 未使用
  65. 1 已使用
  66. 2 已过期
  67. 3 已经退款
  68. -->
  69. <!--
  70. orderStatus
  71. 1
  72. 只有支付完成的时
  73. 才显示兑换码
  74. -->
  75. <!-- bindtap="powerDrawer" -->
  76. <view tt:if="{{order.orderStatus==1&&order.type!=100&&order.type!=5&&order.type!=51}}"
  77. data-couponOrderStatus="{{order.couponOrderStatus}}" data-title="{{order.title}}"
  78. data-subtitle="{{order.subTitle}}" data-remark="{{order.remark}}" data-quancode="{{order.couponOrderId}}"
  79. data-validstatus="{{order.validStatus}}" class='dhCode'>
  80. <view style="width:86%;clear: both;">
  81. <text class="fl">兑换码:</text>
  82. <text class="fr" tt:if="{{order.validStatus!=0}}">{{order.couponOrderId}}</text>
  83. </view>
  84. <view>
  85. <!-- <image class="spcode" src="{{spcodeUrl}}" mode='widthFix'></image>
  86. <image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image> -->
  87. </view>
  88. </view>
  89. <view class='dhCode' bindtap="goPaySnapshoot" data-id="{{order.id}}" tt:if="{{(order.orderStatus!=0&&order.orderStatus!=2)}}">
  90. <view style="width:86%;clear: both;">
  91. <text class="fl">交易快照:可作为交易争执的判断依据</text>
  92. </view>
  93. <view>
  94. <image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image>
  95. </view>
  96. </view>
  97. <!-- <view>
  98. <text>下单时间</text>
  99. <text class='fr'>{{createDate}}</text>
  100. </view> -->
  101. <view class='dhCode'>
  102. <text class='bianhao'>订单编号:</text>
  103. <text>{{order.id}}</text>
  104. </view>
  105. <view class='wuliu' tt:if="{{order.type==11}}">
  106. <text class='left'>物流状态:</text>
  107. <text
  108. class="right">{{(order.shippingStatus==10||order.shippingStatus==14)?"待自提":order.shippingStatus==15?"已自提":order.shippingStatus==20?"待发货":order.shippingStatus==24?"待收货":order.shippingStatus==25?"已收货":""}}</text>
  109. </view>
  110. <view class='wuliu' tt:if="{{order.shippingType==2&&order.deliveryInfo}}">
  111. <text class='left'>物流公司:</text>
  112. <text class="right">{{order.deliveryInfo.courierInput}}</text>
  113. </view>
  114. <view class='wuliu' tt:if="{{order.shippingType==2&&order.deliveryInfo}}">
  115. <text class='left'>快递单号:</text>
  116. <view class="left">{{order.deliveryInfo.expressageIdInput}}</view>
  117. <view class="copeCode" bindtap="copeCode" data-text="{{order.deliveryInfo.expressageIdInput}}">复制</view>
  118. <text class="goInquire" bindtap="gokuaidi" data-nu="{{order.deliveryInfo.expressageIdInput}}">查询物流</text>
  119. </view>
  120. <!-- <view>
  121. <text tt:if="{{order.type == 8}}">原价</text>
  122. <text tt:if="{{order.type != 8}}">面额</text>
  123. <text class="jine1" tt:if="{{order.unit==0}}">{{order.price/100}}元</text>
  124. <text class="jine1" tt:if="{{order.unit==1}}">{{order.price/100}}小时</text>
  125. </view> -->
  126. <view style="overflow: hidden; padding-left: 5%;padding-right: 5%;height: 96rpx;line-height: 96rpx;">
  127. <text class='left'>实付金额:</text>
  128. <view class='right'>
  129. <text class='RMB'>¥</text>
  130. <text class='jine'>{{order.payment/100}}</text>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 适用门店 -->
  135. <store merchantVoList="{{order.merchantVoList}}" tt:if="{{order.type!=12}}"></store>
  136. <vieW class="groupTitleBox">
  137. <view class="groupTitle" tt:if="{{order.itemGroup.length>0}}">团购详情</view>
  138. </vieW>
  139. <view class="groupTextBox" tt:if="{{order.itemGroup.length>0}}" tt:for="{{order.itemGroup}}">
  140. <view class="groupTitleS" tt:if="{{item.group_name}}">{{item.group_name}}</view>
  141. <view class="groupDetailsBox" tt:for="{{item.item_list}}" tt:for-item="itemChi">
  142. <view class="groupTiemBox">
  143. <view class="yuandian"></view>
  144. <view class="groupTiemName">{{itemChi.name}}({{itemChi.count}}份)</view>
  145. <view class="groupTiemPay">¥{{itemChi.price/100}}</view>
  146. </view>
  147. </view>
  148. </view>
  149. <view class='notes'>
  150. <view class="notesH">购买须知</view>
  151. <view class="timeText">有效期</view>
  152. <view class="Hchild">{{order.validStartDate}}至{{order.validEndDate}}</view>
  153. <view class="timeText">可用时间</view>
  154. <view class="Hchild">•商家营业时间可用</view>
  155. <view class="timeText">预约消费</view>
  156. <view class="Hchild">• 不需预约,高峰时段可能需要排队</view>
  157. <view class="Hchild">• 团购券不支持配送或外卖</view>
  158. <view class="timeText">使用规则</view>
  159. <text class="notesText">{{order.remark}}</text>
  160. <!-- <text tt:if="{{curHtml==''}}" class="notesText">{{order.remark}}</text> -->
  161. <!-- <view tt:if="{{curHtml!=''}}">
  162. <rich-text nodes="{{curHtml}}"></rich-text>
  163. </view> -->
  164. </view>
  165. <!-- 子券列表 -->
  166. <view class="childList" tt:if="{{order.type==12}}">
  167. <view class="childTitle">礼券:</view>
  168. <view class="childItme" tt:for="{{order.giftCouponList}}" tt:key="{{item}}">
  169. <view class="chaildDetBox">
  170. <image mode='aspectFill' class="chaildImg" src="{{item.coverImg}}"></image>
  171. <view class="childDataBox">
  172. <view class="orderName">{{item.title}}</view>
  173. <view class="childPriceStr">面额:{{item.priceStr}}元</view>
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. <!-- 待付款 显示立即购买的按钮 -->
  179. <view tt:if="{{(order.orderStatus==0&&order.salePrice!=0)||(order.orderStatus==7&&order.salePrice!=0)}}"
  180. class="buy-view app-border-top">
  181. <button bindtap='orderFunc' hover-class='active' data-couponChannelId="{{orderFlag?order.composeOrderId:order.id}}"
  182. disabled='{{showButton}}' class="{{mouldType!=1?'buy':'buyX'}}">立即支付</button>
  183. </view>
  184. <view class='game' bindtap="gotogame" tt-if="{{showIf&&order.orderStatus!=0}}">
  185. <view class='game-entry'>
  186. <image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
  187. </view>
  188. </view>
  189. <!-- <button type="primary" open-type="share" tt:if="{{order.type == 100 && supportTransfer==1&&cardIf}}" class='support-tansfer'>
  190. <image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button> -->
  191. <view class="sign"
  192. tt:if="{{order.couponOrderStatus == 0 &&order.type == 11 && order.shippingType == 2 && order.shippingStatus== 24}}"
  193. bindtap="setShow">签收
  194. </view>
  195. <view class="evaluate" bindtap="goEvaluate" tt:if="{{evaluateFlag}}">去评价</view>
  196. <view class="explainText" tt:if="{{serviceUrl!=''&&(order.orderStatus==1||order.orderStatus==3||order.orderStatus==4||order.orderStatus==5)}}">对本订单有疑问或纠纷,请点击下方联系抖音官方客服</view>
  197. <view class="serviceBox" tt:if="{{serviceUrl!=''&&(order.orderStatus==1||order.orderStatus==3||order.orderStatus==4||order.orderStatus==5)}}" bindtap="goWebView">
  198. <image src="../../../assets/images/service1.png" class="serviceImg" ></image>
  199. <view class="serviceText"> 抖音官方客服</view>
  200. </view>
  201. </view>
  202. <view class="showT" tt:if="{{showFlag}}" bindtap="hieShow">
  203. <view class="titleBxo">
  204. <view class="text">是否确认收到商品?</view>
  205. <view class="p">签收后将完成订单</view>
  206. <view class="btnBox">
  207. <view class="le" bindtap="verify">确认签收</view>
  208. <view class="ri" bindtap="hieShow">取消</view>
  209. </view>
  210. </view>
  211. </view>
  212. <!-- -->