Commit f325aca9828eb70d4a0ffba13658a62917431c31

Authored by yvan.ni
1 parent f3c2ba8d

会员中心

components/diy_user_info/diy_user_info.js
@@ -5,15 +5,28 @@ Component({ @@ -5,15 +5,28 @@ Component({
5 type: Object, 5 type: Object,
6 value: null 6 value: null
7 }, 7 },
  8 + is_temp:{
  9 + type:Number,
  10 + value:0
  11 + }
8 // 这里定义了innerText属性,属性值可以在组件使用时指定 12 // 这里定义了innerText属性,属性值可以在组件使用时指定
9 }, 13 },
10 data: { 14 data: {
11 // 这里是一些组件内部数据 15 // 这里是一些组件内部数据
12 iurl: s.imghost, 16 iurl: s.imghost,
13 defaultAvatar: s.imghost + "/miniapp/images/no-head.jpg", 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 methods: { 29 methods: {
16 - // 这里是一个自定义方法  
17 - customMethod() { } 30 +
18 } 31 }
19 }) 32 })
20 \ No newline at end of file 33 \ No newline at end of file