兼兼街公众号代码
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.

158 lines
3.2 KiB

  1. <template>
  2. <view class="active-card">
  3. <view class="active-title">{{item.title}}</view>
  4. <view class="active-time flex align-center">
  5. <text>商品{{item.shopName}}</text>
  6. </view>
  7. <view class="active-add flex align-center">
  8. <text>地址{{item.addressText}}</text>
  9. </view>
  10. <view class="active-add flex align-center">
  11. <text>价格{{item.price}}</text>
  12. </view>
  13. <view class="active-add flex align-center">
  14. <text>数量{{item.num}}</text>
  15. </view>
  16. <view class="active-add flex align-center" v-if="item.type == 1">
  17. <text>类型微信订单</text>
  18. </view>
  19. <view class="active-add flex align-center" v-else>
  20. <text>类型积分订单</text>
  21. </view>
  22. <view class="active-time2 flex align-center">
  23. <text>下单时间{{item.createTime}}</text>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default{
  29. props:{
  30. text:{
  31. type:String,
  32. default:'查看详情'
  33. },
  34. item:{
  35. type:Object,
  36. },
  37. i:{
  38. type:Number,
  39. }
  40. },
  41. data(){
  42. return{
  43. }
  44. },
  45. methods:{
  46. seeDetail(){
  47. this.$emit('seeDetail',this.item)
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .active-card {
  54. background: #ffffff;
  55. border-radius: 12rpx;
  56. box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16);
  57. overflow: hidden;
  58. padding-bottom: 10rpx;
  59. margin-bottom: 20rpx;
  60. .active-title {
  61. word-wrap:break-word;
  62. word-break:break-all;
  63. font-size: 32rpx;
  64. color: #000;
  65. font-weight: 700;
  66. margin-top: 20rpx;
  67. line-height: 60rpx;
  68. white-space: nowrap;
  69. overflow: hidden;
  70. text-overflow: ellipsis;
  71. }
  72. .active-time {
  73. word-wrap:break-word;
  74. word-break:break-all;
  75. color: #707070;
  76. font-size: 28rpx;
  77. margin: 20rpx 0;
  78. image {
  79. width: 33rpx;
  80. height: 33rpx;
  81. margin-right: 27rpx;
  82. }
  83. /* 文本不会换行显示 */
  84. white-space: nowrap;
  85. /* 超出盒子部分隐藏 */
  86. overflow: hidden;
  87. /* 文本超出的部分打点显示 */
  88. text-overflow: ellipsis;
  89. }
  90. .active-add {
  91. color: #707070;
  92. font-size: 28rpx;
  93. word-wrap:break-word;
  94. word-break:break-all;
  95. /* 文本不会换行显示 */
  96. white-space: nowrap;
  97. /* 超出盒子部分隐藏 */
  98. overflow: hidden;
  99. /* 文本超出的部分打点显示 */
  100. text-overflow: ellipsis;
  101. // overflow: hidden;/*这个参数根据需求来决定要不要*/
  102. image {
  103. width: 30rpx;
  104. height: 35rpx;
  105. margin-right: 27rpx;
  106. }
  107. }
  108. .active-time2 {
  109. color: #707070;
  110. font-size: 28rpx;
  111. margin: 20rpx 0;
  112. image {
  113. width: 33rpx;
  114. height: 33rpx;
  115. margin-right: 27rpx;
  116. }
  117. }
  118. .active-menu {
  119. margin-top: 21rpx;
  120. padding: 0 10rpx;
  121. .menu-price {
  122. font-size: 32rpx;
  123. .price {
  124. color: #D33D3E;
  125. font-size: 34rpx;
  126. font-weight: 500;
  127. }
  128. }
  129. .menu-btn {
  130. width: 213rpx;
  131. height: 79rpx;
  132. display: flex;
  133. align-items: center;
  134. justify-content: center;
  135. color: #00CCCC;
  136. font-size: 30rpx;
  137. font-weight: 500;
  138. }
  139. .menu-btn::after {
  140. content: " ";
  141. width: 15rpx;
  142. height: 15rpx;
  143. border-bottom: 3rpx solid #00CCCC;
  144. border-right: 3rpx solid #00CCCC;
  145. transform: rotate(-45deg);
  146. margin-left: 8rpx;
  147. }
  148. }
  149. }
  150. </style>