From 35a6df9620ca2a7c932897027227492f067ed9b0 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Tue, 7 Jun 2022 15:25:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BF=9D=E5=AD=98=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=E6=88=90=E5=8A=9F=E6=8F=90=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../function-list/gong-ge/gong-ge-function.vue | 2 +- components/swipers/swiper-pu.vue | 13 ++++++++----- jsFile/tools.js | 4 +++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/components/function-list/gong-ge/gong-ge-function.vue b/components/function-list/gong-ge/gong-ge-function.vue index 986519a..c209785 100644 --- a/components/function-list/gong-ge/gong-ge-function.vue +++ b/components/function-list/gong-ge/gong-ge-function.vue @@ -4,7 +4,7 @@ - {{item.num}} + ({{item.num}}) {{item.title}} diff --git a/components/swipers/swiper-pu.vue b/components/swipers/swiper-pu.vue index a49876b..824a351 100644 --- a/components/swipers/swiper-pu.vue +++ b/components/swipers/swiper-pu.vue @@ -75,7 +75,7 @@ methods:{ // 图片点击事件 chooseImg(index,url){ - // console.log('当前banner图',index); + console.log('当前banner图',index,url); this.bcurrent = index if(this.browseP){ let imgList = [] @@ -105,10 +105,13 @@ sources:imgList }) } else { - // 有链接,跳转链接 - uni.navigateTo({ - url:`/${url}` - }) + if(url){ + // 有链接,跳转链接 + uni.navigateTo({ + url:`/${url}` + }) + console.log('跳转链接'); + } } }, // 切换后获取当前索引 diff --git a/jsFile/tools.js b/jsFile/tools.js index 870d194..594a8c7 100644 --- a/jsFile/tools.js +++ b/jsFile/tools.js @@ -578,7 +578,9 @@ const tools = { success: (res) => { uni.saveImageToPhotosAlbum({ filePath: res.tempFilePath, - success: ()=> {}, + success: ()=> { + uni.showToast({title:'保存成功',icon:'error'}) + }, fail: () => { uni.showToast({title:'保存失败',icon:'error'}) }