Commit 1777c997 by 胡悦
2 parents 6b83832f 6697505b
This diff could not be displayed because it is too large.
......@@ -41,4 +41,4 @@
"> 1%",
"last 2 versions"
]
}
}
\ No newline at end of file
body,html {
body,
html {
width: 100%;
height: 100%;
margin: 0;
......@@ -6,6 +7,7 @@ body,html {
overflow: hidden;
background-color: #F4F5FA;
}
.marketing .container {
padding: 0px 20px 20px 40px;
background: #ffffff;
......@@ -19,6 +21,7 @@ body,html {
padding: 15px 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
}
// 单行省略
.ellipsis-1 {
overflow: hidden;
......@@ -52,15 +55,18 @@ body,html {
background: -moz-linear-gradient(left, transparent, #fff 55%);
background: linear-gradient(to right, transparent, #fff 55%);
}
.marketing .wechat-container {
width: 375px;
margin-right: 45px;
background: #ffffff;
position: relative;
}
.marketing .wechat-container .w-100-per {
width: 100%;
}
.marketing .wechat-container .wechat-box {
width: 375px;
border: 1px solid #cecece;
......@@ -85,13 +91,13 @@ body,html {
margin-bottom: 18px;
}
.el-scrollbar__bar.is-horizontal{
height: 10px !important;
left: 10px;
.el-scrollbar__bar.is-horizontal {
height: 10px !important;
left: 10px;
}
.base-container-right .el-main-scroll .el-scrollbar__thumb {
background-color: rgba(144, 147, 153, 0.5) !important;
background-color: rgba(144, 147, 153, 0.5) !important;
}
.marketing .el-table .cell {
......@@ -100,7 +106,7 @@ body,html {
.marketing .table-btns .el-button {
padding: 0 0 0 5px;
margin-left: 5px;
margin-left: 5px;
border-left: 1px solid #DCDFE6;
border-radius: 0;
}
......@@ -179,7 +185,6 @@ body,html {
// left: 0;
// background-color: #0947C6;
// }
.marketing .edit-sub-title {
position: relative;
font-size: 13px;
......@@ -193,7 +198,7 @@ body,html {
}
.marketing .message-Z-zinde {
z-index: 3000 !important;
z-index: 9999 !important;
}
.marketing .txt-red {
......
......@@ -2,10 +2,10 @@
function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, maxValue, regRule) {
/* eslint-disable */
var reg = {
priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/
}
/* eslint-enable */
priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/
}
/* eslint-enable */
regRule = regRule || 'priceReg'
if (newValue && ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))) {
return oldValue || ''
......@@ -76,23 +76,22 @@ const auditStatusList = [{
]
//会员中心得状态list
const statusList=[
// {
// confId: '',
// confName: '全部'
// },
{
confId: 1,
confName: '生效中'
},
{
confId: 2,
confName: '已失效'
}
]
//会员订单类型字典
const orderTypesList=[
{
const statusList = [
// {
// confId: '',
// confName: '全部'
// },
{
confId: 1,
confName: '生效中'
},
{
confId: 2,
confName: '已失效'
}
]
//会员订单类型字典
const orderTypesList = [{
confId: 1,
confName: '套餐'
},
......@@ -101,7 +100,7 @@ const orderTypesList=[
confName: '会员卡'
}
]
const orderStatusList=[
const orderStatusList = [
// 2: '待收货',
// 3: '已完成',
// 4: '售后中',
......@@ -128,8 +127,7 @@ const orderStatusList=[
confName: '已经退款'
},
]
const serviceStatusList=[
{
const serviceStatusList = [{
confId: 1,
confName: '未生效'
},
......@@ -143,8 +141,7 @@ const serviceStatusList=[
}
]
const memberTypeList=[
{
const memberTypeList = [{
confId: 1,
confName: '正式会员'
},
......@@ -153,8 +150,7 @@ const memberTypeList=[
confName: '试用会员'
}
]
const stateList=[
{
const stateList = [{
confId: 0,
confName: '待上架'
},
......@@ -168,5 +164,14 @@ const stateList=[
},
]
export { limitPrice, liveStatusList, auditStatusList,statusList ,serviceStatusList,
memberTypeList,stateList,orderTypesList,orderStatusList}
\ No newline at end of file
export {
limitPrice,
liveStatusList,
auditStatusList,
statusList,
serviceStatusList,
memberTypeList,
stateList,
orderTypesList,
orderStatusList
}
\ No newline at end of file
......@@ -62,7 +62,7 @@ export default {
tableOption: true,
tableColumns: [
{
label: '专区名称',
label: '分类名称',
prop: 'classifyName'
},
{
......
......@@ -2,6 +2,27 @@
<template>
<div class="edit-share marketing p-t-20">
<div class="container edit-container">
<div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">代金券</span></span>
</div>
<div class="ctime">
<span class="ctime_name">有效期: </span>
<span class="ctime_content" v-if="editForm.effectiveType == 3">无限制</span>
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{editForm.effectiveDays}}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{couponTime}}</span>
</div>
<div class="ctime">
<span class="ctime_name">使用限制: </span>
<span class="ctime_content">{{editForm.useBarriers==1?'无限制':'满'+ editForm.full + '可用'}}</span>
</div>
<div class="cremarks">使用说明: </div>
<div class="cremarks_content">{{editForm.useDescription}}</div>
</div>
</div>
<p class="edit-title">{{ title }}代金券</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="useChannelHtml">
......@@ -26,7 +47,7 @@
</el-form-item>
<el-form-item prop="effectiveDays">
<el-radio v-model="editForm.effectiveType" label="1" :disabled="apear!='couponAdd'">
领取后你好<el-input v-model="editForm.effectiveDays" style="width:100px;margin-left:5px;margin-right:5px" :disabled="apear!='couponAdd'|| editForm.effectiveType != 1" />天内有效
领取后<el-input v-model="editForm.effectiveDays" style="width:100px;margin-left:5px;margin-right:5px" :disabled="apear!='couponAdd'|| editForm.effectiveType != 1" />天内有效
</el-radio>
</el-form-item>
</template>
......@@ -65,7 +86,7 @@
</template>
</glsx-combi-form>
</div>
<div class="view pull-left">
<!-- <div class="view pull-left">
<img src="@/images/wechat_top.png">
<div class='view-box'>
<div class='coupon-img'>
......@@ -105,7 +126,7 @@
</div>
<div>立即领取</div>
</div>
</div>
</div> -->
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear!='couponSee'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear!='couponSee'" @click="handleConfirm">确定</el-button>
......@@ -150,6 +171,7 @@ export default {
effectiveType: '3',
effectiveDays: '',
useBarriers: '1',
full: '',
goods: '1',
goodsRefList: [],
},
......@@ -543,182 +565,125 @@ export default {
}
</script>
<style scoped>
.view {
width: 375px;
height: 600px;
/* margin: 30px 45px 0 60px; */
background: #F6F6F6;
position: relative;
position: absolute;
top: 110px;
left: 50%;
}
.coupon-img {
position: relative;
}
.conpon-left {
position: absolute;
width: 90px;
height: 80px;
top: 0;
left: 0;
z-index: 2;
}
.conpon-left>div {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 30px;
width: 100%;
text-align: center;
}
.conpon-left>div span {
font-size: 12px;
.right_show {
/* float: right; */
position: absolute;
z-index: 10;
height: 566px;
width: 290px;
right: 44px;
top: 92px;
background-image:url(../../assets/coupon/phone.png);
}
.conpon-left>div p {
font-size: 10px;
margin: 0;
.right_show .card-top {
height: 59px;
width: 251px;
margin-left: 18px;
margin-top: 55px;
}
.conpon-right {
position: absolute;
background: #fff;
z-index: 2;
width: calc(100% - 90px);
height: 80px;
box-sizing: border-box;
padding: 8px 11px 0;
top: 0;
left: 90px;
font-size: 12px;
color: #999999;
.right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
overflow:auto
}
.coupon_name {
color: #333;
font-size: 14px;
margin-bottom: 10px;
.right_show .card-middle .cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 10px;
margin-top: 15px;
display: inline-block;
}
.view img {
width: 100%;
vertical-align: top;
.right_show .card-middle .ctype {
width: 48px;
height: 20px;
background: #5850FF;
border-radius: 10px;
margin-right: 6px;
margin-top: 10px;
display: inline-block;
float: right;
}
.view-btn {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 50px;
text-align: center;
background: #fff;
font-size: 10px;
color: #999999;
.right_show .card-middle .ctype .ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #FFFFFF;
font-weight: 400;
margin-left: 6px;
}
.view-btn>div:first-of-type {
float: left;
width: 100px;
height: 100%;
box-sizing: border-box;
padding-top: 7px;
.right_show .card-middle .ctime {
margin-left: 10px;
margin-top: 17px;
}
.view-btn>div:last-of-type {
float: left;
width: calc(100% - 100px);
line-height: 50px;
height: 100%;
background: #FF6600;
color: #fff;
font-size: 16px;
}
.view-btn img {
width: 22px;
height: 20px;
}
.view-box {
margin: 14px 20px 0;
}
.view-box .mt3 {
background: #FFFFFF;
border-radius: 4px;
}
.view-box .mt3 div {
padding: 20px;
font-size: 14px;
color: #333;
}
.couponName {
padding: 10px 0 0 125px;
}
.couponName span {
margin-right: 10px;
cursor: pointer;
}
.couponName span:hover {
color: #00a479;
.right_show .card-middle .ctime .ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.form-item-input {
height: 30px;
width: 180px;
box-sizing: border-box;
border: 1px solid #cccccc;
border-radius: 2px;
box-sizing: border-box;
padding: 0 10px;
outline: none;
.right_show .card-middle .ctime .ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #717171;
font-weight: 400;
margin-left: 5px;
}
.couponTypeList {
float: left;
height: 30px;
line-height: 30px;
border-radius: 2px;
padding: 0 14px;
box-sizing: border-box;
border: 1px solid #ccc;
margin-right: 10px;
cursor: pointer;
.right_show .card-middle .ccode {
width: 120px;
height: 120px;
margin-left: 67px;
margin-top: 8px;
}
.couponTypeList:hover,
.couponTypeList.active {
color: #fff;
background-color: #00a479;
border-color: #00a479;
.right_show .card-middle .ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1D1D1D;
font-weight: 500;
margin-left: 93px;
margin-top: 8px;
}
.user {
font-size: 14px;
color: #666;
height: 18px;
line-height: 18px;
.right_show .card-middle .cremarks {
margin-left: 10px;
margin-top: 17px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.user img {
width: 18px;
height: 18px;
border-radius: 100%;
overflow: hidden;
vertical-align: middle;
margin-right: 6px;
.right_show .card-middle .cremarks_content {
margin-left: 10px;
margin-right: 11px;
margin-top: 4px;
width: 230px;
height: 34px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
}
</style>
<!-- 编辑代金券 -->
<template>
<div class="edit-share marketing p-t-20">
<div class="container edit-container">
<div class="container edit-container" style="height: 630px;">
<div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">折扣券</span></span>
</div>
<div class="ctime">
<span class="ctime_name">有效期: </span>
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{editForm.effectiveDays}}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{couponTime}}</span>
</div>
<div class="ctime">
<span class="ctime_name">核销劵码: </span>
</div>
<img class="ccode" src="../../assets/coupon/code.png" />
<div class="ccodeName">GH078-003</div>
<div class="cremarks">使用说明: </div>
<div class="cremarks_content">{{editForm.useDescription}}</div>
</div>
</div>
<p class="edit-title">{{ title }}折扣劵</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="effectiveHtml">
......@@ -30,24 +51,6 @@
</template>
</glsx-combi-form>
</div>
<div class="left_show">
<div class="card-panel-top">
<div class="card-h-title">折扣券</div>
<!-- <div class="card-extime" v-if="editForm.effectiveType == 3">有效期:无限制</div> -->
<div class="card-extime" v-if="editForm.effectiveType == 1">有效期:{{editForm.effectiveDays}}天</div>
<!-- <div class="card-extime" ng-show="effectiveType == 2 && model.effectiveStartTime">有效期:{{model.effectiveTime}}</div> -->
<!-- <div class="card-extime" ng-show="effective == 2 && effectiveTime">有效期:{{effectiveTime.startDate.format('YYYY-MM-DD')}}-{{effectiveTime.endDate.format('YYYY-MM-DD')}}</div> -->
<div class="card-extime" v-if="editForm.effectiveType == 2">有效期:{{couponTime}}</div>
<div class="card-name">{{editForm.couponName}}</div>
<!-- <div class="card-day" v-if="editForm.useType == 0">使用限制:无限定次数</div>
<div class="card-day" v-if="editForm.useType == 1">使用限制:{{editForm.usageTimes}}次</div>
<div class="card-day" v-if="editForm.useType == 2">使用限制:每{{editForm.useLimitDays}}天可以使用{{editForm.usageTimes2}}次</div> -->
</div>
<div class="card-panel-bottom">
<div class="card-remark">使用说明:</div>
<div class="card-remark">{{editForm.useDescription}}</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear!='couponSee'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear!='couponSee'" @click="handleConfirm">确定</el-button>
......@@ -163,7 +166,7 @@ export default {
},
'editForm.effectiveTime'(newValue, oldValue){
if(newValue && newValue.length > 0){
this.couponTime = this.setDateString(newValue[0], true) + ' - ' + this.setDateString(newValue[1], true)
this.couponTime = this.setDateString(newValue[0], true) + ' ~ ' + this.setDateString(newValue[1], true)
}else{
this.couponTime = ''
}
......@@ -275,54 +278,125 @@ export default {
}
</script>
<style scoped>
.left_show {
width: 400px;
/*min-height: 600px;*/
background: #fff;
/*border: 1px solid #eee;*/
position:relative;
display:flex;
flex-direction: column;
.right_show {
/* float: right; */
position: absolute;
top: 110px;
left: 50%;
z-index: 10;
height: 566px;
width: 290px;
right: 44px;
top: 92px;
background-image:url(../../assets/coupon/phone.png);
}
.left_show .card-panel-top {
/* margin-top: 200px; */
width: 365px;
height: 122px;
background-color: rgba(245, 154, 35, 0.7);
border: none;
text-align: center;
line-height: 24px;
position: relative;
.right_show .card-top {
height: 59px;
width: 251px;
margin-left: 18px;
margin-top: 55px;
}
.card-h-title {
position: absolute;
font-weight: 500;
font-size: 20px;
top: 20px;
transform: rotate(-45deg);
.right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
overflow:auto
}
.card-panel-bottom {
width: 353px;
min-height: 90px;
background-color: rgba(250, 205, 145, 1);
padding: 6px;
.right_show .card-middle .cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 10px;
margin-top: 15px;
display: inline-block;
}
.card-extime {
.right_show .card-middle .ctype {
width: 48px;
height: 20px;
background: #5850FF;
border-radius: 10px;
margin-right: 6px;
margin-top: 10px;
display: inline-block;
float: right;
}
.card-name {
margin: 16px 0px;
font-size: 16px;
.right_show .card-middle .ctype .ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #FFFFFF;
font-weight: 400;
margin-left: 6px;
}
.card-day {
margin-top: 10px;
.right_show .card-middle .ctime {
margin-left: 10px;
margin-top: 17px;
}
.right_show .card-middle .ctime .ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.right_show .card-middle .ctime .ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #717171;
font-weight: 400;
margin-left: 5px;
}
.right_show .card-middle .ccode {
width: 120px;
height: 120px;
margin-left: 67px;
margin-top: 8px;
}
.card-remark {
.right_show .card-middle .ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1D1D1D;
font-weight: 500;
margin-left: 93px;
margin-top: 8px;
}
.right_show .card-middle .cremarks {
margin-left: 10px;
margin-top: 17px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.right_show .card-middle .cremarks_content {
margin-left: 10px;
margin-right: 11px;
margin-top: 4px;
width: 230px;
height: 34px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
}
</style>
......@@ -2,6 +2,27 @@
<template>
<div class="edit-share marketing p-t-20">
<div class="container edit-container">
<div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">兑换券</span></span>
</div>
<div class="ctime">
<span class="ctime_name">有效期: </span>
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{editForm.effectiveDays}}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{couponTime}}</span>
</div>
<div class="ctime">
<span class="ctime_name">核销劵码: </span>
</div>
<img class="ccode" src="../../assets/coupon/code.png" />
<div class="ccodeName">GH078-003</div>
<div class="cremarks">使用说明: </div>
<div class="cremarks_content">{{editForm.useDescription}}</div>
</div>
</div>
<p class="edit-title">{{ title }}兑换券</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="effectiveHtml">
......@@ -30,24 +51,6 @@
</template>
</glsx-combi-form>
</div>
<div class="left_show">
<div class="card-panel-top">
<div class="card-h-title">兑换券</div>
<!-- <div class="card-extime" v-if="editForm.effectiveType == 3">有效期:无限制</div> -->
<div class="card-extime" v-if="editForm.effectiveType == 1">有效期:{{editForm.effectiveDays}}天</div>
<!-- <div class="card-extime" ng-show="effectiveType == 2 && model.effectiveStartTime">有效期:{{model.effectiveTime}}</div> -->
<!-- <div class="card-extime" ng-show="effective == 2 && effectiveTime">有效期:{{effectiveTime.startDate.format('YYYY-MM-DD')}}-{{effectiveTime.endDate.format('YYYY-MM-DD')}}</div> -->
<div class="card-extime" v-if="editForm.effectiveType == 2">有效期:{{couponTime}}</div>
<div class="card-name">{{editForm.couponName}}</div>
<!-- <div class="card-day" v-if="editForm.useType == 0">使用限制:无限定次数</div>
<div class="card-day" v-if="editForm.useType == 1">使用限制:{{editForm.usageTimes}}次</div>
<div class="card-day" v-if="editForm.useType == 2">使用限制:每{{editForm.useLimitDays}}天可以使用{{editForm.usageTimes2}}次</div> -->
</div>
<div class="card-panel-bottom">
<div class="card-remark">使用说明:</div>
<div class="card-remark">{{editForm.useDescription}}</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear!='couponSee'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear!='couponSee'" @click="handleConfirm">确定</el-button>
......@@ -275,54 +278,125 @@ export default {
}
</script>
<style scoped>
.left_show {
width: 400px;
/*min-height: 600px;*/
background: #fff;
/*border: 1px solid #eee;*/
position:relative;
display:flex;
flex-direction: column;
.right_show {
/* float: right; */
position: absolute;
top: 110px;
left: 50%;
z-index: 10;
height: 566px;
width: 290px;
right: 44px;
top: 92px;
background-image:url(../../assets/coupon/phone.png);
}
.left_show .card-panel-top {
/* margin-top: 200px; */
width: 365px;
height: 122px;
background-color: rgba(245, 154, 35, 0.7);
border: none;
text-align: center;
line-height: 24px;
position: relative;
.right_show .card-top {
height: 59px;
width: 251px;
margin-left: 18px;
margin-top: 55px;
}
.card-h-title {
position: absolute;
font-weight: 500;
font-size: 20px;
top: 20px;
transform: rotate(-45deg);
.right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
overflow:auto
}
.card-panel-bottom {
width: 353px;
min-height: 90px;
background-color: rgba(250, 205, 145, 1);
padding: 6px;
.right_show .card-middle .cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 10px;
margin-top: 15px;
display: inline-block;
}
.card-extime {
.right_show .card-middle .ctype {
width: 48px;
height: 20px;
background: #5850FF;
border-radius: 10px;
margin-right: 6px;
margin-top: 10px;
display: inline-block;
float: right;
}
.card-name {
margin: 16px 0px;
font-size: 16px;
.right_show .card-middle .ctype .ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #FFFFFF;
font-weight: 400;
margin-left: 6px;
}
.card-day {
margin-top: 10px;
.right_show .card-middle .ctime {
margin-left: 10px;
margin-top: 17px;
}
.right_show .card-middle .ctime .ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.right_show .card-middle .ctime .ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #717171;
font-weight: 400;
margin-left: 5px;
}
.right_show .card-middle .ccode {
width: 120px;
height: 120px;
margin-left: 67px;
margin-top: 8px;
}
.card-remark {
.right_show .card-middle .ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1D1D1D;
font-weight: 500;
margin-left: 93px;
margin-top: 8px;
}
.right_show .card-middle .cremarks {
margin-left: 10px;
margin-top: 17px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.right_show .card-middle .cremarks_content {
margin-left: 10px;
margin-right: 11px;
margin-top: 4px;
width: 230px;
height: 34px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
}
</style>
......@@ -50,13 +50,11 @@
</template>
</glsx-combi-form>
</div>
<div class="left_show">
<!-- <div class="left_show">
<div class="card-panel-top">
<div class="card-h-title">会员券</div>
<div class="card-extime" v-if="editForm.effectiveType == 3">有效期:无限制</div>
<div class="card-extime" v-if="editForm.effectiveType == 1">有效期:{{editForm.effectiveDays}}天</div>
<!-- <div class="card-extime" ng-show="effectiveType == 2 && model.effectiveStartTime">有效期:{{model.effectiveTime}}</div> -->
<!-- <div class="card-extime" ng-show="effective == 2 && effectiveTime">有效期:{{effectiveTime.startDate.format('YYYY-MM-DD')}}-{{effectiveTime.endDate.format('YYYY-MM-DD')}}</div> -->
<div class="card-extime" v-if="editForm.effectiveType == 2">有效期:{{couponTime}}</div>
<div class="card-name">{{editForm.couponName}}</div>
<div class="card-day" v-if="editForm.useType == 0">使用限制:无限定次数</div>
......@@ -67,7 +65,7 @@
<div class="card-remark">使用说明:</div>
<div class="card-remark">{{editForm.useDescription}}</div>
</div>
</div>
</div> -->
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear!='couponSee'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear!='couponSee'" @click="handleConfirm">确定</el-button>
......
......@@ -3,9 +3,9 @@
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()">新建代金券</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" @click="addService()">新建会员服务</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" @click="addDiscountCoupon()">新建折扣劵</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" @click="addExchangeCoupon()">新建兑换券</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addService()">新建会员服务</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addDiscountCoupon()">新建折扣劵</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addExchangeCoupon()">新建兑换券</el-button>
</div>
<div class="container">
<div>
......
......@@ -28,7 +28,7 @@
<div class="cardDetail editForm" v-else>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="90px" class="demo-ruleForm" style="width: 500px">
<el-form-item label="会员卡名" prop="cardName" size="small">
<el-input v-model="ruleForm.cardName" class="cardNameInput" size="small" placeholder="请输入会员卡名" show-word-limit maxlength="15"></el-input>
<el-input v-model="ruleForm.cardName" size="small" class="cardNameInput" show-word-limit placeholder="请输入会员卡名" maxlength="15"></el-input>
</el-form-item>
<el-form-item label="售价" size="small" prop="price" style="width: 300px">
<el-input v-model="ruleForm.price" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
......@@ -65,7 +65,12 @@
</el-form-item>
</el-row>
<el-row>
<el-form-item size="small" label="开通日期">
<el-form-item size="small" label="会员类型" >
<el-select size="small" v-model="searchForm.memberType" placeholder="请选择">
<el-option v-for="item in memberTypeLists" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="开通日期" style="margin-left:-10px">
<el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item>
......@@ -75,7 +80,7 @@
</el-form-item>
</el-row>
</el-form>
<GLTable v-if="isReload" ref="memberCenterRef" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<GLTable ref="memberCenterRef" v-if="isReload" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="accountName" slot-scope="scope">
<div>{{ scope.scope.accountName }}</div>
<div>{{ scope.scope.mobile }}</div>
......@@ -84,26 +89,26 @@
</div>
<glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<!-- <el-scrollbar> -->
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
<div class="equity-item" v-for="(item, index) in merchantData.carServiceList" :key="index">
<div class="equity-item-icon"><img :src="item.equityIcon" /></div>
<div class="equity-item-name">{{ item.equityName }}</div>
<div class="equity-item-desc">{{ item.equityDesc }}</div>
</div>
</div>
<div v-for="(item, index) in merchantData.goodsServiceList" :key="index">
<div class="equity-name">{{ item.goodsCategory }}</div>
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
<div class="equity-item" v-for="(v, xindex) in item.equityGoodsGroupDescDtos" :key="xindex">
<div class="equity-item-icon"><img :src="v.equityIcon" /></div>
<div class="equity-item-name">{{ v.equityName }}</div>
<div class="equity-item-desc">{{ v.equityDesc }}</div>
<div class="equity-item" v-for="(item, index) in merchantData.carServiceList" :key="index">
<div class="equity-item-icon"><img :src="item.equityIcon" /></div>
<div class="equity-item-name">{{ item.equityName }}</div>
<div class="equity-item-desc">{{ item.equityDesc }}</div>
</div>
</div>
<div v-for="(item, index) in merchantData.goodsServiceList" :key="index">
<div class="equity-name">{{ item.goodsCategory }}</div>
<div class="equity-panel">
<div class="equity-item" v-for="(v, xindex) in item.equityGoodsGroupDescDtos" :key="xindex">
<div class="equity-item-icon"><img :src="v.equityIcon" /></div>
<div class="equity-item-name">{{ v.equityName }}</div>
<div class="equity-item-desc">{{ v.equityDesc }}</div>
</div>
</div>
</div>
</div>
</div>
<!-- </el-scrollbar> -->
</glsx-dialog>
</div>
......@@ -135,7 +140,7 @@ export default {
// }, 1000)
}
return {
isReload: true,
isReload:true,
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -146,9 +151,24 @@ export default {
searchForm: {
userInfo: '',
status: '',
merchantName: ''
merchantName: '',
memberType:''
},
searchFormTable: {},
memberTypeLists:[
{
dictValue: '',
dictLabel: '全部'
},
{
dictValue: 1,
dictLabel: '正式会员'
},
{
dictValue: 2,
dictLabel: '试用会员'
}
],
memberCenterStatus: [
{
dictValue: '',
......@@ -196,7 +216,6 @@ export default {
{
label: '开通日期',
prop: 'activeTime'
// addHtml: 'activeTime'
},
{
......@@ -220,7 +239,8 @@ export default {
cardName: '',
price: '',
marketPrice: '',
linkUrl: ''
linkUrl: '',
tryAble:''
},
copyRuleForm: {},
rules: {
......@@ -237,13 +257,13 @@ export default {
//权益 - 弹窗
isDialogVisible: false,
merchantData: {},
merchantId: 0 //记得改 44184606
merchantId: 0 //记得改 glsxadmin:44184606
}
},
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
this.merchantId = this.$globalState.session.merchantId
}
this.getCardContentFun()
},
......@@ -281,11 +301,13 @@ export default {
},
getCardContentFun() {
getCardContent({ merchantId: this.merchantId }).then(res => {
this.ruleForm.equityId = res[0].id
this.ruleForm.equityId = res[0].id
this.ruleForm.cardName = res[0].cardClassName
this.ruleForm.price = res[0].price
this.ruleForm.marketPrice = res[0].marketPrice
this.ruleForm.linkUrl = res[0].url
this.ruleForm.tryAble=res[0].tryAble
})
},
openEditWrap() {
......@@ -308,7 +330,7 @@ export default {
params.cardClassName = this.ruleForm.cardName
params.price = this.ruleForm.price
params.marketPrice = this.ruleForm.marketPrice
params.tryAble=this.ruleForm.tryAble
updateCardContent(params).then(res => {
if (!res) {
return
......
......@@ -65,16 +65,17 @@ export default {
alink.remove()
},
handleSaveTxt(txt) {
this.$message({
message: '复制成功',
type: 'success',
customClass: 'message-Z-zinde'
})
const input = document.createElement('input')
document.body.appendChild(input)
input.setAttribute('value', txt)
input.select()
document.execCommand('Copy')
document.body.removeChild(input)
this.$message({
message: '复制成功',
type: 'success'
})
},
handleShareClose() {
this.$emit('handleShareClose')
......
......@@ -86,7 +86,7 @@
<img class="img-w-h" :src="subItem.content" />
<span class="img-btns">
<span class="btn-item">
<i class="el-icon-delete" @click="handleImgDelete(scope.scope.name, subIndex)"></i>
<i v-if="!isDisabled" class="el-icon-delete" @click="handleImgDelete(scope.scope.name, subIndex)"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.content)"></i>
</span>
</span>
......@@ -830,6 +830,7 @@ export default {
if (spescInputVal) {
this.spescEditForm.specificationValueList.push({ specificationValue: spescInputVal })
}
this.$refs.spescRef.validateField('specificationValueList')
this.specsInputVisible = false
this.spescInputVal = ''
},
......@@ -844,6 +845,7 @@ export default {
}
this.editForm.retailPrice = ''
this.editForm.goodsStock = ''
this.spescEditForm = {}
this.handleSpescClose()
this.changeSpecs(false)
}
......
......@@ -245,7 +245,7 @@ export default {
// groupOrStore:1-集团;2-门店
handleEdit(addOrEdit, row) {
// 1-门店;2-带货
if (row.goodsSource == 2) {
if (addOrEdit != 1 && row.goodsSource == 2) {
this.$router.push('/productStore/editProductDh/' + addOrEdit + '/' + row.id)
return true
}
......
......@@ -509,8 +509,9 @@ export default {
// flag = false
// }
if(this.nameToValSpecsList && this.nameToValSpecsList.length > 0){
for (var key in this.nameToValSpecsList) {
var item = this.nameToValSpecsList[key]
var list = this.nameToValSpecsList
for (var key = 0; key < list.length; key++) {
var item = list[key]
if(!item.activityPrice){
this.$message({
message: '有未设置秒杀价的项',
......@@ -532,14 +533,14 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) {
if(!flag){
return
return false
}
var params = this.getCouponInfoParams()
console.log(params);
this.$apis.seckillActivity.addOrUpdateActivityApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : '操作失败',
message: res.code == '0' ? '操作成功' : (res.message?res.message:'操作失败'),
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!