order-list.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. }
  197. /* 服务包列表样式 */
  198. .service-packages {
  199. margin-bottom: 24rpx;
  200. }
  201. .service-package-item {
  202. display: flex;
  203. align-items: flex-start;
  204. margin-bottom: 20rpx;
  205. padding-bottom: 20rpx;
  206. &:not(:last-child) {
  207. // border-bottom: 1px solid #f0f0f0;
  208. }
  209. &:last-child {
  210. margin-bottom: 0;
  211. padding-bottom: 0;
  212. }
  213. }
  214. .service-package-img {
  215. width: 120rpx;
  216. height: 120rpx;
  217. border-radius: 8rpx;
  218. margin-right: 20rpx;
  219. flex-shrink: 0;
  220. background-color: #f5f5f5;
  221. }
  222. .service-package-placeholder {
  223. width: 120rpx;
  224. height: 120rpx;
  225. border-radius: 8rpx;
  226. margin-right: 20rpx;
  227. background-color: #f5f5f5;
  228. border: 1px solid #e8e8e8;
  229. display: flex;
  230. align-items: center;
  231. justify-content: center;
  232. flex-shrink: 0;
  233. }
  234. .servicepag-des{
  235. display: flex;
  236. align-items: center;
  237. justify-content: space-between;
  238. }
  239. .placeholder-icon {
  240. font-size: 40rpx;
  241. opacity: 0.3;
  242. }
  243. .service-package-info {
  244. flex: 1;
  245. display: flex;
  246. flex-direction: column;
  247. justify-content: flex-start;
  248. min-height: 120rpx;
  249. }
  250. .service-package-header {
  251. display: flex;
  252. justify-content: space-between;
  253. align-items: flex-start;
  254. margin-bottom: 15rpx;
  255. width: 100%;
  256. }
  257. .service-package-name {
  258. font-size: 28rpx;
  259. font-weight: 500;
  260. color: #333;
  261. line-height: 1.4;
  262. flex: 1;
  263. }
  264. .service-package-price {
  265. font-size: 28rpx;
  266. color: #333;
  267. font-weight: 500;
  268. margin-left: 16rpx;
  269. white-space: nowrap;
  270. }
  271. .service-package-detail {
  272. font-size: 24rpx;
  273. color: #666;
  274. margin-bottom: 8rpx;
  275. line-height: 1.5;
  276. }
  277. .service-package-quantity {
  278. font-size: 24rpx;
  279. color: #666;
  280. text-align: right;
  281. line-height: 1.5;
  282. }
  283. /* 展开/收起按钮 */
  284. .expand-toggle {
  285. display: flex;
  286. align-items: center;
  287. justify-content: center;
  288. padding: 16rpx 0;
  289. color: #1890ff;
  290. font-size: 26rpx;
  291. cursor: pointer;
  292. user-select: none;
  293. }
  294. .expand-text {
  295. margin-right: 8rpx;
  296. }
  297. .expand-icon {
  298. font-size: 20rpx;
  299. transition: transform 0.3s ease;
  300. transform: rotate(0deg);
  301. &.expanded {
  302. transform: rotate(180deg);
  303. }
  304. }