Commit 3fbac29a by member

连接小工具

parent 9173fe90
......@@ -662,13 +662,15 @@ export default {
handlePaddGift(list) {
// 拼接id
this.giftFlag = true;
this.giftName = list.proName;
this.giftUrl = list.integralMallProId;
},
handlePassId(id) {
handlePassId(row) {
this.chooseFlag = true;
// 先保存下来
this.cardUrl = id;
this.cardName = row.cardName;
this.cardUrl = row.coupCardId;
},
// --------------------------------------------------
// 选择类型改变 (一级选择,保存选择类型)
......@@ -1511,7 +1513,7 @@ export default {
if (this.giftType == 'coup') {
// 优惠券
if (this.chooseFlag) {
this.selectLinkObj.name = 'coup';
this.selectLinkObj.name = '积分商城/' + this.cardName;
this.selectLinkObj.id = this.cardUrl;
this.selectLinkObj.url += `/${this.cardUrl}`;
this.transData();
......@@ -1526,7 +1528,7 @@ export default {
} else if (this.giftType == 'gift') {
// 礼品
if (this.giftFlag) {
this.selectLinkObj.name = 'gift';
this.selectLinkObj.name = this.giftName;
this.selectLinkObj.id = this.giftUrl;
this.selectLinkObj.url += `/${this.giftUrl}`;
this.transData();
......@@ -1559,7 +1561,6 @@ export default {
}
return false;
}
alert(JSON.stringify(this.selectLinkObj));
if (!!that.selectLinkObj.name && !!that.selectLinkObj.id) {
// 触发父组件方法,传递参数
that.transData();
......@@ -1593,6 +1594,7 @@ export default {
// 重置所有组件
resetAll() {
var that = this
this.cardLinksVisible = false;
that.h5linkVisible = false;
that.thirdlinkVisible = false; // 第三方小程序
that.linksType = '';
......@@ -1912,13 +1914,10 @@ export default {
},
mounted(){
var that = this;
that.repProjectName = that.projectName || 'gic-web';
this.repProjectName = this.projectName || 'gic-web';
// 获取 showType
that.linkShowType = that.showType || 0;
that.getLinksList(0,1)
this.linkShowType = this.showType || 0;
this.getLinksList(0,1)
},
components: {
......@@ -3091,3 +3090,4 @@ export default {
}
}
</style>
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