From ae0118a9ce30f481b365b882b1552a18440318ee Mon Sep 17 00:00:00 2001 From: wangdong <1551135706@qq.com> Date: Fri, 29 Mar 2024 10:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E8=AF=BB=E5=92=8C=E5=88=B7=E9=A2=98?= =?UTF-8?q?=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 ++++ pages/learningCenter/brushQuestion.vue | 2 +- pages/learningCenter/recite.vue | 2 +- pages/my/applyLink.vue | 8 ++--- pages/my/webview.vue | 44 ++++++++++++++++++++++++++ 5 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 pages/my/webview.vue diff --git a/pages.json b/pages.json index 5433a28..3d54541 100644 --- a/pages.json +++ b/pages.json @@ -481,6 +481,12 @@ "style": { "navigationBarTitleText": "充值" } + }, + { + "path": "webview", + "style": { + "navigationBarTitleText": "" + } } ] }, diff --git a/pages/learningCenter/brushQuestion.vue b/pages/learningCenter/brushQuestion.vue index 97d3f4d..ee67205 100644 --- a/pages/learningCenter/brushQuestion.vue +++ b/pages/learningCenter/brushQuestion.vue @@ -19,7 +19,7 @@ {{ item.title }} - 题目数量:{{ item.count || '' }} + 题目数量:{{ item.item_number || '' }} diff --git a/pages/learningCenter/recite.vue b/pages/learningCenter/recite.vue index dab5e05..b75eecc 100644 --- a/pages/learningCenter/recite.vue +++ b/pages/learningCenter/recite.vue @@ -11,7 +11,7 @@ 今日{{ item.todayRecite ? '已' : '未' }}背诵 - 词汇量:{{ item.count || 0 }} + 词汇量:{{ item.item_number || 0 }} diff --git a/pages/my/applyLink.vue b/pages/my/applyLink.vue index a543b55..6419146 100644 --- a/pages/my/applyLink.vue +++ b/pages/my/applyLink.vue @@ -23,10 +23,10 @@ }, methods: { openLink(link) { - // console.log(link); - // uni.navigateTo({ - // url: link, - // }); + console.log(link); + uni.navigateTo({ + url: `/pages/my/webview?src=${encodeURIComponent(link)}`, + }); }, }, }; diff --git a/pages/my/webview.vue b/pages/my/webview.vue new file mode 100644 index 0000000..0121dfd --- /dev/null +++ b/pages/my/webview.vue @@ -0,0 +1,44 @@ + + + + + \ No newline at end of file