Browse Source

通知类型隐藏分享和复制链接

master
kola-web 1 month ago
parent
commit
f56660604a
  1. 2
      project.config.json
  2. 12
      src/app.ts
  3. 4
      src/pages/informationDetail/index.ts
  4. 2
      src/pages/message/index.wxml

2
project.config.json

@ -71,5 +71,5 @@
} }
] ]
}, },
"appid": "wx71ac9c27c3c3e3f4" "appid": "wxf9ce8010f1ad24aa"
} }

12
src/app.ts

@ -16,15 +16,15 @@ App<IAppOption>({
// 测试号 wx2b0bb13edf717c1d // 测试号 wx2b0bb13edf717c1d
// dev // dev
// appid:wxf9ce8010f1ad24aa // appid:wxf9ce8010f1ad24aa
// url: 'https://m.xd.hbraas.com', url: 'https://m.xd.hbraas.com',
// upFileUrl: 'https://m.xd.hbraas.com/', upFileUrl: 'https://m.xd.hbraas.com/',
// imageUrl: 'https://m.xd.hbraas.com/xd/', imageUrl: 'https://m.xd.hbraas.com/xd/',
// pro // pro
// appid:wx71ac9c27c3c3e3f4 // appid:wx71ac9c27c3c3e3f4
url: 'https://m.xd.hbsaas.com', // url: 'https://m.xd.hbsaas.com',
upFileUrl: 'https://m.xd.hbsaas.com/', // upFileUrl: 'https://m.xd.hbsaas.com/',
imageUrl: 'https://m.xd.hbsaas.com/api/xd/', // imageUrl: 'https://m.xd.hbsaas.com/api/xd/',
loginState: '', loginState: '',
isLogin: 0, isLogin: 0,

4
src/pages/informationDetail/index.ts

@ -45,6 +45,10 @@ Page({
Id: this.data.id, Id: this.data.id,
}, },
}).then((res) => { }).then((res) => {
if (res.ContentType == '4') {
wx.hideShareMenu();
wx.offCopyUrl();
}
this.setData({ this.setData({
detail: { detail: {
...res, ...res,

2
src/pages/message/index.wxml

@ -55,5 +55,5 @@
</view> </view>
<pagination pagination="{{pagination}}"></pagination> <pagination pagination="{{pagination}}"></pagination>
<image class="bottom" src="{{imageUrl}}bottom1.png?t={{Timestamp}}"></image> <!-- <image class="bottom" src="{{imageUrl}}bottom1.png?t={{Timestamp}}"></image> -->
</view> </view>

Loading…
Cancel
Save