diff --git a/pages.json b/pages.json
index a00cd52..472667a 100644
--- a/pages.json
+++ b/pages.json
@@ -170,6 +170,14 @@
"enablePullDownRefresh" : false,
"navigationStyle": "custom"
}
+ },
+ {
+ "path" : "knowledgeInfo/knowledgeInfo",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "enablePullDownRefresh" : false
+ }
}]
}],
"globalStyle": {
diff --git a/pages/knowledge/knowledge.vue b/pages/knowledge/knowledge.vue
index 0624125..b001d3b 100644
--- a/pages/knowledge/knowledge.vue
+++ b/pages/knowledge/knowledge.vue
@@ -1,26 +1,20 @@
-
-
-
- 知识库
-
-
-
-
-
- 2024-02-19 04:21
- 凌晨突发6.2级地震!这份逃生避险指南,请收藏
-
-
- 2024-02-19 04:21
- 应急科普 | 注意防范!大范围雨雪进入鼎盛期
+
+
+ 知识库
-
-
-
-
-
+
+
+
+
+ {{item.createTime}}
+ {{item.title}}
+
+
+
+
+
@@ -30,17 +24,49 @@
data() {
return {
page: "",
+ queryObj:{
+ pageNum:1,
+ pageSize:10
+ },
+ total:0,
+ isloading:false,
+ //数据列表
+ knowledgeList:[]
};
},
onShow() {
this.page= "know"
},
-
- methods: {
-
+ onLoad() {
+ this.getContentList();
},
- components: {tabbar}
-
+ methods:{
+ async getContentList() {
+ this.isloading = true
+ const {
+ data: res
+ } = await uni.$http.post('/small/library/listApp',this.queryObj)
+ this.isloading = false
+
+ res.rows.forEach(item=>{
+ item.uploadPath = uni.$http.baseUrl +item.uploadPath
+ })
+ this.knowledgeList =[...this.knowledgeList,...res.rows]
+ this.total = res.total
+ },
+ navClickHandler(item) {
+ uni.navigateTo({
+ url: '/subpkg/knowledgeInfo/knowledgeInfo?guid='+item.guid
+ })
+ }
+ },
+ onReachBottom(){
+ if(this.queryObj.pageNum * this.queryObj.pageSize >= this.total) return uni.$showMsg('已展示所有内容')
+ if(this.isloading) return
+ this.queryObj.pageNum++
+ this.getContentList()
+ },
+ components: {tabbar},
}
diff --git a/subpkg/complete/complete.vue b/subpkg/complete/complete.vue
index 3b7a84c..7c46ff5 100644
--- a/subpkg/complete/complete.vue
+++ b/subpkg/complete/complete.vue
@@ -6,7 +6,7 @@
-
+
恭喜完成本次演练!
@@ -52,7 +52,7 @@