Commit 85ba8afd by member

链接小工具

parent 14d2d6e6
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
return { return {
currentPage: 1, currentPage: 1,
activeIndex: -1, activeIndex: -1,
pageSize: 5, pageSize: 6,
total: 0, total: 0,
giftVal: null, giftVal: null,
giftOptions: [], giftOptions: [],
...@@ -96,6 +96,7 @@ export default { ...@@ -96,6 +96,7 @@ export default {
}, },
handleChange() { handleChange() {
this.currentPage = 1;
this.getData(); this.getData();
}, },
...@@ -106,7 +107,11 @@ export default { ...@@ -106,7 +107,11 @@ export default {
currentPage: this.currentPage, currentPage: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
category: this.giftVal, category: this.giftVal,
giftName: this.giftName giftName: this.giftName,
changeType: -1,
releaseType: -1,
showStatus: -1,
porHot: -1
}; };
this.axios.post(`${this.baseUrl}/api-integral-mall/page-gift`, qs.stringify(params)) this.axios.post(`${this.baseUrl}/api-integral-mall/page-gift`, qs.stringify(params))
...@@ -127,6 +132,7 @@ export default { ...@@ -127,6 +132,7 @@ export default {
}, },
handleSearch() { handleSearch() {
this.currentPage = 1;
this.getData(); this.getData();
} }
}, },
......
...@@ -35,7 +35,7 @@ components: {linkId ...@@ -35,7 +35,7 @@ components: {linkId
<el-dialog :class="activeName == 'first'? 'min-1026':'min-720'" <el-dialog :class="activeName == 'first'? 'min-1026':'min-720'"
title="链接小工具" title="链接小工具"
:visible.sync="mylinkToolsVisible" :visible.sync="mylinkToolsVisible"
:before-close="handleClose"> :modal-append-to-body="false">
<!-- 链接类型 --> <!-- 链接类型 -->
<div class="links-types"> <div class="links-types">
<label class="types-title">链接类型</label> <label class="types-title">链接类型</label>
...@@ -122,7 +122,7 @@ components: {linkId ...@@ -122,7 +122,7 @@ components: {linkId
<label class="h5link-title">网址</label> <label class="h5link-title">网址</label>
<el-input v-model="h5linkObj.url" placeholder="请输入网址"></el-input><a class="h5link-help" href="http://doc.demogic.com/doc/index.php?s=/41&page_id=441" target="_blank">【帮助文档】请联系公司技术人员查看文档配置标准链接</a> <el-input v-model="h5linkObj.url" placeholder="请输入网址"></el-input><a class="h5link-help" href="http://doc.demogic.com/doc/index.php?s=/41&page_id=441" target="_blank">【帮助文档】请联系公司技术人员查看文档配置标准链接</a>
</div> </div>
<div class="h5link-row"> <div class="h5link-row" v-if="false">
<label class="h5link-title h5link-dynamic-title">动态参数(选填)</label> <label class="h5link-title h5link-dynamic-title">动态参数(选填)</label>
<div class="h5-table"> <div class="h5-table">
<table cellspacing="0" cellpadding="0" border="0" class=" el-table el-table__header"> <table cellspacing="0" cellpadding="0" border="0" class=" el-table el-table__header">
...@@ -1268,27 +1268,12 @@ export default { ...@@ -1268,27 +1268,12 @@ export default {
// 商品分类 goodsCategorySelect // 商品分类 goodsCategorySelect
goodsCategorySelect(node, id) { goodsCategorySelect(node, id) {
var that = this var that = this
console.log(node, id, that.threeLevelValue)
// 调用 // 调用
// that.selectLinkItem() // that.selectLinkItem()
}, },
// -------------------------------------------- // --------------------------------------------
// 关闭
handleClose(done) {
var that = this
that.$confirm('确认关闭?')
.then(_ => {
done();
that.mylinkToolsVisible = false;
that.$emit('linkSelect')
})
.catch(_ => {
console.log('取消关闭')
});
},
// 分页 // 分页
linkSizeChange(val) { linkSizeChange(val) {
var that = this var that = this
......
<template> <template>
<!-- 链接小工具 --> <!-- 链接小工具 -->
<div class="link-tools-contain"> <div class="link-tools-contain">
<el-dialog :class="activeName == 'first'? 'min-1026':'min-720'" <el-dialog :class="activeName == 'first'? 'min-1026':'min-720'"
title="链接小工具" title="链接小工具"
:visible.sync="mylinkToolsVisible" :visible.sync="mylinkToolsVisible"
:before-close="handleClose"> :modal-append-to-body="false">
<!-- 链接类型 --> <!-- 链接类型 -->
<div class="links-types"> <div class="links-types">
<label class="types-title">链接类型</label> <label class="types-title">链接类型</label>
...@@ -92,7 +91,7 @@ ...@@ -92,7 +91,7 @@
<label class="h5link-title">网址</label> <label class="h5link-title">网址</label>
<el-input v-model="h5linkObj.url" placeholder="请输入网址"></el-input><a class="h5link-help" href="http://doc.demogic.com/doc/index.php?s=/41&page_id=441" target="_blank">【帮助文档】请联系公司技术人员查看文档配置标准链接</a> <el-input v-model="h5linkObj.url" placeholder="请输入网址"></el-input><a class="h5link-help" href="http://doc.demogic.com/doc/index.php?s=/41&page_id=441" target="_blank">【帮助文档】请联系公司技术人员查看文档配置标准链接</a>
</div> </div>
<div class="h5link-row"> <div class="h5link-row" v-if="false">
<label class="h5link-title h5link-dynamic-title">动态参数(选填)</label> <label class="h5link-title h5link-dynamic-title">动态参数(选填)</label>
<div class="h5-table"> <div class="h5-table">
<table cellspacing="0" cellpadding="0" border="0" class=" el-table el-table__header"> <table cellspacing="0" cellpadding="0" border="0" class=" el-table el-table__header">
...@@ -1238,27 +1237,12 @@ export default { ...@@ -1238,27 +1237,12 @@ export default {
// 商品分类 goodsCategorySelect // 商品分类 goodsCategorySelect
goodsCategorySelect(node, id) { goodsCategorySelect(node, id) {
var that = this var that = this
console.log(node, id, that.threeLevelValue)
// 调用 // 调用
// that.selectLinkItem() // that.selectLinkItem()
}, },
// -------------------------------------------- // --------------------------------------------
// 关闭
handleClose(done) {
var that = this
that.$confirm('确认关闭?')
.then(_ => {
done();
that.mylinkToolsVisible = false;
that.$emit('linkSelect')
})
.catch(_ => {
console.log('取消关闭')
});
},
// 分页 // 分页
linkSizeChange(val) { linkSizeChange(val) {
var that = this var that = this
......
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