Commit f3c8c32d by member

feture: 新增分享有赏链接

parent 2badabe4
......@@ -49,6 +49,7 @@ components: {linkId
:value="item.value">
</el-option>
</el-select>
<!-- 二级下拉 -->
<el-select v-model="twoLevelValue" class="w200" placeholder="请选择" v-if="twoLevelVisible" @change="twoLevelValueChange">
<el-option
......@@ -58,6 +59,7 @@ components: {linkId
:value="item.value">
</el-option>
</el-select>
<!-- 三级下拉 -->
<div class="three-level-wrap w200" v-if="threeLevelVisible">
<!-- 三级单选 -->
......@@ -736,7 +738,9 @@ export default {
// 如果是 h5,二级,三级隐藏,
var type = selectOneItem.type == 5 ? true:false;
that.setOneLevelVisible(type,selectOneItem)
if (this.linkId !== 'yueshi') {
that.setOneLevelVisible(type,selectOneItem);
}
},
// set onelevel visible
......@@ -1168,9 +1172,7 @@ export default {
this.cardType = false;
}
},
// 卡券列表
// 礼品列表
// 获取自定义列表
......@@ -1499,6 +1501,7 @@ export default {
// 确认操作
confirmLinkSelect() {
var that = this
console.log(this.selectLinkObj);
// 如果选择 h5 判断选择的链接
if (that.oneLevelTypeValue == 5) {
if (!that.h5linkObj.name.trim() || !that.h5linkObj.url.trim()) {
......@@ -1692,6 +1695,15 @@ export default {
}
return false;
}
// 分享有赏
if (this.linkId === 'yueshi') {
this.selectLinkObj.id = this.linkId;
this.selectLinkObj.name = '分享有赏';
this.$emit('linkSelect', this.selectLinkObj);
this.$emit('update:linkVisible', false);
this.resetAll();
return;
}
if (!!this.selectLinkObj.name && !!this.selectLinkObj.id) {
// 触发父组件方法,传递参数
......
<template>
<!-- 链接小工具 -->
<div class="link-tools-contain">
......@@ -18,6 +20,7 @@
:value="item.value">
</el-option>
</el-select>
<!-- 二级下拉 -->
<el-select v-model="twoLevelValue" class="w200" placeholder="请选择" v-if="twoLevelVisible" @change="twoLevelValueChange">
<el-option
......@@ -27,6 +30,7 @@
:value="item.value">
</el-option>
</el-select>
<!-- 三级下拉 -->
<div class="three-level-wrap w200" v-if="threeLevelVisible">
<!-- 三级单选 -->
......@@ -705,7 +709,9 @@ export default {
// 如果是 h5,二级,三级隐藏,
var type = selectOneItem.type == 5 ? true:false;
that.setOneLevelVisible(type,selectOneItem)
if (this.linkId !== 'yueshi') {
that.setOneLevelVisible(type,selectOneItem);
}
},
// set onelevel visible
......@@ -1137,9 +1143,7 @@ export default {
this.cardType = false;
}
},
// 卡券列表
// 礼品列表
// 获取自定义列表
......@@ -1468,6 +1472,7 @@ export default {
// 确认操作
confirmLinkSelect() {
var that = this
console.log(this.selectLinkObj);
// 如果选择 h5 判断选择的链接
if (that.oneLevelTypeValue == 5) {
if (!that.h5linkObj.name.trim() || !that.h5linkObj.url.trim()) {
......@@ -1661,6 +1666,15 @@ export default {
}
return false;
}
// 分享有赏
if (this.linkId === 'yueshi') {
this.selectLinkObj.id = this.linkId;
this.selectLinkObj.name = '分享有赏';
this.$emit('linkSelect', this.selectLinkObj);
this.$emit('update:linkVisible', false);
this.resetAll();
return;
}
if (!!this.selectLinkObj.name && !!this.selectLinkObj.id) {
// 触发父组件方法,传递参数
......
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