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. 34
      utils/request.js

9
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

9
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) {

20
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) {

9
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){

2
pages/creator/imgDetail.vue

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

9
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({

34
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;
}

Loading…
Cancel
Save