huhaoguanli.wxss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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: 20rpx;
  64. }
  65. .card {
  66. width: 96%;
  67. margin: 0 auto 20rpx;
  68. border-radius: 20rpx;
  69. overflow: hidden;
  70. border-radius: 16rpx;
  71. box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16);
  72. position: relative;
  73. }
  74. .card-inner {
  75. position: relative;
  76. width: 100%;
  77. padding: 30rpx;
  78. box-sizing: border-box;
  79. overflow: hidden; /* 确保内容不溢出 */
  80. }
  81. .card-background {
  82. position: absolute;
  83. top: 0;
  84. left: -2%;
  85. width: 104%;
  86. height: 100%;
  87. z-index: -1;
  88. border-radius: 16rpx;
  89. background: linear-gradient(150.23deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50.4%, rgba(255, 255, 255, 1) 100%);
  90. }
  91. .card-header {
  92. margin-bottom: 20rpx;
  93. }
  94. .name-tag {
  95. display: flex;
  96. align-items: center;
  97. }
  98. .name {
  99. font-size: 40rpx;
  100. font-weight: bold;
  101. margin-right: 20rpx;
  102. }
  103. .tag {
  104. font-size: 26rpx;
  105. padding: 4rpx 12rpx;
  106. background-color: #e6f7ff;
  107. color: #1890ff;
  108. border-radius: 8rpx;
  109. }
  110. .card-body {
  111. display: flex;
  112. flex-direction: column;
  113. margin-bottom: 30rpx;
  114. }
  115. .phone, .address {
  116. font-size: 30rpx;
  117. color: rgba(104, 108, 128, 1);
  118. margin-bottom: 10rpx;
  119. }
  120. .card-footer {
  121. display: flex;
  122. justify-content: flex-start;
  123. }
  124. .unbind-btn {
  125. height: 64rpx;
  126. line-height: 64rpx;
  127. font-size: 28rpx;
  128. color: #fff;
  129. background-color: #ff4d4f;
  130. border-radius: 32rpx;
  131. padding: 0 30rpx;
  132. margin: 0;
  133. }
  134. /* 底部按钮容器 */
  135. .bottom-btn-container {
  136. position: fixed;
  137. bottom: 0;
  138. left: 0;
  139. width: 100%;
  140. padding: 30rpx 5%;
  141. box-sizing: border-box;
  142. background-color: #fff;
  143. box-shadow: 0 -8rpx 40rpx rgba(0, 0, 0, 0.05);
  144. z-index: 100;
  145. }
  146. .bind-new-btn {
  147. width: 100%;
  148. height: 88rpx;
  149. line-height: 88rpx;
  150. background-color: #1890ff;
  151. color: #fff;
  152. font-size: 32rpx;
  153. border-radius: 44rpx;
  154. }
  155. /* 解绑确认弹窗样式 */
  156. .modal-mask {
  157. position: fixed;
  158. top: 0;
  159. left: 0;
  160. right: 0;
  161. bottom: 0;
  162. background: rgba(0, 0, 0, 0.5);
  163. display: flex;
  164. justify-content: center;
  165. align-items: center;
  166. z-index: 1000;
  167. }
  168. .modal-content {
  169. position: relative;
  170. width: 600rpx;
  171. background: #fff;
  172. border-radius: 20rpx;
  173. overflow: visible;
  174. }
  175. .modal-icon-wrapper {
  176. position: absolute;
  177. top: -48rpx;
  178. left: 50%;
  179. transform: translateX(-50%);
  180. width: 96rpx;
  181. height: 96rpx;
  182. z-index: 1001;
  183. }
  184. .modal-icon {
  185. width: 96rpx;
  186. height: 96rpx;
  187. }
  188. .modal-body {
  189. padding: 60rpx 40rpx 40rpx;
  190. }
  191. .modal-title {
  192. font-size: 36rpx;
  193. font-weight: bold;
  194. text-align: center;
  195. margin-bottom: 20rpx;
  196. }
  197. .modal-desc {
  198. font-size: 28rpx;
  199. color: #999;
  200. text-align: center;
  201. margin-bottom: 40rpx;
  202. }
  203. .modal-btns {
  204. display: flex;
  205. justify-content: space-between;
  206. }
  207. .cancel-btn, .confirm-btn {
  208. width: 240rpx;
  209. height: 80rpx;
  210. line-height: 80rpx;
  211. text-align: center;
  212. border-radius: 40rpx;
  213. font-size: 32rpx;
  214. }
  215. .cancel-btn {
  216. background: #f0f0f0;
  217. color: #333;
  218. }
  219. .confirm-btn {
  220. background: #1890ff;
  221. color: #fff;
  222. }
  223. .card-content {
  224. position: relative;
  225. padding: 40rpx 32rpx;
  226. z-index: 2;
  227. }
  228. .title {
  229. font-size: 36rpx;
  230. font-weight: 500;
  231. margin-bottom: 12rpx;
  232. letter-spacing: 0rpx;
  233. line-height: 48rpx;
  234. color: rgba(46, 48, 56, 1);
  235. text-align: left;
  236. vertical-align: top;
  237. font-family: 'PingFang SC', sans-serif;
  238. }
  239. .subtitle {
  240. font-size: 26rpx;
  241. color: #999;
  242. margin-bottom: 32rpx;
  243. letter-spacing: 4rpx;
  244. }
  245. .bind-button {
  246. width: 200rpx !important;
  247. height: 70rpx;
  248. line-height: 70rpx;
  249. background: rgba(239, 93, 93, 1);
  250. color: #fff;
  251. font-size: 30rpx;
  252. border-radius: 40rpx;
  253. margin-left: 0rpx;
  254. /* 向左50rpx */
  255. top: 40rpx;
  256. /* 向下50rpx */
  257. }
  258. .divider {
  259. left: 72rpx;
  260. top: 402rpx;
  261. width: 30rpx;
  262. height: 0rpx;
  263. opacity: 1;
  264. border: 2rpx solid rgba(232, 232, 232, 1);
  265. }