Commit 873f202d by member

fix: 先隐藏掉链接商品链接

parent 1bd87c65
......@@ -674,10 +674,7 @@ export default {
},
methods: {
changeVisible() {
if (!this.selectLinkObj.id) {
this.selectLinkObj = '';
}
this.transData();
this.$emit('linkSelect', {});
this.$emit('update:linkVisible', false);
},
handlePaddGift(list) {
......@@ -1424,23 +1421,22 @@ export default {
// 获取商品列表
getGoodsList() {
var that = this
var that = this;
var para = {
pageNum : that.currentPage,
searchparams: that.searchGoods || '',
pageSize: that.pageSize,
// 品类
mallCategoryId: that.category,
tagId: that.classify,// 分类
requestProject: that.repProjectName
pageNum : this.currentPage,
searchparams: this.searchGoods || '',
pageSize: this.pageSize,
mallCategoryId: this.category || '',
tagId: this.classify || '',// 分类
requestProject: this.repProjectName
};
// that.currentPage = 1;
// that.pageSize = 10;
// that.total = 50;
that.axios.post(that.baseUrl+'/api-mall/page-mall-goods',qs.stringify(para))
.then((res) => {
this.axios.post(that.baseUrl+'/api-mall/page-mall-goods', qs.stringify(para)).then((res) => {
var resData = res.data
if (resData.errorCode == 0) {
that.goodsList = resData.result.result
......@@ -1781,7 +1777,8 @@ export default {
// 触发父组件方法,传递参数
transData() {
this.$emit('linkSelect', this.selectLinkObj)
this.$emit('linkSelect', this.selectLinkObj);
this.$emit('update:linkVisible', false);
this.resetAll();
},
......
<!--
/**
* 链接小工具组件(弹窗) by fairyly on 2018/06/15
* 组件调用
*/
<linktools :showType="showType" :linkToolsVisible="linkToolsVisible" @linkSelect="linkSelect"/>
import Linktools from 'components/linktools/linktools.vue'
// 链接小工具参数
linkToolsVisible: false, //显示参数
showType: 0, // 显示类型,插件默认0:显示全部 ,1: (底部导航);2: (公众号菜单:只有小程序的,没有h5)
// methods
// linktools
showLinkDialog() {
this.linkToolsVisible = true;
},
linkSelect(val) {
console.log(val)
// 关闭时隐藏
this.linkToolsVisible = false;
}
components: {linkId
Linktools
} coupCardId
-->
<template>
<!-- 链接小工具 -->
......@@ -674,10 +645,7 @@ export default {
},
methods: {
changeVisible() {
if (!this.selectLinkObj.id) {
this.selectLinkObj = '';
}
this.transData();
this.$emit('linkSelect', {});
this.$emit('update:linkVisible', false);
},
handlePaddGift(list) {
......@@ -1424,23 +1392,22 @@ export default {
// 获取商品列表
getGoodsList() {
var that = this
var that = this;
var para = {
pageNum : that.currentPage,
searchparams: that.searchGoods || '',
pageSize: that.pageSize,
// 品类
mallCategoryId: that.category,
tagId: that.classify,// 分类
requestProject: that.repProjectName
pageNum : this.currentPage,
searchparams: this.searchGoods || '',
pageSize: this.pageSize,
mallCategoryId: this.category || '',
tagId: this.classify || '',// 分类
requestProject: this.repProjectName
};
// that.currentPage = 1;
// that.pageSize = 10;
// that.total = 50;
that.axios.post(that.baseUrl+'/api-mall/page-mall-goods',qs.stringify(para))
.then((res) => {
this.axios.post(that.baseUrl+'/api-mall/page-mall-goods', qs.stringify(para)).then((res) => {
var resData = res.data
if (resData.errorCode == 0) {
that.goodsList = resData.result.result
......@@ -1781,7 +1748,8 @@ export default {
// 触发父组件方法,传递参数
transData() {
this.$emit('linkSelect', this.selectLinkObj)
this.$emit('linkSelect', this.selectLinkObj);
this.$emit('update:linkVisible', false);
this.resetAll();
},
......
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