Commit b1331d24 by 前端

Merge branch 'kuangyq_dev_v2.3.0' into 'v2.3.0'

修改群发选择活动

See merge request !168
2 parents 0eb7ffe0 ff4b02a1
...@@ -13,17 +13,26 @@ ...@@ -13,17 +13,26 @@
</el-tabs> </el-tabs>
</div> </div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading"> <div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
<div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)"> <div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList"
:key="index" @click="handleSelectItem(item)">
<div class="model-item-title" :title="item.equityName" v-show="activeName == 3">{{ item.equityName }}</div> <div class="model-item-title" :title="item.equityName" v-show="activeName == 3">{{ item.equityName }}</div>
<div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ item.couponName }}</div> <div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ item.couponName }}</div>
<!-- <div class="model-item-title" :title="item.couponName" v-show="activeName == 6">{{ item.equityName }}</div> --> <!-- <div class="model-item-title" :title="item.couponName" v-show="activeName == 6">{{ item.equityName }}</div> -->
<div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div> <div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}
<div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}</div> </div>
<div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}
</div>
<div class="model-item-content" v-show="activeName == 3">领取方式:免费领用</div> <div class="model-item-content" v-show="activeName == 3">领取方式:免费领用</div>
<div class="model-item-content" v-show="activeName == 4">领取方式:付费购买</div> <div class="model-item-content" v-show="activeName == 4">领取方式:付费购买</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 6">有效期:{{ item.effectiveDays }}天</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 6">有效期:{{
item.effectiveDays
}}天</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{
item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : ''
}}~{{ item.effectiveEndTime ?
item.effectiveEndTime.split(' ')[0] : ''
}}</div>
<!-- <div class="model-item-content" v-show="activeName == 6">获取方式:需先购买无忧服务套餐</div> <!-- <div class="model-item-content" v-show="activeName == 6">获取方式:需先购买无忧服务套餐</div>
<div class="model-item-content" v-show="activeName == 6">获取限制:每个服务套餐限领一次</div> --> <div class="model-item-content" v-show="activeName == 6">获取限制:每个服务套餐限领一次</div> -->
...@@ -64,14 +73,19 @@ ...@@ -64,14 +73,19 @@
<img src="@/assets/empty.png" /> <img src="@/assets/empty.png" />
<div class="empty-item">暂无数据</div> <div class="empty-item">暂无数据</div>
</div> </div>
<el-pagination v-if="activeName != 3" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination> <el-pagination v-if="activeName != 3" @size-change="handleSizeChange" @current-change="handleCurrentChange"
:current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal"
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button> <el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect" v-show="modelList.length">确 定</el-button> <el-button size="small" type="primary" @click="handleSelect" v-show="modelList.length">确 定</el-button>
<el-button size="small" type="primary" @click="handleOpen" v-show="modelList.length == 0 && activeName == 2 && memberMenu">立即添加</el-button> <el-button size="small" type="primary" @click="handleOpen"
<el-button size="small" type="primary" @click="handleOpen" v-show="modelList.length == 0 && activeName == 4 && couponMenu">立即添加</el-button> v-show="modelList.length == 0 && activeName == 2 && memberMenu">立即添加</el-button>
<el-button size="small" type="primary" @click="handleOpen" v-show="modelList.length == 0 && activeName == 5 && activityMenu">立即添加</el-button> <el-button size="small" type="primary" @click="handleOpen"
v-show="modelList.length == 0 && activeName == 4 && couponMenu">立即添加</el-button>
<el-button size="small" type="primary" @click="handleOpen"
v-show="modelList.length == 0 && activeName == 5 && activityMenu">立即添加</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -182,6 +196,7 @@ export default { ...@@ -182,6 +196,7 @@ export default {
} }
if (this.activeName == 2) { if (this.activeName == 2) {
params.discountTypes = [2, 3, 4] params.discountTypes = [2, 3, 4]
params.directionalFlag = 1
params.validType = 'valid' params.validType = 'valid'
} }
if (this.activeName == 5) { if (this.activeName == 5) {
...@@ -255,29 +270,35 @@ export default { ...@@ -255,29 +270,35 @@ export default {
} }
} }
} }
.sop-activity-model.model-panel { .sop-activity-model.model-panel {
.model-panel-tab { .model-panel-tab {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 18px; margin-bottom: 18px;
label { label {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #000000; color: #000000;
line-height: 24px; line-height: 24px;
} }
/deep/ { /deep/ {
.el-checkbox:last-of-type { .el-checkbox:last-of-type {
margin-right: 8px; margin-right: 8px;
} }
.el-tabs__nav { .el-tabs__nav {
border: 0; border: 0;
} }
.el-tabs__header { .el-tabs__header {
border: 0; border: 0;
background-color: #f4f6fc; background-color: #f4f6fc;
margin: 0px; margin: 0px;
} }
.el-tabs__item { .el-tabs__item {
border: none; border: none;
width: 180px; width: 180px;
...@@ -287,6 +308,7 @@ export default { ...@@ -287,6 +308,7 @@ export default {
text-align: center; text-align: center;
background: #f4f6fc; background: #f4f6fc;
} }
.el-tabs__item.is-active { .el-tabs__item.is-active {
background-color: #fff !important; background-color: #fff !important;
border-radius: 4px; border-radius: 4px;
...@@ -294,13 +316,15 @@ export default { ...@@ -294,13 +316,15 @@ export default {
} }
} }
} }
.model-item-empty { .model-item-empty {
> img { >img {
display: block; display: block;
margin: 50px auto 0px; margin: 50px auto 0px;
width: 60px; width: 60px;
height: auto; height: auto;
} }
.empty-item { .empty-item {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
...@@ -310,6 +334,7 @@ export default { ...@@ -310,6 +334,7 @@ export default {
margin-bottom: 30px; margin-bottom: 30px;
} }
} }
.model-item-panel { .model-item-panel {
// display: grid; // display: grid;
// grid-template-columns: repeat(4, 25%); // grid-template-columns: repeat(4, 25%);
...@@ -320,6 +345,7 @@ export default { ...@@ -320,6 +345,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
align-items: stretch; align-items: stretch;
flex-direction: row; flex-direction: row;
.model-item { .model-item {
width: 240px; width: 240px;
margin-right: 24px; margin-right: 24px;
...@@ -332,13 +358,16 @@ export default { ...@@ -332,13 +358,16 @@ export default {
border: 1px solid #e6e6e6; border: 1px solid #e6e6e6;
padding: 14px 24px; padding: 14px 24px;
box-sizing: border-box; box-sizing: border-box;
&:nth-child(4n) { &:nth-child(4n) {
margin-right: 0px; margin-right: 0px;
} }
&.checked { &.checked {
background: rgba(88, 80, 255, 0.1); background: rgba(88, 80, 255, 0.1);
border: 1px solid #5850ff; border: 1px solid #5850ff;
} }
&-qrcode { &-qrcode {
position: absolute; position: absolute;
right: 10px; right: 10px;
...@@ -347,6 +376,7 @@ export default { ...@@ -347,6 +376,7 @@ export default {
height: 60px; height: 60px;
border: 1px solid #979797; border: 1px solid #979797;
} }
&-title { &-title {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
...@@ -357,6 +387,7 @@ export default { ...@@ -357,6 +387,7 @@ export default {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
} }
&-content { &-content {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
...@@ -367,15 +398,18 @@ export default { ...@@ -367,15 +398,18 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
&.model-item-weight { &.model-item-weight {
line-height: 20px; line-height: 20px;
height: 20px; height: 20px;
} }
span { span {
color: #5850ff; color: #5850ff;
font-size: 20px; font-size: 20px;
} }
} }
&-contents { &-contents {
line-height: 22px; line-height: 22px;
height: 22px; height: 22px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!