修复朋友圈分享
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -173,13 +173,11 @@ export default {
|
|||||||
this.id = query.id
|
this.id = query.id
|
||||||
this.themeId = query.themeId
|
this.themeId = query.themeId
|
||||||
this.name = query.name || ''
|
this.name = query.name || ''
|
||||||
this.$loading()
|
this.$loading();
|
||||||
Promise.resolve(this.token || this.autoLogin()).then(() =>
|
(this.token ? Promise.resolve() : this.autoLogin()).finally(() => Promise.all([
|
||||||
Promise.all([
|
this.getInfo(query.id),
|
||||||
this.getInfo(query.id),
|
this.getCommontList(query.id)
|
||||||
this.getCommontList(query.id)
|
])).finally(() => this.$hideLoading())
|
||||||
])
|
|
||||||
).finally(() => this.$hideLoading())
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['autoLogin']),
|
...mapActions(['autoLogin']),
|
||||||
@@ -254,18 +252,15 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getInfo(id) {
|
getInfo(id) {
|
||||||
this.$instance.post(`/app/appneighborhoodassistance/queryDetailById?id=${id}`, null, {
|
return this.$instance.post(`/app/appneighborhoodassistance/queryDetailById?id=${id}`, null, {
|
||||||
withoutToken: !this.token,
|
withoutToken: !this.token,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res?.data) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
this.pageShow = true
|
return this.pageShow = true
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.hideLoading()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
reciate() {
|
reciate() {
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$instance.post(`/app/appneighborhoodassistance/appreciate?id=${this.id}`).then(res => {
|
this.$instance.post(`/app/appneighborhoodassistance/appreciate?id=${this.id}`).then(res => {
|
||||||
@@ -323,7 +318,7 @@ export default {
|
|||||||
if (this.isMore) return
|
if (this.isMore) return
|
||||||
|
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$instance.post(`/app/appneighborhoodassistance/commontList`, null, {
|
return this.$instance.post(`/app/appneighborhoodassistance/commontList`, null, {
|
||||||
withoutToken: !this.token,
|
withoutToken: !this.token,
|
||||||
params: {
|
params: {
|
||||||
id,
|
id,
|
||||||
@@ -331,7 +326,7 @@ export default {
|
|||||||
size: 10
|
size: 10
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res?.data) {
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
if (this.current > 1) {
|
if (this.current > 1) {
|
||||||
this.list = [...this.list, ...res.data.records]
|
this.list = [...this.list, ...res.data.records]
|
||||||
@@ -347,7 +342,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.isMore = true
|
this.isMore = true
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).finally(() => {
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -357,12 +352,12 @@ export default {
|
|||||||
this.getCommontList()
|
this.getCommontList()
|
||||||
},
|
},
|
||||||
|
|
||||||
// onShareTimeline() {
|
onShareTimeline() {
|
||||||
// return {
|
return {
|
||||||
// title: this.info.content,
|
title: this.info.content,
|
||||||
// // path: `/mods/AppCircle/Detail?id=${this.id}&themeId=${this.themeId}&name=${this.name}`
|
path: `/mods/AppCircle/Detail?id=${this.id}&themeId=${this.themeId}&name=${this.name}`
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
this.$instance.post(`/app/appneighborhoodassistance/share?id=${this.id}`).then(res => {
|
this.$instance.post(`/app/appneighborhoodassistance/share?id=${this.id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user