diff --git a/src/pages/pageHome/pageHome.vue b/src/pages/pageHome/pageHome.vue index 2235277..215686a 100644 --- a/src/pages/pageHome/pageHome.vue +++ b/src/pages/pageHome/pageHome.vue @@ -10,7 +10,7 @@ - + @@ -62,7 +62,7 @@ 最精彩的文艺活动 - + @@ -137,7 +137,8 @@ --> - + + 本服务由象山县文学艺术界联合会提供 @@ -161,6 +162,7 @@ return { load: true, isUnread: false, + isUnsh: false, artValue: '', statusHeight: 0, titleHeight: 50, @@ -365,6 +367,7 @@ if (res.code == 200) { this.background = res.data[0].imagePath this.getTalkList() + this.getUnshList() this.load = false } }).catch(e => { @@ -395,6 +398,23 @@ }); }); }, + //未审核 + getUnshList() { + let _this = this; + this.http + .request("/activity/cancelCount", {}, "GET") + .then((res) => { + if (res.code == 200) { + if (res.data > 0) this.isUnsh = true; + } + }) + .catch((e) => { + uni.showToast({ + title: e.data.message, + icon: "none", + }); + }); + }, navigateToFun(url) { uni.navigateTo({ url @@ -454,6 +474,11 @@ url: "/pagesA/msg/msg", }) }, + toActiveManage(){ + uni.navigateTo({ + url: "/pagesA/activeManage/activeManage", + }) + }, famouserDetaol(val) { uni.navigateTo({ url: "/pagesC/famousArts/famousArts?id=" + val diff --git a/src/pagesA/activeManage/activeManage.vue b/src/pagesA/activeManage/activeManage.vue index 46cc087..9b31f15 100644 --- a/src/pagesA/activeManage/activeManage.vue +++ b/src/pagesA/activeManage/activeManage.vue @@ -5,7 +5,7 @@ - + 我发布的 @@ -50,7 +50,11 @@ 签到管理 + + + + 审核管理 @@ -275,7 +279,7 @@ } }, onShow() { - + }, // 下拉刷新 onPullDownRefresh() { @@ -285,7 +289,7 @@ this.getFB() } else if (this.tab == 1) { this.getData() - }else if (this.tab == 2) { + } else if (this.tab == 2) { this.getZZ() } setTimeout(function() { @@ -299,7 +303,7 @@ this.getFB() } else if (this.tab == 1) { this.getData() - }else if (this.tab == 2) { + } else if (this.tab == 2) { this.getZZ() } }, @@ -625,6 +629,17 @@ font-weight: 500; float: right; margin-left: 20rpx; + position: relative; + + .box { + width: auto; + height: 15px; + background-color: #909193; + border-radius: 15px; + position: absolute; + top: 0; + right: 0; + } } .btn_w { diff --git a/src/pagesA/activeManage/signIn.vue b/src/pagesA/activeManage/signIn.vue index 6e2b707..2db90a0 100644 --- a/src/pagesA/activeManage/signIn.vue +++ b/src/pagesA/activeManage/signIn.vue @@ -5,7 +5,7 @@ - + 标题 @@ -73,9 +73,7 @@ }, methods: { getData() { - this.http.request('/activity/details', { - id: this.id - }, "GET").then(res => { + this.http.request('/activity/details/' + this.id, {}, "GET").then(res => { this.serveList = res.data this.img = res.data.images.split(',') }).catch(e => { diff --git a/src/pagesA/addArtActivity/addArtActivity.vue b/src/pagesA/addArtActivity/addArtActivity.vue index 046bf1c..703d627 100644 --- a/src/pagesA/addArtActivity/addArtActivity.vue +++ b/src/pagesA/addArtActivity/addArtActivity.vue @@ -1,5 +1,5 @@ @@ -31,7 +57,12 @@ file: '', linkPath: '', isWx: false, - cover: '' + cover: '', + name: '', + views: '', + isGreat: '', + likes: '', + introduce: '' }; }, onReady() { @@ -67,6 +98,11 @@ if (res.code == 200) { this.type = res.data.type this.cover = res.data.cover + this.name = res.data.name + this.views = res.data.views + this.isGreat = res.data.isGreat + this.likes = res.data.likes + this.introduce = res.data.introduce if (this.type == 'locality') { this.file = res.data.file // this.getvideo(res.data.id) @@ -108,10 +144,71 @@ }, toDetail() { window.open(this.linkPath) - } + }, + //点赞、取消点赞 + clickHeart(val0, val1) { + if (val0) { + this.isGreat = false + this.http.request('/worksGreat/delGreat?type=3&workId=' + val1, "POST").then(res => { + if (res.code == 200) { + this.likes-- + } + }).catch(e => { + uni.showToast({ + title: e.data.message, + icon: "none", + }); + }) + } else { + this.isGreat = true + this.http.request('/worksGreat/addGreat?type=3&workId=' + val1, "POST").then(res => { + if (res.code == 200) { + this.likes++ + } + }).catch(e => { + uni.showToast({ + title: e.data.message, + icon: "none", + }); + }) + } + }, }, }; - \ No newline at end of file diff --git a/src/pagesD/xskz/index.vue b/src/pagesD/xskz/index.vue index e64f250..24f757e 100644 --- a/src/pagesD/xskz/index.vue +++ b/src/pagesD/xskz/index.vue @@ -1,5 +1,9 @@