index.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. %state {
  2. width: 100%;
  3. height: 80rpx;
  4. font-size: 24rpx;
  5. @include flex(flex-start, null, 9rpx);
  6. padding-left: 32rpx;
  7. box-sizing: border-box;
  8. image {
  9. width: 30rpx;
  10. height: 30rpx;
  11. }
  12. }
  13. %info {
  14. width: 100%;
  15. padding: 32rpx;
  16. box-sizing: border-box;
  17. .info-title {
  18. font-size: 32rpx;
  19. color: rgba(0, 0, 0, 0.9);
  20. font-weight: 700;
  21. margin-bottom: 16rpx;
  22. }
  23. .info-detail {
  24. width: 100%;
  25. padding: 32rpx;
  26. box-sizing: border-box;
  27. border-radius: 16rpx;
  28. background-color: #ffffff;
  29. @include flex(center, column, 16rpx);
  30. .info-box {
  31. width: 100%;
  32. @include flex(flex-start, null, 32rpx);
  33. text {
  34. font-size: 28rpx;
  35. &:nth-of-type(1) {
  36. width: 176rpx;
  37. text-align: start;
  38. color: rgba(0, 0, 0, 0.4);
  39. }
  40. &:nth-of-type(2) {
  41. color: #000000;
  42. }
  43. }
  44. }
  45. }
  46. }
  47. .order-detail {
  48. width: 100vw;
  49. min-height: 100vh;
  50. background-color: rgb(247, 247, 247);
  51. .detail-state {
  52. .state-error {
  53. @extend %state;
  54. background-color: #ffd2d2;
  55. color: #d40f0f;
  56. }
  57. .state-success {
  58. @extend %state;
  59. background-color: #c2efce;
  60. color: #0e852e;
  61. }
  62. .state-complete {
  63. @extend %state;
  64. background-color: #e0e0e0;
  65. color: rgba(0, 0, 0, 0.6);
  66. }
  67. }
  68. .product-detail {
  69. width: 100%;
  70. padding: 32rpx;
  71. box-sizing: border-box;
  72. background-color: #ffffff;
  73. .product-list {
  74. .product-item {
  75. @include flex(space-between, null, 32rpx);
  76. .item-left {
  77. width: 160rpx;
  78. height: 160rpx;
  79. border-radius: 8rpx;
  80. border: 2rpx solid #e7e7e7;
  81. image {
  82. width: 160rpx;
  83. height: 160rpx;
  84. border-radius: 8rpx;
  85. }
  86. }
  87. .item-right {
  88. flex: 1;
  89. height: 160rpx;
  90. @include flex(space-between, column);
  91. .right-title {
  92. width: 100%;
  93. height: 80rpx;
  94. font-size: 28rpx;
  95. color: #000000;
  96. font-weight: 600;
  97. // 多行文本溢出
  98. display: -webkit-box;
  99. -webkit-box-orient: vertical;
  100. -webkit-line-clamp: 2; /* 控制显示的行数 */
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. }
  104. .right-bottom {
  105. width: 100%;
  106. @include flex(space-between);
  107. color: #3d3d3d;
  108. font-size: 28rpx;
  109. .number {
  110. width: 130rpx;
  111. height: 48rpx;
  112. line-height: 48rpx;
  113. text-align: center;
  114. border-radius: 4rpx;
  115. background-color: #f4f4f4;
  116. }
  117. }
  118. }
  119. }
  120. }
  121. .load-more{
  122. margin-top: 34rpx;
  123. width: 100%;
  124. height: 40rpx;
  125. @include flex(center,null,8rpx);
  126. text{
  127. color: #EF530E;
  128. font-size: 24rpx;
  129. }
  130. }
  131. }
  132. .order-info {
  133. @extend %info;
  134. }
  135. .pay-info {
  136. @extend %info;
  137. .info-detail {
  138. .price {
  139. text {
  140. &:nth-of-type(2) {
  141. color: $primary-color;
  142. font-weight: 600;
  143. }
  144. }
  145. }
  146. }
  147. }
  148. .write-off {
  149. width: 100%;
  150. position: fixed;
  151. left: 0;
  152. bottom: 0;
  153. padding: 16rpx 32rpx;
  154. box-sizing: border-box;
  155. background-color: #FFFFFF;
  156. padding-bottom: calc(constant(safe-area-inset-bottom) + 12rpx); //兼容 IOS<11.2
  157. padding-bottom: calc(env(safe-area-inset-bottom) + 12rpx); //兼容 IOS>11.2
  158. .off-btn{
  159. width: 100%;
  160. background-color: $primary-color;
  161. font-size: 28rpx;
  162. height: 80rpx;
  163. text-align: center;
  164. line-height: 80rpx;
  165. color: #FFFFFF;
  166. font-weight: 600;
  167. border-radius: 16rpx;
  168. }
  169. }
  170. }