You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
302 B

const app = getApp();
Component({
properties: {
user_id:{
type:Number
},
bg:{
type:String,
value:"#0080f0"
}
},
pageLifetimes:{
show:function(){
app.syncUser()
.then(res=>{
this.setData({user_id: res.user.user_id});
})
}
}
})