Commit ecffd755 by sunerhu

1.微信分享接口未调用

parent 470e6327
......@@ -453,10 +453,11 @@
}
api.userRead(UserReadRequestVO).then(res =>{
if (res['success']) {
uni.showToast({
title: '阅读成功',
duration: 2000
});
console.log('操作成功')
// uni.showToast({
// title: '阅读成功',
// duration: 2000
// });
}
})
}
......
......@@ -54,26 +54,29 @@
this.$refs.sharewx.close()
},
uniShare(type) {
let that = this
this.closeShare()
uni.share({
provider: "weixin",
scene: type === 1 ? "WXSceneSession" : "WXSceneTimeline",
type: 0,
href: this.WXdata.href,
title: this.WXdata.title,
summary: this.WXdata.summary,
imageUrl: this.WXdata.imageUrl,
href: that.WXdata.href,
title: that.WXdata.title,
summary: that.WXdata.summary,
imageUrl: that.WXdata.imageUrl,
success: function(res) {
console.log(res, 155)
let UserShareRequestVO = {
userId: uni.getStorageSync('cffp_userId'),
businessType: '1', // 分享类型
businessId: this.WXdata.fileId, // 课程Id
shareUrl: this.WXdata.href, // 分享链接
businessId: that.WXdata.fileId, // 课程Id
shareUrl: that.WXdata.href, // 分享链接
shareType: '2', // 分享类型(1:图片分享; 2:链接分享)
shareToWhere: type, //分享到哪儿(1好友 2朋友圈)
shareCode: this.WXdata.shareCode
shareCode: that.WXdata.shareCode
}
api.userShare(UserShareRequestVO).then(res => {
console.log(res, 1251)
// console.log('分享成功了吗')
if (res['success']) {
// uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment