index.scss 7.4 KB

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