index.less 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. /* pages/diy/index.wxss */
  2. .flowbtn {
  3. position: fixed;
  4. bottom: -120rpx;
  5. left: 50%;
  6. z-index: 9999;
  7. width: 120rpx;
  8. height: 120rpx;
  9. transform: translateX(-50%);
  10. background: #b49660;
  11. border-radius: 50%;
  12. text-align: center;
  13. margin-bottom: calc(constant(safe-area-inset-bottom));
  14. margin-bottom: calc(env(safe-area-inset-bottom));
  15. &.ani {
  16. animation: 0.8s bounceshow 0.3s forwards;
  17. }
  18. image {
  19. width: 100%;
  20. height: 100%;
  21. }
  22. .nicon {
  23. margin-top: 10rpx;
  24. color: #fff;
  25. font-size: 64rpx;
  26. }
  27. .ntext {
  28. color: #fff;
  29. font-size: 20rpx;
  30. margin-top: -14rpx;
  31. position: absolute;
  32. left: 50%;
  33. bottom: 8px;
  34. white-space: nowrap;
  35. transform: translateX(-50%);
  36. }
  37. @keyframes bounceshow {
  38. 0% {
  39. bottom: 0;
  40. }
  41. 67% {
  42. bottom: 170rpx;
  43. }
  44. 80% {
  45. bottom: 110rpx;
  46. }
  47. 90% {
  48. bottom: 140rpx;
  49. }
  50. 100% {
  51. bottom: 130rpx;
  52. }
  53. }
  54. }
  55. .litebtn {
  56. line-height: 50rpx !important;
  57. height: 50rpx !important;
  58. }
  59. .liteicon {
  60. margin-right: 10rpx;
  61. }
  62. .diy {
  63. &-setting {
  64. display: flex;
  65. justify-content: space-between;
  66. }
  67. &-container {
  68. display: flex;
  69. height: 100vh;
  70. flex-direction: column;
  71. padding: 0 10px;
  72. }
  73. &-head {
  74. display: flex;
  75. column-gap: 12rpx;
  76. padding-top: 12rpx;
  77. .divbtn {
  78. display: flex;
  79. align-items: center;
  80. justify-content: center;
  81. font-size: 30rpx;
  82. flex: 1;
  83. padding: 16rpx 0;
  84. border-top-left-radius: 14rpx;
  85. border-top-right-radius: 14rpx;
  86. background: #ffffff;
  87. font-weight: 400;
  88. &-hover,
  89. &.active {
  90. background: #f1f1f1;
  91. color: #b49660;
  92. }
  93. }
  94. .icon {
  95. margin-right: 10rpx;
  96. font-size: 32rpx;
  97. }
  98. }
  99. &-content {
  100. @dvimgwidth: 12rpx;
  101. flex: 1;
  102. overflow: auto;
  103. background: #f1f1f1;
  104. display: flex;
  105. padding: @dvimgwidth;
  106. width: calc(100% - @dvimgwidth * 2);
  107. .divimage {
  108. width: calc(50% - @dvimgwidth * 2);
  109. padding: @dvimgwidth;
  110. position: relative;
  111. &.prod {
  112. width: calc(50%);
  113. padding: 0;
  114. .wrapimage {
  115. width: 324rpx;
  116. height: 418rpx;
  117. background: transparent;
  118. }
  119. image {
  120. width: 324rpx;
  121. height: 398rpx;
  122. border-radius: 10rpx;
  123. }
  124. }
  125. &.scbg {
  126. .wrapimage {
  127. height: 200rpx;
  128. }
  129. image {
  130. height: 180rpx;
  131. }
  132. }
  133. &.scgood {
  134. .wrapimage {
  135. height: 200rpx;
  136. background: transparent;
  137. }
  138. image {
  139. height: 180rpx;
  140. }
  141. .flcheck {
  142. top: 20rpx;
  143. bottom: initial;
  144. left: 20rpx;
  145. right: initial;
  146. transform: initial;
  147. }
  148. }
  149. .wrapgood {
  150. background: #ffffff;
  151. position: relative;
  152. .flatimg {
  153. position: absolute;
  154. right: 18rpx;
  155. top: 150rpx;
  156. }
  157. .titlebar {
  158. display: flex;
  159. align-items: center;
  160. justify-content: space-between;
  161. padding: 0 12rpx 12rpx 12rpx;
  162. .title {
  163. font-size: 28rpx;
  164. }
  165. .spec-for-price {
  166. font-size: 30rpx;
  167. font-weight: light;
  168. }
  169. }
  170. }
  171. .wrapimage {
  172. background: #ffffff;
  173. clear: both;
  174. width: 318rpx;
  175. height: 358rpx;
  176. display: flex;
  177. align-items: center;
  178. justify-content: center;
  179. border-radius: 8rpx;
  180. }
  181. image {
  182. width: 300rpx;
  183. height: 340rpx;
  184. }
  185. .floatPlace {
  186. position: absolute;
  187. right: 30rpx;
  188. top: 30rpx;
  189. display: flex;
  190. flex-direction: column;
  191. gap: 20rpx;
  192. }
  193. .flbtn {
  194. background: #b49660;
  195. padding: 12rpx;
  196. border-radius: 50%;
  197. opacity: 0.7;
  198. .icon {
  199. color: #fff;
  200. font-size: 32rpx;
  201. }
  202. &-hover {
  203. opacity: 0.9;
  204. }
  205. }
  206. .flbtn2 {
  207. background: #ec9a00;
  208. padding: 12rpx;
  209. border-radius: 50%;
  210. opacity: 0.7;
  211. .icon {
  212. color: #fff;
  213. font-size: 32rpx;
  214. }
  215. &-hover {
  216. opacity: 0.9;
  217. }
  218. }
  219. .flcheck {
  220. position: absolute;
  221. left: 50%;
  222. bottom: 30rpx;
  223. transform: translateX(-50%);
  224. background: #bbbbbb;
  225. padding: 12rpx;
  226. border-radius: 50%;
  227. opacity: 0.8;
  228. .icon {
  229. color: #777;
  230. opacity: 0.5;
  231. }
  232. &.checked {
  233. background: #b49660;
  234. .icon {
  235. color: #fff;
  236. opacity: 1;
  237. }
  238. }
  239. }
  240. }
  241. }
  242. &-footer {
  243. padding-bottom: calc(constant(safe-area-inset-bottom) + 96rpx);
  244. padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
  245. }
  246. }
  247. .chooseblock {
  248. background: #fff;
  249. padding: 20rpx 20rpx calc(constant(safe-area-inset-bottom)) 20rpx;
  250. padding: 20rpx 20rpx calc(env(safe-area-inset-bottom)) 20rpx;
  251. align-items: center;
  252. .chooseitem {
  253. flex: 1;
  254. display: flex;
  255. justify-content: center;
  256. color: #c78c41;
  257. font-size: 26rpx;
  258. flex-direction: column;
  259. align-items: center;
  260. }
  261. .chooseicon {
  262. font-size: 80rpx;
  263. color: #b49660;
  264. }
  265. .choosedivide {
  266. background: #dfdfdf;
  267. width: 1px;
  268. height: 80rpx;
  269. }
  270. }