Commit b15dbcb4 by zhouzy

2

1 parent 3920ec25
......@@ -7,7 +7,8 @@ import { http } from '@/main'
})
}
/** 获取汽车权益列表*/
const getCarList = (params = { pageSize: 9999, pageNum: 1 }) => {
const getCarList = (params = {}) => {
console.log(params)
params.method = 'scrm.api.equity.car.service.list'
return http({
data: params,
......
......@@ -5,6 +5,7 @@ export default {
carTableData: [],
carTableParams: {
listName: 'data.list',
tableOption: true,
rowClassName: ({ row, rowIndex }) => {
return row.status == 0 ? 'opacity' : ''
......
......@@ -5,7 +5,7 @@
<div class="tableBox" style="margin-top:16px">
<el-button type="primary" size="small" @click="addEquity(1)"><i class="el-icon-plus"></i><span style="margin-left: 8px">添加汽车权益 </span></el-button>
<div class="tableCtn noneOperation">
<GLTable ref="carTable" :tableParams="carTableParams" :tableData="carTableData" :pageConf="cardsDatail" height="320px">
<GLTable ref="carTable" :tableParams="carTableParams" :pageConf="cardsDatail" tableHeightValues="320" :getListApi="getCardListApi">
<div slot="mainPageFlag" slot-scope="scope">
<el-button type="text" @click="carsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button>
</div>
......@@ -63,8 +63,9 @@ export default {
mixins: [carMixin, goodsMixin],
data() {
return {
getCardListApi:this.$apis.carEquityManageApi.getCarList,
goodsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
cardsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
cardsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'data.total' },
showDialog: false,
isEdit: false,
dialogType: 1,
......@@ -100,7 +101,7 @@ export default {
}
},
init() {
this.getCarList()
// this.getCarList()
this.getCategoryList()
},
addEquity(type) {
......
......@@ -7,10 +7,10 @@
<span style="margin-left: 8px">新建权益卡</span>
</el-button>
</div>
<div class="tableBox" style="margin-left: 20px; margin-top:20px">
<div class="tableBox" style="margin-left: 20px; margin-top: 20px">
<div class="topline">
<div class="selectStore">搜索门店</div>
<el-select size="small" v-model="searchForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="remoteMethod" :loading="loading" clearable style="margin-left: 10px" >
<el-select size="small" v-model="searchForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="remoteMethod" :loading="loading" clearable style="margin-left: 10px">
<el-option v-for="(item, index) in options" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select>
<div class="operationBtn">
......@@ -29,24 +29,21 @@
</div>
</div>
<!-- 推广弹窗 -->
<el-dialog :title="title" :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false" width="580px">
<el-dialog :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false" width="547px">
<el-form :model="editForm" :rules="rules" ref="ruleForm" label-width="68px">
<div class="main-qrcode">
<img :src="editForm.qrCode" ref="Qrcode" id="qrCode" />
<div class="tryDays">{{ tryNum }}天试用</div>
<!-- <div
class='download-qrcode'
@click="downloadImg"
:download="downloadFilename"
>下载二维码 </div>
<span class="prompt">若无法直接下载,请点击鼠标右键下载二维码</span> -->
</div>
<el-form-item label="领取链接" prop="">
<div class="lineCtn">
<el-input disabled="true" :value="`${editForm.url}`" maxlength="14" placeholder="请输入链接" clearable></el-input>
<el-button size="small" type="primary" @click="closeText(`${editForm.url}`)">复制链接</el-button>
<div class="baseinformation"><span class="titleText">试用推广</span></div>
<div class="form">
<div class="main-qrcode">
<img :src="editForm.qrCode" ref="Qrcode" id="qrCode" />
<div class="tryDays">{{ tryNum }}天试用</div>
</div>
</el-form-item>
<el-form-item label="领取链接" prop="" style="margin-top:20px">
<div class="lineCtn">
<el-input disabled="true" :value="`${editForm.url}`" maxlength="14" placeholder="请输入链接" clearable></el-input>
<el-button size="small" type="primary" @click="closeText(`${editForm.url}`)">复制链接</el-button>
</div>
</el-form-item>
</div>
</el-form>
<div slot="footer">
<el-button type="primary" @click="handleConfirm" size="small">确定</el-button>
......@@ -55,12 +52,12 @@
</el-dialog>
<!-- 新建权益卡弹窗 -->
<el-dialog title="" :visible.sync="dialogVisible" width="958px">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm" label-position="left">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="auto" class="demo-ruleForm" label-position="left">
<!-- 基础表单 -->
<div class="baseinformation"><span class="titleText">基本信息</span></div>
<div class="form">
<el-form-item label="名称:" prop="cardClassName" id="name">
<el-input v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" class="dialogInput"></el-input>
<el-input v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" style="width: 320px" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="卡片样式:" prop="backgroundImage">
<div class="imageList">
......@@ -70,7 +67,7 @@
</div>
</el-form-item>
<el-form-item label="渠道门店:" prop="merchantName">
<el-select v-model="ruleForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="generateRemoteMethod" :loading="loading" :disabled="disableSelect">
<el-select v-model="ruleForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="generateRemoteMethod" :loading="loading" :disabled="disableSelect" size="small" class="dialogInput">
<el-option v-for="(item, index) in generateOptions" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select>
</el-form-item>
......@@ -85,23 +82,23 @@
</el-radio-group>
</el-form-item>
<el-form-item label="权益商品编码:" prop="">
<el-input-number v-model="ruleForm.platformGoodsId" size="mini" :controls="disableInputNumber"></el-input-number>
<el-input-number class="dialogInput" v-model="ruleForm.platformGoodsId" size="small" :controls="disableInputNumber"></el-input-number>
<span class="codeTxt">用于关联流量卡服务测的商品</span>
</el-form-item>
<el-form-item label="使用说明:" prop="usageNotes">
<el-input type="textarea" v-model="ruleForm.usageNotes" maxlength="500"></el-input>
<el-input type="textarea" v-model="ruleForm.usageNotes" maxlength="500" class="dialogInput" size="small"></el-input>
</el-form-item>
<el-form-item label=" 售价:" prop="price">
<el-input-number v-model="ruleForm.price" controls-position="right" size="mini" :min="1" :max="9999.99"></el-input-number>
<el-input-number class="dialogInput" v-model="ruleForm.price" controls-position="right" size="mini" :min="1" :max="9999.99"></el-input-number>
元
</el-form-item>
</div>
<div class="baseinformation2"><span class="titleText">其他信息</span></div>
<div class="form">
<el-form-item label="试用设置:" prop="">
<el-switch v-model="value" active-color="#13ce66" inactive-color="#d3d3d3"></el-switch>
<el-switch v-model="value" active-color="" inactive-color="#d3d3d3"></el-switch>
</el-form-item>
<div class="durationCtn">
<div class="durationCtn" v-if="value == false ? false : true">
<el-form-item label="试用时长:" :prop="value == false ? '' : 'tryNum'">
<el-input-number v-model="tryNum" controls-position="right" size="mini" :disabled="!hasTryNum" :min="1" :max="100"></el-input-number>
天试用
......@@ -148,7 +145,6 @@ export default {
value: false,
downloadFilename: '',
isVisible: false,
title: '试用推广',
mainPage: location.origin + '/scrm-fission-mobile/#/?activityId=',
submitBtn: false,
disableInputNumber: false,
......@@ -625,30 +621,25 @@ export default {
}
.baseinformation {
width: 100%;
background: #d3d3d3;
height: 60px;
line-height: 60px;
margin-top: -40px;
height: 28px;
border-bottom: 1px solid #d8d8d8;
}
.baseinformation2 {
width: 100%;
background: #d3d3d3;
height: 60px;
line-height: 60px;
border-bottom: 1px solid #d8d8d8;
height: 28px;
}
.titleText {
margin-left: 20px;
line-height: 28px;
}
.form {
margin-top: 20px;
margin-left: 40px;
}
.explain {
color: #d3d3d3;
}
.buttonCtn {
text-align: center;
margin-left: -100px;
margin-top: 12px;
}
.carEquCtn {
background: #f0f0f0;
......@@ -661,8 +652,8 @@ export default {
flex-direction: row;
}
.imageItem {
width: 150px;
height: 60px;
width: 300px;
height: 100px;
}
.imgCtn {
background: rgb(240, 240, 240);
......@@ -690,15 +681,15 @@ export default {
.codeTxt {
color: #8c939d;
font-size: 12px;
margin-left: 15px;
margin-left: -97px;
}
.main-qrcode {
text-align: center;
margin-bottom: 10px;
}
.main-qrcode img {
width: 200px;
height: 200px;
width: 160px;
height: 160px;
}
.download-qrcode {
text-decoration: underline;
......@@ -708,9 +699,10 @@ export default {
cursor: pointer;
}
.durationCtn {
background: #e9e8e8;
padding-left: 20px;
margin-left: 100px;
background: #f7f7f7;
box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);
border: 1px solid #dcdfe6;
}
.prompt {
margin-left: 20px;
......@@ -731,8 +723,20 @@ export default {
color: #4c4c4c;
line-height: 20px;
}
.dialogInput{
.dialogInput {
width: 320px;
}
.form {
padding: 32px 20px 32px 48px;
}
.el-dialog__body {
padding: 0;
color: #606266;
font-size: 14px;
word-break: break-all;
}
.tryDays{
margin-top: 12px;
}
</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!