order-list.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. @import "../../../../themes/page.scss";
  2. @import "../../searc-list.scss";
  3. /* module/diet/pages/diet-info/diet-info.wxss */
  4. .diet-box {
  5. background: #fff;
  6. border-radius: 12px;
  7. margin-top: -30px;
  8. }
  9. .delivery-address {
  10. font-weight: bold;
  11. color: black;
  12. font-size: 28rpx;
  13. }
  14. /* order-list.wxss */
  15. .tab-container {
  16. display: flex;
  17. justify-content: space-around;
  18. background-color: #f8f8f8;
  19. padding: 10px 0;
  20. }
  21. .tab {
  22. flex: 1;
  23. text-align: center;
  24. padding: 10px;
  25. cursor: pointer;
  26. }
  27. .tab:hover {
  28. background-color: #e0e0e0;
  29. }
  30. .tab.active {
  31. font-weight: bold;
  32. border-bottom: 2px solid #007aff;
  33. /* 选中状态的下划线 */
  34. }
  35. .order-address {
  36. color: #333;
  37. }
  38. .change-address {
  39. color: #1aad19;
  40. margin-left: 8rpx;
  41. font-size: 24rpx;
  42. }
  43. /* miniprogram/module/article/pages/order-list/order-list.wxss */
  44. .page-scroll__container {
  45. padding: 16rpx;
  46. background: #f7f8fa;
  47. }
  48. .order-card {
  49. background: #fff;
  50. border-radius: 20rpx;
  51. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
  52. margin-bottom: 24rpx;
  53. padding: 24rpx;
  54. }
  55. .order-header {
  56. display: flex;
  57. justify-content: space-between;
  58. align-items: center;
  59. font-size: 28rpx;
  60. margin-bottom: 24rpx;
  61. }
  62. .order-status {
  63. font-weight: bold;
  64. }
  65. .order-status.status-pending {
  66. color: #D54941;
  67. }
  68. .order-status.status-received {
  69. color: #1D6FF6;
  70. }
  71. .order-status.status-completed {
  72. color: #2BA471;
  73. }
  74. .order-status.status-closed {
  75. color: #909399;
  76. }
  77. .order-user {
  78. color: #888;
  79. font-size: 24rpx;
  80. margin-bottom: 24rpx;
  81. display: flex;
  82. flex-direction: column;
  83. gap: 4rpx;
  84. background-color: #F6F6F6;
  85. padding: 10px;
  86. border-radius: 8px;
  87. }
  88. .order-body {
  89. display: flex;
  90. align-items: flex-start;
  91. margin-bottom: 16rpx;
  92. }
  93. .order-img {
  94. width: 120rpx;
  95. height: 120rpx;
  96. border-radius: 12rpx;
  97. margin-right: 20rpx;
  98. }
  99. .order-info {
  100. display: flex;
  101. flex-direction: column;
  102. justify-content: space-between;
  103. height: 120rpx;
  104. }
  105. .order-title {
  106. font-size: 28rpx;
  107. font-weight: 600;
  108. margin-bottom: 8rpx;
  109. }
  110. .order-doctor,
  111. .order-time {
  112. font-size: 24rpx;
  113. color: #888;
  114. }
  115. .order-footer {
  116. display: flex;
  117. flex-direction: column;
  118. justify-content: space-between;
  119. align-items: flex-end;
  120. }
  121. .order-price {
  122. display: flex;
  123. margin-bottom: 16px;
  124. }
  125. .order-amount {
  126. color: #D54941;
  127. font-weight: bold;
  128. font-size: 32rpx;
  129. margin-left: 8rpx;
  130. }
  131. .order-actions {
  132. display: flex;
  133. gap: 20rpx;
  134. transition: none !important;
  135. }
  136. .order-actions .t-button {
  137. margin: 0 !important;
  138. min-width: 120rpx !important;
  139. width: 120rpx !important;
  140. }
  141. // 为立即支付按钮设置固定宽度,防止loading状态时宽度变化
  142. .order-actions .t-button[data-id] {
  143. min-width: 120rpx !important;
  144. width: 120rpx !important;
  145. }
  146. // 节流状态下的按钮样式
  147. .order-actions .t-button[disabled] {
  148. opacity: 1 !important;
  149. cursor: not-allowed !important;
  150. background-color: #f5f5f5 !important;
  151. border-color: #e5e5e5 !important;
  152. color: #c0c0c0 !important;
  153. }
  154. // 针对 t-design 按钮的自定义样式
  155. .outline-btn {
  156. background: #fff !important;
  157. border: 1px solid #1890ff !important; // 主色边框
  158. color: #1890ff !important; // 主色文字
  159. box-shadow: none !important;
  160. border-radius: 30rpx !important;
  161. transition: none !important;
  162. // margin-right: 20rpx !important;
  163. }
  164. // 让按钮内的 loading 和文字显式为品牌蓝
  165. .outline-btn .t-loading__spinner,
  166. .outline-btn .t-loading__text {
  167. color: #1890ff !important;
  168. }
  169. .outline-btn .t-loading__spinner .t-loading__dot::before,
  170. .outline-btn .t-loading__spinner--dots .t-loading__dot,
  171. .outline-btn .t-loading__circular {
  172. color: #1890ff !important;
  173. background-color: #1890ff !important;
  174. }
  175. .outline-btn.cancel {
  176. border-color: #ccc !important;
  177. color: black !important;
  178. margin-right: 20rpx;
  179. transition: none !important;
  180. }
  181. .contact {
  182. font-size: 28rpx;
  183. color: black;
  184. margin-bottom: 10rpx;
  185. font-weight: bold;
  186. display: flex
  187. }
  188. .line {
  189. width: 100%;
  190. height: 1px;
  191. background-color: #eee;
  192. margin: 24rpx 0;
  193. }
  194. .name {
  195. margin-right: 20rpx;
  196. }