huhaoguanli.wxss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. .container {
  2. position: relative;
  3. width: 100%;
  4. min-height: 100vh;
  5. display: flex;
  6. flex-direction: column;
  7. box-sizing: border-box;
  8. overflow: hidden; /* 防止内容溢出 */
  9. }
  10. /* 背景图片样式 */
  11. .header {
  12. position: fixed; /* 改为fixed确保不随滚动而移动 */
  13. top: 0;
  14. left: 0;
  15. width: 100%;
  16. z-index: -1; /* 负值z-index确保在最底层 */
  17. }
  18. .background {
  19. width: 101%;
  20. height: auto;
  21. }
  22. .custom-nav {
  23. display: flex;
  24. align-items: center;
  25. height: 90rpx;
  26. margin-bottom: 20rpx;
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. right: 0;
  31. z-index: 1000;
  32. padding: 0 20rpx;
  33. padding-top: 88rpx; /* 适配iPhone状态栏,44px转换为88rpx */
  34. }
  35. .back-icon {
  36. width: 16px;
  37. height: 16px;
  38. vertical-align: middle;
  39. }
  40. .nav-title {
  41. flex: 1;
  42. text-align: center;
  43. font-size: 34rpx;
  44. color: #fff;
  45. }
  46. /* 滚动区域样式 */
  47. .scroll-area {
  48. flex: 1;
  49. width: 100%;
  50. padding: 0 2%;
  51. box-sizing: border-box;
  52. position: fixed; /* 固定位置 */
  53. top: calc(90rpx + 88rpx + 20rpx); /* 导航栏高度 + 状态栏 + 间距,44px转换为88rpx */
  54. bottom: 148rpx; /* 底部按钮高度 + 底部padding */
  55. left: 0;
  56. right: 0;
  57. z-index: 10; /* 确保在背景之上,导航栏之下 */
  58. }
  59. /* 卡片列表样式 */
  60. .card-list {
  61. width: 100%;
  62. padding-bottom: 40rpx;
  63. }
  64. .card {
  65. width: 96%;
  66. margin: 0 auto 20rpx;
  67. border-radius: 16rpx;
  68. box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16);
  69. position: relative;
  70. overflow: hidden;
  71. }
  72. .card-inner {
  73. position: relative;
  74. width: 100%;
  75. padding: 30rpx;
  76. box-sizing: border-box;
  77. overflow: hidden; /* 确保内容不溢出 */
  78. }
  79. .card-background {
  80. position: absolute;
  81. top: 0;
  82. left: -2%;
  83. width: 104%;
  84. height: 100%;
  85. z-index: -1;
  86. border-radius: 16rpx;
  87. background: linear-gradient(150.23deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50.4%, rgba(255, 255, 255, 1) 100%);
  88. }
  89. .card-header {
  90. margin-bottom: 20rpx;
  91. }
  92. .name-tag {
  93. display: flex;
  94. align-items: center;
  95. }
  96. .name {
  97. font-size: 40rpx;
  98. font-weight: bold;
  99. margin-right: 20rpx;
  100. }
  101. .tag {
  102. font-size: 26rpx;
  103. padding: 4rpx 12rpx;
  104. background-color: #e6f7ff;
  105. color: #1890ff;
  106. border-radius: 8rpx;
  107. }
  108. .card-body {
  109. display: flex;
  110. flex-direction: column;
  111. margin-bottom: 30rpx;
  112. }
  113. .phone, .address {
  114. font-size: 30rpx;
  115. color: rgba(104, 108, 128, 1);
  116. margin-bottom: 10rpx;
  117. }
  118. .card-footer {
  119. display: flex;
  120. justify-content: flex-start;
  121. align-items: center;
  122. margin-top: 40rpx;
  123. }
  124. .button-group {
  125. display: flex;
  126. flex-wrap: wrap;
  127. gap: 20rpx;
  128. }
  129. .unbind-btn {
  130. font-size: 30rpx !important;
  131. font-weight: 400 !important;
  132. padding: 8rpx 20rpx;
  133. background-color: rgba(239, 93, 93, 1);
  134. color: rgba(255, 255, 255, 1);
  135. border-radius: 30rpx;
  136. min-width: auto;
  137. line-height: 1.8;
  138. margin: 0;
  139. }
  140. .default-btn {
  141. font-size: 30rpx;
  142. font-weight: 400;
  143. padding: 8rpx 20rpx;
  144. background-color: #f0f8ff;
  145. color: #1976d2;
  146. border-radius: 30rpx;
  147. border: 1px solid #bbdefb;
  148. min-width: auto;
  149. line-height: 1.8;
  150. }
  151. .default-tag {
  152. font-size: 30rpx;
  153. font-weight: 400;
  154. padding: 8rpx 20rpx;
  155. background-color: transparent;
  156. color: #2e7d32;
  157. min-width: auto;
  158. border: 1px solid #2e7d32;
  159. border-radius: 30rpx;
  160. line-height: 1.8;
  161. }
  162. /* 底部按钮容器 */
  163. .bottom-btn-container {
  164. position: fixed;
  165. bottom: 0;
  166. left: 0;
  167. width: 100%;
  168. padding: 30rpx 5%;
  169. box-sizing: border-box;
  170. background-color: #fff;
  171. box-shadow: 0 -8rpx 40rpx rgba(0, 0, 0, 0.05);
  172. z-index: 100;
  173. }
  174. .bind-new-btn {
  175. width: 100%;
  176. height: 88rpx;
  177. line-height: 88rpx;
  178. background-color: rgba(46, 130, 255, 1);
  179. color: #fff;
  180. font-size: 32rpx;
  181. font-weight: 600;
  182. border-radius: 44rpx;
  183. }
  184. /* 解绑确认弹窗样式 */
  185. .modal-mask {
  186. position: fixed;
  187. top: 0;
  188. left: 0;
  189. right: 0;
  190. bottom: 0;
  191. background: rgba(0, 0, 0, 0.5);
  192. display: flex;
  193. justify-content: center;
  194. align-items: center;
  195. z-index: 1000;
  196. }
  197. .modal-content {
  198. position: relative;
  199. width: 600rpx;
  200. height: 400rpx;
  201. background: #fff;
  202. border-radius: 20rpx;
  203. overflow: visible;
  204. }
  205. .modal-icon-wrapper {
  206. position: absolute;
  207. top: -48rpx;
  208. left: 50%;
  209. transform: translateX(-50%);
  210. width: 96rpx;
  211. height: 96rpx;
  212. z-index: 1001;
  213. }
  214. .modal-icon {
  215. width: 96rpx;
  216. height: 96rpx;
  217. }
  218. .modal-body {
  219. padding: 100rpx 40rpx 40rpx;
  220. }
  221. .modal-title {
  222. font-size: 36rpx;
  223. font-weight: 500;
  224. text-align: center;
  225. margin-bottom: 30rpx;
  226. }
  227. .modal-desc {
  228. font-size: 28rpx;
  229. font-weight: 400;
  230. color: rgba(134, 141, 155, 1);
  231. text-align: center;
  232. margin-bottom: 40rpx;
  233. }
  234. .modal-btns {
  235. display: flex;
  236. justify-content: space-between;
  237. }
  238. .cancel-btn, .confirm-btn {
  239. width: 240rpx;
  240. height: 80rpx;
  241. line-height: 80rpx;
  242. text-align: center;
  243. border-radius: 40rpx;
  244. font-size: 30rpx;
  245. font-weight: 400;
  246. }
  247. .cancel-btn {
  248. background: #f0f0f0;
  249. color: #333;
  250. }
  251. .confirm-btn {
  252. background: rgba(46, 130, 255, 1);
  253. color: #fff;
  254. }
  255. .card-content {
  256. position: relative;
  257. padding: 40rpx 32rpx;
  258. z-index: 2;
  259. }
  260. .title {
  261. font-size: 36rpx;
  262. font-weight: 500;
  263. margin-bottom: 12rpx;
  264. letter-spacing: 0rpx;
  265. line-height: 48rpx;
  266. color: rgba(46, 48, 56, 1);
  267. text-align: left;
  268. vertical-align: top;
  269. font-family: 'PingFang SC', sans-serif;
  270. }
  271. .subtitle {
  272. font-size: 26rpx;
  273. color: #999;
  274. margin-bottom: 32rpx;
  275. letter-spacing: 4rpx;
  276. }
  277. .bind-button {
  278. width: 200rpx !important;
  279. height: 70rpx;
  280. line-height: 70rpx;
  281. background: rgba(239, 93, 93, 1);
  282. color: #fff;
  283. font-size: 30rpx;
  284. border-radius: 40rpx;
  285. margin-left: 0rpx;
  286. /* 向左50rpx */
  287. top: 40rpx;
  288. /* 向下50rpx */
  289. }
  290. .divider {
  291. left: 72rpx;
  292. top: 402rpx;
  293. width: 30rpx;
  294. height: 0rpx;
  295. opacity: 1;
  296. border: 2rpx solid rgba(232, 232, 232, 1);
  297. }
  298. .current-user-card {
  299. position: relative;
  300. }
  301. .current-user-card::before {
  302. content: "";
  303. position: absolute;
  304. top: 0;
  305. left: 0;
  306. right: 0;
  307. bottom: 0;
  308. border: 6rpx solid #ca188f;
  309. border-radius: 16rpx;
  310. pointer-events: none;
  311. z-index: 10;
  312. box-sizing: border-box;
  313. }
  314. .current-user-card::after {
  315. content: "";
  316. position: absolute;
  317. top: 10rpx;
  318. right: 10rpx;
  319. width: 40rpx;
  320. height: 40rpx;
  321. background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233580f1"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat;
  322. background-size: contain;
  323. z-index: 10;
  324. }
  325. .default-account-card {
  326. position: relative;
  327. }