index.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. $pageColor:#F9F9F9;
  2. $bgColor:#FFFFFF;
  3. @mixin flexlayout {
  4. display: flex;
  5. align-items: center;
  6. justify-content: center;
  7. }
  8. page {
  9. height: 100% !important;
  10. background: #F9F9F9 !important;
  11. }
  12. .code-purchase {
  13. width: 640rpx;
  14. height: 764rpx;
  15. background: $bgColor;
  16. border-radius: 20rpx;
  17. padding-top: 64rpx;
  18. box-sizing: border-box;
  19. .title {
  20. @include flexlayout();
  21. margin-bottom: 24rpx;
  22. text {
  23. font-size: 34rpx;
  24. font-family: PingFangSC-Medium, PingFang SC;
  25. font-weight: 500;
  26. color: #333333;
  27. }
  28. }
  29. .img {
  30. margin-top: 10rpx;
  31. margin-left: 48rpx;
  32. width: 544rpx;
  33. height: 468rpx;
  34. background: $bgColor;
  35. border-radius: 2rpx;
  36. @include flexlayout();
  37. image {
  38. width: 392rpx;
  39. height: 390rpx;
  40. }
  41. }
  42. }
  43. .btn {
  44. margin-top: 40rpx;
  45. width: 100%;
  46. height: 115rpx !important;
  47. display: flex;
  48. align-items: center;
  49. .cancel {
  50. @include flexlayout();
  51. width: 50%;
  52. height: 100%;
  53. border-top: #E5E5E5 solid 1rpx;
  54. border-right: #E5E5E5 solid 1rpx;
  55. text {
  56. font-size: 32rpx;
  57. font-family: PingFangSC-Medium, PingFang SC;
  58. font-weight: 500;
  59. color: #666666;
  60. }
  61. }
  62. .download {
  63. border-top: #E5E5E5 solid 1rpx;
  64. // border-left:#E5E5E5 solid 0.3rpx;
  65. @include flexlayout();
  66. height: 100%;
  67. width: 50%;
  68. text {
  69. font-size: 32rpx;
  70. font-family: PingFangSC-Medium, PingFang SC;
  71. font-weight: 500;
  72. color: #FF7119;
  73. }
  74. }
  75. }
  76. .purchase {
  77. position: fixed;
  78. bottom: 0;
  79. width: 100%;
  80. height: 148rpx;
  81. background: #FFFFFF;
  82. box-shadow: 0px -4px 8px 0px rgba(0, 0, 0, 0.05);
  83. padding: 0 30rpx;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. .purchase-btn {
  88. width: 100%;
  89. height: 92rpx;
  90. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  91. border-radius: 12rpx;
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. font-weight: bold;
  96. color: #FFFFFF;
  97. font-size: 30rpx;
  98. }
  99. }
  100. .pop {
  101. padding: 32rpx 30rpx 80rpx;
  102. width: 100%;
  103. height: 914rpx;
  104. background: #FFFFFF;
  105. border-radius: 22rpx 22rpx 0px 0px;
  106. overflow-y: scroll;
  107. position: relative;
  108. .pop-price {
  109. display: flex;
  110. align-items: flex-start;
  111. justify-content: space-between;
  112. .pop-price-left {
  113. flex: 1;
  114. display: flex;
  115. align-items: center;
  116. justify-content: flex-start;
  117. .pop-price-left-money {
  118. font-weight: 800;
  119. color: #FF6200;
  120. font-size: 48rpx;
  121. margin-left: 20rpx;
  122. }
  123. }
  124. }
  125. .pop-flavor {
  126. width: 100%;
  127. margin-top: 64rpx;
  128. font-weight: bold;
  129. color: #333333;
  130. font-size: 32rpx;
  131. }
  132. }
  133. //口味切换
  134. .tab_flavor {
  135. margin-top: 14rpx;
  136. width: 100%;
  137. display: flex;
  138. justify-content: flex-start;
  139. align-items: center;
  140. font-family: PingFang-SC-Heavy, PingFang-SC;
  141. flex-wrap: wrap;
  142. }
  143. .tab_flavor .flavorTitle-item {
  144. width: 220rpx;
  145. height: 60rpx;
  146. background-color: #FFF;
  147. border: 2rpx solid #CCCCCC;
  148. border-radius: 30rpx;
  149. font-size: 30rpx;
  150. color: #999;
  151. display: flex;
  152. justify-content: center;
  153. align-items: center;
  154. margin-right: 15rpx;
  155. font-weight: normal;
  156. margin-top: 16rpx;
  157. &:nth-child(3n) {
  158. margin-right: 0;
  159. }
  160. }
  161. .flavorTitle-item-active{
  162. border: none !important;
  163. }
  164. .active-flavor {
  165. width: 220rpx;
  166. height: 60rpx;
  167. border-radius: 30rpx;
  168. background-color: #FF6200;
  169. border: none;
  170. color: #fff;
  171. display: flex;
  172. justify-content: center;
  173. align-items: center;
  174. }
  175. .buy-btn {
  176. position: fixed;
  177. bottom: 0;
  178. width: 100%;
  179. padding: 0 30rpx 0 58rpx;
  180. height: 148rpx;
  181. background: #FFFFFF;
  182. display: flex;
  183. align-items: center;
  184. justify-content: space-between;
  185. .buy-btn-left {
  186. flex: none;
  187. display: flex;
  188. flex-direction: column;
  189. align-items: center;
  190. justify-content: center;
  191. color: #FF6200;
  192. font-size: 22rpx;
  193. }
  194. .buy-btn-right {
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. margin-left: 40rpx;
  199. flex: 1;
  200. height: 92rpx;
  201. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  202. border-radius: 12rpx;
  203. font-weight: bold;
  204. color: #FFFFFF;
  205. font-size: 30rpx;
  206. }
  207. }
  208. .goods-detail {
  209. height: 100%;
  210. background: #F9F9F9;
  211. }
  212. .produce {
  213. width: 100%;
  214. margin-top: 24rpx;
  215. padding: 40rpx 30rpx 36rpx;
  216. background: #FFFFFF;
  217. box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.02);
  218. border-radius: 16rpx;
  219. .produce-title {
  220. font-size: 32rpx;
  221. font-weight: bold;
  222. color: #333333;
  223. }
  224. .produce-text {
  225. width: 100%;
  226. margin-top: 26rpx;
  227. font-size: 30rpx;
  228. color: #333333;
  229. line-height: 48rpx;
  230. overflow: hidden;
  231. // img,image{
  232. // max-width: 100%;
  233. // height: auto;
  234. // }
  235. }
  236. }
  237. .about {
  238. padding: 40rpx 30rpx 40rpx;
  239. width: 100%;
  240. // height: 350rpx;
  241. background: #FFFFFF;
  242. box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.02);
  243. border-radius: 16rpx;
  244. display: flex;
  245. flex-direction: column;
  246. align-items: flex-start;
  247. justify-content: flex-start;
  248. .about-title {
  249. font-size: 32rpx;
  250. font-weight: bold;
  251. color: #333333;
  252. }
  253. .about-name {
  254. margin: 30rpx 0 20rpx;
  255. font-size: 30rpx;
  256. color: #333333;
  257. }
  258. .about-address {
  259. font-size: 30rpx;
  260. color: #333333;
  261. }
  262. .about-phone {
  263. margin: 20rpx 0 48rpx;
  264. font-size: 30rpx;
  265. color: #333333;
  266. }
  267. .about-all {
  268. width: 100%;
  269. display: flex;
  270. align-items: center;
  271. justify-content: center;
  272. font-size: 32rpx;
  273. color: #FF6200;
  274. }
  275. }
  276. .home-swiper {
  277. height: 100vw;
  278. .swiper-box {
  279. height: 100vw;
  280. }
  281. }
  282. ::v-deep .uni-swiper__dots-box {
  283. bottom: 48rpx !important;
  284. }
  285. .price {
  286. padding: 32rpx 30rpx 0rpx;
  287. position: relative;
  288. top: -20rpx;
  289. // height: 406rpx;
  290. background: #FFFFFF;
  291. box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.02);
  292. border-radius: 16rpx;
  293. display: flex;
  294. flex-direction: column;
  295. align-items: flex-start;
  296. justify-content: flex-start;
  297. .price-top {
  298. font-size: 48rpx;
  299. font-weight: 800;
  300. color: #FF6200;
  301. }
  302. .price-text {
  303. margin: 30rpx 0 26rpx;
  304. font-size: 32rpx;
  305. font-weight: bold;
  306. color: #333333;
  307. }
  308. .price-banner {
  309. padding: 0 24rpx;
  310. width: 100%;
  311. height: 80rpx;
  312. background-repeat: no-repeat;
  313. background-size: cover;
  314. background-position: center;
  315. font-size: 32rpx;
  316. color: #FFFFFF;
  317. display: flex;
  318. align-items: center;
  319. justify-content: space-between;
  320. border-radius: 12rpx;
  321. }
  322. .price-specs {
  323. margin-top: 48rpx;
  324. width: 100%;
  325. height: 110rpx;
  326. display: flex;
  327. align-items: center;
  328. justify-content: space-between;
  329. border-top: 2rpx solid #F0F0F0;
  330. .price-specs-left {
  331. flex: none;
  332. font-size: 32rpx;
  333. font-weight: bold;
  334. color: #333333;
  335. }
  336. .price-specs-main {
  337. flex: 1;
  338. margin-left: 28rpx;
  339. font-size: 30rpx;
  340. color: #666666;
  341. }
  342. }
  343. }
  344. .header{
  345. text{
  346. color:#fff;
  347. }
  348. }