|
...
|
...
|
@@ -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,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 组件的方法列表
|
|
|
|
*/
|
...
|
...
|
|