Commit f33b5e8e by zhangxw

上传延保协议根据是否企微打开屏蔽上传pdf入口

1 parent f38edc78
......@@ -9,7 +9,18 @@ Component({
styleIsolation: 'shared', // 自定义覆盖vant样式
},
properties: {
show: Boolean,
show: {
type: Boolean,
observer: function(n) {
if (n) {
let sysInfo = wx.getSystemInfoSync()
// sysInfo.environment 1 企业微信打开 0微信打开
this.setData({
envName: sysInfo.environment ? 1 : 0
})
}
}
},
isListShow: Boolean
},
......@@ -25,11 +36,6 @@ Component({
/** 组件生命周期 */
lifetimes: {
attached: function () {
let sysInfo = wx.getSystemInfoSync()
// sysInfo.environment 1 企业微信打开 0微信打开
this.setData({
envName: sysInfo.environment ? 1 : 0
})
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!