index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. <template>
  2. <view class="center">
  3. <view class="top">
  4. <image class="top-bg" src="../../static/img/top-bg.png" mode=""></image>
  5. <view class="top-top flex">
  6. <image class="ttop-left" src="../../static/img/log.png" mode=""></image>
  7. <view class="ttop-right">
  8. <view class="ttop-item">
  9. <image class="titem-image" src="../../static/img/sign.png" mode=""></image>
  10. <view class="titem-font">签到</view>
  11. </view>
  12. <view class="ttop-item">
  13. <image class="titem-image" src="../../static/img/message.png" mode=""></image>
  14. <view class="titem-font">消息</view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="top-main flex">
  19. <view class="search-box flex">
  20. <image class="search" src="../../static/img/search.png" mode=""></image>
  21. <view class="search-font">搜索</view>
  22. </view>
  23. <view class="cart flex">
  24. <view class="cart-font">分类</view>
  25. <image class="cart-image" src="../../static/img/cart.png" mode=""></image>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="navbar flex">
  30. <view class="navbar-item">
  31. <image class="nitem-image" src="../../static/img/autotrophy.png" mode=""></image>
  32. <view class="nitem-font">趣豆自营</view>
  33. </view>
  34. <view class="navbar-item">
  35. <image class="nitem-image" src="../../static/img/integral.png" mode=""></image>
  36. <view class="nitem-font">积分商城</view>
  37. </view>
  38. <view class="navbar-item">
  39. <image class="nitem-image" src="../../static/img/replacement.png" mode=""></image>
  40. <view class="nitem-font">置换商城</view>
  41. </view>
  42. <view class="navbar-item">
  43. <image class="nitem-image" src="../../static/img/Hang.png" mode=""></image>
  44. <view class="nitem-font">挂售商城</view>
  45. </view>
  46. <view class="navbar-item">
  47. <image class="nitem-image" src="../../static/img/offline.png" mode=""></image>
  48. <view class="nitem-font">线下会馆</view>
  49. </view>
  50. </view>
  51. <view class="product"><image class="product-image" src="../../static/img/index-product.png" mode=""></image></view>
  52. <view class="shingle">
  53. <view class="shingle-top flex">
  54. <view class="shingle-title">艺术品挂牌交易区</view>
  55. <view class="shingle-btn">
  56. 查看更多趣豆会馆
  57. <text>></text>
  58. </view>
  59. </view>
  60. <view class="shingle-main">
  61. <view class="shingle-bg"><image src="../../static/img/sim-bg.png" mode=""></image></view>
  62. <view class="shinglem-title flex">
  63. <image class="address" src="../../static/img/address.png" mode=""></image>
  64. <view class="shingle-font">浙江馆</view>
  65. </view>
  66. <view class="shingle-mmain flex">
  67. <view class="smmain-item">
  68. <view class="smitem-top">开放中</view>
  69. <view class="smitem-bottom">状态</view>
  70. </view>
  71. <view class="shu"></view>
  72. <view class="smmain-item">
  73. <view class="smitem-top">纯平</view>
  74. <view class="smitem-bottom">馆长</view>
  75. </view>
  76. <view class="shu"></view>
  77. <view class="smmain-item">
  78. <view class="people flex">
  79. <view class="peopleitem" v-for="item in 1"><image src="../../static/img/busy.png" mode=""></image></view>
  80. <view class="peopleitem" v-for="item in 4"><image src="../../static/img/leisure.png" mode=""></image></view>
  81. </view>
  82. <view class="smitem-bottom">流畅</view>
  83. </view>
  84. </view>
  85. <image class="right-bottom" src="../../static/img/right-bottom.png" mode=""></image>
  86. </view>
  87. </view>
  88. <view class="good-title" v-if="dataList.length > 0"><image src="../../static/img/goodtitle.png" mode=""></image></view>
  89. <view class="main" v-if="dataList.length > 0">
  90. <view class="list-box-h">
  91. <view v-for="(item, index) in dataList" :key="index" class="guess-item" @click="navToDetailPage(item)">
  92. <image :src="item.image"></image>
  93. <view class="guess-box">
  94. <view class="title clamp2">{{ item.store_name }}</view>
  95. <view class="price-box flex">
  96. <view class="yuanprice">{{ item.ot_price }}</view>
  97. <image src="../../static/img/jiantou.png" mode=""></image>
  98. <view class="jiang">直降{{ (item.ot_price - item.price).toFixed(2) }}元</view>
  99. </view>
  100. <view class="price" v-if="item.integral != 0">¥{{ item.price }} + {{ item.integral }}消费补贴券</view>
  101. <view class="price" v-else>¥{{ item.price }}</view>
  102. <view class="btn">立即购买</view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <u-tabbar v-model="current" :list="tabbar" :mid-button="true"></u-tabbar>
  108. </view>
  109. </template>
  110. <script>
  111. import { tabbar } from '@/utils/tabbar.js'
  112. export default {
  113. data() {
  114. return {
  115. dataList: '',
  116. tabbar: tabbar,
  117. current: 0,
  118. };
  119. },
  120. onLoad() {},
  121. methods: {}
  122. };
  123. </script>
  124. <style lang="scss">
  125. page,
  126. .center {
  127. min-height: 100%;
  128. height: auto;
  129. background-color: #ffffff;
  130. }
  131. .top {
  132. position: relative;
  133. width: 100%;
  134. height: 692rpx;
  135. .top-bg {
  136. position: absolute;
  137. top: 0;
  138. left: 0;
  139. right: 0;
  140. width: 100%;
  141. height: 100%;
  142. }
  143. .top-top {
  144. position: relative;
  145. z-index: 2;
  146. padding: 34rpx 34rpx 0 28rpx;
  147. .ttop-left {
  148. width: 180rpx;
  149. height: 60rpx;
  150. }
  151. .ttop-right {
  152. display: flex;
  153. align-items: center;
  154. .ttop-item {
  155. display: flex;
  156. flex-direction: column;
  157. align-items: center;
  158. margin-left: 46rpx;
  159. .titem-image {
  160. width: 36rpx;
  161. height: 36rpx;
  162. }
  163. .titem-font {
  164. font-size: 24rpx;
  165. font-family: PingFang SC;
  166. font-weight: 500;
  167. color: #ffffff;
  168. margin-top: 14rpx;
  169. }
  170. }
  171. }
  172. }
  173. .top-main {
  174. position: relative;
  175. z-index: 2;
  176. padding: 30rpx;
  177. .search-box {
  178. width: 532rpx;
  179. background: #ffffff;
  180. border-radius: 10rpx;
  181. padding: 20rpx 20rpx 16rpx;
  182. .search {
  183. width: 34rpx;
  184. height: 34rpx;
  185. }
  186. .search-font {
  187. font-size: 28rpx;
  188. font-family: PingFang SC;
  189. font-weight: 500;
  190. color: #333333;
  191. }
  192. }
  193. .cart {
  194. width: 128rpx;
  195. background: #ffffff;
  196. border-radius: 10rpx;
  197. padding: 22rpx 20rpx 20rpx 20rpx;
  198. .cart-font {
  199. font-size: 24rpx;
  200. font-family: PingFang SC;
  201. font-weight: 500;
  202. color: #333333;
  203. }
  204. .cart-image {
  205. width: 28rpx;
  206. height: 20rpx;
  207. }
  208. }
  209. }
  210. }
  211. .navbar {
  212. margin-top: 42rpx;
  213. justify-content: space-around;
  214. .navbar-item {
  215. width: 20%;
  216. display: flex;
  217. flex-direction: column;
  218. align-items: center;
  219. .nitem-image {
  220. width: 90rpx;
  221. height: 90rpx;
  222. }
  223. .nitem-font {
  224. margin-top: 16rpx;
  225. font-size: 24rpx;
  226. font-family: PingFang SC;
  227. font-weight: 500;
  228. color: #0c1732;
  229. }
  230. }
  231. }
  232. .product {
  233. width: 750rpx;
  234. height: 350rpx;
  235. margin-top: 50rpx;
  236. .product-image {
  237. width: 750rpx;
  238. height: 350rpx;
  239. }
  240. }
  241. .shingle {
  242. width: 690rpx;
  243. background: #efefef;
  244. border-radius: 10rpx;
  245. margin: 60rpx auto;
  246. padding: 28rpx 20rpx 40rpx;
  247. .shingle-top {
  248. padding-left: 2rpx;
  249. .shingle-title {
  250. font-size: 36rpx;
  251. font-family: PingFang SC;
  252. font-weight: bold;
  253. color: #375afe;
  254. }
  255. .shingle-btn {
  256. width: 248rpx;
  257. height: 50rpx;
  258. border: 2rpx solid #375afe;
  259. border-radius: 10rpx;
  260. padding: 0 16rpx;
  261. text-align: left;
  262. font-size: 24rpx;
  263. font-family: PingFang SC;
  264. font-weight: 500;
  265. color: #375afe;
  266. line-height: 50rpx;
  267. text {
  268. display: inline-block;
  269. padding-left: 10rpx;
  270. }
  271. }
  272. }
  273. .shingle-main {
  274. margin: 20rpx auto;
  275. width: 650rpx;
  276. height: 206rpx;
  277. position: relative;
  278. .shingle-bg {
  279. position: absolute;
  280. top: 0;
  281. left: 0;
  282. right: 0;
  283. width: 650rpx;
  284. height: 206rpx;
  285. image {
  286. width: 650rpx;
  287. height: 206rpx;
  288. }
  289. }
  290. .shinglem-title {
  291. position: relative;
  292. z-index: 2;
  293. justify-content: center;
  294. height: 70rpx;
  295. .address {
  296. width: 28rpx;
  297. height: 30rpx;
  298. }
  299. .shingle-font {
  300. font-size: 36rpx;
  301. font-family: PingFang SC;
  302. font-weight: bold;
  303. color: #ffffff;
  304. line-height: 70rpx;
  305. margin-left: 14rpx;
  306. }
  307. }
  308. .shingle-mmain {
  309. position: relative;
  310. z-index: 2;
  311. margin-top: 30rpx;
  312. .smmain-item {
  313. width: 33%;
  314. display: flex;
  315. flex-direction: column;
  316. align-items: center;
  317. .smitem-top {
  318. font-size: 30rpx;
  319. font-family: PingFang SC;
  320. font-weight: bold;
  321. color: #ffffff;
  322. }
  323. .smitem-bottom {
  324. margin-top: 10rpx;
  325. font-size: 30rpx;
  326. font-family: PingFang SC;
  327. font-weight: 500;
  328. color: #ffffff;
  329. }
  330. .people {
  331. justify-content: center;
  332. .peopleitem {
  333. width: 24rpx;
  334. height: 34rpx;
  335. image {
  336. width: 100%;
  337. height: 100%;
  338. }
  339. }
  340. }
  341. }
  342. .shu {
  343. width: 2rpx;
  344. height: 70rpx;
  345. background: #ffffff;
  346. }
  347. }
  348. .right-bottom {
  349. position: absolute;
  350. z-index: 2;
  351. right: 0;
  352. bottom: 0;
  353. width: 94rpx;
  354. height: 92rpx;
  355. }
  356. }
  357. }
  358. .good-title {
  359. width: 376rpx;
  360. height: 34rpx;
  361. margin: 44rpx auto 0;
  362. image {
  363. width: 100%;
  364. height: 100%;
  365. }
  366. }
  367. .guess-item {
  368. display: flex;
  369. width: 710rpx;
  370. height: 300rpx;
  371. background: #ffffff;
  372. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  373. border-radius: 10rpx;
  374. padding: 15rpx;
  375. padding-bottom: 150rpx;
  376. margin: 20rpx auto 0;
  377. position: relative;
  378. image {
  379. width: 200rpx;
  380. height: 200rpx;
  381. border-radius: 10rpx;
  382. }
  383. .guess-box {
  384. padding: 12rpx 0 0 24rpx;
  385. width: 436rpx;
  386. .title {
  387. font-size: 36rpx;
  388. padding-left: 4rpx;
  389. font-family: PingFang SC;
  390. font-weight: 500;
  391. color: #333333;
  392. width: 368rpx;
  393. line-height: 36rpx;
  394. .tuanF {
  395. display: inline-block;
  396. margin-right: 4rpx;
  397. position: relative;
  398. top: -6rpx;
  399. .tuan {
  400. display: flex;
  401. align-items: center;
  402. padding: 10rpx;
  403. height: 36rpx;
  404. background: #ffebe9;
  405. border-radius: 18rpx;
  406. .tuan-image {
  407. width: 18rpx;
  408. height: 18rpx;
  409. }
  410. .tuan-font {
  411. display: inline;
  412. font-size: 20rpx;
  413. font-family: PingFang SC;
  414. font-weight: 500;
  415. color: #ff1135;
  416. margin-left: 2rpx;
  417. }
  418. }
  419. }
  420. }
  421. .ping-box {
  422. margin-top: 15rpx;
  423. justify-content: flex-start;
  424. .ping {
  425. margin-left: 10rpx;
  426. height: 39rpx;
  427. background: #fdf7eb;
  428. border-radius: 5rpx;
  429. font-size: 22rpx;
  430. font-family: PingFang SC;
  431. font-weight: 500;
  432. color: #ff911f;
  433. display: flex;
  434. align-items: center;
  435. padding: 0 10rpx;
  436. }
  437. }
  438. .price-box {
  439. margin-top: 50rpx;
  440. justify-content: flex-start;
  441. .yuanprice {
  442. font-size: 26rpx;
  443. font-family: PingFang SC;
  444. font-weight: 500;
  445. text-decoration: line-through;
  446. color: #999999;
  447. padding-right: 6rpx;
  448. }
  449. image {
  450. width: 14rpx;
  451. height: 16rpx;
  452. }
  453. .jiang {
  454. padding-left: 2rpx;
  455. font-size: 24rpx;
  456. font-family: PingFang SC;
  457. font-weight: bold;
  458. color: #b59467;
  459. }
  460. }
  461. .price {
  462. font-size: 36rpx;
  463. font-family: PingFang SC;
  464. font-weight: bold;
  465. color: #ff1135;
  466. }
  467. .btn {
  468. width: 137rpx;
  469. height: 56rpx;
  470. background: linear-gradient(0deg, rgba(60, 237, 237, 0.99), #04b8ff, #375afe);
  471. border-radius: 28rpx;
  472. font-size: 28rpx;
  473. font-family: PingFang SC;
  474. font-weight: 500;
  475. color: #ffffff;
  476. line-height: 56rpx;
  477. text-align: center;
  478. position: absolute;
  479. bottom: 10rpx;
  480. right: 25rpx;
  481. }
  482. }
  483. }
  484. </style>