diff --git a/pages/index/index.js b/pages/index/index.js index c1245f0..124862a 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -78,7 +78,6 @@ Page({ } }) this.getrecordslist() - }, getrecordslist(){ @@ -111,6 +110,7 @@ Page({ title: 'Loading...', }) console.log("下拉刷新啦"); + this.getrecordslist() setTimeout(function () { wx.hideLoading(); wx.hideNavigationBarLoading(); diff --git a/pages/material/material.js b/pages/material/material.js index 83ac8a3..886c62b 100644 --- a/pages/material/material.js +++ b/pages/material/material.js @@ -87,6 +87,11 @@ Page({ wx.showLoading({ title: 'Loading...', }) + this.setData({ + page: 1, + questes: [] + }) + this.getdata() console.log("下拉刷新啦"); setTimeout(function () { wx.hideLoading(); diff --git a/pages/quest/quest.js b/pages/quest/quest.js index 011fcee..dcb5c1b 100644 --- a/pages/quest/quest.js +++ b/pages/quest/quest.js @@ -334,6 +334,12 @@ Page({ title: 'Loading...', }) console.log("下拉刷新啦"); + this.setData({ + questes: [], + page: 1, + maxpage: 1 + }) + this.getdata() setTimeout(function () { wx.hideLoading(); wx.hideNavigationBarLoading(); diff --git a/pages/quest/subpage/detail/components/effect/effect.js b/pages/quest/subpage/detail/components/effect/effect.js index 111a187..0ec8900 100644 --- a/pages/quest/subpage/detail/components/effect/effect.js +++ b/pages/quest/subpage/detail/components/effect/effect.js @@ -4,7 +4,10 @@ Component({ * 组件的属性列表 */ properties: { - + effect: { + type: Object, + value: {} + } }, /** diff --git a/pages/quest/subpage/detail/components/effect/effect.wxml b/pages/quest/subpage/detail/components/effect/effect.wxml index b9fd1db..9a534f9 100644 --- a/pages/quest/subpage/detail/components/effect/effect.wxml +++ b/pages/quest/subpage/detail/components/effect/effect.wxml @@ -2,7 +2,7 @@ 获得积分 - 0 + {{effect.points}} @@ -12,23 +12,23 @@ - 0 + {{effect.dyPlayNum}} 播放量 - 0 + {{effect.dyCommendNum}} 点赞量 - 0 + {{effect.dyCollectionNum}} 收藏量 - 0 - 收藏量 + {{effect.dyCommentNum}} + 评论量 @@ -40,23 +40,23 @@ - 0 + {{effect.ksPlayNum}} 播放量 - 0 + {{effect.ksCommendNum}} 点赞量 - 0 + {{effect.ksCollectionNum}} 收藏量 - 0 - 收藏量 + {{effect.ksCommentNum}} + 评论量 @@ -68,12 +68,12 @@ - 0 + {{effect.pyqCommendNum}} 点赞量 - 0 + {{effect.pyqCommentNum}} 收藏量 @@ -86,23 +86,23 @@ - 0 - 播放量 + {{effect.sphCommendNum}} + 点赞量 - 0 - 点赞量 + {{effect.sphReSendNum}} + 转发次数 - 0 - 收藏量 + {{effect.sphRecommendNum}} + 推荐量 - 0 - 收藏量 + {{effect.sphCommentNum}} + 评论量 diff --git a/pages/quest/subpage/detail/detail.js b/pages/quest/subpage/detail/detail.js index 9bee56f..9e3e4db 100644 --- a/pages/quest/subpage/detail/detail.js +++ b/pages/quest/subpage/detail/detail.js @@ -28,7 +28,8 @@ Page({ quest: null, table: [], data: null, - linkre: null + linkre: null, + effect: {} }, /** * 生命周期函数--监听页面加载 @@ -78,6 +79,11 @@ Page({ linkre: res.data.records }) }) + http("/task/communicationEffect", "post", {}).then(res => { + this.setData({ + effect: res.data + }) + }) }, /** diff --git a/pages/quest/subpage/detail/detail.wxml b/pages/quest/subpage/detail/detail.wxml index 82e625a..27cf119 100644 --- a/pages/quest/subpage/detail/detail.wxml +++ b/pages/quest/subpage/detail/detail.wxml @@ -10,4 +10,4 @@ - + diff --git a/pages/user/subpage/newRel/newRel.js b/pages/user/subpage/newRel/newRel.js index b2f0ce9..44e7127 100644 --- a/pages/user/subpage/newRel/newRel.js +++ b/pages/user/subpage/newRel/newRel.js @@ -58,7 +58,7 @@ Page({ name: this.data.form.name, tel: this.data.form.tel, validImg: this.data.form.image, - platform: this.data.plat + platform: Number(this.data.plat) }).then(res=>{ wx.navigateBack({ delta: 1 diff --git a/pages/user/subpage/quest/quest.js b/pages/user/subpage/quest/quest.js index 30f5f55..9a5f43d 100644 --- a/pages/user/subpage/quest/quest.js +++ b/pages/user/subpage/quest/quest.js @@ -334,6 +334,12 @@ Page({ title: 'Loading...', }) console.log("下拉刷新啦"); + this.setData({ + questes: [], + page: 1, + maxpage: 1 + }) + this.getdata() setTimeout(function () { wx.hideLoading(); wx.hideNavigationBarLoading(); diff --git a/pages/user/subpage/relation/relation.wxml b/pages/user/subpage/relation/relation.wxml index aa69ad5..b02016b 100644 --- a/pages/user/subpage/relation/relation.wxml +++ b/pages/user/subpage/relation/relation.wxml @@ -6,7 +6,8 @@ 抖音 - {{douyin.status===0?'审核中':douyin.status===1?'审核通过':douyin.status===2?'审核拒绝':douyin.status===3?'已停用':'未提交'}} + + {{douyin.status===0?'审核中':douyin.status===1?'审核通过':douyin.status===2?'审核拒绝':douyin.status===3?'已停用':'未提交'}}