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

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