C端小程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

570 linhas
8.9 KiB

  1. @import "../../app.wxss";
  2. page {
  3. background: #eee;
  4. }
  5. .coupons {
  6. width: 100%;
  7. position: relative;
  8. }
  9. .coupons-body {
  10. padding:40rpx 40rpx;
  11. flex: 1;
  12. /* overflow: auto; */
  13. }
  14. .banner {
  15. position: relative;
  16. width: 670rpx;
  17. height: 300rpx;
  18. overflow: hidden;
  19. box-shadow:0px 14px 26px 0px rgba(199,203,211,1);
  20. }
  21. .banner image {
  22. width: 670rpx;
  23. height: 300rpx;
  24. border-radius: 12rpx;
  25. }
  26. .act {
  27. position: relative;
  28. z-index: 1000000000;
  29. background: #fff;
  30. border-radius: 12rpx;
  31. width: 100%;
  32. /* height: 212rpx; */
  33. /* margin:44rpx auto 0; */
  34. padding-bottom: 20rpx;
  35. }
  36. .act text {
  37. display: block;
  38. padding-left: 4.8%;
  39. padding-right: 4.8%;
  40. }
  41. .txt001 {
  42. display: block;
  43. font-size: 34rpx;
  44. color: #363636;
  45. letter-spacing: 0;
  46. text-align: left;
  47. line-height: 48rpx;
  48. padding-top: 3.2%;
  49. }
  50. .txt002 {
  51. font-size: 24rpx;
  52. color: #999;
  53. letter-spacing: 0;
  54. text-align: left;
  55. line-height: 33rpx;
  56. }
  57. .proct {
  58. position: relative;
  59. /* height: 60rpx; */
  60. margin-top: 20rpx;
  61. }
  62. .proct text:nth-of-type(1) {
  63. display: block;
  64. font-size: 30rpx;
  65. color: #FD782D;
  66. letter-spacing: 0;
  67. line-height: 32rpx;
  68. margin-bottom: 20rpx;
  69. /* width: 60rpx; */
  70. /* height: 64rpx; */
  71. }
  72. .proct text:nth-of-type(2) {
  73. display: block;
  74. /* width: 498rpx; */
  75. /* height: 63rpx; */
  76. /* overflow: hidden; */
  77. word-wrap:break-word;
  78. /* text-overflow: ellipsis; */
  79. font-size: 22rpx;
  80. color: #6f6f6f;
  81. letter-spacing: 0;
  82. margin: 0 auto;
  83. }
  84. .orbg {
  85. position: absolute;
  86. top: 256rpx;
  87. z-index: 1000000;
  88. }
  89. .banner text {
  90. position: absolute;
  91. right: 0;
  92. top: 0;
  93. bottom: 0;
  94. margin: auto;
  95. width: 122rpx;
  96. height: 48rpx;
  97. line-height: 48rpx;
  98. opacity: 0.8;
  99. background: #000;
  100. font-size: 24rpx;
  101. color: #fff;
  102. letter-spacing: 0;
  103. text-indent: 0.5em;
  104. border-top-left-radius: 50rpx;
  105. border-bottom-left-radius: 50rpx;
  106. }
  107. .coupons_info {
  108. width: 92%;
  109. height: 120rpx;
  110. display: flex;
  111. justify-content: space-between;
  112. padding: 0 4% 4%;
  113. background: #fff;
  114. }
  115. .coupons_info view {
  116. display: flex;
  117. flex-direction: column;
  118. }
  119. .coupons_info view:nth-child(1) text {
  120. font-size: 30rpx;
  121. line-height: 32rpx;
  122. margin-top: 10%;
  123. }
  124. .coupons_info view:nth-child(1) text:nth-child(1) text {
  125. color: #ff3434;
  126. font-size: 24rpx;
  127. border: 1px solid #ff3434;
  128. border-radius: 6rpx;
  129. margin-left: 2%;
  130. padding: 0 5rpx;
  131. }
  132. .coupons_info view:nth-child(1) text:nth-child(2),
  133. .coupons_info view:nth-child(1) text:nth-child(3) {
  134. color: #b8b8b8;
  135. font-size: 24rpx;
  136. margin-top: 4%;
  137. }
  138. .coupons_info view:nth-child(1) text:nth-child(2) text,
  139. .coupons_info view:nth-child(1) text:nth-child(3) text {
  140. color: #ff3434;
  141. font-size: 24rpx;
  142. }
  143. .coupons_info view:nth-child(2) text:nth-child(1) {
  144. font-size: 36rpx;
  145. color: #ff3434;
  146. margin-top: 40rpx;
  147. font-weight: bold;
  148. }
  149. .coupons_info view:nth-child(2) text:nth-child(2) {
  150. font-size: 24rpx;
  151. color: #b4b4b4;
  152. text-decoration: line-through;
  153. padding-left: 10rpx;
  154. padding-top: 4rpx;
  155. }
  156. navigator {
  157. display: block;
  158. margin-bottom: 24rpx;
  159. width: 344rpx;
  160. }
  161. .navigator-hover{
  162. opacity: 1!important;
  163. background: #fff!important;
  164. border-radius:16rpx;
  165. }
  166. .active{
  167. opacity: .6;
  168. }
  169. navigator:nth-of-type(2n) {
  170. float: right;
  171. }
  172. navigator:nth-of-type(2n+1) {
  173. float: left;
  174. }
  175. .contain {
  176. padding: 24rpx 25rpx 0;
  177. }
  178. .posi {
  179. width: 92%;
  180. display: flex;
  181. flex-direction: column;
  182. padding: 0 4%;
  183. background: #fff;
  184. margin-top: 2%;
  185. }
  186. .posi>view:nth-child(2) {
  187. width: 100%;
  188. height: 87rpx;
  189. display: flex;
  190. justify-content: space-between;
  191. border-top: 1px solid #f6f6f6;
  192. line-height: 87rpx;
  193. }
  194. .posi>view:nth-child(2) text:nth-child(1) {
  195. font-size: 30rpx;
  196. color: #a9a9a9;
  197. }
  198. .posi>view:nth-child(2) text:nth-child(2) {
  199. font-size: 30rpx;
  200. color: #a9a9a9;
  201. }
  202. .posi_logo {
  203. width: 100%;
  204. height: 156rpx;
  205. display: flex;
  206. margin-top: 30rpx;
  207. }
  208. .posi_logo view:nth-child(1) {
  209. width: 126rpx;
  210. height: 126rpx;
  211. border-radius: 50%;
  212. overflow: hidden;
  213. flex: 2;
  214. }
  215. .posi_logo view:nth-child(1) image {
  216. width: 100%;
  217. height: 100%;
  218. }
  219. .posi_logo view:nth-child(2) {
  220. display: flex;
  221. flex-direction: column;
  222. flex: 8;
  223. padding-top: 20rpx;
  224. padding-left: 30rpx;
  225. }
  226. .posi_logo view:nth-child(2) text:nth-child(1) {
  227. font-size: 30rpx;
  228. }
  229. .posi_logo view:nth-child(2) text:nth-child(2) {
  230. font-size: 24rpx;
  231. color: #b8b8b8;
  232. padding-top: 10rpx;
  233. }
  234. .notes view:nth-child(1) {
  235. width: 92%;
  236. height: 87rpx;
  237. padding: 0 4%;
  238. line-height: 87rpx;
  239. background: #fff;
  240. /* border-top: 1rpx solid #f5f5f5; */
  241. }
  242. .notes view:nth-child(1) text {
  243. font-size: 30rpx;
  244. font-weight: bold;
  245. }
  246. .notes view:nth-child(2) {
  247. width: 92%;
  248. height: auto;
  249. padding: 0 4% 4%;
  250. background: #fff;
  251. /* border-bottom: 1rpx solid #f5f5f5; */
  252. display: flex;
  253. flex-direction: column;
  254. }
  255. .notes view:nth-child(2)>text {
  256. font-size: 28rpx;
  257. color: #a9a9a9;
  258. line-height: 45rpx;
  259. }
  260. .spot {
  261. width: 12rpx;
  262. height: 12rpx;
  263. display: inline-block;
  264. background: #a9a9a9;
  265. margin-right: 16rpx;
  266. position: relative;
  267. bottom: 4rpx;
  268. border-radius: 50%;
  269. }
  270. .buy-view {
  271. background: #fff;
  272. position: fixed;
  273. padding-top: 10rpx;
  274. height: 98rpx;
  275. bottom: 0rpx;
  276. left: 0;
  277. right: 0;
  278. }
  279. .buy {
  280. display: block;
  281. background: linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%);
  282. border-radius: 30rpx;
  283. height: 48rpx;
  284. width: 112rpx;
  285. margin: 0 auto;
  286. color: #fff;
  287. font-size: 26rpx;
  288. line-height: 48rpx;
  289. text-align: center;
  290. }
  291. .coupons1-btn-gm {
  292. background: #00c0ff !important;
  293. border-radius: 10rpx !important;
  294. margin: 0 !important;
  295. padding: 0 !important;
  296. font-family: PingFangSC-Semibold;
  297. font-size: 28rpx;
  298. color: #fff !important;
  299. letter-spacing: 0;
  300. height: 50rpx !important;
  301. width: 138rpx !important;
  302. line-height: 50rpx !important;
  303. }
  304. .coupons1 {
  305. position: relative;
  306. background: #fff;
  307. border-radius: 16rpx;
  308. padding-bottom: 21rpx;
  309. overflow: hidden;
  310. height: 405rpx;
  311. }
  312. /* .coupons1-border {
  313. height: 1rpx;
  314. left: 30rpx;
  315. right: 30rpx;
  316. background: #f5f5f5;
  317. position: absolute;
  318. bottom: 0;
  319. } */
  320. .coupons1-img {
  321. width: 344rpx;
  322. height: 233rpx;
  323. overflow: hidden;
  324. }
  325. .coupons1-img image {
  326. display: block;
  327. width: 100%;
  328. height: 100%;
  329. }
  330. .coupons1-info {
  331. padding-left: 20rpx;
  332. }
  333. .coupons1-info-name {
  334. font-size: 28rpx;
  335. color: #000;
  336. letter-spacing: 0;
  337. }
  338. .i {
  339. font-size: 20rpx;
  340. font-style: normal;
  341. }
  342. .coupons1-info-price-p {
  343. display: inline-block;
  344. font-size: 36rpx;
  345. color: #FD782D;
  346. line-height: 50rpx;
  347. /* margin-top: 21rpx; */
  348. }
  349. .tit {
  350. font-size: 30rpx;
  351. color: #000;
  352. letter-spacing: 0;
  353. line-height: 42rpx;
  354. width: 270rpx;
  355. height: 42rpx;
  356. overflow: hidden;
  357. white-space: nowrap;
  358. text-overflow: ellipsis;
  359. padding-top: 12rpx;
  360. }
  361. .coupons1-info-price-o {
  362. display: block;
  363. text-align: center;
  364. font-size: 26rpx;
  365. color: #b4b4b4;
  366. letter-spacing: 0.96rpx;
  367. text-decoration: line-through;
  368. line-height: 24rpx;
  369. }
  370. .coupons1-info-distance {
  371. font-size: 22rpx;
  372. color: #c0c0c0;
  373. letter-spacing: 0;
  374. padding-bottom: 10rpx;
  375. line-height: 30rpx;
  376. }
  377. .coupons1-info-address {
  378. font-size: 22rpx;
  379. color: #585858;
  380. letter-spacing: 0;
  381. line-height: 30rpx;
  382. }
  383. .coupons1-btn {
  384. position: absolute;
  385. width: 120rpx;
  386. bottom: 25rpx;
  387. right: 13rpx;
  388. }
  389. .coupons1-btn-gm {
  390. background: #00c0ff !important;
  391. border-radius: 10rpx !important;
  392. margin: 0 !important;
  393. padding: 0 !important;
  394. font-family: PingFangSC-Semibold;
  395. font-size: 28rpx;
  396. color: #fff !important;
  397. letter-spacing: 0;
  398. height: 50rpx !important;
  399. width: 138rpx !important;
  400. line-height: 50rpx !important;
  401. }
  402. .subtitle {
  403. font-size: 24rpx;
  404. font-weight: 100;
  405. text-align: left;
  406. overflow: hidden;
  407. white-space: nowrap;
  408. text-overflow: ellipsis;
  409. width: 300rpx;
  410. color: #999;
  411. letter-spacing: 0;
  412. height: 30rpx;
  413. }
  414. .coupons1-info-manjian {
  415. color: #fa7c7a;
  416. font-size: 20rpx;
  417. line-height: 34rpx;
  418. display: inline-block;
  419. }
  420. .jian {
  421. width: 44rpx;
  422. position: absolute;
  423. bottom: 1.7%;
  424. right: 3.5%;
  425. }
  426. /**上拉加载更多**/
  427. .userinfo {
  428. display: flex;
  429. flex-direction: column;
  430. align-items: center;
  431. }
  432. .userinfo-avatar {
  433. width: 128rpx;
  434. height: 128rpx;
  435. margin: 20rpx;
  436. border-radius: 50%;
  437. }
  438. .userinfo-nickname {
  439. color: #aaa;
  440. }
  441. .sy {
  442. display: block;
  443. text-align: center;
  444. width: 120rpx !important;
  445. margin-top: 6rpx;
  446. }
  447. .usermotto {
  448. margin-top: 200px;
  449. }
  450. /**/
  451. scroll-view {
  452. width: 100%;
  453. }
  454. .item {
  455. width: 90%;
  456. height: 300rpx;
  457. margin: 20rpx auto;
  458. background: brown;
  459. overflow: hidden;
  460. }
  461. .item .img {
  462. width: 430rpx;
  463. margin-right: 20rpx;
  464. float: left;
  465. }
  466. .title {
  467. font-size: 30rpx;
  468. display: block;
  469. margin: 30rpx auto;
  470. }
  471. .description {
  472. font-size: 26rpx;
  473. line-height: 15rpx;
  474. }
  475. button::after{ border: none; }
  476. .goback{
  477. position: fixed;
  478. right: 50rpx;
  479. bottom: 60rpx;
  480. width:100rpx!important;
  481. height:100rpx;
  482. z-index: 100;
  483. background:rgba(255,255,255,1);
  484. line-height: 95rpx;
  485. border:1rpx solid rgba(227,227,227,1);
  486. border-radius:50%;
  487. }
  488. .goback image{
  489. position: absolute;
  490. width: 60rpx;
  491. left: 0;
  492. right: 0;
  493. top: 0;
  494. bottom: 0;
  495. margin: auto;
  496. }