浏览代码

2024-05-15

codeMan 1 年之前
父节点
当前提交
3ec254380b
共有 2 个文件被更改,包括 10 次插入4 次删除
  1. 2 3
      cloud/businessCard/index.vue
  2. 8 1
      cloud/businessCard/share.vue

+ 2 - 3
cloud/businessCard/index.vue

@@ -106,11 +106,11 @@ export default {
         }
     },
     methods: {  
-        async getuserInfo () {
+        async getuserInfo (id) {
             let res = await this.$Http.basic({
                 "id": 20240514161502,
                 "content": {
-                    userid:this.userid
+                    userid:id
                 },
             })
             this.userInfo = res.data
@@ -151,7 +151,6 @@ export default {
         },
         goCard () {
 
-            
         }
     },
     onShareAppMessage(res) {

+ 8 - 1
cloud/businessCard/share.vue

@@ -6,7 +6,14 @@
 
 <script>
 export default {
-
+    data () {
+        return {
+            userInfo:{}
+        }
+    },
+    onLoad (option) {
+        console.log(option,'名片');
+    }
 }
 </script>