添加:文创豆商城添加分享任务,分享内容支持后台设置
This commit is contained in:
parent
d21895c86a
commit
4aec585007
|
|
@ -960,7 +960,8 @@ var fun = {
|
|||
"/member/courseindex",
|
||||
"/member/payanother/",
|
||||
"/enrollEnter/",
|
||||
'/activityHome'
|
||||
'/activityHome',
|
||||
'/member/legumes/shopping'
|
||||
];
|
||||
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
|
|
@ -995,6 +996,7 @@ var fun = {
|
|||
$http.post("member.member.wxJsSdkConfig", requestData).then(
|
||||
response => {
|
||||
if (response.result === 1) {
|
||||
console.log('配置信息',response.data);
|
||||
if (response.data.config && response.data.config.appId) {
|
||||
if (shareFun) {
|
||||
shareFun(response.data);
|
||||
|
|
|
|||
|
|
@ -229,6 +229,7 @@ export default {
|
|||
videoTime: '',
|
||||
task_status: false,// 任务是否已经完成
|
||||
is_show: false,
|
||||
share_config: {},
|
||||
withdrawal_num: '',// 提现数量
|
||||
is_video_show: false,// 商品播放器是否显示
|
||||
account_info: {},// 提现账号信息
|
||||
|
|
@ -266,7 +267,8 @@ export default {
|
|||
_this.getAccountInfo();
|
||||
// 判断:当前是否为微信浏览器打开
|
||||
_this.$nextTick(() => {
|
||||
//_this.is_show_share = _this.fun.getTyep() == 1;
|
||||
_this.getShareSet();
|
||||
_this.is_show_share = _this.fun.getTyep() == 1;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -326,6 +328,19 @@ export default {
|
|||
_this.getGoodsList();
|
||||
}
|
||||
},
|
||||
// 分享设置信息获取
|
||||
getShareSet() {
|
||||
let _this = this;
|
||||
$http.get("plugin.cultural-space.api.index.getShopShareInfo", {}, "加载中...")
|
||||
.then(response => {
|
||||
if (response.result === 1) {
|
||||
_this.share_config = response.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
});
|
||||
},
|
||||
// 提现账号信息是否完善
|
||||
getAccountInfo(){
|
||||
let _this = this;
|
||||
|
|
@ -395,25 +410,15 @@ export default {
|
|||
} else {
|
||||
// 微信分享
|
||||
_this.$dialog.alert({message: "请点击右上角微信分享"});
|
||||
let shareConfig = {
|
||||
title: '这里是分享标题',
|
||||
imgUrl: '',
|
||||
description: '这里是描述信息',
|
||||
// link: ''
|
||||
};
|
||||
_this.fun.wxShare("", {mid: _this.fun.getKeyByMid()}, shareConfig,
|
||||
data => {},
|
||||
success => {
|
||||
_this.task_status = true;
|
||||
_this.$dialog.alert({message: "分享成功"}).then(()=>{
|
||||
|
||||
|
||||
|
||||
_this.$dialog.alert({message: "分享成功,触发自动提交!"});
|
||||
|
||||
// _this.submitWithdrawal();// 自动触发提交
|
||||
});
|
||||
// 配置微信分享信息
|
||||
_this.fun.wxShare("", {mid: _this.fun.getKeyByMid()}, _this.share_config , data => {
|
||||
console.log('配置信息',data);
|
||||
}, success => {
|
||||
_this.task_status = true;
|
||||
_this.$dialog.alert({message: "分享成功"}).then(() => {
|
||||
_this.submitWithdrawal();// 自动触发提交
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
// 提现 - 开始处理 提现流程
|
||||
|
|
|
|||
Loading…
Reference in New Issue