diff --git a/src/apps/AppHelpEffect/AppHelpEffect.vue b/src/apps/AppHelpEffect/AppHelpEffect.vue index a4e0d89c..ce7b1e4c 100644 --- a/src/apps/AppHelpEffect/AppHelpEffect.vue +++ b/src/apps/AppHelpEffect/AppHelpEffect.vue @@ -1,8 +1,40 @@ @@ -11,31 +43,102 @@ export default { name: "AppHelpEffect", appName: '帮扶成效', data() { - return {} + return { + name: "", + current: 1, + declareReason: "", + areaList: [], + typeList: [], + houseType: 1, + provertyStatus: 0, + list: [], + } + }, + methods: { + areaSelect() {}, + typeSelect() {}, + callPhone(phone) { + uni.makePhoneCall({phoneNumber: phone}) + }, + getList() { + this.$http.post('/app/appgirdmemberpoverty/listByGirdMember', null, { + params: { + current: this.current, + provertyStatus: this.provertyStatus, + name: this.name, + }, + }).then((res) => { + if (res?.data) { + this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records + } + }) + }, + toDetail(id) { + uni.navigateTo({url: `./helpDetail?id=${id}`}) + }, + onReachBottom() { + this.current ++ + this.getList() + } }, - methods: {}, onShow() { document.title = '帮扶成效' + this.getList() } } \ No newline at end of file diff --git a/src/apps/AppHelpEffect/helpDetail.vue b/src/apps/AppHelpEffect/helpDetail.vue index aab9a0a1..4ed807c6 100644 --- a/src/apps/AppHelpEffect/helpDetail.vue +++ b/src/apps/AppHelpEffect/helpDetail.vue @@ -1,20 +1,280 @@ \ No newline at end of file diff --git a/src/apps/AppHelpEffect/images/dh@2x.png b/src/apps/AppHelpEffect/images/dh@2x.png new file mode 100644 index 00000000..5a2a8a7d Binary files /dev/null and b/src/apps/AppHelpEffect/images/dh@2x.png differ diff --git a/src/apps/AppHelpEffect/images/dz@2x.png b/src/apps/AppHelpEffect/images/dz@2x.png new file mode 100644 index 00000000..d3a49fdb Binary files /dev/null and b/src/apps/AppHelpEffect/images/dz@2x.png differ diff --git a/src/apps/AppPovertyHome/AppPovertyHome.vue b/src/apps/AppPovertyHome/AppPovertyHome.vue index 178ff6a2..368ff2fe 100644 --- a/src/apps/AppPovertyHome/AppPovertyHome.vue +++ b/src/apps/AppPovertyHome/AppPovertyHome.vue @@ -6,7 +6,7 @@

监测对象

- +

帮扶成效

diff --git a/src/project/saas/AppCooperationPropaganda/detail.vue b/src/project/saas/AppCooperationPropaganda/detail.vue index f734eb8d..ede90097 100644 --- a/src/project/saas/AppCooperationPropaganda/detail.vue +++ b/src/project/saas/AppCooperationPropaganda/detail.vue @@ -38,12 +38,28 @@

群发内容

-
{{ content[0].content }}
-
- + +
{{ content[0].content }}
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
-
-
@@ -61,7 +77,11 @@ export default { id: "", data: {}, content: [], - picList: [] + picList: [], + videoList: [], + fileList: [], + webpage: [], + miniapp: [], } }, onLoad(o) { @@ -72,14 +92,18 @@ export default { this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> { if (res?.data) { this.data = res.data - this.content = res.data.contents.map(v=> v.msgType == 0) - this.picList = res.data.contents.map(e=> e.msgType == 1) + this.content = res.data.contents.filter(v=> v.msgType == 0) + this.picList = res.data.contents.filter(v=> v.msgType == 1) + this.videoList = res.data.contents.filter(v=> v.msgType == 2) + this.fileList = res.data.contents.filter(v=> v.msgType == 3) + this.webpage = res.data.contents.filter(v=> v.msgType == 4) + this.miniapp = res.data.contents.filter(v=> v.msgType == 5) } }) }, - previewImage(images, img) { + previewImages(images, img) { uni.previewImage({ - urls: images.map(v => v.url), + urls: images.map(v => v.imgPicUrl), current: img }) }, @@ -184,12 +208,29 @@ export default { color: #999; margin-bottom: 26px; } - .textarea { + .textarea, + .pictures, + .video, + .file, + .webpage, + .miniapp { background: #F9F9F9; border-radius: 4px; padding: 20px; box-sizing: border-box; } + .pictures { + margin-top: 16px; + image { + width: 190px; + height: 190px; + margin-right: 4px; + margin-bottom: 4px; + } + image:nth-child(3n) { + margin-right: 0; + } + } } }