diff --git a/pages/index/index.vue b/pages/index/index.vue
index f34d51a..43f7be2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -34,7 +34,7 @@
-
+
@@ -42,6 +42,21 @@
+
+
+
+
+
+
+
+
+ {{item.goods.money / 100}}
+ {{item.goods.title}}
+
+
+
+
+
@@ -75,14 +90,11 @@
title: '品牌导游',
id: '57'
},
- // {
- // title: '选项2',
- // id: '58'
- // }
],
typeIndex: 0,
tourList: [],
- lineList: []
+ lineList: [],
+ newList: []
}
},
onLoad(option) {
@@ -98,6 +110,7 @@
this.getTopBanner()
this.getLineList()
this.getTouristList()
+ this.getNewList()
},
methods: {
// 获取导游列表
@@ -120,6 +133,16 @@
this.lineList = res.data;
})
},
+ // 获取近期上新列表
+ getNewList() {
+ this.Post({
+ tag_id: 58,
+ offset: 0,
+ limit: 10
+ },'/api/tag/getGoodsByTagId').then(res => {
+ this.newList = res.data
+ })
+ },
// 获取顶部banner
getTopBanner() {
this.Post({
@@ -283,7 +306,7 @@
display: flex;
.tour-item {
- margin-right: 20rpx;
+ margin-right: 14rpx;
position: relative;
width: 266.73rpx;
height: 333.4rpx;
@@ -328,6 +351,55 @@
display: none;
}
+ .new-box {
+ overflow-x: auto;
+ overflow-y: hidden;
+ display: flex;
+ margin: 26rpx 0 0 26rpx;
+
+ .new-item {
+ width: 466.67rpx;
+ height: 306.67rpx;
+ margin-right: 14rpx;
+ padding: 7rpx;
+ box-sizing: border-box;
+ background-image: url('https://static.ticket.sz-trip.com/tourist/index/newBg.png');
+ background-size: 100% 100%;
+ flex-shrink: 0;
+
+ &>view {
+ width: 100%;
+ height: 100%;
+ background-size: cover;
+ position: relative;
+
+ .new-content {
+ position: absolute;
+ left: 12rpx;
+ bottom: 13rpx;
+ font-weight: 500;
+ font-size: 28rpx;
+ color: #FFFFFF;
+
+ .new-price {
+ font-weight: bold;
+ }
+ .new-price::before {
+ font-size: 22.67rpx;
+ content: '¥';
+ }
+ .new-price::after {
+ font-size: 22.67rpx;
+ content: '起';
+ }
+ }
+ }
+ }
+ }
+ .new-box::-webkit-scrollbar {
+ display: none;
+ }
+
.line-box {
display: flex;
flex-direction: column;
diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html
index 1861439..7b20513 100644
--- a/unpackage/dist/build/web/index.html
+++ b/unpackage/dist/build/web/index.html
@@ -1,2 +1,2 @@
daoyous
\ No newline at end of file
+ document.write('')