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.
29 lines
486 B
29 lines
486 B
import { deprecate} from "../../js/utils";
|
|
const app = getApp();
|
|
Component({
|
|
properties: {
|
|
user_id:{
|
|
type:Number
|
|
},
|
|
message:{
|
|
type:"String",
|
|
value:"点击登录,获取更多内容"
|
|
},
|
|
bg:{
|
|
type:String,
|
|
value:"#0080f0"
|
|
}
|
|
},
|
|
attached(){
|
|
deprecate("require-login");
|
|
},
|
|
pageLifetimes:{
|
|
show:function(){
|
|
app.syncUser()
|
|
.then(res=>{
|
|
this.setData({user_id: res.user.user_id});
|
|
})
|
|
}
|
|
}
|
|
})
|