公众号项目
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.

197 lines
3.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="active-card">
  3. <view class="order-status" v-if="item.orderStatus == '0'">未付款</view>
  4. <view class="order-status" v-if="item.orderStatus == '1'">已付款</view>
  5. <view class="order-status" v-if="item.orderStatus == '2'">已完成</view>
  6. <view class="order-status" v-if="item.orderStatus == '3'">退款中</view>
  7. <view class="order-status" v-if="item.orderStatus == '4'">已退款</view>
  8. <view class="active-title">
  9. <text class="font-32">订单编号{{item.orderCode}}</text>
  10. </view>
  11. <view class="active-time flex align-center">
  12. <text>下单时间{{item.createTime}}</text>
  13. </view>
  14. <view class="active-title">
  15. <text>订购项目{{item.subItems}}</text>
  16. </view>
  17. <view class="active-time2 flex align-center">
  18. <text>订单金额¥{{item.totalPrice}}</text>
  19. </view>
  20. <view class="footer">
  21. <view @click="toShouhou" class="order-botton gray">售后退款</view>
  22. <view @click="seeDetail" class="order-botton red">订单详情</view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default{
  28. props:{
  29. text:{
  30. type:String,
  31. default:'查看详情'
  32. },
  33. item:{
  34. type:Object,
  35. },
  36. i:{
  37. type:Number,
  38. }
  39. },
  40. data(){
  41. return{
  42. }
  43. },
  44. methods:{
  45. seeDetail() {
  46. this.$emit('seeDetail',this.item)
  47. },
  48. toShouhou() {
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .active-card {
  55. background: #ffffff;
  56. border-radius: 12rpx;
  57. box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16);
  58. overflow: hidden;
  59. padding: 10rpx;
  60. margin-bottom: 20rpx;
  61. position: relative;
  62. .order-status{
  63. position: absolute;
  64. right: 18rpx;
  65. top: 50rpx;
  66. font-size: 24rpx;
  67. color: red;
  68. }
  69. .order-botton {
  70. font-size: 24rpx;
  71. color: red;
  72. padding: 10rpx;
  73. width: 100rpx;
  74. line-height: 40rpx;
  75. border-radius: 30rpx;
  76. text-align: center;
  77. margin-left: 10rpx;
  78. float: right;
  79. border: 1rpx solid #ccc;
  80. }
  81. .active-title {
  82. word-wrap:break-word;
  83. word-break:break-all;
  84. font-size: 28rpx;
  85. color: #000;
  86. font-weight: 700;
  87. margin-top: 20rpx;
  88. line-height: 60rpx;
  89. white-space: nowrap;
  90. overflow: hidden;
  91. text-overflow: ellipsis;
  92. }
  93. .active-time {
  94. word-wrap:break-word;
  95. word-break:break-all;
  96. color: #707070;
  97. font-size: 28rpx;
  98. margin: 20rpx 0;
  99. image {
  100. width: 33rpx;
  101. height: 33rpx;
  102. margin-right: 27rpx;
  103. }
  104. /* 文本不会换行显示 */
  105. white-space: nowrap;
  106. /* 超出盒子部分隐藏 */
  107. overflow: hidden;
  108. /* 文本超出的部分打点显示 */
  109. text-overflow: ellipsis;
  110. }
  111. .active-add {
  112. color: #707070;
  113. font-size: 28rpx;
  114. word-wrap:break-word;
  115. word-break:break-all;
  116. /* 文本不会换行显示 */
  117. white-space: nowrap;
  118. /* 超出盒子部分隐藏 */
  119. overflow: hidden;
  120. /* 文本超出的部分打点显示 */
  121. text-overflow: ellipsis;
  122. // overflow: hidden;/*这个参数根据需求来决定要不要*/
  123. image {
  124. width: 30rpx;
  125. height: 35rpx;
  126. margin-right: 27rpx;
  127. }
  128. }
  129. .active-time2 {
  130. color: #707070;
  131. font-size: 28rpx;
  132. margin: 20rpx 0;
  133. image {
  134. width: 33rpx;
  135. height: 33rpx;
  136. margin-right: 27rpx;
  137. }
  138. }
  139. .active-menu {
  140. margin-top: 21rpx;
  141. padding: 0 10rpx;
  142. .menu-price {
  143. font-size: 32rpx;
  144. .price {
  145. color: #D33D3E;
  146. font-size: 34rpx;
  147. font-weight: 500;
  148. }
  149. }
  150. .menu-btn {
  151. width: 213rpx;
  152. height: 79rpx;
  153. display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. color: #00CCCC;
  157. font-size: 30rpx;
  158. font-weight: 500;
  159. }
  160. .menu-btn::after {
  161. content: " ";
  162. width: 15rpx;
  163. height: 15rpx;
  164. border-bottom: 3rpx solid #00CCCC;
  165. border-right: 3rpx solid #00CCCC;
  166. transform: rotate(-45deg);
  167. margin-left: 8rpx;
  168. }
  169. }
  170. }
  171. .red {
  172. border-color: red !important;
  173. color: red !important;
  174. }
  175. .gray {
  176. border-color: #999 !important;
  177. color: #888 !important;
  178. }
  179. </style>