|
@@ -497,40 +497,45 @@ export default {
|
|
|
this.tabBarsTow[this.strategyIndexTwo].IsRed = is;
|
|
|
},
|
|
|
// h获取时间线
|
|
|
- getTimeLineList() {
|
|
|
- Reports.getTacticsTimeLine({
|
|
|
- PageSize: this.pageSize,
|
|
|
- CurrentIndex: this.page_no,
|
|
|
- }).then((res) => {
|
|
|
- if (res.Ret === 200) {
|
|
|
- this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
|
|
|
- this.totalPage = res.Data.Paging.Pages;
|
|
|
- let list = res.Data.List || [];
|
|
|
- list = list.map((item) => {
|
|
|
- let temp = item;
|
|
|
- temp.date = item.PublishTime.split(" ")[0];
|
|
|
- if (item.Content.length) {
|
|
|
- item.isShowBtn = item.Content.length > 60 ? true : false;
|
|
|
- item.isExpand = item.Content.length > 60 ? false : true;
|
|
|
- }
|
|
|
- return temp;
|
|
|
- });
|
|
|
- if (this.page_no === 1) {
|
|
|
- this.timeLine = list;
|
|
|
- this.haveData = this.timeLine.length ? true : false;
|
|
|
- if (this.refresh) {
|
|
|
- uni.stopPullDownRefresh();
|
|
|
- this.refresh = false;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.timeLine = this.timeLine.concat(list);
|
|
|
+ async getTimeLineList() {
|
|
|
+ const res =
|
|
|
+ this.tabAct_id == 23
|
|
|
+ ? await Reports.getTacticsTimeLine({
|
|
|
+ PageSize: this.pageSize,
|
|
|
+ CurrentIndex: this.page_no,
|
|
|
+ })
|
|
|
+ : await Reports.getGushowTimeLine({
|
|
|
+ PageSize: this.pageSize,
|
|
|
+ CurrentIndex: this.page_no,
|
|
|
+ });
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
|
|
|
+ this.totalPage = res.Data.Paging.Pages;
|
|
|
+ let list = res.Data.List || [];
|
|
|
+ list = list.map((item) => {
|
|
|
+ let temp = item;
|
|
|
+ temp.date = item.PublishTime.split(" ")[0];
|
|
|
+ if (item.Content.length) {
|
|
|
+ item.isShowBtn = item.Content.length > 60 ? true : false;
|
|
|
+ item.isExpand = item.Content.length > 60 ? false : true;
|
|
|
}
|
|
|
+ return temp;
|
|
|
+ });
|
|
|
+ if (this.page_no === 1) {
|
|
|
+ this.timeLine = list;
|
|
|
+ this.haveData = this.timeLine.length ? true : false;
|
|
|
+ if (this.refresh) {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ this.refresh = false;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.timeLine = this.timeLine.concat(list);
|
|
|
}
|
|
|
- setTimeout(() => {
|
|
|
- this.$refs.timeChild.loadTimeLine = true;
|
|
|
- this.$refs.timeChild.getConentsHeight();
|
|
|
- }, 0);
|
|
|
- });
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.timeChild.loadTimeLine = true;
|
|
|
+ this.$refs.timeChild.getConentsHeight();
|
|
|
+ }, 0);
|
|
|
},
|
|
|
/* 搜索 */
|
|
|
async goSearch() {
|