金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

308 lines
8.2 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="订单详情" :showIcon="true"></lf-nav>
  4. <view class="tips">
  5. <view class="lf-font-24 lf-color-white">剩余支付时间</view>
  6. <view>
  7. <countdown-timer :time="time" :autoStart="true" @finish="dateFinish">
  8. <template v-slot="{minute, second}">
  9. <!-- <view>{{minute}}:{{second}}</view> -->
  10. <view class="lf-flex">
  11. <view class="lf-font-24 lf-color-white">{{ minute >= 10 ? minute : "0" + minute }}</view>
  12. <view class="lf-font-24 lf-color-white">:</view>
  13. <view class="lf-font-24 lf-color-white">{{ second >= 10 ? second : "0" + second }}</view>
  14. </view>
  15. </template>
  16. </countdown-timer>
  17. </view>
  18. </view>
  19. <!-- 待收货 -->
  20. <view class="tips-waitconfirm">
  21. <view class="lf-flex-column">
  22. <view class="lf-font-28 lf-color-white">运输中</view>
  23. <view class="lf-font-24 lf-color-white" v-if="true">广州转运中心公司 已发出下一站南宁转运中心</view>
  24. <view class="lf-font-24 lf-color-white" v-else>[自提柜]已签收签收人凭取货码签收</view>
  25. </view>
  26. <view class="waitconfirm-tag">
  27. 查看详情
  28. </view>
  29. </view>
  30. <view class="card" v-if="type == 'default'" style="margin-top: 0;">
  31. <view class="lf-font-28">
  32. <text class="lf-color-222 lf-font-bold">王小二</text>
  33. <text class="lf-color-777 lf-m-l-20">18284385380</text>
  34. </view>
  35. <view class="lf-font-28 lf-color-333 lf-m-t-20">
  36. <text>广西壮族自治区-南宁市-青秀区-民族大道民族大道民族大道民族大道民族大道民族大道15号</text>
  37. </view>
  38. </view>
  39. <view class="card goods">
  40. <view>
  41. <text class="lf-iconfont icon-Group- lf-font-30"></text>
  42. <text class="shop-name">精品超市</text>
  43. <text class="lf-iconfont icon-xiangyou lf-font-24"></text>
  44. </view>
  45. <view class="lf-flex lf-m-t-20">
  46. <image class="goods-img"></image>
  47. <view class="info">
  48. <view class="lf-font-26 lf-color-333 lf-line-1">爱他美较大婴儿配方奶粉较大配方奶粉较2段 </view>
  49. <view class="lf-font-24 lf-color-777">500g</view>
  50. <view class="lf-row-between" style="line-height: 1;">
  51. <text class="price">¥385</text>
  52. <text class="lf-font-28 lf-color-777">x 2</text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="card" v-if="type == 'point'">
  58. <view class="lf-row-between lf-font-28">
  59. <text class="lf-color-777">积分数量</text>
  60. <text class="lf-color-222">385</text>
  61. </view>
  62. </view>
  63. <view class="card" v-if="type == 'default'">
  64. <view class="lf-row-between lf-font-28">
  65. <text class="lf-color-777">优惠券</text>
  66. <text style="color: #F63434;">-¥20</text>
  67. </view>
  68. <view class="lf-row-between lf-m-t-30 lf-font-28">
  69. <text class="lf-color-777">运费</text>
  70. <text class="lf-color-222">+¥10</text>
  71. </view>
  72. <view class="lf-row-between lf-m-t-30 lf-font-28">
  73. <text class="lf-color-777">订单总价</text>
  74. <text class="lf-color-222">¥375</text>
  75. </view>
  76. </view>
  77. <view class="card">
  78. <view class="lf-row-between lf-font-28">
  79. <text class="lf-color-777">商品订单编号</text>
  80. <text>
  81. <text class="lf-color-222">75894375395739345</text>
  82. <text class="lf-font-28 lf-m-l-20" style="color: #22A19F;">复制</text>
  83. </text>
  84. </view>
  85. <view class="lf-row-between lf-font-28 lf-m-t-30">
  86. <text class="lf-color-777">订单编号</text>
  87. <text class="lf-color-222">75894375395739345</text>
  88. </view>
  89. <view class="lf-row-between lf-font-28 lf-m-t-30">
  90. <text class="lf-color-777">创建时间</text>
  91. <text class="lf-color-222">2021-09-07 10:21:38</text>
  92. </view>
  93. <view class="lf-row-between lf-font-28 lf-m-t-30">
  94. <text class="lf-color-777">留言</text>
  95. <text class="lf-color-222">暂无留言</text>
  96. </view>
  97. <view class="lf-row-between lf-font-28 lf-m-t-30" v-if="type == 'point'">
  98. <text class="lf-color-777">兑换状态</text>
  99. <text class="lf-color-222">兑换成功</text>
  100. </view>
  101. <!-- 待发货 -->
  102. <view class="lf-row-between lf-font-28 lf-m-t-30">
  103. <text class="lf-color-777">支付方式</text>
  104. <text class="lf-color-222">余额支付</text>
  105. </view>
  106. <view class="lf-row-between lf-font-28 lf-m-t-30">
  107. <text class="lf-color-777">收货方式</text>
  108. <text class="lf-color-222">邮寄</text>
  109. </view>
  110. <view class="lf-row-between lf-font-28 lf-m-t-30">
  111. <text class="lf-color-777">支付时间</text>
  112. <text class="lf-color-222">2021-09-07 10:21:38</text>
  113. </view>
  114. </view>
  115. <view style="height: 120rpx;margin-top: 20rpx;"></view>
  116. <!-- 待付款 -->
  117. <view class="order-btn">
  118. <view class="lf-font-28 lf-row-center" style="color:#F63434">
  119. 待付款
  120. </view>
  121. <view class="lf-flex">
  122. <view class="btn-cancel lf-m-r-20">
  123. 取消订单
  124. </view>
  125. <view class="btn-atonce">
  126. 立即付款
  127. </view>
  128. </view>
  129. </view>
  130. <!-- 待发货 -->
  131. <view class="order-btn">
  132. <view class="lf-font-28 lf-row-center lf-color-777">
  133. 待发货
  134. </view>
  135. <view class="lf-flex">
  136. <view style="width: 220rpx;"></view>
  137. <view style="width: 220rpx;"></view>
  138. </view>
  139. </view>
  140. <!-- 待收货 -->
  141. <view class="order-btn">
  142. <view class="lf-font-28 lf-row-center lf-color-black">
  143. 待收货
  144. </view>
  145. <view class="lf-flex">
  146. <view style="width: 220rpx;"></view>
  147. <view class="btn-confirm">
  148. 确认收货
  149. </view>
  150. </view>
  151. </view>
  152. <!-- 已完成 -->
  153. <view class="order-btn">
  154. <view class="lf-font-28 lf-row-center" style="color: #22A19F;">
  155. 已完成
  156. </view>
  157. <view class="lf-flex">
  158. <view style="width: 220rpx;"></view>
  159. <view style="width: 220rpx;"></view>
  160. </view>
  161. </view>
  162. </view>
  163. </template>
  164. <script>
  165. import countdownTimer from '@/components/countdown-timer/countdown-timer';
  166. export default {
  167. data(){
  168. return {
  169. type: 'default' ,// point积分订单详情, default默认普通商品订单详情
  170. time: new Date('2021/09/8 14:15:00').getTime() - new Date('2021/09/8 14:10:00').getTime()
  171. }
  172. },
  173. components: {
  174. countdownTimer
  175. },
  176. onLoad(options){
  177. this.type = options.type || this.type;
  178. },
  179. methods: {
  180. dateFinish(){
  181. console.log("倒计时结束");
  182. },
  183. }
  184. }
  185. </script>
  186. <style>
  187. page{
  188. background-color: #F8F8F8;
  189. }
  190. </style>
  191. <style lang="scss" scoped="scoped">
  192. .tips-waitconfirm {
  193. width: 100%;
  194. height: 113rpx;
  195. background: #15716E;
  196. display: flex;
  197. justify-content: space-between;
  198. padding: 0 32rpx;
  199. align-items: center;
  200. }
  201. .waitconfirm-tag {
  202. width: 136rpx;
  203. height: 53rpx;
  204. border-radius: 27rpx;
  205. border: 2rpx solid #FFFFFF;
  206. font-size: 24rpx;
  207. color: white;
  208. display: flex;
  209. justify-content: center;
  210. align-items: center;
  211. }
  212. .btn-cancel {
  213. width: 220rpx;
  214. height: 90rpx;
  215. border-radius: 45rpx;
  216. border: 2rpx solid #999999;
  217. color: #777;
  218. font-size: 28rpx;
  219. display: flex;
  220. justify-content: center;
  221. align-items: center;
  222. }
  223. .btn-confirm {
  224. width: 220rpx;
  225. height: 90rpx;
  226. border-radius: 45rpx;
  227. background-color: #15716E;
  228. color: #fff;
  229. font-size: 28rpx;
  230. display: flex;
  231. justify-content: center;
  232. align-items: center;
  233. }
  234. .btn-atonce {
  235. width: 220rpx;
  236. height: 90rpx;
  237. border-radius: 45rpx;
  238. background-color: #F63434;
  239. color: #fff;
  240. font-size: 28rpx;
  241. display: flex;
  242. justify-content: center;
  243. align-items: center;
  244. }
  245. .order-btn {
  246. width: 100%;
  247. height: 120rpx;
  248. background: #FFFFFF;
  249. display: flex;
  250. justify-content: space-between;
  251. padding: 0 32rpx;
  252. position: fixed;
  253. bottom: 0;
  254. }
  255. .tips {
  256. display: flex;
  257. background-color: #F63434;
  258. height: 64rpx;
  259. width: 100%;
  260. justify-content: center;
  261. align-items: center;
  262. }
  263. .card{
  264. height: max-content;
  265. width: 750rpx;
  266. padding: 30rpx 32rpx;
  267. background-color: #FFFFFF;
  268. &:nth-child(n+2){
  269. margin-top: 20rpx;
  270. }
  271. }
  272. .goods{
  273. .shop-name{
  274. font-size: 28rpx;
  275. color: #222222;
  276. font-weight: bold;
  277. margin: 0 15rpx;
  278. }
  279. .goods-img{
  280. width: 130rpx;
  281. height: 130rpx;
  282. border-radius: 4rpx;
  283. margin-right: 15rpx;
  284. background-color: #EEEEEE;
  285. }
  286. .info{
  287. width: 540rpx;
  288. height: 130rpx;
  289. display: flex;
  290. flex-direction: column;
  291. justify-content: space-around;
  292. .price{
  293. font-size: 32rpx;
  294. color: #F63434;
  295. font-weight: bold;
  296. }
  297. }
  298. .order-num{
  299. font-size: 24rpx;
  300. color: #999999;
  301. display: flex;
  302. justify-content: space-between;
  303. margin-top: 28rpx;
  304. }
  305. }
  306. </style>