diff --git a/api/inn.js b/api/inn.js index 8246ade..83a09ad 100644 --- a/api/inn.js +++ b/api/inn.js @@ -208,4 +208,15 @@ export function getHotelGoodList(data) { return request.get("/api/hotelMain/goodsList", data, { login: false }); +} + +/** + * 置顶客栈资讯 + * @param data + * @returns {*} + */ +export function setTopHotelNew(data) { + return request.post("/api/hotelNews/setIsTop", data, { + login: true + }); } \ No newline at end of file diff --git a/pagesInn/inn/innHome.vue b/pagesInn/inn/innHome.vue index 165a305..686fb72 100644 --- a/pagesInn/inn/innHome.vue +++ b/pagesInn/inn/innHome.vue @@ -181,7 +181,7 @@ - + 查看所有商品 @@ -200,7 +200,14 @@ :key="index" class="info-item" > - + {{ item.name }} @@ -255,7 +262,11 @@ v-if="item.showMore" class="more-wrapper" > - + { + uni.hideLoading() + }) } } } @@ -976,13 +1005,15 @@ export default { } .btn { display: flex; - padding: 20rpx 0; + padding: 20rpx 0 40rpx 0; justify-content: center; .btn-cont { - padding: 10rpx 30rpx; + padding: 13rpx 30rpx; border: 1px solid #0DC5C5; + border-radius: 8rpx; color: #0DC5C5; .iconfont { + margin: 0 0 0 20rpx; font-size: 24rpx; } } @@ -1239,6 +1270,12 @@ export default { .info-item-header { position: relative; padding: 20rpx 20rpx 0 20rpx; + &.info-item-top { + padding-top: 60rpx; + background-size: 100% 80rpx; + background-repeat: no-repeat; + background-image: url(); + } .name { font-size: 16px; color: #333;