index.scss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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. .dept-btn{
  213. margin-left:18rpx;
  214. image{
  215. width: 30rpx;
  216. height: 30rpx;
  217. }
  218. }
  219. }
  220. }
  221. /* 商品列表 */
  222. .goods-list {
  223. flex: 1;
  224. display: flex;
  225. flex-direction: column;
  226. gap: 10rpx;
  227. background-color: #f9fafb;
  228. overflow: hidden;
  229. height: 100%;
  230. ::v-deep .uni-scroll-view {
  231. height: 100%;
  232. }
  233. .goods-item {
  234. margin: 10rpx 15rpx;
  235. background-color: #fff;
  236. border-radius: 20rpx;
  237. padding: 20rpx;
  238. box-sizing: border-box;
  239. display: flex;
  240. align-items: stretch;
  241. gap: 20rpx;
  242. .u-swipe-action {
  243. flex: 1;
  244. display: flex;
  245. align-items: stretch;
  246. }
  247. .u-swipe-action-item {
  248. flex: 1;
  249. display: flex;
  250. align-items: stretch;
  251. }
  252. .goods-img-container {
  253. position: relative;
  254. flex-shrink: 0;
  255. }
  256. .goods-img {
  257. width: 160rpx;
  258. height: 160rpx;
  259. border-radius: 6rpx;
  260. object-fit: cover;
  261. }
  262. .stock-indicator {
  263. position: absolute;
  264. top: 140rpx;
  265. right: 0;
  266. width: 20rpx;
  267. height: 20rpx;
  268. border-radius: 50%;
  269. border: 2rpx solid #ffffff;
  270. }
  271. .up-indicator {
  272. background-color: #09bb07;
  273. }
  274. .down-indicator {
  275. background-color: #c7d5c7;
  276. }
  277. .goods-info {
  278. flex: 1;
  279. display: flex;
  280. align-items: stretch;
  281. gap: 20rpx;
  282. .info-content {
  283. flex: 1;
  284. line-height: 1.4;
  285. .goods-brand {
  286. font-size: 32rpx;
  287. font-weight: 700;
  288. color: #333333;
  289. display: block;
  290. line-height: 1.2;
  291. display: flex;
  292. align-items: center;
  293. gap: 8rpx;
  294. .code-icon {
  295. width: 28rpx;
  296. height: 22rpx;
  297. }
  298. }
  299. .goods-name {
  300. font-size: 26rpx;
  301. color: #666666;
  302. display: block;
  303. font-weight: 550;
  304. line-height: 1.4;
  305. word-break: break-all;
  306. }
  307. .price-group {
  308. display: grid;
  309. grid-template-columns: repeat(2, 1fr);
  310. .price-item {
  311. display: flex;
  312. flex-direction: column;
  313. justify-content: flex-start;
  314. .price-type {
  315. color: #d1d5db;
  316. font-size: 24rpx;
  317. }
  318. .price {
  319. font-weight: 700;
  320. }
  321. .sales {
  322. color: red;
  323. }
  324. }
  325. }
  326. .others {
  327. margin-top: 20rpx;
  328. display: flex;
  329. align-items: center;
  330. gap: 12rpx;
  331. .other-item {
  332. display: flex;
  333. align-items: center;
  334. justify-content: center;
  335. width: 26rpx;
  336. height: 26rpx;
  337. font-size: 20rpx;
  338. color: #c5c3c3;
  339. background-color: #f5f5f5;
  340. padding: 6rpx;
  341. border-radius: 50%;
  342. &.stock {
  343. background-color: #007aff;
  344. color: #fff;
  345. }
  346. }
  347. }
  348. }
  349. .more {
  350. display: flex;
  351. flex-direction: column;
  352. align-items: flex-end;
  353. justify-content: space-between;
  354. gap: 20rpx;
  355. .goods-stock {
  356. font-size: 24rpx;
  357. color: #666666;
  358. align-self: flex-end;
  359. flex-shrink: 0;
  360. padding-left: 10rpx;
  361. }
  362. }
  363. }
  364. }
  365. }
  366. /* 添加按钮 */
  367. .add-button {
  368. position: fixed;
  369. bottom: 150rpx;
  370. right: 20rpx;
  371. width: 112rpx;
  372. height: 112rpx;
  373. background-color: #1f2937;
  374. border-radius: 50%;
  375. display: flex;
  376. align-items: center;
  377. justify-content: center;
  378. box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  379. z-index: 20;
  380. cursor: pointer;
  381. transition: all 0.3s ease;
  382. &:active {
  383. transform: scale(0.95);
  384. }
  385. }