From 75804675e2bfcd90fbffd65a196fb1c695aff732 Mon Sep 17 00:00:00 2001 From: kola-web Date: Tue, 21 Jan 2025 10:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=BB=E6=AD=A2pc=E7=AB=AF=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E8=AF=A6=E6=83=85=20=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 2 +- src/app.ts | 12 ++++++------ src/pages/article/index.ts | 6 ++++++ src/pages/article/index.wxml | 7 ++++++- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/project.config.json b/project.config.json index 15ace81..8921281 100644 --- a/project.config.json +++ b/project.config.json @@ -61,5 +61,5 @@ } ] }, - "appid": "wxa4a28b299df7d921" + "appid": "wxbdf6f933281b1eb4" } \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 9cd3e3a..d8bc7db 100644 --- a/src/app.ts +++ b/src/app.ts @@ -17,14 +17,14 @@ App({ // 测试号 wx2b0bb13edf717c1d // dev // appid:wxbdf6f933281b1eb4 - // url: 'https://m.shizhong.hbraas.com', - // upFileUrl: 'https://m.shizhong.hbraas.com/', - // imageUrl: 'https://m.shizhong.hbraas.com/api/shizhong/', + url: 'https://m.shizhong.hbraas.com', + upFileUrl: 'https://m.shizhong.hbraas.com/', + imageUrl: 'https://m.shizhong.hbraas.com/api/shizhong/', // pro // appid:wxa4a28b299df7d921 - url: 'https://m.shizhong.hbsaas.com', - upFileUrl: 'https://m.shizhong.hbsaas.com/', - imageUrl: 'https://m.shizhong.hbsaas.com/api/shizhong/', + // url: 'https://m.shizhong.hbsaas.com', + // upFileUrl: 'https://m.shizhong.hbsaas.com/', + // imageUrl: 'https://m.shizhong.hbsaas.com/api/shizhong/', loginState: '', isLogin: 0, diff --git a/src/pages/article/index.ts b/src/pages/article/index.ts index 75a9e4a..582a695 100644 --- a/src/pages/article/index.ts +++ b/src/pages/article/index.ts @@ -23,6 +23,7 @@ Page({ toastShow: false, toastType: 3, + previewImg: true, }, innerAudioContext: null as WechatMiniprogram.InnerAudioContext | null, onLoad(options) { @@ -35,6 +36,11 @@ Page({ ChapterId: options.cid, }); } + const previewImg = !['mac', 'windows'].includes(wx.getDeviceInfo().platform); + this.setData({ + previewImg, + }); + app.waitLogin(false, true).then(() => { this.getChapterList(); this.getDetail(); diff --git a/src/pages/article/index.wxml b/src/pages/article/index.wxml index 6b76749..0dd6986 100644 --- a/src/pages/article/index.wxml +++ b/src/pages/article/index.wxml @@ -39,7 +39,12 @@ - +