diff --git a/pages/knowledge/knowledge.vue b/pages/knowledge/knowledge.vue index ee80d65..174e168 100644 --- a/pages/knowledge/knowledge.vue +++ b/pages/knowledge/knowledge.vue @@ -1,20 +1,20 @@ @@ -24,78 +24,83 @@ data() { return { page: "", - queryObj:{ - pageNum:1, - pageSize:10 + queryObj: { + pageNum: 1, + pageSize: 10 }, - total:0, - isloading:false, + total: 0, + isloading: false, //数据列表 - knowledgeList:[] + knowledgeList: [] }; }, onShow() { - this.page= "know" + this.page = "know" }, onLoad() { - this.getContentList(); + this.getContentList(); }, - methods:{ + methods: { async getContentList() { this.isloading = true const { data: res - } = await uni.$http.post('/small/library/listApp',this.queryObj) + } = await uni.$http.post('/small/library/listApp', this.queryObj) this.isloading = false - res.rows.forEach(item=>{ - item.uploadPath = uni.$http.baseUrl +item.uploadPath + res.rows.forEach(item => { + item.uploadPath = uni.$http.baseUrl + item.uploadPath }) - this.knowledgeList =[...this.knowledgeList,...res.rows] + this.knowledgeList = [...this.knowledgeList, ...res.rows] this.total = res.total }, navClickHandler(item) { - uni.navigateTo({ - url: '/subpkg/knowledgeInfo/knowledgeInfo?guid='+item.guid - }) + 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 + onReachBottom() { + if (this.queryObj.pageNum * this.queryObj.pageSize >= this.total) return uni.$showMsg('已展示所有内容') + if (this.isloading) return this.queryObj.pageNum++ this.getContentList() }, - components: {tabbar}, + components: { + tabbar + }, } + color: #999; + font-size: 0.9rem; + } + \ No newline at end of file diff --git a/static/base_css.css b/static/base_css.css index 2c2f135..8b9b87a 100644 --- a/static/base_css.css +++ b/static/base_css.css @@ -47,7 +47,7 @@ img { z-index: 9999; padding: 0 5%; width: 100%; - height: 90rpx; + height: 6vh; color: #fff; line-height: 30px; background-color: #bac6fc; @@ -59,8 +59,8 @@ img { .mainwrap { position: relative; - top: 90rpx; - height: calc(100% - 250rpx); + top: 6vh; + height: 84vh; width: 100%; background-image: linear-gradient(to bottom, #bac6fc, transparent 50%); box-sizing: content-box; @@ -216,9 +216,9 @@ h3.contit span { .secbar { position: relative; z-index: 99; - top: 90rpx; + top: 6vh; width: 100%; - height: 90rpx; + height: 6vh; background-color: #bac6fc; } @@ -258,16 +258,16 @@ h3.contit span { top: 0; overflow: hidden; overflow-y: auto; - padding: 1% 3%; + padding: 1% 3% 9%; width: 94%; height: 100%; } .mainwrap2, .mainwrap3, .tabwrap { position: relative; - top: 90rpx; + top: 6vh; width: 100%; - height: calc(100% - 180rpx); + height: 88vh; background-image: linear-gradient(to bottom, #bac6fc, transparent 40%); box-sizing: content-box; overflow: hidden; @@ -275,7 +275,7 @@ h3.contit span { .mainwrap3 { top: 0; - height: calc(100% - 160rpx); + height: 89vh; overflow-y: hidden; } diff --git a/subpkg/address/address.vue b/subpkg/address/address.vue index 8fc13dc..415375b 100644 --- a/subpkg/address/address.vue +++ b/subpkg/address/address.vue @@ -6,10 +6,6 @@ - - - - @@ -40,7 +36,7 @@ - + @@ -60,7 +56,7 @@ options: [{ text: '删除', style: { - backgroundColor: '#C00000' + backgroundColor: '#fb1010' } }], addressList: [] @@ -149,9 +145,6 @@