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