C端小程序
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

325 řádky
5.0 KiB

  1. @import "../../app.wxss";
  2. .coupons {
  3. position: relative;
  4. width: 335rpx;
  5. display: inline-block;
  6. overflow: hidden;
  7. }
  8. .coupons-border {
  9. height: 1rpx;
  10. left: 30rpx;
  11. right: 30rpx;
  12. background: #f5f5f5;
  13. position: absolute;
  14. bottom: 0;
  15. }
  16. .coupons-img {
  17. border-radius: 10rpx;
  18. }
  19. .coupons-img image {
  20. display: block;
  21. width: 335rpx;
  22. height: 203rpx;
  23. border-top-left-radius: 10rpx;
  24. border-top-right-radius: 10rpx;
  25. }
  26. .coupons-info {
  27. width: 335rpx;
  28. height: 152rpx;
  29. border-radius: 0rpx 0rpx 10rpx 10rpx;
  30. background: #fff;
  31. }
  32. .coupons-info-name {
  33. font-size: 28rpx;
  34. color: #333;
  35. letter-spacing: 0;
  36. line-height: 38rpx;
  37. }
  38. .coupons-info-price {
  39. padding: 16rpx 0 0;
  40. }
  41. .i {
  42. font-size: 24rpx;
  43. font-style: normal;
  44. }
  45. .coupons-info-price-p {
  46. display: block;
  47. font-size: 50rpx;
  48. color: #ff4949;
  49. }
  50. .price {
  51. font-size: 34rpx;
  52. font-family: PingFang-SC-Bold;
  53. font-weight: bold;
  54. color: rgba(255, 50, 50, 1);
  55. line-height: 44rpx;
  56. margin-left: 16rpx;
  57. padding-top: 16rpx;
  58. }
  59. .tit {
  60. overflow: hidden;
  61. white-space: nowrap;
  62. text-overflow: ellipsis;
  63. font-size: 28rpx;
  64. line-height: 30rpx;
  65. padding-top: 20rpx;
  66. padding-left: 10rpx;
  67. color: #333;
  68. letter-spacing: 0;
  69. }
  70. .coupons-info-price-o {
  71. display: block;
  72. text-align: center;
  73. font-size: 26rpx;
  74. color: #b4b4b4;
  75. letter-spacing: 0.96rpx;
  76. text-decoration: line-through;
  77. line-height: 24rpx;
  78. }
  79. .coupons-info-distance {
  80. font-size: 22rpx;
  81. color: #c0c0c0;
  82. letter-spacing: 0;
  83. padding-bottom: 10rpx;
  84. line-height: 30rpx;
  85. }
  86. .coupons-info-address {
  87. font-size: 22rpx;
  88. color: #585858;
  89. letter-spacing: 0;
  90. line-height: 30rpx;
  91. }
  92. .coupons-btn {
  93. position: absolute;
  94. bottom: 0;
  95. right: 0;
  96. }
  97. .coupons-btn-gm {
  98. border-radius: 10px 0px 5px 0px !important;
  99. margin: 0 !important;
  100. padding: 0 !important;
  101. font-size: 26rpx;
  102. color: #fff !important;
  103. letter-spacing: 0;
  104. height: 51rpx !important;
  105. width: 100rpx !important;
  106. line-height: 51rpx !important;
  107. background: #af6e34 !important;
  108. }
  109. .coupons-btn-gms {
  110. background: #b9b9b9 !important;
  111. border-radius: 10px 0px 5px 0px !important;
  112. opacity: 0.6;
  113. margin: 0 !important;
  114. padding: 0 !important;
  115. font-family: PingFangSC-Semibold;
  116. font-size: 26rpx;
  117. font-weight: 400;
  118. color: #fff !important;
  119. letter-spacing: 0;
  120. height: 51rpx !important;
  121. width: 100rpx !important;
  122. line-height: 51rpx !important;
  123. }
  124. .subtitle {
  125. font-size: 24rpx;
  126. color: #999;
  127. overflow: hidden;
  128. height: 24rpx;
  129. padding-left: 10rpx;
  130. line-height: 24rpx;
  131. white-space: nowrap;
  132. text-overflow: ellipsis;
  133. margin-top: 12rpx;
  134. }
  135. .coupons-info-manjian {
  136. font-weight: normal;
  137. font-size: 20rpx;
  138. line-height: 34rpx;
  139. display: inline-block;
  140. color: #ff4949;
  141. letter-spacing: 0;
  142. }
  143. .coupons-info-manjian1 {
  144. font-weight: normal;
  145. font-size: 20rpx;
  146. line-height: 22rpx;
  147. color: #919191;
  148. letter-spacing: 0;
  149. overflow: hidden;
  150. white-space: nowrap;
  151. text-overflow: ellipsis;
  152. width: 300rpx;
  153. margin-top: 16rpx;
  154. }
  155. .coupons-info-manjian text {
  156. display: block;
  157. line-height: 20rpx;
  158. }
  159. .coupons-info-manjian > text:nth-of-type(1) {
  160. display: block;
  161. /* color: #FF4949; */
  162. opacity: 0.6;
  163. }
  164. .view01 {
  165. text-decoration: line-through;
  166. color: #999 !important;
  167. }
  168. .txt2 {
  169. display: block;
  170. color: #ccc;
  171. }
  172. /**上拉加载更多**/
  173. .userinfo {
  174. display: flex;
  175. flex-direction: column;
  176. align-items: center;
  177. }
  178. .userinfo-avatar {
  179. width: 128rpx;
  180. height: 128rpx;
  181. margin: 20rpx;
  182. border-radius: 50%;
  183. }
  184. .userinfo-nickname {
  185. color: #aaa;
  186. }
  187. .sy {
  188. display: block;
  189. text-align: right;
  190. width: 181rpx;
  191. font-size: 24rpx;
  192. color: #999;
  193. height: 40rpx;
  194. margin-top: 106rpx;
  195. }
  196. .usermotto {
  197. margin-top: 200px;
  198. }
  199. scroll-view {
  200. width: 100%;
  201. }
  202. .item {
  203. width: 90%;
  204. height: 300rpx;
  205. margin: 20rpx auto;
  206. background: brown;
  207. overflow: hidden;
  208. }
  209. .item .img {
  210. width: 430rpx;
  211. margin-right: 20rpx;
  212. float: left;
  213. }
  214. .title {
  215. font-size: 30rpx;
  216. display: block;
  217. margin: 30rpx auto;
  218. }
  219. .description {
  220. font-size: 26rpx;
  221. line-height: 15rpx;
  222. }
  223. .navigator-hover {
  224. opacity: 1 !important;
  225. background: #fff;
  226. }
  227. .hover{
  228. opacity: .6;
  229. }
  230. .navigator {
  231. display: inline-block;
  232. }
  233. .navigator:nth-of-type(2n+1) {
  234. margin-right: 10rpx;
  235. }
  236. .superscript {
  237. position: absolute;
  238. top: -10rpx;
  239. left: -12rpx;
  240. width: 86rpx;
  241. height: 86rpx;
  242. overflow: hidden;
  243. }
  244. /* 使用背景色渐变 */
  245. .superscript .gradual {
  246. width: 100%;
  247. height: 100%;
  248. background: linear-gradient(135deg, #31b968 50%, transparent 50%);
  249. }
  250. /* 使用三角形 */
  251. .superscript .triangle {
  252. width: 0;
  253. height: 0;
  254. border-top: 130rpx solid #31b968;
  255. border-right: 130rpx solid transparent;
  256. }
  257. /* 使用矩形旋转, 和父节点的 overflow:hidden 配合 */
  258. .superscript .rect {
  259. width: 176rpx;
  260. height: 183rpx;
  261. margin: -91rpx 0 0 -91rpx;
  262. transform: rotateZ(45deg);
  263. }
  264. .superscript .desc {
  265. position: absolute;
  266. top: 29%;
  267. left: 16%;
  268. z-index: 1;
  269. color: #fff;
  270. font-size: 23rpx;
  271. transform: rotate(-45deg);
  272. }
  273. .saleprice {
  274. font-size: 24rpx;
  275. display: inline-block;
  276. margin-right: 10rpx;
  277. font-weight: 400;
  278. }