Commit 8133ff29 authored by haiyoucuv's avatar haiyoucuv

init

parent 9246924b
......@@ -57,9 +57,20 @@ ComponentWithStore({
async updateHomeInfo() {
await store.updateHomeInfo();
this.setData({
showPhoneBtn: !store.homeInfo.mobile,
});
const {mobile, first} = store.homeInfo;
if (!mobile) {
this.setData({
showPhoneBtn: true,
});
} else {
this.setData({
showGetPanel: first,
showAlGetPanel: !first,
showPhoneBtn: false,
});
}
},
clickSubscribe: _asyncThrottle(async function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment