huhaoguanli.wxss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. }
  123. .unbind-btn {
  124. height: 64rpx;
  125. line-height: 64rpx;
  126. font-size: 28rpx;
  127. color: #fff;
  128. background-color: #ff4d4f;
  129. border-radius: 32rpx;
  130. padding: 0 30rpx;
  131. margin: 0;
  132. }
  133. /* 底部按钮容器 */
  134. .bottom-btn-container {
  135. position: fixed;
  136. bottom: 0;
  137. left: 0;
  138. width: 100%;
  139. padding: 30rpx 5%;
  140. box-sizing: border-box;
  141. background-color: #fff;
  142. box-shadow: 0 -8rpx 40rpx rgba(0, 0, 0, 0.05);
  143. z-index: 100;
  144. }
  145. .bind-new-btn {
  146. width: 100%;
  147. height: 88rpx;
  148. line-height: 88rpx;
  149. background-color: #1890ff;
  150. color: #fff;
  151. font-size: 32rpx;
  152. border-radius: 44rpx;
  153. }
  154. /* 解绑确认弹窗样式 */
  155. .modal-mask {
  156. position: fixed;
  157. top: 0;
  158. left: 0;
  159. right: 0;
  160. bottom: 0;
  161. background: rgba(0, 0, 0, 0.5);
  162. display: flex;
  163. justify-content: center;
  164. align-items: center;
  165. z-index: 1000;
  166. }
  167. .modal-content {
  168. position: relative;
  169. width: 600rpx;
  170. background: #fff;
  171. border-radius: 20rpx;
  172. overflow: visible;
  173. }
  174. .modal-icon-wrapper {
  175. position: absolute;
  176. top: -48rpx;
  177. left: 50%;
  178. transform: translateX(-50%);
  179. width: 96rpx;
  180. height: 96rpx;
  181. z-index: 1001;
  182. }
  183. .modal-icon {
  184. width: 96rpx;
  185. height: 96rpx;
  186. }
  187. .modal-body {
  188. padding: 60rpx 40rpx 40rpx;
  189. }
  190. .modal-title {
  191. font-size: 36rpx;
  192. font-weight: bold;
  193. text-align: center;
  194. margin-bottom: 20rpx;
  195. }
  196. .modal-desc {
  197. font-size: 28rpx;
  198. color: #999;
  199. text-align: center;
  200. margin-bottom: 40rpx;
  201. }
  202. .modal-btns {
  203. display: flex;
  204. justify-content: space-between;
  205. }
  206. .cancel-btn, .confirm-btn {
  207. width: 240rpx;
  208. height: 80rpx;
  209. line-height: 80rpx;
  210. text-align: center;
  211. border-radius: 40rpx;
  212. font-size: 32rpx;
  213. }
  214. .cancel-btn {
  215. background: #f0f0f0;
  216. color: #333;
  217. }
  218. .confirm-btn {
  219. background: #1890ff;
  220. color: #fff;
  221. }
  222. .card-content {
  223. position: relative;
  224. padding: 40rpx 32rpx;
  225. z-index: 2;
  226. }
  227. .title {
  228. font-size: 36rpx;
  229. font-weight: 500;
  230. margin-bottom: 12rpx;
  231. letter-spacing: 0rpx;
  232. line-height: 48rpx;
  233. color: rgba(46, 48, 56, 1);
  234. text-align: left;
  235. vertical-align: top;
  236. font-family: 'PingFang SC', sans-serif;
  237. }
  238. .subtitle {
  239. font-size: 26rpx;
  240. color: #999;
  241. margin-bottom: 32rpx;
  242. letter-spacing: 4rpx;
  243. }
  244. .bind-button {
  245. width: 200rpx !important;
  246. height: 70rpx;
  247. line-height: 70rpx;
  248. background: rgba(239, 93, 93, 1);
  249. color: #fff;
  250. font-size: 30rpx;
  251. border-radius: 40rpx;
  252. margin-left: 0rpx;
  253. /* 向左50rpx */
  254. top: 40rpx;
  255. /* 向下50rpx */
  256. }
  257. .divider {
  258. left: 72rpx;
  259. top: 402rpx;
  260. width: 30rpx;
  261. height: 0rpx;
  262. opacity: 1;
  263. border: 2rpx solid rgba(232, 232, 232, 1);
  264. }
  265. .current-user-card {
  266. position: relative;
  267. }
  268. .current-user-card::before {
  269. content: "";
  270. position: absolute;
  271. top: 0;
  272. left: 0;
  273. right: 0;
  274. bottom: 0;
  275. border: 8rpx solid #3580f1;
  276. border-radius: 16rpx;
  277. pointer-events: none;
  278. z-index: 10;
  279. box-sizing: border-box;
  280. }