Browse Source

hotfix:f添加分享功能

feature-1.1-dev
Penny 3 years ago
parent
commit
f9cb0aa4ba
  1. 9
      pages/ai/paint/loverPaint.vue
  2. 9
      pages/ai/paint/paint.vue
  3. 20
      pages/atlas/atlas.vue
  4. 9
      pages/creator/creator.vue
  5. 2
      pages/creator/imgDetail.vue
  6. 9
      pages/index/indexProto.vue
  7. 18
      utils/request.js

9
pages/ai/paint/loverPaint.vue

@ -87,6 +87,15 @@
this.contentDesc = '', this.contentDesc = '',
this.curType = 0 this.curType = 0
}, },
onShareAppMessage(res) {
if (res.from === 'button') { //
// console.log(res)
}
return {
title: '来[次元意境]获取好看的图纸头像吧!',
path: `/pages/ai/paint/loverPaint`
}
},
methods: { methods: {
selectType(index) { selectType(index) {
this.curType = index this.curType = index

9
pages/ai/paint/paint.vue

@ -253,6 +253,15 @@
//this.checkUserCanAiPaint(); //this.checkUserCanAiPaint();
this.$forceUpdate(); this.$forceUpdate();
}, },
onShareAppMessage(res) {
if (res.from === 'button') { //
// console.log(res)
}
return {
title: '来[次元意境]获取好看的图纸头像吧!',
path: `/pages/ai/paint/paint`
}
},
methods: { methods: {
// //
openAdvancedSetting(e) { openAdvancedSetting(e) {

20
pages/atlas/atlas.vue

@ -71,6 +71,15 @@
this.getSignImgList(this.current) this.getSignImgList(this.current)
} }
}, },
onShareAppMessage(res) {
if (res.from === 'button') { //
// console.log(res)
}
return {
title: '来[次元意境]获取好看的图纸头像吧!',
path: `/pages/atlas/atlas`
}
},
methods: { methods: {
// //
jumpToHot(){ jumpToHot(){
@ -89,12 +98,13 @@
this.arrList.push(item.typeName) this.arrList.push(item.typeName)
this.arrListId.push(item.id) 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) { async getSignImgList(val) {

9
pages/creator/creator.vue

@ -101,6 +101,15 @@
this.pageNum += 1 // this.pageNum += 1 //
this.getCreatorImgsPage(); this.getCreatorImgsPage();
} }
}
},
onShareAppMessage(res) {
if (res.from === 'button') { //
// console.log(res)
}
return {
title: '来[次元意境]获取好看的图纸头像吧!',
path: `/pages/creator/creator`
} }
}, },
methods: { methods: {

2
pages/creator/imgDetail.vue

@ -251,7 +251,7 @@ var videoAd = null;
title: '请稍后再试~' title: '请稍后再试~'
}) })
} }
that.err() console.log(err);
}) })
videoAd.closeHandler = (res) =>{ videoAd.closeHandler = (res) =>{
console.log('激励视频下图管理res',res) console.log('激励视频下图管理res',res)

9
pages/index/indexProto.vue

@ -120,6 +120,15 @@
this.getImgList(); this.getImgList();
} }
} }
},
onShareAppMessage(res) {
if (res.from === 'button') { //
// console.log(res)
}
return {
title: '来[次元意境]获取好看的图纸头像吧!',
path: `/pages/index/indexProto`
}
}, },
methods: { methods: {
goLoveDraw() { goLoveDraw() {

18
utils/request.js

@ -171,7 +171,7 @@ service.interceptors.response.use(res => {
}); });
}else if(res.data.code != 200){ }else if(res.data.code != 200){
//拦截响应,做统一处理 //拦截响应,做统一处理
if(res.data.code === 500){ if(res.config.url.startsWith('/img/img/mini/tiktok/queryGoldNum/')){
uni.showToast({ uni.showToast({
title: '网络错误,请稍候重试~', title: '网络错误,请稍候重试~',
icon:"none", icon:"none",
@ -187,6 +187,22 @@ service.interceptors.response.use(res => {
duration: 2000 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{ }else{
return res; return res;
} }

Loading…
Cancel
Save