|
|
@@ -38,20 +38,24 @@ export default {
|
|
|
onLoad(option) {},
|
|
|
onShow() {},
|
|
|
onShareAppMessage: function(res) {
|
|
|
- var self = this
|
|
|
+ var self = this;
|
|
|
return {
|
|
|
title: '中正',
|
|
|
path: `/pages/index/index`,
|
|
|
- success: function(){
|
|
|
- if(self.$store.state.userInfo !== null){
|
|
|
- console.log('已登录')
|
|
|
- var data = {
|
|
|
- taskType : 3
|
|
|
- }
|
|
|
- self.$api.taskShare(data).then(result => {
|
|
|
-
|
|
|
- })
|
|
|
+ success(res) {
|
|
|
+ if (self.$store.state.userInfo !== null) {
|
|
|
+ console.log('已登录');
|
|
|
+ var data = {
|
|
|
+ taskType: 3
|
|
|
+ };
|
|
|
+ self.$api.taskShare(data).then(result => {});
|
|
|
}
|
|
|
+ },
|
|
|
+ fail(res) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '分享失败',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
}
|
|
|
};
|
|
|
},
|