Przeglądaj źródła

Merge branch 'master' of http://124.70.211.186:3000/zxh/YXGJ

xiaohaizhao 1 rok temu
rodzic
commit
ed8511361d
1 zmienionych plików z 9 dodań i 2 usunięć
  1. 9 2
      cloud/businessCard/index.vue

+ 9 - 2
cloud/businessCard/index.vue

@@ -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({