huhaoguanli.wxss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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. .fixed-back {
  36. font-size: 40rpx;
  37. text-align: center;
  38. color: #fff;
  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. padding-top: 50rpx;
  64. }
  65. .card {
  66. width: 96%;
  67. margin: 0 auto 20rpx;
  68. border-radius: 16rpx;
  69. box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16);
  70. position: relative;
  71. overflow: hidden;
  72. }
  73. .card-inner {
  74. position: relative;
  75. width: 100%;
  76. padding: 30rpx;
  77. box-sizing: border-box;
  78. overflow: hidden; /* 确保内容不溢出 */
  79. }
  80. .card-background {
  81. position: absolute;
  82. top: 0;
  83. left: -2%;
  84. width: 104%;
  85. height: 100%;
  86. z-index: -1;
  87. border-radius: 16rpx;
  88. background: linear-gradient(150.23deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50.4%, rgba(255, 255, 255, 1) 100%);
  89. }
  90. .card-header {
  91. margin-bottom: 20rpx;
  92. }
  93. .name-tag {
  94. display: flex;
  95. align-items: center;
  96. }
  97. .name {
  98. font-size: 40rpx;
  99. font-weight: bold;
  100. margin-right: 20rpx;
  101. }
  102. .tag {
  103. font-size: 26rpx;
  104. padding: 4rpx 12rpx;
  105. background-color: #e6f7ff;
  106. color: #1890ff;
  107. border-radius: 8rpx;
  108. }
  109. .card-body {
  110. display: flex;
  111. flex-direction: column;
  112. margin-bottom: 30rpx;
  113. }
  114. .phone, .address {
  115. font-size: 30rpx;
  116. color: rgba(104, 108, 128, 1);
  117. margin-bottom: 10rpx;
  118. }
  119. .card-footer {
  120. display: flex;
  121. justify-content: flex-start;
  122. align-items: center;
  123. margin-top: 20rpx;
  124. }
  125. .button-group {
  126. display: flex;
  127. flex-wrap: wrap;
  128. gap: 20rpx;
  129. }
  130. .unbind-btn {
  131. font-size: 28rpx;
  132. padding: 8rpx 20rpx;
  133. background-color: rgba(239, 93, 93, 1);
  134. color: rgba(255, 255, 255, 1);
  135. border-radius: 30rpx;
  136. border: 1px solid #ddd;
  137. min-width: auto;
  138. line-height: 1.8;
  139. margin: 0;
  140. }
  141. .default-btn {
  142. font-size: 28rpx;
  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. margin: 0;
  151. }
  152. .default-tag {
  153. font-size: 28rpx;
  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. margin: 0;
  162. }
  163. /* 底部按钮容器 */
  164. .bottom-btn-container {
  165. position: fixed;
  166. bottom: 0;
  167. left: 0;
  168. width: 100%;
  169. padding: 30rpx 5%;
  170. box-sizing: border-box;
  171. background-color: #fff;
  172. box-shadow: 0 -8rpx 40rpx rgba(0, 0, 0, 0.05);
  173. z-index: 100;
  174. }
  175. .bind-new-btn {
  176. width: 100%;
  177. height: 88rpx;
  178. line-height: 88rpx;
  179. background-color: #1890ff;
  180. color: #fff;
  181. font-size: 32rpx;
  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. background: #fff;
  201. border-radius: 20rpx;
  202. overflow: visible;
  203. }
  204. .modal-icon-wrapper {
  205. position: absolute;
  206. top: -48rpx;
  207. left: 50%;
  208. transform: translateX(-50%);
  209. width: 96rpx;
  210. height: 96rpx;
  211. z-index: 1001;
  212. }
  213. .modal-icon {
  214. width: 96rpx;
  215. height: 96rpx;
  216. }
  217. .modal-body {
  218. padding: 60rpx 40rpx 40rpx;
  219. }
  220. .modal-title {
  221. font-size: 36rpx;
  222. font-weight: bold;
  223. text-align: center;
  224. margin-bottom: 20rpx;
  225. }
  226. .modal-desc {
  227. font-size: 28rpx;
  228. color: #999;
  229. text-align: center;
  230. margin-bottom: 40rpx;
  231. }
  232. .modal-btns {
  233. display: flex;
  234. justify-content: space-between;
  235. }
  236. .cancel-btn, .confirm-btn {
  237. width: 240rpx;
  238. height: 80rpx;
  239. line-height: 80rpx;
  240. text-align: center;
  241. border-radius: 40rpx;
  242. font-size: 32rpx;
  243. }
  244. .cancel-btn {
  245. background: #f0f0f0;
  246. color: #333;
  247. }
  248. .confirm-btn {
  249. background: #1890ff;
  250. color: #fff;
  251. }
  252. .card-content {
  253. position: relative;
  254. padding: 40rpx 32rpx;
  255. z-index: 2;
  256. }
  257. .title {
  258. font-size: 36rpx;
  259. font-weight: 500;
  260. margin-bottom: 12rpx;
  261. letter-spacing: 0rpx;
  262. line-height: 48rpx;
  263. color: rgba(46, 48, 56, 1);
  264. text-align: left;
  265. vertical-align: top;
  266. font-family: 'PingFang SC', sans-serif;
  267. }
  268. .subtitle {
  269. font-size: 26rpx;
  270. color: #999;
  271. margin-bottom: 32rpx;
  272. letter-spacing: 4rpx;
  273. }
  274. .bind-button {
  275. width: 200rpx !important;
  276. height: 70rpx;
  277. line-height: 70rpx;
  278. background: rgba(239, 93, 93, 1);
  279. color: #fff;
  280. font-size: 30rpx;
  281. border-radius: 40rpx;
  282. margin-left: 0rpx;
  283. /* 向左50rpx */
  284. top: 40rpx;
  285. /* 向下50rpx */
  286. }
  287. .divider {
  288. left: 72rpx;
  289. top: 402rpx;
  290. width: 30rpx;
  291. height: 0rpx;
  292. opacity: 1;
  293. border: 2rpx solid rgba(232, 232, 232, 1);
  294. }
  295. .current-user-card {
  296. position: relative;
  297. }
  298. .current-user-card::before {
  299. content: "";
  300. position: absolute;
  301. top: 0;
  302. left: 0;
  303. right: 0;
  304. bottom: 0;
  305. border: 8rpx solid #3580f1;
  306. border-radius: 16rpx;
  307. pointer-events: none;
  308. z-index: 10;
  309. box-sizing: border-box;
  310. }
  311. .current-user-card::after {
  312. content: "";
  313. position: absolute;
  314. top: 10rpx;
  315. right: 10rpx;
  316. width: 40rpx;
  317. height: 40rpx;
  318. 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;
  319. background-size: contain;
  320. z-index: 10;
  321. }
  322. .default-account-card {
  323. position: relative;
  324. }