detail.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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. }
  134. }
  135. // 核心信息区域样式
  136. .core-info {
  137. background-color: #ffffff;
  138. margin: 20rpx 20rpx 0 20rpx;
  139. padding: 30rpx;
  140. border-radius: 16rpx;
  141. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  142. .section-title {
  143. font-size: 32rpx;
  144. font-weight: 600;
  145. color: #303133;
  146. margin-bottom: 24rpx;
  147. padding-bottom: 16rpx;
  148. border-bottom: 1rpx solid #e8e8e8;
  149. }
  150. .info-row {
  151. display: flex;
  152. padding: 16rpx 0;
  153. .info-label {
  154. flex: 1;
  155. color: #909399;
  156. font-size: 28rpx;
  157. line-height: 40rpx;
  158. }
  159. .info-value {
  160. flex: 2;
  161. color: #303133;
  162. font-size: 28rpx;
  163. line-height: 40rpx;
  164. text-align: right;
  165. font-weight: 600;
  166. &.code{
  167. color: #909399;
  168. }
  169. &.note {
  170. background-color: #f5f7fa;
  171. padding: 16rpx;
  172. border-radius: 10rpx;
  173. color: #909399;
  174. text-align: left;
  175. }
  176. }
  177. &.col{
  178. gap: 16rpx;
  179. flex-direction: column;
  180. }
  181. }
  182. }
  183. // 财务与价格区域样式
  184. .finance-price {
  185. background-color: #ffffff;
  186. margin: 20rpx 20rpx 0 20rpx;
  187. padding: 30rpx;
  188. border-radius: 16rpx;
  189. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  190. .section-title {
  191. font-size: 32rpx;
  192. font-weight: 600;
  193. color: #303133;
  194. margin-bottom: 24rpx;
  195. padding-bottom: 16rpx;
  196. border-bottom: 1rpx solid #e8e8e8;
  197. }
  198. .price-group {
  199. display: flex;
  200. justify-content: space-between;
  201. margin-bottom: 24rpx;
  202. &:last-child {
  203. margin-bottom: 0;
  204. }
  205. }
  206. .price-item {
  207. flex: 1;
  208. display: flex;
  209. flex-direction: column;
  210. align-items: center;
  211. &:first-child {
  212. padding-right: 30rpx;
  213. }
  214. &:last-child {
  215. padding-left: 30rpx;
  216. }
  217. }
  218. .price-label {
  219. color: #909399;
  220. font-size: 24rpx;
  221. margin-bottom: 12rpx;
  222. }
  223. .price-value {
  224. font-size: 36rpx;
  225. font-weight: 600;
  226. &.original {
  227. color: #303133;
  228. }
  229. &.additional {
  230. color: #1890ff;
  231. }
  232. &.agent {
  233. color: #303133;
  234. }
  235. &.suggested {
  236. color: #f56c6c;
  237. }
  238. }
  239. }
  240. // 溯源与位置区域样式
  241. .traceability-location {
  242. background-color: #ffffff;
  243. margin: 20rpx;
  244. padding: 30rpx;
  245. border-radius: 16rpx;
  246. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  247. .section-title {
  248. font-size: 32rpx;
  249. font-weight: 600;
  250. color: #303133;
  251. margin-bottom: 24rpx;
  252. padding-bottom: 16rpx;
  253. border-bottom: 1rpx solid #e8e8e8;
  254. }
  255. .info-row {
  256. display: flex;
  257. padding: 16rpx 0;
  258. .info-label {
  259. flex: 1;
  260. color: #909399;
  261. font-size: 28rpx;
  262. line-height: 40rpx;
  263. }
  264. .info-value {
  265. flex: 2;
  266. color: #303133;
  267. font-size: 28rpx;
  268. line-height: 40rpx;
  269. text-align: right;
  270. ::v-deep .u-input {
  271. border: 1rpx solid #dcdfe6;
  272. border-radius: 8rpx;
  273. padding: 10rpx 16rpx;
  274. font-size: 28rpx;
  275. color: #303133;
  276. &:focus {
  277. border-color: #409eff;
  278. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  279. }
  280. }
  281. textarea {
  282. width: 100%;
  283. border: 1rpx solid #dcdfe6;
  284. border-radius: 8rpx;
  285. padding: 10rpx 16rpx;
  286. font-size: 28rpx;
  287. color: #303133;
  288. line-height: 40rpx;
  289. resize: none;
  290. &:focus {
  291. border-color: #409eff;
  292. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  293. }
  294. }
  295. }
  296. }
  297. .action-button {
  298. margin-top: 24rpx;
  299. text-align: center;
  300. ::v-deep .u-button {
  301. font-weight: 600;
  302. border: none;
  303. background-color: #eff6ff;
  304. border-radius: 15rpx;
  305. font-size: 24rpx;
  306. padding: 34rpx 0;
  307. }
  308. }
  309. }
  310. }