template1.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <script>
  2. import countDown from '@/components/countDown';
  3. export default {
  4. components: { countDown },
  5. inject: ['intoPage', 'goMenuPage', 'getMenuData'],
  6. props: {
  7. orderMenu: {
  8. type: Array,
  9. default: () => []
  10. },
  11. notPayOrder: {
  12. type: Object,
  13. default: () => {}
  14. }
  15. },
  16. methods: {
  17. goUserSpread() {
  18. uni.navigateTo({
  19. url: '/pages/users/user_spread_user/index'
  20. });
  21. }
  22. }
  23. };
  24. </script>
  25. <template>
  26. <view class="">
  27. <view class="pr-24 pl-24 bg--w111-fff rd-16rpx mt-20 ml-20 mr-20">
  28. <view class="acea-row row-middle row-between section-header">
  29. <view>订单中心</view>
  30. <view class="arrow" @click="intoPage('/pages/goods/order_list/index')">
  31. 查看全部
  32. <text class="iconfont icon-ic_rightarrow"></text>
  33. </view>
  34. </view>
  35. <view class="acea-row section-content">
  36. <view v-for="item in orderMenu" class="item" @click="intoPage(item.url)">
  37. <view class="icon"><text :class="item.icon" class="iconfont"></text></view>
  38. <view class="">{{ item.title }}</view>
  39. <uni-badge class="uni-badge-left-margin" v-if="item.num > 0" :text="item.num"></uni-badge>
  40. </view>
  41. <view class="w-full h-120 rd-16rpx bg--w111-f5f5f5 mt-32 p-10 flex-between-center" v-if="notPayOrder" @click="intoPage('/pages/goods/order_list/index?status=0')">
  42. <view class="flex-y-center">
  43. <image :src="notPayOrder.img" class="w-100 h-100 rd-12rpx"></image>
  44. <view class="ml-16">
  45. <view class="fs-24 lh-34rpx text--w111-333 fw-500">等待付款</view>
  46. <view class="fs-22 lh-30rpx text--w111-333 mt-12 flex-y-center">
  47. 还剩
  48. <!-- <text class="text-primary-con SemiBold">23:57:16</text> -->
  49. <countDown
  50. :is-day="false"
  51. tip-text=" "
  52. day-text=" "
  53. hour-text=":"
  54. minute-text=":"
  55. second-text=" "
  56. :datatime="notPayOrder.stop_time"
  57. bgColor="#F5F5F5"
  58. colors="var(--view-theme)"
  59. dotColor="var(--view-theme)"
  60. @endTime="getMenuData"
  61. ></countDown>
  62. 订单自动关闭
  63. </view>
  64. </view>
  65. </view>
  66. <view class="w-136 h-56 rd-30rpx flex-center fs-24 fw-500 text-primary-con con_border mr-14">去支付</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <style lang="scss" scoped>
  73. .section-content {
  74. padding: 48rpx 0 36rpx;
  75. .item {
  76. position: relative;
  77. flex: 1;
  78. text-align: center;
  79. font-size: 26rpx;
  80. line-height: 36rpx;
  81. color: #333333;
  82. .uni-badge-left-margin {
  83. position: absolute;
  84. top: -20rpx;
  85. right: 26rpx;
  86. /deep/ .uni-badge--error {
  87. background-color: var(--view-theme) !important;
  88. }
  89. .uni-badge {
  90. color: var(--view-theme);
  91. border: 1px solid var(--view-theme);
  92. z-index: 29;
  93. }
  94. }
  95. }
  96. .icon {
  97. margin-bottom: 18rpx;
  98. }
  99. .iconfont {
  100. font-size: 48rpx;
  101. }
  102. .con_border {
  103. color: var(--view-theme);
  104. border: 1px solid var(--view-theme);
  105. }
  106. }
  107. .section-header {
  108. padding: 32rpx 6rpx 0;
  109. font-weight: 500;
  110. font-size: 30rpx;
  111. line-height: 42rpx;
  112. color: #333333;
  113. .arrow {
  114. font-weight: 400;
  115. font-size: 26rpx;
  116. line-height: 36rpx;
  117. color: #999999;
  118. }
  119. .iconfont {
  120. font-size: 24rpx;
  121. }
  122. }
  123. .top {
  124. position: relative;
  125. height: 84rpx;
  126. display: flex;
  127. justify-content: space-between;
  128. &::after {
  129. content: '';
  130. position: absolute;
  131. right: 8rpx;
  132. bottom: 0;
  133. left: 8rpx;
  134. height: 1rpx;
  135. background-color: #eeeeee;
  136. }
  137. .item {
  138. // flex: 1;
  139. padding: 0 8rpx;
  140. font-size: 26rpx;
  141. color: #999999;
  142. }
  143. .value {
  144. margin-left: 8rpx;
  145. font-size: 28rpx;
  146. color: #333333;
  147. }
  148. }
  149. </style>