Browse Source

资料详情页 通知类型 隐藏分享&复制链接

master
kola-web 1 month ago
parent
commit
5512157746
  1. 2
      src/pages/informationDetail/index.ts
  2. 2
      src/pages/informationDetail/index.wxml

2
src/pages/informationDetail/index.ts

@ -16,6 +16,7 @@ Page({
id: '', id: '',
detail: {} as any, detail: {} as any,
showShare: false,
fileIcon: { fileIcon: {
pdf: 'file-icon1', pdf: 'file-icon1',
@ -54,6 +55,7 @@ Page({
...res, ...res,
PublishTime: dayjs(res.PublishTime).format('YYYY-MM-DD'), PublishTime: dayjs(res.PublishTime).format('YYYY-MM-DD'),
}, },
showShare: res.ContentType !== '4',
}); });
}); });
}, },

2
src/pages/informationDetail/index.wxml

@ -23,7 +23,7 @@
<view class="page-footer"> <view class="page-footer">
<image class="avatar" src="{{imageUrl}}icon10.png?t={{Timestamp}}"></image> <image class="avatar" src="{{imageUrl}}icon10.png?t={{Timestamp}}"></image>
<view class="title">TED规范化诊治中心</view> <view class="title">TED规范化诊治中心</view>
<button class="share" open-type="share"> <button class="share" open-type="share" wx:if="{{showShare}}">
<image class="icon" src="{{imageUrl}}icon22.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon22.png?t={{Timestamp}}"></image>
</button> </button>
</view> </view>

Loading…
Cancel
Save