global.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. .content {
  2. :deep(.uni-card) {
  3. margin: 20upx !important;
  4. background-color: red;
  5. }
  6. .content_background {
  7. background: linear-gradient(180deg, #f7f8f900 0%, #f7f8f9ff 50%);
  8. }
  9. }
  10. /* ==================
  11. 通知
  12. ================== */
  13. .uni-noticebar {
  14. border-radius: 16upx;
  15. padding: 8upx 12upx !important;
  16. .notice_icon {
  17. width: 64upx;
  18. height: 64upx;
  19. border-radius: 16upx;
  20. margin-right: 20upx;
  21. }
  22. }
  23. /* ==================
  24. 导航
  25. ================== */
  26. .navigation_wrap {
  27. padding: 40upx 20upx 20upx;
  28. margin-bottom: 10px;
  29. background: #fff;
  30. position: sticky;
  31. top: 0px;
  32. z-index: 1;
  33. box-shadow: rgba(26, 26, 26, 0.1) 0px 0px 0.625rem 0px;
  34. .uni-scroll-view-content {
  35. display: flex;
  36. width: fit-content;
  37. min-width: 100%;
  38. uni-view {
  39. .tab_title {
  40. padding: 0 24upx;
  41. width: max-content;
  42. font-size: 26upx;
  43. font-weight: 400;
  44. color: #666666;
  45. line-height: 33upx;
  46. margin-bottom: 8upx;
  47. }
  48. .tab_line {
  49. width: 40upx;
  50. height: 4upx;
  51. border-radius: 2upx;
  52. margin: 0 auto;
  53. }
  54. &.active {
  55. .tab_title {
  56. font-weight: bold;
  57. color: #000000;
  58. }
  59. .tab_line {
  60. background: #07d69e;
  61. }
  62. }
  63. }
  64. }
  65. }
  66. /* ==================
  67. 卡片
  68. ================== */
  69. .card {
  70. width: 710upx;
  71. background: #ffffff;
  72. border-radius: 16upx;
  73. margin: 10upx 20upx 10upx;
  74. // box-shadow: 0px 5px 5px 0px rgba(130, 130, 130, 0.1);
  75. box-shadow: 5upx 5upx 10upx 0upx rgba(26, 26, 26, 0.1);
  76. }
  77. /* ==================
  78. 项目列表
  79. ================== */
  80. .service_wrap {
  81. margin: 0 20upx 20upx;
  82. padding: 30upx 20upx;
  83. display: flex;
  84. .service_thumbnail {
  85. width: 250upx !important;
  86. height: 250upx !important;
  87. border-radius: 8upx;
  88. margin-right: 30upx;
  89. }
  90. .service_title {
  91. font-size: 32upx;
  92. font-weight: bold;
  93. color: #333333;
  94. display: flex;
  95. justify-content: space-between;
  96. align-items: center;
  97. .service_title_extra {
  98. font-size: 24upx;
  99. font-weight: 400;
  100. color: #ff490e;
  101. &.cannel_color {
  102. color: #999;
  103. }
  104. &.success_color {
  105. color: #07d69e;
  106. }
  107. &.warning_color {
  108. color: #F37B1D;
  109. }
  110. }
  111. }
  112. .service_detail {
  113. height: 70upx;
  114. margin: 26upx 0 0;
  115. font-size: 26upx;
  116. font-weight: 400;
  117. color: #999999;
  118. display: -webkit-box;
  119. overflow: hidden;
  120. text-overflow: ellipsis;
  121. word-wrap: break-word;
  122. white-space: normal !important;
  123. -webkit-line-clamp: 2;
  124. -webkit-box-orient: vertical;
  125. }
  126. .service_extra {
  127. margin: 16upx 0;
  128. display: flex;
  129. align-items: center;
  130. .service_extra_image {
  131. width: 30upx;
  132. height: 30upx;
  133. margin-right: 5upx;
  134. }
  135. .service_extra_text {
  136. width: 114upx;
  137. font-size: 26upx;
  138. font-weight: 400;
  139. color: #07d69e;
  140. display: -webkit-box;
  141. overflow: hidden;
  142. text-overflow: ellipsis;
  143. overflow-wrap: break-word;
  144. white-space: normal !important;
  145. -webkit-line-clamp: 1;
  146. -webkit-box-orient: vertical;
  147. }
  148. .service_extra_order {
  149. font-size: 26upx;
  150. font-weight: 400;
  151. color: #999999;
  152. .service_extra_order_num {
  153. font-size: 24upx;
  154. padding: 0 2upx;
  155. }
  156. }
  157. .service_extra_price {
  158. font-size: 42upx;
  159. font-weight: 400;
  160. color: #ff490e;
  161. .service_extra_price_prefix {
  162. font-size: 24upx;
  163. }
  164. }
  165. }
  166. .service_tag {
  167. .uni-tag {
  168. border: 0;
  169. background-color: #D2F1F0 !important;
  170. color: #1CBBB4 !important;
  171. margin-right: 20upx;
  172. &:nth-child(3n+2) {
  173. background-color: #FADBD9 !important;
  174. color: #E54D42 !important;
  175. }
  176. &:nth-child(3n) {
  177. background-color: #FDE6D2 !important;
  178. color: #F37B1D !important;
  179. }
  180. }
  181. }
  182. .service_footer {
  183. display: flex;
  184. justify-content: space-between;
  185. align-items: center;
  186. .service_footer_price {
  187. font-size: 42upx;
  188. font-weight: 400;
  189. color: #ff490e;
  190. .service_footer_price_prefix {
  191. font-size: 24upx;
  192. }
  193. }
  194. }
  195. }
  196. /* ==================
  197. 按键
  198. ================== */
  199. .submit_btn,
  200. .cancel_btn,
  201. .disabled_btn,
  202. .busy_btn {
  203. width: 180upx;
  204. height: 56upx;
  205. background: linear-gradient(88deg, #37ecba 0%, #72afd3 100%);
  206. border-radius: 28upx;
  207. padding: 4upx 0 0;
  208. display: flex;
  209. align-items: center;
  210. justify-content: center;
  211. color: white !important;
  212. font-size: 28upx;
  213. margin: 0 6upx;
  214. box-shadow: 0 0 0.625rem 0 rgba(26, 26, 26, 0.1);
  215. &::after {
  216. border: 0;
  217. }
  218. }
  219. .cancel_btn {
  220. background: white;
  221. color: #666 !important;
  222. border: 1upx solid #999;
  223. }
  224. .disabled_btn {
  225. background: #ccc !important;
  226. }
  227. .busy_btn {
  228. background: #f49191
  229. }
  230. /* ==================
  231. 头像
  232. ==================== */
  233. .avatar {
  234. font-variant: small-caps;
  235. margin: 0;
  236. padding: 0;
  237. display: inline-flex;
  238. text-align: center;
  239. justify-content: center;
  240. align-items: center;
  241. color: #ffffff;
  242. white-space: nowrap;
  243. position: relative;
  244. width: 64upx;
  245. height: 64upx;
  246. background-size: cover;
  247. background-position: center;
  248. vertical-align: middle;
  249. font-size: 1.5em;
  250. .big {
  251. width: 240upx;
  252. height: 240upx;
  253. font-size: 2.5em;
  254. }
  255. }
  256. /* ==================
  257. 表单
  258. ================== */
  259. .uni-form {
  260. .uni-form-item {
  261. display: flex;
  262. justify-content: space-between;
  263. align-items: center;
  264. margin: 0 20upx;
  265. min-height: 90upx;
  266. border-bottom: 1upx solid #EEEEEE;
  267. padding-right: 20upx;
  268. &:last-child {
  269. border-bottom: 0;
  270. }
  271. .title {
  272. font-size: 26upx;
  273. font-weight: 400;
  274. color: #333333;
  275. display: flex;
  276. align-items: center;
  277. .form_item_icon {
  278. width: 40upx;
  279. height: 40upx;
  280. margin-right: 10upx;
  281. }
  282. }
  283. .uni-input {
  284. text-align: right;
  285. font-size: 26upx;
  286. width: 480upx;
  287. }
  288. .form_item_btn_icon {
  289. width: 28upx;
  290. height: 28upx;
  291. margin: 0 6upx 0 69upx;
  292. }
  293. }
  294. }
  295. /* ==================
  296. 底部按钮
  297. ================== */
  298. .footer_btn_wrap {
  299. width: 750upx;
  300. // height: 140upx;
  301. background: #ffffff;
  302. z-index: 9;
  303. position: sticky;
  304. bottom: 0;
  305. box-shadow: 5upx -5upx 10upx 0upx rgba(26, 26, 26, 0.1);
  306. padding: 20upx 0;
  307. /* 兼容 iOS 设备 */
  308. padding-bottom: calc(20upx + constant(safe-area-inset-bottom));
  309. /* 兼容 iPhone X 及以上设备 */
  310. padding-bottom: calc(20upx + env(safe-area-inset-bottom));
  311. .footer_btn {
  312. width: 630upx;
  313. height: 80upx;
  314. background: linear-gradient(90deg, #37ecba 0%, #72afd3 100%);
  315. border-radius: 16upx;
  316. margin: 0 auto;
  317. display: flex;
  318. align-items: center;
  319. justify-content: center;
  320. font-weight: bold;
  321. color: #ffffff;
  322. margin-bottom: 20upx;
  323. &:last-child {
  324. margin-bottom: 0;
  325. }
  326. }
  327. .footer_btn_disabled {
  328. background: #CCCCCC;
  329. }
  330. .footer_btn_busy {
  331. background: #f49191
  332. }
  333. }
  334. /* ==================
  335. 底部
  336. ================== */
  337. .footer {
  338. display: flex;
  339. justify-content: center;
  340. padding: 100upx 0 80upx;
  341. background: #F7F8F9;
  342. uni-image {
  343. width: 594upx;
  344. height: 107upx;
  345. margin: 0 auto;
  346. }
  347. }
  348. /* ==================
  349. 警报
  350. ================== */
  351. .call_alarm_back {
  352. position: fixed;
  353. right: 20upx;
  354. bottom: 300upx;
  355. opacity: 0.6;
  356. z-index: 2;
  357. uni-image {
  358. width: 100upx;
  359. height: 100upx;
  360. }
  361. }