info_list.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. <template>
  2. <view class="introduce-section">
  3. <view class="article no-card" style='width: 100%;'>
  4. <view class="shadow factoryItem flex justify-between">
  5. <view style='flex:1;color:#B2B3BB;'>合约</view>
  6. <view style='flex:1;text-align:right;color:#B2B3BB;'>最新价</view>
  7. </view>
  8. </view>
  9. <view
  10. v-for="(item, index) in infoList" :key="index"
  11. class="guess-item"
  12. >
  13. <view class="article no-card" >
  14. <view class="cu-item shadow factoryItem flex justify-between align-center">
  15. <view style='flex:1;'>
  16. <view style='color:#333;' class='factory'>{{item.goodsName}}</view>
  17. </view>
  18. <view style='flex:1;text-align:right;font-weight:900;font-size:17px;' >
  19. <view :class="item.newPrice > item.openPrice ? 'text-red':'text-green'">{{item.newPrice}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. }
  31. },
  32. methods: {
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .cu-tag.badge {
  38. right: 26rpx;
  39. }
  40. .up,.down{
  41. width: 8px;
  42. height: 5px;
  43. vertical-align: middle;
  44. margin-left: 2px;
  45. }
  46. .gird-left,.gird-right{
  47. }
  48. .cu-tag.radius[class*="line"]::after {
  49. border-radius: 66rpx;
  50. }
  51. .goTop{
  52. height: 32px;
  53. width: 32px;
  54. position: fixed;
  55. bottom: 200rpx;
  56. right: 30rpx;
  57. border-radius: 50%;
  58. }
  59. .goTop image{
  60. width:32px;
  61. height:32px;
  62. }
  63. .flex{
  64. display:flex;
  65. }
  66. .text-white{
  67. color:#fff;
  68. }
  69. .cu-card{
  70. text-align: center;
  71. }
  72. .factory{
  73. font-size:28rpx;
  74. font-weight: 500;
  75. }
  76. .positive{
  77. color:#E63113;
  78. font-size:26rpx;
  79. font-weight:900;
  80. }
  81. .negative{
  82. color:#229453;
  83. font-size:26rpx;
  84. font-weight:900;
  85. }
  86. .wrap{
  87. font-size:20rpx;
  88. color: rgba(0,0,0,0.5);
  89. }
  90. .align-center{
  91. align-items: center;
  92. }
  93. .flex-direction-row{
  94. flex-direction:row;
  95. }
  96. .factoryItem{
  97. padding: 20rpx 47rpx;
  98. }
  99. /* #ifdef MP */
  100. .mp-search-box {
  101. // position:relative;
  102. left: 0;
  103. top: 30upx;
  104. z-index: 9999;
  105. width: 100%;
  106. padding: 0 80upx;
  107. background: rgba(255, 170, 0, 0.6);
  108. .ser-input {
  109. flex: 1;
  110. height: 56upx;
  111. line-height: 56upx;
  112. text-align: center;
  113. font-size: 28upx;
  114. color: $font-color-base;
  115. border-radius: 10px;
  116. background: rgba(255, 255, 255, .6);
  117. }
  118. }
  119. .desc{
  120. width:73%;
  121. margin-right:2%;
  122. }
  123. .justify-between{
  124. justify-content: space-between;
  125. }
  126. page {
  127. .cate-section {
  128. position: relative;
  129. z-index: 5;
  130. border-radius: 16upx 16upx 0 0;
  131. margin-top: -20upx;
  132. }
  133. .carousel-section {
  134. padding: 0;
  135. .titleNview-placing {
  136. padding-top: 0;
  137. height: 0;
  138. }
  139. .carousel {
  140. .carousel-item {
  141. padding: 0;
  142. }
  143. }
  144. .swiper-dots {
  145. left: 50%;
  146. bottom: 5upx;
  147. transform: translateX(-50%);
  148. }
  149. }
  150. }
  151. /* #endif */
  152. .cuIcon-notification::before{
  153. color:#f37b1;
  154. }
  155. .cu-card.article>.cu-item .content>image {
  156. height: 3.4em;
  157. margin-right: 0rpx;
  158. margin-top: 24rpx;
  159. }
  160. .screen-swiper.price-swiper{
  161. height:70rpx;
  162. min-height: 70rpx;
  163. background: #fff;
  164. margin-bottom: 10px;
  165. }
  166. .guess-section {
  167. margin-bottom: 120rpx;
  168. margin-top:20rpx;
  169. }
  170. .guess-section .price{
  171. color:#000;
  172. font-size: 34rpx;
  173. }
  174. page {
  175. background: #f5f5f5;
  176. }
  177. .m-t {
  178. margin-top: 16upx;
  179. }
  180. .header-swiper{
  181. min-height: 300rpx;
  182. }
  183. /* 头部 轮播图 */
  184. .carousel-section {
  185. position: relative;
  186. // padding-top: 10px;
  187. .titleNview-placing {
  188. height: var(--status-bar-height);
  189. padding-top: 44px;
  190. box-sizing: content-box;
  191. }
  192. .titleNview-background {
  193. position: absolute;
  194. top: 0;
  195. left: 0;
  196. width: 100%;
  197. height: 426upx;
  198. transition: .4s;
  199. }
  200. }
  201. .tab-scroll-view {
  202. width: 750rpx;
  203. height: 300rpx;
  204. flex-direction: row;
  205. white-space: nowrap;
  206. .tab-item {
  207. display: inline-block;
  208. width: 350rpx;
  209. height: 250rpx;
  210. font-size: 16px;
  211. -moz-box-shadow: 2px 2px 5px #ccc;
  212. -webkit-box-shadow: 2px 2px 5px #ccc;
  213. box-shadow: 2px 2px 5px #ccc;
  214. color: #555;
  215. margin: 10rpx;
  216. }
  217. }
  218. .carousel {
  219. width: 100%;
  220. height: 350upx;
  221. .carousel-item {
  222. width: 100%;
  223. height: 100%;
  224. // padding: 0 28upx;
  225. overflow: hidden;
  226. }
  227. image {
  228. width: 100%;
  229. height: 100%;
  230. // border-radius: 10upx;
  231. }
  232. }
  233. .swiper-dots {
  234. display: flex;
  235. position: absolute;
  236. left: 60upx;
  237. bottom: 15upx;
  238. width: 72upx;
  239. height: 36upx;
  240. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA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5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);
  241. background-size: 100% 100%;
  242. .num {
  243. width: 36upx;
  244. height: 36upx;
  245. border-radius: 50px;
  246. font-size: 24upx;
  247. color: #fff;
  248. text-align: center;
  249. line-height: 36upx;
  250. }
  251. .sign {
  252. position: absolute;
  253. top: 0;
  254. left: 50%;
  255. line-height: 36upx;
  256. font-size: 12upx;
  257. color: #fff;
  258. transform: translateX(-50%);
  259. }
  260. }
  261. /* 分类 */
  262. .cate-section {
  263. display: flex;
  264. justify-content: space-around;
  265. align-items: center;
  266. flex-wrap: wrap;
  267. padding: 30upx 22upx;
  268. background: #fff;
  269. .cate-item {
  270. display: flex;
  271. flex-direction: column;
  272. align-items: center;
  273. font-size: $font-sm + 2upx;
  274. color: $font-color-dark;
  275. }
  276. /* 原图标颜色太深,不想改图了,所以加了透明度 */
  277. image {
  278. width: 68upx;
  279. height: 68upx;
  280. margin-bottom: 14upx;
  281. // border-radius: 50%;
  282. opacity: .7;
  283. // box-shadow: 4upx 4upx 20upx rgba(250, 67, 106, 0.3);
  284. }
  285. .grid_icon{
  286. font-size: 48upx;
  287. margin-bottom: 18upx;
  288. color: #fa436a;
  289. }
  290. }
  291. .ad-1 {
  292. width: 100%;
  293. height: 210upx;
  294. padding: 10upx 0;
  295. background: #fff;
  296. image {
  297. width: 100%;
  298. height: 100%;
  299. }
  300. }
  301. /* 销售信息 */
  302. .introduce-section {
  303. background: #fff;
  304. margin: 20upx 0;
  305. padding-bottom: 100upx;
  306. .guess-item {
  307. padding-top: 10upx;
  308. padding-bottom: 10upx;
  309. // border-bottom: 1px solid #EEEEEE;
  310. }
  311. .title {
  312. font-size: 28upx;
  313. color: $font-color-dark;
  314. font-weight:bold;
  315. height: 50upx;
  316. line-height: 50upx;
  317. flex:2.5;
  318. }
  319. .title-tip {
  320. flex:1;
  321. }
  322. .price-box {
  323. display: flex;
  324. align-items: baseline;
  325. height: 70upx;
  326. padding: 10upx 0;
  327. font-size: 26upx;
  328. color: $uni-color-primary;
  329. }
  330. .price {
  331. font-size: $font-lg + 2upx;
  332. }
  333. .m-price {
  334. margin: 0 12upx;
  335. color: $font-color-light;
  336. text-decoration: line-through;
  337. }
  338. .coupon-tip {
  339. align-items: center;
  340. padding: 4upx 10upx;
  341. background: $uni-color-primary;
  342. font-size: $font-sm;
  343. color: #fff;
  344. border-radius: 6upx;
  345. line-height: 1;
  346. transform: translateY(-4upx);
  347. }
  348. .bot-row {
  349. display: flex;
  350. align-items: center;
  351. height: 50upx;
  352. font-size: $font-sm;
  353. color: $font-color-light;
  354. view {
  355. flex: 1;
  356. }
  357. }
  358. }
  359. .article {
  360. border-bottom: 1px solid #EEEEEE;
  361. }
  362. .cu-item{
  363. padding:25rpx 47rpx 45rpx 47rpx;
  364. }
  365. </style>