|
@@ -148,7 +148,7 @@ export default {
|
|
|
components: { contact },
|
|
|
data() {
|
|
|
return {
|
|
|
- userInfo: { tag: [], images: [] },
|
|
|
+ userInfo: { tag: [], images: [] ,readusers:[]},
|
|
|
userid: uni.getStorageSync('userMsg').userid,
|
|
|
shareShow: false
|
|
|
}
|
|
@@ -181,7 +181,14 @@ export default {
|
|
|
this.shareShow = true
|
|
|
},
|
|
|
onBack() {
|
|
|
- uni.navigateBack()
|
|
|
+ let curPages = getCurrentPages()
|
|
|
+ if (curPages.length == 1) {
|
|
|
+ uni.redirectTo({
|
|
|
+ url:'/pages/index/index',
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.navigateBack()
|
|
|
+ }
|
|
|
},
|
|
|
async goodClick() {
|
|
|
let res = await this.$Http.basic({
|