index.scss 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. /* 页面容器 */
  2. .page {
  3. width: 100%;
  4. height: 100vh;
  5. background-color: #fff;
  6. display: flex;
  7. flex-direction: column;
  8. }
  9. .page-container {
  10. flex: 1;
  11. display: flex;
  12. flex-direction: column;
  13. background-color: #f9fafb;
  14. padding-bottom: 20rpx;
  15. overflow: hidden;
  16. }
  17. .nav-bar {
  18. border-bottom: 1px solid #f7f6f6 !important;
  19. }
  20. /* 总资产区域 */
  21. .asset-header {
  22. width: 100%;
  23. background-color: #ffffff;
  24. border-radius: 20rpx;
  25. padding: 25rpx 20rpx;
  26. padding-bottom: 20rpx;
  27. display: flex;
  28. justify-content: space-between;
  29. align-items: flex-end;
  30. box-sizing: border-box;
  31. .asset-text-wrap {
  32. flex: 1;
  33. }
  34. .btn-group {
  35. display: flex;
  36. align-items: center;
  37. justify-content: flex-end;
  38. gap: 10rpx;
  39. }
  40. .asset-title-con {
  41. display: flex;
  42. align-items: center;
  43. justify-content: flex-start;
  44. margin-bottom: 12rpx;
  45. .asset-title {
  46. font-size: 26rpx;
  47. color: #999999;
  48. display: block;
  49. font-weight: 500;
  50. }
  51. }
  52. .asset-value {
  53. font-size: 44rpx;
  54. color: #333333;
  55. display: block;
  56. font-weight: 600;
  57. letter-spacing: 2rpx;
  58. }
  59. }
  60. /* 数据卡片 */
  61. .data-cards {
  62. display: flex;
  63. justify-content: space-between;
  64. padding-bottom: 20rpx;
  65. background-color: #fff;
  66. padding: 8rpx 15rpx;
  67. .card-item {
  68. flex: 1;
  69. text-align: center;
  70. background: #f9fafb;
  71. padding: 24rpx 0;
  72. margin: 0 10rpx;
  73. border-radius: 24rpx;
  74. .card-label {
  75. font-size: 26rpx;
  76. color: #666;
  77. display: block;
  78. margin-bottom: 8rpx;
  79. }
  80. .card-value {
  81. font-size: 36rpx;
  82. font-weight: 700;
  83. color: #333;
  84. display: block;
  85. &.green {
  86. color: #09bb07;
  87. }
  88. }
  89. &:nth-of-type(1) {
  90. margin-left: 0;
  91. }
  92. &:nth-last-of-type(1) {
  93. margin-right: 0;
  94. }
  95. }
  96. }
  97. /* 搜索框区域 */
  98. .search-wrapper {
  99. padding: 8rpx 15rpx;
  100. height: 80rpx;
  101. padding-bottom: 20rpx;
  102. display: flex;
  103. justify-content: space-between;
  104. align-items: center;
  105. background-color: #fff;
  106. .search-input-wrap {
  107. height: 100%;
  108. --u-search-bg-color: #ffffff !important;
  109. --u-search-border-radius: 8rpx !important;
  110. --u-search-input-height: 80rpx !important;
  111. --u-search-padding: 0 30rpx !important;
  112. --u-search-input-font-size: 28rpx !important;
  113. --u-search-placeholder-color: #999 !important;
  114. border: none !important;
  115. box-shadow: none !important;
  116. }
  117. .search-filter-btn {
  118. margin-left: 20rpx;
  119. width: 60rpx;
  120. height: 60rpx;
  121. z-index: 10;
  122. display: flex;
  123. justify-content: center;
  124. align-items: center;
  125. background-color: #f9fafb;
  126. border: 40rpx;
  127. }
  128. }
  129. /* 分类标签 */
  130. .category-tabs-wrap {
  131. padding: 8rpx 15rpx;
  132. margin-bottom: 20rpx;
  133. background: #ffffff !important;
  134. .u-tabs-custom {
  135. --u-tabs-bg-color: #ffffff !important;
  136. background: #ffffff !important;
  137. --u-tabs-border-bottom: none !important;
  138. --u-tabs-item-padding: 10rpx 20rpx !important;
  139. --u-tabs-item-margin: 0 10rpx !important;
  140. .u-tabs__item--active {
  141. font-weight: bold;
  142. border-bottom: 2rpx solid #007aff !important;
  143. }
  144. .u-tabs__item-text {
  145. font-size: 28rpx !important;
  146. white-space: nowrap;
  147. }
  148. &::-webkit-scrollbar {
  149. display: none;
  150. }
  151. }
  152. }
  153. /* 筛选栏 */
  154. .filter-bar {
  155. padding: 8rpx 15rpx;
  156. background-color: #f9fafb;
  157. display: flex;
  158. align-items: center;
  159. justify-content: space-between;
  160. border-radius: 20rpx;
  161. .sort-btn {
  162. background: transparent;
  163. padding: 0;
  164. margin: 0;
  165. display: flex;
  166. align-items: center;
  167. gap: 6rpx;
  168. .sort-text {
  169. font-size: 24rpx;
  170. color: #686767;
  171. font-weight: 500;
  172. }
  173. .sort-icon {
  174. flex-shrink: 0;
  175. transition: transform 0.3s ease;
  176. &:active {
  177. transform: rotate(180deg);
  178. }
  179. }
  180. }
  181. .price-layout-btn {
  182. display: flex;
  183. justify-content: space-between;
  184. align-items: center;
  185. .price-btn {
  186. background: transparent;
  187. padding: 0;
  188. margin: 0;
  189. display: flex;
  190. align-items: center;
  191. gap: 8rpx;
  192. .price-icon {
  193. flex-shrink: 0;
  194. }
  195. .price-text {
  196. font-size: 22rpx;
  197. color: #1890ff;
  198. font-weight: 500;
  199. }
  200. }
  201. .layout-btn {
  202. background: transparent;
  203. font-size: 22rpx;
  204. color: #333;
  205. width: 60rpx;
  206. height: 60rpx;
  207. display: flex;
  208. align-items: center;
  209. justify-content: center;
  210. flex-shrink: 0;
  211. }
  212. }
  213. }
  214. /* 商品列表 */
  215. .goods-list {
  216. flex: 1;
  217. display: flex;
  218. flex-direction: column;
  219. gap: 10rpx;
  220. background-color: #f9fafb;
  221. overflow: hidden;
  222. height: 100%;
  223. ::v-deep .uni-scroll-view {
  224. height: 100%;
  225. }
  226. .goods-item {
  227. margin: 10rpx 15rpx;
  228. background-color: #fff;
  229. border-radius: 20rpx;
  230. padding: 20rpx;
  231. box-sizing: border-box;
  232. display: flex;
  233. align-items: stretch;
  234. gap: 20rpx;
  235. .u-swipe-action {
  236. flex: 1;
  237. display: flex;
  238. align-items: stretch;
  239. }
  240. .u-swipe-action-item {
  241. flex: 1;
  242. display: flex;
  243. align-items: stretch;
  244. }
  245. .goods-img-container {
  246. position: relative;
  247. flex-shrink: 0;
  248. }
  249. .goods-img {
  250. width: 160rpx;
  251. height: 160rpx;
  252. border-radius: 6rpx;
  253. object-fit: cover;
  254. }
  255. .stock-indicator {
  256. position: absolute;
  257. top: 140rpx;
  258. right: 0;
  259. width: 20rpx;
  260. height: 20rpx;
  261. border-radius: 50%;
  262. border: 2rpx solid #ffffff;
  263. }
  264. .up-indicator {
  265. background-color: #09bb07;
  266. }
  267. .down-indicator {
  268. background-color: #c7d5c7;
  269. }
  270. .goods-info {
  271. flex: 1;
  272. display: flex;
  273. align-items: stretch;
  274. gap: 20rpx;
  275. .info-content {
  276. flex: 1;
  277. .goods-brand {
  278. font-size: 32rpx;
  279. font-weight: 700;
  280. color: #333333;
  281. display: block;
  282. line-height: 1.2;
  283. display: flex;
  284. align-items: center;
  285. gap: 8rpx;
  286. .code-icon {
  287. width: 28rpx;
  288. height: 22rpx;
  289. }
  290. }
  291. .goods-name {
  292. font-size: 26rpx;
  293. color: #666666;
  294. display: block;
  295. font-weight: 600;
  296. line-height: 1.4;
  297. word-break: break-all;
  298. }
  299. .price-group {
  300. display: grid;
  301. grid-template-columns: repeat(2, 1fr);
  302. .price-item {
  303. display: flex;
  304. flex-direction: column;
  305. justify-content: flex-start;
  306. .price-type {
  307. color: #d1d5db;
  308. font-size: 24rpx;
  309. }
  310. .price {
  311. font-weight: 700;
  312. }
  313. .sales {
  314. color: red;
  315. }
  316. }
  317. }
  318. .others {
  319. margin-top: 20rpx;
  320. display: flex;
  321. align-items: center;
  322. gap: 12rpx;
  323. .other-item {
  324. display: flex;
  325. align-items: center;
  326. justify-content: center;
  327. width: 26rpx;
  328. height: 26rpx;
  329. font-size: 20rpx;
  330. color: #c5c3c3;
  331. background-color: #f5f5f5;
  332. padding: 6rpx;
  333. border-radius: 50%;
  334. &.stock {
  335. background-color: #007aff;
  336. color: #fff;
  337. }
  338. }
  339. }
  340. }
  341. .more {
  342. display: flex;
  343. flex-direction: column;
  344. align-items: flex-end;
  345. justify-content: space-between;
  346. gap: 20rpx;
  347. .goods-stock {
  348. font-size: 24rpx;
  349. color: #666666;
  350. align-self: flex-end;
  351. flex-shrink: 0;
  352. padding-left: 10rpx;
  353. }
  354. }
  355. }
  356. }
  357. }
  358. /* 添加按钮 */
  359. .add-button {
  360. position: fixed;
  361. bottom: 150rpx;
  362. right: 20rpx;
  363. width: 112rpx;
  364. height: 112rpx;
  365. background-color: #1f2937;
  366. border-radius: 50%;
  367. display: flex;
  368. align-items: center;
  369. justify-content: center;
  370. box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  371. z-index: 20;
  372. cursor: pointer;
  373. transition: all 0.3s ease;
  374. &:active {
  375. transform: scale(0.95);
  376. }
  377. }