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'}) }