detail.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. .detail{
  2. padding-bottom: 130rpx; // 为底部固定栏留出空间
  3. // 轮播图样式
  4. ::v-deep .u-swiper {
  5. height: 600rpx !important;
  6. }
  7. ::v-deep .u-swiper__wrapper{
  8. height: 100% !important;
  9. }
  10. ::v-deep .u-swiper__wrapper__item {
  11. height: 100% !important;
  12. }
  13. ::v-deep .u-swiper__wrapper__item__wrapper {
  14. height: 100% !important;
  15. }
  16. ::v-deep .u-swiper__wrapper__item__wrapper__image{
  17. height: 100% !important;
  18. width: 100% !important;
  19. object-fit: cover !important;
  20. }
  21. ::v-deep .u-swiper__indicator{
  22. bottom: 20rpx !important;
  23. }
  24. ::v-deep .u-swiper__indicator-item{
  25. background-color: rgba(255, 255, 255, 0.5) !important;
  26. }
  27. ::v-deep .u-swiper__indicator-item--active{
  28. background-color: #ffffff !important;
  29. }
  30. // 立即下架按钮
  31. .immediate_off_shelf {
  32. position: fixed;
  33. bottom: 130rpx;
  34. right: 20rpx;
  35. z-index: 999;
  36. animation: bounce 2s infinite;
  37. ::v-deep .u-button {
  38. background-color: #1f2937;
  39. border-radius: 60rpx;
  40. padding: 10rpx 36rpx;
  41. height: 84rpx;
  42. line-height: 84rpx;
  43. box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  44. font-size: 28rpx;
  45. font-weight: 600;
  46. display: flex;
  47. align-items: center;
  48. gap: 8rpx;
  49. border: none !important;
  50. }
  51. ::v-deep .u-button--error {
  52. border: none !important;
  53. }
  54. ::v-deep .u-icon {
  55. margin-right: 4rpx;
  56. }
  57. }
  58. // 上下跳动动画
  59. @keyframes bounce {
  60. 0%, 100% {
  61. transform: translateY(0);
  62. }
  63. 50% {
  64. transform: translateY(-10rpx);
  65. }
  66. }
  67. // 轮播图下方操作按钮
  68. .swiper_actions{
  69. display: flex;
  70. justify-content: space-around;
  71. align-items: center;
  72. padding: 40rpx 0;
  73. background-color: #ffffff;
  74. border-bottom: 1rpx solid #e8e8e8;
  75. .action_item{
  76. display: flex;
  77. flex-direction: column;
  78. align-items: center;
  79. justify-content: center;
  80. ::v-deep .u-icon{
  81. background-color: #f9fafb;
  82. border-radius: 20rpx;
  83. padding:20rpx;
  84. }
  85. .action_text{
  86. margin-top: 16rpx;
  87. font-size: 22rpx;
  88. font-weight: 500;
  89. color: #606266;
  90. }
  91. }
  92. }
  93. // 底部功能按钮栏
  94. .bottom_bar{
  95. position: fixed;
  96. bottom: 0;
  97. left: 0;
  98. right: 0;
  99. height: 120rpx;
  100. background-color: #fff;
  101. display: grid;
  102. padding-right:10rpx;
  103. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
  104. &.fourPart{
  105. grid-template-columns: 1fr 1fr 1fr 1fr;
  106. }
  107. &.fivePart{
  108. grid-template-columns: 1fr 1fr 1fr 1.5fr 1fr;
  109. }
  110. .bar_item{
  111. flex: 1;
  112. height: 100%;
  113. display: flex;
  114. flex-direction: column;
  115. align-items: center;
  116. justify-content: center;
  117. .primary{
  118. display: flex;
  119. align-items: center;
  120. gap: 8rpx;
  121. padding: 14rpx 22rpx;
  122. border-radius: 20rpx;
  123. height:46rpx;
  124. .bar_text{
  125. margin-top: 0;
  126. color: #ffffff;
  127. font-size: 23rpx;
  128. }
  129. }
  130. .orange{
  131. background-color: #ca8a04;
  132. box-shadow: 0 10px 15px -3px #fef08a, 0 4px 6px -4px #fef08a;
  133. }
  134. .blue{
  135. background-color: #007bff;
  136. box-shadow: 0 10px 15px -3px #93c5fd, 0 4px 6px -4px #93c5fd;
  137. .bar_img{
  138. width: 34rpx;
  139. height: 40rpx;
  140. }
  141. }
  142. .bar_text{
  143. margin-top: 8rpx;
  144. font-size: 20rpx;
  145. font-weight: 500;
  146. color: #9ca3af;
  147. line-height: 32rpx;
  148. }
  149. &.disabled{
  150. cursor: not-allowed;
  151. opacity: 0.5;
  152. }
  153. .bar_icon{
  154. width: 40rpx;
  155. height: 40rpx;
  156. }
  157. }
  158. }
  159. // 核心信息区域样式
  160. .core_info {
  161. background-color: #ffffff;
  162. margin: 20rpx 20rpx 0 20rpx;
  163. padding: 30rpx;
  164. border-radius: 16rpx;
  165. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  166. .section_title {
  167. font-size: 32rpx;
  168. font-weight: 600;
  169. color: #303133;
  170. margin-bottom: 24rpx;
  171. padding-bottom: 16rpx;
  172. border-bottom: 1rpx solid #e8e8e8;
  173. }
  174. .info_row {
  175. display: flex;
  176. padding: 16rpx 0;
  177. .info_label {
  178. flex: 1;
  179. color: #909399;
  180. font-size: 28rpx;
  181. line-height: 40rpx;
  182. }
  183. .info_value {
  184. flex: 2;
  185. color: #303133;
  186. font-size: 28rpx;
  187. line-height: 40rpx;
  188. text-align: right;
  189. font-weight: 600;
  190. &.code{
  191. color: #909399;
  192. }
  193. &.note {
  194. background-color: #f5f7fa;
  195. padding: 16rpx;
  196. border-radius: 10rpx;
  197. color: #909399;
  198. text-align: left;
  199. }
  200. }
  201. &.col{
  202. gap: 16rpx;
  203. flex-direction: column;
  204. }
  205. }
  206. }
  207. // 财务与价格区域样式
  208. .finance_price {
  209. background-color: #ffffff;
  210. margin: 20rpx 20rpx 0 20rpx;
  211. padding: 30rpx;
  212. border-radius: 16rpx;
  213. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  214. .section_title {
  215. font-size: 32rpx;
  216. font-weight: 600;
  217. color: #303133;
  218. margin-bottom: 24rpx;
  219. padding-bottom: 16rpx;
  220. border-bottom: 1rpx solid #e8e8e8;
  221. }
  222. .price_group {
  223. display: grid;
  224. grid-template-columns: 1fr 1fr;
  225. margin-bottom: 24rpx;
  226. &:last-child {
  227. margin-bottom: 0;
  228. }
  229. }
  230. .price_item {
  231. flex: 1;
  232. display: flex;
  233. flex-direction: column;
  234. align-items: center;
  235. &:first-child {
  236. padding-right: 30rpx;
  237. }
  238. &:last-child {
  239. padding-left: 30rpx;
  240. }
  241. }
  242. .price_label {
  243. color: #909399;
  244. font-size: 24rpx;
  245. margin-bottom: 12rpx;
  246. }
  247. .price_value {
  248. font-size: 36rpx;
  249. font-weight: 600;
  250. &.original {
  251. color: #303133;
  252. }
  253. &.additional {
  254. color: #1890ff;
  255. }
  256. &.agent {
  257. color: #303133;
  258. }
  259. &.suggested {
  260. color: #f56c6c;
  261. }
  262. }
  263. }
  264. // 溯源与位置区域样式
  265. .traceability_productPosition {
  266. background-color: #ffffff;
  267. margin: 20rpx;
  268. padding: 30rpx;
  269. border-radius: 16rpx;
  270. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  271. .section_title {
  272. font-size: 32rpx;
  273. font-weight: 600;
  274. color: #303133;
  275. margin-bottom: 24rpx;
  276. padding-bottom: 16rpx;
  277. border-bottom: 1rpx solid #e8e8e8;
  278. }
  279. .info_row {
  280. display: flex;
  281. padding: 16rpx 0;
  282. .info_label {
  283. flex: 1;
  284. color: #909399;
  285. font-size: 28rpx;
  286. line-height: 40rpx;
  287. }
  288. .info_value {
  289. flex: 2;
  290. color: #303133;
  291. font-size: 28rpx;
  292. line-height: 40rpx;
  293. text-align: right;
  294. ::v-deep .u-input {
  295. border: 1rpx solid #dcdfe6;
  296. border-radius: 8rpx;
  297. padding: 10rpx 16rpx;
  298. font-size: 28rpx;
  299. color: #303133;
  300. &:focus {
  301. border-color: #409eff;
  302. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  303. }
  304. }
  305. textarea {
  306. width: 100%;
  307. border: 1rpx solid #dcdfe6;
  308. border-radius: 8rpx;
  309. padding: 10rpx 16rpx;
  310. font-size: 28rpx;
  311. color: #303133;
  312. line-height: 40rpx;
  313. resize: none;
  314. &:focus {
  315. border-color: #409eff;
  316. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  317. }
  318. }
  319. }
  320. }
  321. .action_button {
  322. margin-top: 24rpx;
  323. text-align: center;
  324. ::v-deep .u-button {
  325. font-weight: 600;
  326. border: none;
  327. background-color: #eff6ff;
  328. border-radius: 15rpx;
  329. font-size: 24rpx;
  330. padding: 34rpx 0;
  331. }
  332. .log_list{
  333. display: flex;
  334. flex-direction: column;
  335. gap:20rpx;
  336. max-height: 500rpx;
  337. overflow: auto;
  338. .log_item{
  339. display: flex;
  340. text-align: left;
  341. font-size:26rpx;
  342. }
  343. }
  344. }
  345. }
  346. }