现有接口对接完成

master
Lee1203 2022-08-18 17:33:35 +08:00
parent 7684c12c6f
commit 64ba61cd3f
7 changed files with 25 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<template>
<view class="pad-x120">
<view class="pad-x120" v-if="isLoading">
<!-- 头部 -->
<status-nav :ifReturn="false" navBarTitle="首页" marginBottom="0"></status-nav>
<!-- 轮播图 -->
@ -59,6 +59,7 @@
videoList:[], //
lineList:[], //线
newsList:[], //
isLoading:false,
}
},
onLoad(op) {
@ -160,6 +161,9 @@
},
//
getNewsList(){
uni.showLoading({
title:'加载中'
})
let params = {
page:1,
size:4
@ -179,6 +183,8 @@
newsArr.push(obj);
})
this.newsList = newsArr;
uni.hideLoading();
this.isLoading = true;
}
})
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -218,8 +218,9 @@ __webpack_require__.r(__webpack_exports__);
playTimer: null, //间隔时间
videoList: [], //视频列表
lineList: [], //线路列表
newsList: [] //资讯列表
};
newsList: [], //资讯列表
isLoading: false };
},
onLoad: function onLoad(op) {
// 获取banner
@ -320,6 +321,9 @@ __webpack_require__.r(__webpack_exports__);
},
// 获取推荐资讯
getNewsList: function getNewsList() {var _this5 = this;
uni.showLoading({
title: '加载中' });
var params = {
page: 1,
size: 4 };
@ -339,6 +343,8 @@ __webpack_require__.r(__webpack_exports__);
newsArr.push(obj);
});
_this5.newsList = newsArr;
uni.hideLoading();
_this5.isLoading = true;
}
});
} } };exports.default = _default;

View File

@ -1 +1 @@
<view class="pad-x120 data-v-57280228"><status-nav vue-id="8dd740cc-1" ifReturn="{{false}}" navBarTitle="首页" marginBottom="0" class="data-v-57280228" bind:__l="__l"></status-nav><view class="banner-bg pad-sx10 pad-zy20 border-box data-v-57280228"><view class="banner radius10 data-v-57280228"><swiper-pull vue-id="8dd740cc-2" newRadius="10rpx" bannerList="{{bannerList}}" newHeight="272rpx" newBottom="16rpx" isplay="{{isplay}}" class="data-v-57280228" bind:__l="__l"></swiper-pull></view></view><view class="index-video-bg data-v-57280228"><view class="index-title data-v-57280228"><title-pull vue-id="8dd740cc-3" nameTxt="推荐视频" moreUrl="/pagesA/video/video" class="data-v-57280228" bind:__l="__l"></title-pull></view><view class="index-video data-v-57280228"><list-all vue-id="8dd740cc-4" videoList="{{videoList}}" videoPadding="10rpx" class="data-v-57280228" bind:__l="__l"></list-all></view></view><view class="index-line-bg data-v-57280228"><view class="index-title data-v-57280228"><title-pull vue-id="8dd740cc-5" nameTxt="线路信息及报价" moreUrl="/pages/line/line" class="data-v-57280228" bind:__l="__l"></title-pull></view><view class="index-line data-v-57280228"><list-all vue-id="8dd740cc-6" lineList="{{lineList}}" class="data-v-57280228" bind:__l="__l"></list-all></view></view><view class="index-news-bg data-v-57280228"><view class="index-title data-v-57280228"><title-pull vue-id="8dd740cc-7" nameTxt="新闻资讯" moreUrl="/pagesA/news/news" class="data-v-57280228" bind:__l="__l"></title-pull></view><view class="index-news data-v-57280228"><list-all vue-id="8dd740cc-8" newsList="{{newsList}}" class="data-v-57280228" bind:__l="__l"></list-all></view></view><foot-tab vue-id="8dd740cc-9" class="data-v-57280228" bind:__l="__l"></foot-tab></view>
<block wx:if="{{isLoading}}"><view class="pad-x120 data-v-57280228"><status-nav vue-id="8dd740cc-1" ifReturn="{{false}}" navBarTitle="首页" marginBottom="0" class="data-v-57280228" bind:__l="__l"></status-nav><view class="banner-bg pad-sx10 pad-zy20 border-box data-v-57280228"><view class="banner radius10 data-v-57280228"><swiper-pull vue-id="8dd740cc-2" newRadius="10rpx" bannerList="{{bannerList}}" newHeight="272rpx" newBottom="16rpx" isplay="{{isplay}}" class="data-v-57280228" bind:__l="__l"></swiper-pull></view></view><view class="index-video-bg data-v-57280228"><view class="index-title data-v-57280228"><title-pull vue-id="8dd740cc-3" nameTxt="推荐视频" moreUrl="/pagesA/video/video" class="data-v-57280228" bind:__l="__l"></title-pull></view><view class="index-video data-v-57280228"><list-all vue-id="8dd740cc-4" videoList="{{videoList}}" videoPadding="10rpx" class="data-v-57280228" bind:__l="__l"></list-all></view></view><view class="index-line-bg data-v-57280228"><view class="index-title data-v-57280228"><title-pull vue-id="8dd740cc-5" nameTxt="线路信息及报价" moreUrl="/pages/line/line" class="data-v-57280228" bind:__l="__l"></title-pull></view><view class="index-line data-v-57280228"><list-all vue-id="8dd740cc-6" lineList="{{lineList}}" class="data-v-57280228" bind:__l="__l"></list-all></view></view><view class="index-news-bg data-v-57280228"><view class="index-title data-v-57280228"><title-pull vue-id="8dd740cc-7" nameTxt="新闻资讯" moreUrl="/pagesA/news/news" class="data-v-57280228" bind:__l="__l"></title-pull></view><view class="index-news data-v-57280228"><list-all vue-id="8dd740cc-8" newsList="{{newsList}}" class="data-v-57280228" bind:__l="__l"></list-all></view></view><foot-tab vue-id="8dd740cc-9" class="data-v-57280228" bind:__l="__l"></foot-tab></view></block>

View File

@ -179,6 +179,12 @@