|
@@ -13,6 +13,11 @@ var InformationPage = new Vue({
|
|
|
salesParams:{
|
|
|
clubId:0,
|
|
|
spId:0
|
|
|
+ },
|
|
|
+ linkParams:{
|
|
|
+ path:'pages/seller/club/club-info',
|
|
|
+ query:'',
|
|
|
+ env:'trial'//正式"release",体验"trial",开发"develop"
|
|
|
}
|
|
|
},
|
|
|
filters: {
|
|
@@ -94,6 +99,16 @@ var InformationPage = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ userGetWechatMinLink: function () {// 获取小程序路径并跳转
|
|
|
+ var _self = this;
|
|
|
+ UserApi.userGetWechatMinLink(_self.linkParams, function (response) {
|
|
|
+ if (response.code == 0) {
|
|
|
+ location.href = response.data;
|
|
|
+ } else {
|
|
|
+ console.log('分配协销异常')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
checkedCoupon:function(idx){
|
|
|
// 选择商品
|
|
|
var _self = this;
|
|
@@ -116,9 +131,9 @@ var InformationPage = new Vue({
|
|
|
}
|
|
|
_self.userClubChoseSales();
|
|
|
},
|
|
|
- showPopup:function(){// 显示弹窗
|
|
|
+ showPopup:function(){// 跳转小程序
|
|
|
var _self = this;
|
|
|
- _self.isShowPopup = true;
|
|
|
+ _self.userGetWechatMinLink();
|
|
|
},
|
|
|
hidePopup:function(){// 隐藏弹窗
|
|
|
var _self = this;
|
|
@@ -131,6 +146,7 @@ var InformationPage = new Vue({
|
|
|
mounted: function () {
|
|
|
var _this = this;
|
|
|
_this.clubId = _this.salesParams.clubId = getUrlParam("clubId");
|
|
|
+ _this.linkParams.query = `clubId=${_this.clubId}`;
|
|
|
_this.userClubRecordLinkage();
|
|
|
}
|
|
|
|