Commit e1c26990c04b9785068648ae4e2676714120c414

Authored by vking
1 parent 0b7dcf6c

downapp tips

... ... @@ -12,8 +12,21 @@ Component({
*/
data: {
hasDisplay:false,
hasShowTip:false,
},
attached: function() {
// 在组件实例进入页面节点树时执行
wx.getSystemInfo({
success:res=>{
console.log('wx.getSystemInfo',res)
if(res.platform=='ios' || "devtools"==res.platform){
this.setData({
hasShowTip:true,
})
}
}
})
},
/**
* 组件的方法列表
*/
... ...
<!--components/reserve/app/down.wxml-->
<view bindtap="open">
<view bindtap="open" wx:if="{{hasShowTip}}">
<slot></slot>
</view>
<view class="mask flex-vc" wx:if="{{hasDisplay}}" >
... ...