Commit f38edc78 by zhangxw

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

1 parent 5ffc7e0e
......@@ -25,6 +25,11 @@ Component({
/** 组件生命周期 */
lifetimes: {
attached: function () {
let sysInfo = wx.getSystemInfoSync()
// sysInfo.environment 1 企业微信打开 0微信打开
this.setData({
envName: sysInfo.environment ? 1 : 0
})
}
},
......
......@@ -50,7 +50,7 @@
<view class="popup-content">
<view class="title">请选择</view>
<view class="popup-item" bindtap="uploadImages">上传图片</view>
<view class="popup-item" bindtap="uploadPDFs">上传PDF</view>
<view class="popup-item" wx:if="{{envName != 1}}" bindtap="uploadPDFs">上传PDF</view>
</view>
</van-popup>
</block>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!