Commit f325aca9828eb70d4a0ffba13658a62917431c31
1 parent
f3c2ba8d
会员中心
Showing
1 changed file
with
15 additions
and
2 deletions
components/diy_user_info/diy_user_info.js
| ... | ... | @@ -5,15 +5,28 @@ Component({ | 
| 5 | 5 | type: Object, | 
| 6 | 6 | value: null | 
| 7 | 7 | }, | 
| 8 | + is_temp:{ | |
| 9 | + type:Number, | |
| 10 | + value:0 | |
| 11 | + } | |
| 8 | 12 | // 这里定义了innerText属性,属性值可以在组件使用时指定 | 
| 9 | 13 | }, | 
| 10 | 14 | data: { | 
| 11 | 15 | // 这里是一些组件内部数据 | 
| 12 | 16 | iurl: s.imghost, | 
| 13 | 17 | defaultAvatar: s.imghost + "/miniapp/images/no-head.jpg", | 
| 18 | + userInfo:null | |
| 14 | 19 | }, | 
| 20 | + | |
| 21 | + ready: function() { | |
| 22 | + if(this.properties.is_temp==1){ | |
| 23 | + | |
| 24 | + }else{ | |
| 25 | + | |
| 26 | + } | |
| 27 | + }, | |
| 28 | + | |
| 15 | 29 | methods: { | 
| 16 | - // 这里是一个自定义方法 | |
| 17 | - customMethod() { } | |
| 30 | + | |
| 18 | 31 | } | 
| 19 | 32 | }) | 
| 20 | 33 | \ No newline at end of file | ... | ... | 
