detail.scss 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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: flex;
  102. align-items: center;
  103. justify-content: space-around;
  104. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
  105. .bar_item{
  106. flex: 1;
  107. height: 100%;
  108. display: flex;
  109. flex-direction: column;
  110. align-items: center;
  111. justify-content: center;
  112. .primary{
  113. display: flex;
  114. align-items: center;
  115. gap: 8rpx;
  116. padding: 14rpx 22rpx;
  117. border-radius: 20rpx;
  118. background-color: #ca8a04;
  119. box-shadow: 0 10px 15px -3px #fef08a, 0 4px 6px -4px #fef08a;
  120. .bar_text{
  121. margin-top: 0;
  122. color: #ffffff;
  123. font-size: 23rpx;
  124. }
  125. }
  126. .bar_text{
  127. margin-top: 8rpx;
  128. font-size: 20rpx;
  129. font-weight: 500;
  130. color: #9ca3af;
  131. line-height: 32rpx;
  132. }
  133. &.disabled{
  134. cursor: not-allowed;
  135. opacity: 0.5;
  136. }
  137. .bar_icon{
  138. width: 40rpx;
  139. height: 40rpx;
  140. }
  141. }
  142. }
  143. // 核心信息区域样式
  144. .core_info {
  145. background-color: #ffffff;
  146. margin: 20rpx 20rpx 0 20rpx;
  147. padding: 30rpx;
  148. border-radius: 16rpx;
  149. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  150. .section_title {
  151. font-size: 32rpx;
  152. font-weight: 600;
  153. color: #303133;
  154. margin-bottom: 24rpx;
  155. padding-bottom: 16rpx;
  156. border-bottom: 1rpx solid #e8e8e8;
  157. }
  158. .info_row {
  159. display: flex;
  160. padding: 16rpx 0;
  161. .info_label {
  162. flex: 1;
  163. color: #909399;
  164. font-size: 28rpx;
  165. line-height: 40rpx;
  166. }
  167. .info_value {
  168. flex: 2;
  169. color: #303133;
  170. font-size: 28rpx;
  171. line-height: 40rpx;
  172. text-align: right;
  173. font-weight: 600;
  174. &.code{
  175. color: #909399;
  176. }
  177. &.note {
  178. background-color: #f5f7fa;
  179. padding: 16rpx;
  180. border-radius: 10rpx;
  181. color: #909399;
  182. text-align: left;
  183. }
  184. }
  185. &.col{
  186. gap: 16rpx;
  187. flex-direction: column;
  188. }
  189. }
  190. }
  191. // 财务与价格区域样式
  192. .finance_price {
  193. background-color: #ffffff;
  194. margin: 20rpx 20rpx 0 20rpx;
  195. padding: 30rpx;
  196. border-radius: 16rpx;
  197. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  198. .section_title {
  199. font-size: 32rpx;
  200. font-weight: 600;
  201. color: #303133;
  202. margin-bottom: 24rpx;
  203. padding-bottom: 16rpx;
  204. border-bottom: 1rpx solid #e8e8e8;
  205. }
  206. .price_group {
  207. display: flex;
  208. justify-content: space-between;
  209. margin-bottom: 24rpx;
  210. &:last-child {
  211. margin-bottom: 0;
  212. }
  213. }
  214. .price_item {
  215. flex: 1;
  216. display: flex;
  217. flex-direction: column;
  218. align-items: center;
  219. &:first-child {
  220. padding-right: 30rpx;
  221. }
  222. &:last-child {
  223. padding-left: 30rpx;
  224. }
  225. }
  226. .price_label {
  227. color: #909399;
  228. font-size: 24rpx;
  229. margin-bottom: 12rpx;
  230. }
  231. .price_value {
  232. font-size: 36rpx;
  233. font-weight: 600;
  234. &.original {
  235. color: #303133;
  236. }
  237. &.additional {
  238. color: #1890ff;
  239. }
  240. &.agent {
  241. color: #303133;
  242. }
  243. &.suggested {
  244. color: #f56c6c;
  245. }
  246. }
  247. }
  248. // 溯源与位置区域样式
  249. .traceability_location {
  250. background-color: #ffffff;
  251. margin: 20rpx;
  252. padding: 30rpx;
  253. border-radius: 16rpx;
  254. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  255. .section_title {
  256. font-size: 32rpx;
  257. font-weight: 600;
  258. color: #303133;
  259. margin-bottom: 24rpx;
  260. padding-bottom: 16rpx;
  261. border-bottom: 1rpx solid #e8e8e8;
  262. }
  263. .info_row {
  264. display: flex;
  265. padding: 16rpx 0;
  266. .info_label {
  267. flex: 1;
  268. color: #909399;
  269. font-size: 28rpx;
  270. line-height: 40rpx;
  271. }
  272. .info_value {
  273. flex: 2;
  274. color: #303133;
  275. font-size: 28rpx;
  276. line-height: 40rpx;
  277. text-align: right;
  278. ::v-deep .u-input {
  279. border: 1rpx solid #dcdfe6;
  280. border-radius: 8rpx;
  281. padding: 10rpx 16rpx;
  282. font-size: 28rpx;
  283. color: #303133;
  284. &:focus {
  285. border-color: #409eff;
  286. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  287. }
  288. }
  289. textarea {
  290. width: 100%;
  291. border: 1rpx solid #dcdfe6;
  292. border-radius: 8rpx;
  293. padding: 10rpx 16rpx;
  294. font-size: 28rpx;
  295. color: #303133;
  296. line-height: 40rpx;
  297. resize: none;
  298. &:focus {
  299. border-color: #409eff;
  300. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  301. }
  302. }
  303. }
  304. }
  305. .action_button {
  306. margin-top: 24rpx;
  307. text-align: center;
  308. ::v-deep .u-button {
  309. font-weight: 600;
  310. border: none;
  311. background-color: #eff6ff;
  312. border-radius: 15rpx;
  313. font-size: 24rpx;
  314. padding: 34rpx 0;
  315. }
  316. .log_list{
  317. display: flex;
  318. flex-direction: column;
  319. gap:20rpx;
  320. .log_item{
  321. display: flex;
  322. text-align: left;
  323. font-size:26rpx;
  324. }
  325. }
  326. }
  327. }
  328. }