app.wxss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. /**app.wxss**/
  2. .container {
  3. box-sizing: border-box;
  4. background-color: #f4f4f4;
  5. font-family: PingFangSC-Light, helvetica, 'Heiti SC';
  6. }
  7. view, image, text, navigator {
  8. box-sizing: border-box;
  9. padding: 0;
  10. margin: 0;
  11. }
  12. view, text {
  13. font-family: PingFangSC-Light, helvetica, 'Heiti SC';
  14. font-size: 29rpx;
  15. color: #333;
  16. }
  17. .arrow::after {
  18. content: " ";
  19. display: inline-block;
  20. height: 6px;
  21. width: 6px;
  22. border-width: 2px 2px 0 0;
  23. border-color: #666;
  24. border-style: solid;
  25. transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
  26. position: absolute;
  27. top: 50%;
  28. margin-top: -5px;
  29. right: -16px;
  30. }
  31. .arrow-down::after {
  32. transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0) rotate(90deg);
  33. }
  34. .arrow-up::after {
  35. transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0) rotate(-90deg);
  36. }
  37. .list-group {
  38. margin-top: 1.17647059em;
  39. background-color: #fff;
  40. line-height: 1.41176471;
  41. font-size: 28rpx;
  42. overflow: hidden;
  43. position: relative;
  44. }
  45. .list-group::before {
  46. content: " ";
  47. position: absolute;
  48. left: 0;
  49. top: 0;
  50. right: 0;
  51. height: 1px;
  52. border-top: 1px solid #d9d9d9;
  53. color: #d9d9d9;
  54. transform-origin: 0 0;
  55. transform: scaleY(0.5);
  56. }
  57. .list-group::after {
  58. content: " ";
  59. position: absolute;
  60. left: 0;
  61. bottom: 0;
  62. right: 0;
  63. height: 1px;
  64. border-bottom: 1px solid #d9d9d9;
  65. color: #d9d9d9;
  66. transform-origin: 0 100%;
  67. transform: scaleY(0.5);
  68. }
  69. .list-cell {
  70. padding: 10px 15px;
  71. position: relative;
  72. display: flex;
  73. align-items: center;
  74. }
  75. .list-cell:first-of-type::before {
  76. display: none;
  77. }
  78. .list-cell::before {
  79. content: " ";
  80. position: absolute;
  81. top: 0;
  82. right: 0;
  83. height: 1px;
  84. border-top: 1px solid #d9d9d9;
  85. color: #d9d9d9;
  86. transform-origin: 0 0;
  87. transform: scaleY(0.5);
  88. left: 15px;
  89. }
  90. .list-cell-hd {
  91. display: flex;
  92. align-items: center;
  93. }
  94. .list-cell-bd {
  95. flex: 1;
  96. }
  97. .list-cell-bd .list-label {
  98. font-size: 1em;
  99. }
  100. .list-cell-bd .list-label-desc {
  101. font-size: 0.9em;
  102. color: #9b9b9b;
  103. padding-top: 5px;
  104. }
  105. .list-cell-ft {
  106. padding-right: 13px;
  107. position: relative;
  108. text-align: right;
  109. color: #999;
  110. }
  111. .list-cell-ft.router::after {
  112. content: " ";
  113. display: inline-block;
  114. height: 6px;
  115. width: 6px;
  116. border-width: 2px 2px 0 0;
  117. border-color: #c8c8cd;
  118. border-style: solid;
  119. transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
  120. top: -2px;
  121. position: absolute;
  122. top: 50%;
  123. margin-top: -4px;
  124. right: 2px;
  125. }
  126. .modal-wrap {
  127. position: fixed;
  128. width: 100%;
  129. height: 100%;
  130. z-index: 500;
  131. top: 0;
  132. left: 0;
  133. background-color: rgba(0, 0, 0, 0.5);
  134. }
  135. .x-close {
  136. position: relative;
  137. display: inline-block;
  138. vertical-align: middle;
  139. color: #999;
  140. width: 48rpx;
  141. height: 48rpx;
  142. }
  143. .x-close::before, .x-close::after {
  144. content: '';
  145. position: absolute;
  146. left: 0;
  147. top: 11px;
  148. width: 24px;
  149. height: 1px;
  150. background-color: currentColor;
  151. transform: rotate(-45deg);
  152. }
  153. .x-close::after {
  154. transform: rotate(45deg);
  155. }
  156. .no-data {
  157. display: flex;
  158. flex-direction: column;
  159. justify-content: center;
  160. align-items: center;
  161. padding-top: 150rpx;
  162. }
  163. .no-data image {
  164. width: 250rpx;
  165. height: 250rpx;
  166. }
  167. .no-data text {
  168. text-align: center;
  169. margin-top: 50rpx;
  170. color: #999;
  171. }
  172. /* 底部购物车 */
  173. .cart-panel {
  174. display: flex;
  175. height: 80rpx;
  176. width: 700rpx;
  177. line-height: 80rpx;
  178. border-radius: 40rpx;
  179. background-color: #4d4d4e;
  180. position: fixed;
  181. bottom: 20rpx;
  182. z-index: 499;
  183. left: 50%;
  184. margin-left: -350rpx;
  185. }
  186. .cart-panel .cart-icon {
  187. width: 80rpx;
  188. height: 80rpx;
  189. background-color: #343434;
  190. border-radius: 50%;
  191. position: relative;
  192. }
  193. .cart-panel .cart-icon navigator {
  194. width: 100%;
  195. height: 100%;
  196. display: flex;
  197. align-items: center;
  198. justify-content: center;
  199. }
  200. .cart-panel .cart-icon .cart-num {
  201. position: absolute;
  202. width: 30rpx;
  203. height: 30rpx;
  204. line-height: 30rpx;
  205. text-align: center;
  206. top: -10rpx;
  207. right: -10rpx;
  208. background-color: #ff8902;
  209. color: #fff;
  210. border-radius: 50%;
  211. font-size: 20rpx;
  212. }
  213. .cart-panel .cart-icon image {
  214. width: 40rpx;
  215. height: 40rpx;
  216. }
  217. .cart-panel .cart-body {
  218. flex: 1;
  219. color: #fff;
  220. padding-left: 20rpx;
  221. }
  222. .cart-panel .cart-pay {
  223. width: 200rpx;
  224. color: #fff;
  225. background-color: #ff8902;
  226. border-radius: 0 40rpx 40rpx 0;
  227. text-align: center;
  228. }
  229. /* 快捷导航 */
  230. .fast-nav {
  231. position: fixed;
  232. right: 20rpx;
  233. bottom: 130rpx;
  234. z-index: 9999;
  235. display: flex;
  236. flex-direction: column;
  237. align-items: flex-end;
  238. }
  239. .fast-nav .nav {
  240. width: 100rpx;
  241. height: 100rpx;
  242. border-radius: 50%;
  243. background-color: #424242;
  244. display: flex;
  245. flex-direction: column;
  246. align-items: center;
  247. justify-content: center;
  248. margin-top: 20rpx;
  249. opacity: 0.6;
  250. }
  251. .fast-nav .nav text {
  252. color: #fff;
  253. font-size: 20rpx;
  254. }
  255. .fast-nav .contact {
  256. width: 100rpx;
  257. height: 100rpx;
  258. border-radius: 50%;
  259. background-color: #19c322;
  260. display: flex;
  261. flex-direction: column;
  262. align-items: center;
  263. opacity: 0.6;
  264. }
  265. .fast-nav .nav-list .nav-item {
  266. height: 80rpx;
  267. width: 200rpx;
  268. margin-bottom: 20rpx;
  269. display: flex;
  270. justify-content: flex-end;
  271. align-items: center;
  272. }
  273. .fast-nav .nav-list .nav-item .nav-text {
  274. line-height: 80rpx;
  275. text-align: center;
  276. padding-right: 20rpx;
  277. color: #fff;
  278. }
  279. .fast-nav .nav-list .nav-item .nav-cell {
  280. height: 80rpx;
  281. width: 80rpx;
  282. display: flex;
  283. justify-content: center;
  284. align-items: center;
  285. background-color: #fff;
  286. border-radius: 50%;
  287. }
  288. .fast-nav .nav-list .nav-item .nav-cell image {
  289. height: 40rpx;
  290. width: 40rpx;
  291. }
  292. .fast-nav .close {
  293. width: 100rpx;
  294. height: 100rpx;
  295. border-radius: 50%;
  296. color: #fff;
  297. background-color: #ff5778;
  298. font-size: 50rpx;
  299. text-align: center;
  300. line-height: 100rpx;
  301. }
  302. .wx-contact-button-wrapper {
  303. background-image: url(https://meiping123.oss-cn-shenzhen.aliyuncs.com/upload/20171030/112000753f6fdb.png) !important;
  304. margin: 10rpx 0;
  305. }
  306. .fast-nav .contact text {
  307. color: #fff;
  308. font-size: 20rpx;
  309. }
  310. /*商品列表*/
  311. .topic-list {
  312. width: 750rpx;
  313. height: 100%;
  314. overflow: hidden;
  315. background: #f4f4f4;
  316. }
  317. .topic-list .item {
  318. width: 100%;
  319. height: auto;
  320. overflow: hidden;
  321. background: #fff;
  322. margin-bottom: 10rpx;
  323. }
  324. .topic-list .item .imgtt {
  325. width: 100%;
  326. height: 100vw;
  327. position: relative;
  328. }
  329. .topic-list .item .imgtt .img {
  330. width: 100%;
  331. height: 100vw;
  332. position:  relative;
  333. overflow: hidden;
  334. }
  335. .topic-list .item .imgtt .imgline {
  336. position: absolute;
  337. left: 0px;
  338. bottom: 0px;
  339. width: 100%;
  340. background: #333;
  341. opacity: 0.6;
  342. height: 80rpx;
  343. color: #fff;
  344. }
  345. .topic-list .item .imgtt .imgline .priceInfo {
  346. float: left;
  347. text-align: left;
  348. height: 33rpx;
  349. line-height: 38rpx;
  350. overflow: hidden;
  351. color: #fff;
  352. font-size: 33rpx;
  353. margin-top: 25rpx;
  354. padding-left: 33rpx;
  355. }
  356. .topic-list .item .imgtt .imgline .priceInfo .price {
  357. font-size: 33rpx;
  358. color: #fff;
  359. }
  360. .topic-list .item .imgtt .imgline .priceInfo .orgPrice {
  361. font-size: 24rpx;
  362. margin-left: 10rpx;
  363. color: #fff;
  364. }
  365. .topic-list .item .imgtt .imgline .right {
  366. float: right;
  367. color: #fff;
  368. }
  369. .topic-list .item .imgtt .imgline .btn {
  370. height: 80rpx;
  371. line-height: 80rpx;
  372. text-align: center;
  373. font-size: 28rpx;
  374. color: #fff;
  375. background: #b4282d;
  376. border-radius: 0px;
  377. }
  378. .topic-list .info {
  379. width: 100%;
  380. height: 150rpx;
  381. overflow: hidden;
  382. }
  383. .topic-list .title {
  384. display: block;
  385. text-align: center;
  386. width: 100%;
  387. height: 33rpx;
  388. line-height: 35rpx;
  389. color: #333;
  390. overflow: hidden;
  391. font-size: 35rpx;
  392. margin-top: 30rpx;
  393. }
  394. .topic-list .desc {
  395. display: block;
  396. text-align: center;
  397. position: relative;
  398. width: auto;
  399. height: 24rpx;
  400. line-height: 24rpx;
  401. overflow: hidden;
  402. color: #999;
  403. font-size: 24rpx;
  404. margin-top: 16rpx;
  405. margin-bottom: 12rpx;
  406. text-overflow: ellipsis;
  407. white-space: nowrap;
  408. padding: 0 24rpx;
  409. }
  410. .page {
  411. width: 750rpx;
  412. height: 108rpx;
  413. background: #fff;
  414. margin-bottom: 20rpx;
  415. }
  416. .page view {
  417. height: 108rpx;
  418. width: 50%;
  419. float: left;
  420. font-size: 29rpx;
  421. color: #333;
  422. text-align: center;
  423. line-height: 108rpx;
  424. }
  425. .page .prev {
  426. border-right: 1px solid #d9d9d9;
  427. }
  428. .page .disabled {
  429. color: #ccc;
  430. }
  431. .line-through {
  432. text-decoration: line-through;
  433. }
  434. ::-webkit-scrollbar {
  435. width: 5px;
  436. background-color: #f5f5f5;
  437. }
  438. ::-webkit-scrollbar-thumb {
  439. background-color: #999;
  440. }