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

2
src/pages/informationDetail/index.wxml

@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
<view class="page-footer">
<image class="avatar" src="{{imageUrl}}icon10.png?t={{Timestamp}}"></image>
<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>
</button>
</view>

Loading…
Cancel
Save