diff --git a/pages/ai/paint/loverPaint.vue b/pages/ai/paint/loverPaint.vue index 252d716..c1d8a96 100644 --- a/pages/ai/paint/loverPaint.vue +++ b/pages/ai/paint/loverPaint.vue @@ -87,6 +87,15 @@ this.contentDesc = '', this.curType = 0 }, + onShareAppMessage(res) { + if (res.from === 'button') { // 来自页面内分享按钮 + // console.log(res) + } + return { + title: '来[次元意境]获取好看的图纸头像吧!', + path: `/pages/ai/paint/loverPaint` + } + }, methods: { selectType(index) { this.curType = index diff --git a/pages/ai/paint/paint.vue b/pages/ai/paint/paint.vue index 8f49323..8f6b8bb 100644 --- a/pages/ai/paint/paint.vue +++ b/pages/ai/paint/paint.vue @@ -253,6 +253,15 @@ //this.checkUserCanAiPaint(); this.$forceUpdate(); }, + onShareAppMessage(res) { + if (res.from === 'button') { // 来自页面内分享按钮 + // console.log(res) + } + return { + title: '来[次元意境]获取好看的图纸头像吧!', + path: `/pages/ai/paint/paint` + } + }, methods: { //高级绘画开关控制 openAdvancedSetting(e) { diff --git a/pages/atlas/atlas.vue b/pages/atlas/atlas.vue index 8a4fd7e..55bdd86 100644 --- a/pages/atlas/atlas.vue +++ b/pages/atlas/atlas.vue @@ -71,6 +71,15 @@ this.getSignImgList(this.current) } }, + onShareAppMessage(res) { + if (res.from === 'button') { // 来自页面内分享按钮 + // console.log(res) + } + return { + title: '来[次元意境]获取好看的图纸头像吧!', + path: `/pages/atlas/atlas` + } + }, methods: { //跳转热门搜索页面 jumpToHot(){ @@ -89,12 +98,13 @@ this.arrList.push(item.typeName) this.arrListId.push(item.id) }) - } else { - uni.showModal({ - content: res.data.msg, - showCancel: false - }); - } + } + // else { + // uni.showModal({ + // content: res.data.msg, + // showCancel: false + // }); + // } }, // 获取分类下标签 async getSignImgList(val) { diff --git a/pages/creator/creator.vue b/pages/creator/creator.vue index 70c1299..f81d5c7 100644 --- a/pages/creator/creator.vue +++ b/pages/creator/creator.vue @@ -103,6 +103,15 @@ } } }, + onShareAppMessage(res) { + if (res.from === 'button') { // 来自页面内分享按钮 + // console.log(res) + } + return { + title: '来[次元意境]获取好看的图纸头像吧!', + path: `/pages/creator/creator` + } + }, methods: { // 跳转艺术家详情页 toCreatorDetail(item){ diff --git a/pages/creator/imgDetail.vue b/pages/creator/imgDetail.vue index 522a50c..00a317f 100644 --- a/pages/creator/imgDetail.vue +++ b/pages/creator/imgDetail.vue @@ -251,7 +251,7 @@ var videoAd = null; title: '请稍后再试~' }) } - that.err() + console.log(err); }) videoAd.closeHandler = (res) =>{ console.log('激励视频下图管理res',res) diff --git a/pages/index/indexProto.vue b/pages/index/indexProto.vue index 4c45231..703c371 100644 --- a/pages/index/indexProto.vue +++ b/pages/index/indexProto.vue @@ -121,6 +121,15 @@ } } }, + onShareAppMessage(res) { + if (res.from === 'button') { // 来自页面内分享按钮 + // console.log(res) + } + return { + title: '来[次元意境]获取好看的图纸头像吧!', + path: `/pages/index/indexProto` + } + }, methods: { goLoveDraw() { uni.navigateTo({ diff --git a/utils/request.js b/utils/request.js index 8982f5c..4ec8d4c 100644 --- a/utils/request.js +++ b/utils/request.js @@ -171,15 +171,15 @@ service.interceptors.response.use(res => { }); }else if(res.data.code != 200){ //拦截响应,做统一处理 - if(res.data.code === 500){ - uni.showToast({ - title: '网络错误,请稍候重试~', - icon:"none", - duration: 2000, - success() { - console.log('接口响应错误,'+ res.data.msg) - } - }) + if(res.config.url.startsWith('/img/img/mini/tiktok/queryGoldNum/')){ + uni.showToast({ + title: '网络错误,请稍候重试~', + icon:"none", + duration: 2000, + success() { + console.log('接口响应错误,'+ res.data.msg) + } + }) }else{ uni.showToast({ title: res.data.msg, @@ -187,6 +187,22 @@ service.interceptors.response.use(res => { duration: 2000 }) } + // if(res.data.code === 500){ + // uni.showToast({ + // title: '网络错误,请稍候重试~', + // icon:"none", + // duration: 2000, + // success() { + // console.log('接口响应错误,'+ res.data.msg) + // } + // }) + // }else{ + // uni.showToast({ + // title: res.data.msg, + // icon:"none", + // duration: 2000 + // }) + // } }else{ return res; }