Commit b15dbcb4 by zhouzy

2

1 parent 3920ec25
...@@ -7,7 +7,8 @@ import { http } from '@/main' ...@@ -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' params.method = 'scrm.api.equity.car.service.list'
return http({ return http({
data: params, data: params,
......
...@@ -5,6 +5,7 @@ export default { ...@@ -5,6 +5,7 @@ export default {
carTableData: [], carTableData: [],
carTableParams: { carTableParams: {
listName: 'data.list',
tableOption: true, tableOption: true,
rowClassName: ({ row, rowIndex }) => { rowClassName: ({ row, rowIndex }) => {
return row.status == 0 ? 'opacity' : '' return row.status == 0 ? 'opacity' : ''
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="tableBox" style="margin-top:16px"> <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> <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"> <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"> <div slot="mainPageFlag" slot-scope="scope">
<el-button type="text" @click="carsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button> <el-button type="text" @click="carsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button>
</div> </div>
...@@ -63,8 +63,9 @@ export default { ...@@ -63,8 +63,9 @@ export default {
mixins: [carMixin, goodsMixin], mixins: [carMixin, goodsMixin],
data() { data() {
return { return {
getCardListApi:this.$apis.carEquityManageApi.getCarList,
goodsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, goodsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
cardsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, cardsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'data.total' },
showDialog: false, showDialog: false,
isEdit: false, isEdit: false,
dialogType: 1, dialogType: 1,
...@@ -100,7 +101,7 @@ export default { ...@@ -100,7 +101,7 @@ export default {
} }
}, },
init() { init() {
this.getCarList() // this.getCarList()
this.getCategoryList() this.getCategoryList()
}, },
addEquity(type) { addEquity(type) {
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
<span style="margin-left: 8px">新建权益卡</span> <span style="margin-left: 8px">新建权益卡</span>
</el-button> </el-button>
</div> </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="topline">
<div class="selectStore">搜索门店</div> <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-option v-for="(item, index) in options" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select> </el-select>
<div class="operationBtn"> <div class="operationBtn">
...@@ -29,24 +29,21 @@ ...@@ -29,24 +29,21 @@
</div> </div>
</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"> <el-form :model="editForm" :rules="rules" ref="ruleForm" label-width="68px">
<div class="main-qrcode"> <div class="baseinformation"><span class="titleText">试用推广</span></div>
<img :src="editForm.qrCode" ref="Qrcode" id="qrCode" /> <div class="form">
<div class="tryDays">{{ tryNum }}天试用</div> <div class="main-qrcode">
<!-- <div <img :src="editForm.qrCode" ref="Qrcode" id="qrCode" />
class='download-qrcode' <div class="tryDays">{{ tryNum }}天试用</div>
@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> </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> </el-form>
<div slot="footer"> <div slot="footer">
<el-button type="primary" @click="handleConfirm" size="small">确定</el-button> <el-button type="primary" @click="handleConfirm" size="small">确定</el-button>
...@@ -55,12 +52,12 @@ ...@@ -55,12 +52,12 @@
</el-dialog> </el-dialog>
<!-- 新建权益卡弹窗 --> <!-- 新建权益卡弹窗 -->
<el-dialog title="" :visible.sync="dialogVisible" width="958px"> <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="baseinformation"><span class="titleText">基本信息</span></div>
<div class="form"> <div class="form">
<el-form-item label="名称:" prop="cardClassName" id="name"> <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>
<el-form-item label="卡片样式:" prop="backgroundImage"> <el-form-item label="卡片样式:" prop="backgroundImage">
<div class="imageList"> <div class="imageList">
...@@ -70,7 +67,7 @@ ...@@ -70,7 +67,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="渠道门店:" prop="merchantName"> <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-option v-for="(item, index) in generateOptions" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -85,23 +82,23 @@ ...@@ -85,23 +82,23 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="权益商品编码:" prop=""> <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> <span class="codeTxt">用于关联流量卡服务测的商品</span>
</el-form-item> </el-form-item>
<el-form-item label="使用说明:" prop="usageNotes"> <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>
<el-form-item label=" 售价:" prop="price"> <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> </el-form-item>
</div> </div>
<div class="baseinformation2"><span class="titleText">其他信息</span></div> <div class="baseinformation2"><span class="titleText">其他信息</span></div>
<div class="form"> <div class="form">
<el-form-item label="试用设置:" prop=""> <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> </el-form-item>
<div class="durationCtn"> <div class="durationCtn" v-if="value == false ? false : true">
<el-form-item label="试用时长:" :prop="value == false ? '' : 'tryNum'"> <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> <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 { ...@@ -148,7 +145,6 @@ export default {
value: false, value: false,
downloadFilename: '', downloadFilename: '',
isVisible: false, isVisible: false,
title: '试用推广',
mainPage: location.origin + '/scrm-fission-mobile/#/?activityId=', mainPage: location.origin + '/scrm-fission-mobile/#/?activityId=',
submitBtn: false, submitBtn: false,
disableInputNumber: false, disableInputNumber: false,
...@@ -625,30 +621,25 @@ export default { ...@@ -625,30 +621,25 @@ export default {
} }
.baseinformation { .baseinformation {
width: 100%; width: 100%;
background: #d3d3d3; height: 28px;
height: 60px; border-bottom: 1px solid #d8d8d8;
line-height: 60px;
margin-top: -40px;
} }
.baseinformation2 { .baseinformation2 {
width: 100%; width: 100%;
background: #d3d3d3; border-bottom: 1px solid #d8d8d8;
height: 60px; height: 28px;
line-height: 60px;
} }
.titleText { .titleText {
margin-left: 20px; margin-left: 20px;
line-height: 28px;
} }
.form {
margin-top: 20px;
margin-left: 40px;
}
.explain { .explain {
color: #d3d3d3; color: #d3d3d3;
} }
.buttonCtn { .buttonCtn {
text-align: center; text-align: center;
margin-left: -100px; margin-top: 12px;
} }
.carEquCtn { .carEquCtn {
background: #f0f0f0; background: #f0f0f0;
...@@ -661,8 +652,8 @@ export default { ...@@ -661,8 +652,8 @@ export default {
flex-direction: row; flex-direction: row;
} }
.imageItem { .imageItem {
width: 150px; width: 300px;
height: 60px; height: 100px;
} }
.imgCtn { .imgCtn {
background: rgb(240, 240, 240); background: rgb(240, 240, 240);
...@@ -690,15 +681,15 @@ export default { ...@@ -690,15 +681,15 @@ export default {
.codeTxt { .codeTxt {
color: #8c939d; color: #8c939d;
font-size: 12px; font-size: 12px;
margin-left: 15px; margin-left: -97px;
} }
.main-qrcode { .main-qrcode {
text-align: center; text-align: center;
margin-bottom: 10px; margin-bottom: 10px;
} }
.main-qrcode img { .main-qrcode img {
width: 200px; width: 160px;
height: 200px; height: 160px;
} }
.download-qrcode { .download-qrcode {
text-decoration: underline; text-decoration: underline;
...@@ -708,9 +699,10 @@ export default { ...@@ -708,9 +699,10 @@ export default {
cursor: pointer; cursor: pointer;
} }
.durationCtn { .durationCtn {
background: #e9e8e8;
padding-left: 20px;
margin-left: 100px; margin-left: 100px;
background: #f7f7f7;
box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);
border: 1px solid #dcdfe6;
} }
.prompt { .prompt {
margin-left: 20px; margin-left: 20px;
...@@ -731,8 +723,20 @@ export default { ...@@ -731,8 +723,20 @@ export default {
color: #4c4c4c; color: #4c4c4c;
line-height: 20px; line-height: 20px;
} }
.dialogInput{ .dialogInput {
width: 320px; 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> </style>
\ No newline at end of file \ 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!