Commit 610530d3 by zhouzy

管理界面修改

1 parent 502000bf
......@@ -10,14 +10,13 @@
</div>
<el-select
v-model="searchForm.merchantName"
clearab
le
filterable
remote
reserve-keyword
placeholder="请输入关联门店"
:remote-method="remoteMethod"
:loading="loading"
clearable
>
<el-option
v-for="(item, index) in options"
......@@ -109,19 +108,20 @@
label="领取链接"
prop=""
>
<el-input
disabled='true'
:value='`${editForm.url}`'
maxlength="14"
placeholder="请输入链接"
clearable
>
<div class="lineCtn">
<el-input
disabled='true'
:value='`${editForm.url}`'
maxlength="14"
placeholder="请输入链接"
clearable
>
</el-input>
<el-button
type="primary"
@click='closeText(`${editForm.url}`)'
slot="append"
type=""
>复制链接</el-button>
</el-input>
</div>
</el-form-item>
</el-form>
<div slot="footer">
......@@ -593,12 +593,12 @@ export default {
// },
downloadImg() {
var img = document.getElementById('qrCode'); // 获取要下载的图片
var url = img.src ; // 获取图片地址
var url = img.src; // 获取图片地址
console.log(url)
var a = document.createElement('a'); // 创建一个a节点插入的document
var event = new MouseEvent('click') // 模拟鼠标click点击事件
a.download = '二维码' // 设置a节点的download属性值
a.href = url;
a.href = url;
// window.open(url) // 将图片的src赋值给a节点的href
a.dispatchEvent(event)
......@@ -674,14 +674,14 @@ export default {
if (this.ruleForm.effectiveType == 2) {
this.effectiveNum = row.effectiveNum
}
if(row.tryAble == 1){
if (row.tryAble == 1) {
this.value = true,
this.tryNum = row.tryNum
}else{
this.tryNum = row.tryNum
} else {
this.value = false,
this.tryNum = ''
this.tryNum = ''
}
// 禁用门店框
this.disableSelect = true
// 改变高亮
......@@ -704,12 +704,12 @@ export default {
if (this.ruleForm.effectiveType == 2) {
this.effectiveNum = row.effectiveNum
}
if(row.tryAble == 1){
if (row.tryAble == 1) {
this.value = true,
this.tryNum = row.tryNum
}else{
this.tryNum = row.tryNum
} else {
this.value = false,
this.tryNum = ''
this.tryNum = ''
}
},
addCard(cd) {
......@@ -764,10 +764,10 @@ export default {
if (this.ruleForm.effectiveType == 2) {
this.ruleForm.effectiveNum = this.effectiveNum
}
if(this.value == true){
if (this.value == true) {
this.ruleForm.tryNum = this.tryNum
this.ruleForm.tryAble = '1'
}else{
} else {
this.ruleForm.tryNum = ''
this.ruleForm.tryAble = '0'
}
......@@ -959,10 +959,14 @@ export default {
padding-left: 20px;
margin-left: 100px;
}
.prompt{
.prompt {
margin-left: 20px;
font-size: 14px;
color: #8c939d;
}
.lineCtn {
display: flex;
flex-direction: row;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!