ct
This commit is contained in:
@@ -179,13 +179,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']),
|
||||
@@ -260,18 +258,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 => {
|
||||
@@ -329,7 +324,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,
|
||||
@@ -337,7 +332,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]
|
||||
@@ -353,7 +348,7 @@ export default {
|
||||
} else {
|
||||
this.isMore = true
|
||||
}
|
||||
}).catch(() => {
|
||||
}).finally(() => {
|
||||
this.$hideLoading()
|
||||
})
|
||||
}
|
||||
@@ -362,13 +357,12 @@ export default {
|
||||
onReachBottom() {
|
||||
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) {
|
||||
@@ -472,7 +466,6 @@ export default {
|
||||
width: 100px;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
text-align: right;
|
||||
text-align: center;
|
||||
font-size: 26px;
|
||||
color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user