优化:隐藏优惠券相关内容

This commit is contained in:
wuhui_zzw 2023-12-05 16:01:32 +08:00
parent 1b96cb80ca
commit e92bf2e2c1
3 changed files with 1537 additions and 1469 deletions

View File

@ -65,7 +65,7 @@ export default {
cname: '优惠券', cname: '优惠券',
configName: 'c_home_coupon', configName: 'c_home_coupon',
icon: 'iconyouhuiquan2', icon: 'iconyouhuiquan2',
type:1,// 0 1 2 type: 30,//1,// 0 1 2
defaultName:'coupon', // defaultName:'coupon', //
props: { props: {
index: { index: {

View File

@ -15,7 +15,7 @@
<div class="title line2" v-if="titleShow">{{item.store_name}}</div> <div class="title line2" v-if="titleShow">{{item.store_name}}</div>
<div class="text"> <div class="text">
<div class="label" :style="{background:labelColor}">旗舰店</div> <div class="label" :style="{background:labelColor}">旗舰店</div>
<div class="coupon" v-if="couponShow" :style="'border:1px solid '+labelColor+';color:'+labelColor">领券</div> <!--<div class="coupon" v-if="couponShow" :style="'border:1px solid '+labelColor+';color:'+labelColor">领券</div>-->
<div class="ship">包邮</div> <div class="ship">包邮</div>
</div> </div>
</div> </div>
@ -40,7 +40,7 @@
</div> </div>
<div class="text"> <div class="text">
<div class="label" :style="{background:labelColor}">旗舰店</div> <div class="label" :style="{background:labelColor}">旗舰店</div>
<div class="coupon" v-if="couponShow" :style="'border:1px solid '+labelColor+';color:'+labelColor">领券</div> <!--<div class="coupon" v-if="couponShow" :style="'border:1px solid '+labelColor+';color:'+labelColor">领券</div>-->
<div class="ship">包邮</div> <div class="ship">包邮</div>
</div> </div>
<div class="price" :style="{color:fontColor}"> <div class="price" :style="{color:fontColor}">
@ -61,7 +61,7 @@
</div> </div>
<div class="text"> <div class="text">
<div class="label" :style="{background:labelColor}">旗舰店</div> <div class="label" :style="{background:labelColor}">旗舰店</div>
<div class="coupon" v-if="couponShow" :style="'border:1px solid '+labelColor+';color:'+labelColor">领券</div> <!--<div class="coupon" v-if="couponShow" :style="'border:1px solid '+labelColor+';color:'+labelColor">领券</div>-->
<div class="ship">包邮</div> <div class="ship">包邮</div>
</div> </div>
<div class="price" :style="{color:fontColor}"> <div class="price" :style="{color:fontColor}">
@ -93,7 +93,7 @@
</div> </div>
<div class="text"> <div class="text">
<!-- <div class="label" :style="{background:labelColor}">官方旗舰店</div> --> <!-- <div class="label" :style="{background:labelColor}">官方旗舰店</div> -->
<div class="coupon" :style="'border:1px solid '+labelColor+';color:'+labelColor" :class="priceShow?'':'on'" v-if="item.couponId && item.couponId.length && couponShow">领券</div> <!--<div class="coupon" :style="'border:1px solid '+labelColor+';color:'+labelColor" :class="priceShow?'':'on'" v-if="item.couponId && item.couponId.length && couponShow">领券</div>-->
</div> </div>
</div> </div>
</div> </div>
@ -114,7 +114,7 @@
</div> </div>
<div class="text"> <div class="text">
<div class="label" :style="{background:labelColor}" v-if="index==0">官方旗舰店</div> <div class="label" :style="{background:labelColor}" v-if="index==0">官方旗舰店</div>
<div class="coupon" :style="'border:1px solid '+labelColor+';color:'+labelColor" v-if="couponShow">领券</div> <!--<div class="coupon" :style="'border:1px solid '+labelColor+';color:'+labelColor" v-if="couponShow">领券</div>-->
</div> </div>
</div> </div>
</div> </div>
@ -133,7 +133,7 @@
</div> </div>
<div class="text"> <div class="text">
<div class="label" :style="{background:labelColor}" v-if="index==0">官方旗舰店</div> <div class="label" :style="{background:labelColor}" v-if="index==0">官方旗舰店</div>
<div class="coupon" :style="'border:1px solid '+labelColor+';color:'+labelColor" v-if="couponShow">领券</div> <!--<div class="coupon" :style="'border:1px solid '+labelColor+';color:'+labelColor" v-if="couponShow">领券</div>-->
</div> </div>
</div> </div>
</div> </div>

View File

@ -146,9 +146,9 @@
<div class="item"> <div class="item">
<div class="cont">活动</div> <div class="cont">活动</div>
</div> </div>
<div class="item"> <!--<div class="item">-->
<div class="cont">领券</div> <!-- <div class="cont">领券</div>-->
</div> <!--</div>-->
</div> </div>
</div> </div>
</div> </div>
@ -232,6 +232,7 @@ import { roterPre } from "@/settings";
import {mapState} from "vuex"; import {mapState} from "vuex";
import html2canvas from 'html2canvas'; import html2canvas from 'html2canvas';
import ClipboardJS from "clipboard"; import ClipboardJS from "clipboard";
let idGlobal = 0; let idGlobal = 0;
export default { export default {
inject: ['reload'], inject: ['reload'],
@ -578,8 +579,7 @@ export default {
this.activeIndex = 0; this.activeIndex = 0;
} }
this.rConfig.push(tempItem); this.rConfig.push(tempItem);
} } else {
else {
if (type) { if (type) {
this.rConfig = []; this.rConfig = [];
this.mConfig.push(tempItem); this.mConfig.push(tempItem);
@ -672,6 +672,8 @@ export default {
list: [], list: [],
isOpen: true, isOpen: true,
}; };
// console.log("");
// console.log(this.lConfig);
this.lConfig.map((el, index) => { this.lConfig.map((el, index) => {
if (el.type == 0) { if (el.type == 0) {
basis.list.push(el); basis.list.push(el);
@ -736,9 +738,11 @@ export default {
this.$store.commit("mobildConfig/radioUpdata", data.info.bg_tab_val || 0); this.$store.commit("mobildConfig/radioUpdata", data.info.bg_tab_val || 0);
this.$store.commit("mobildConfig/picurlUpdata", data.info.bg_pic || ''); this.$store.commit("mobildConfig/picurlUpdata", data.info.bg_pic || '');
let newArr = this.objToArr(data.info.value); let newArr = this.objToArr(data.info.value);
function sortNumber(a, b) { function sortNumber(a, b) {
return a.timestamp - b.timestamp; return a.timestamp - b.timestamp;
} }
newArr.sort(sortNumber); newArr.sort(sortNumber);
newArr.map((el, index) => { newArr.map((el, index) => {
if (el.name == "headerSerch") { if (el.name == "headerSerch") {
@ -822,26 +826,33 @@ export default {
border-bottom: 1px solid #e8eaec; border-bottom: 1px solid #e8eaec;
text-align: right; text-align: right;
} }
.ysize { .ysize {
background-size: 100%; background-size: 100%;
} }
.fullsize { .fullsize {
background-size: 100% 100%; background-size: 100% 100%;
} }
.repeat { .repeat {
background-repeat: repeat; background-repeat: repeat;
} }
.noRepeat { .noRepeat {
background-repeat: no-repeat; background-repeat: no-repeat;
} }
/deep/ .el-input__inner { /deep/ .el-input__inner {
font-size: 13px; font-size: 13px;
} }
.defaultData { .defaultData {
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
left: 50%; left: 50%;
margin-left: 245px; margin-left: 245px;
.data { .data {
margin-top: 20px; margin-top: 20px;
color: #282828; color: #282828;
@ -853,12 +864,14 @@ export default {
border-radius: 3px; border-radius: 3px;
font-size: 12px; font-size: 12px;
} }
.data:hover { .data:hover {
background-color: #2d8cf0; background-color: #2d8cf0;
color: #fff; color: #fff;
border: 0; border: 0;
} }
} }
.overflowy { .overflowy {
// overflow-y: scroll; // overflow-y: scroll;
.picture { .picture {
@ -868,9 +881,11 @@ export default {
background-color: #fff; background-color: #fff;
} }
} }
.bnt { .bnt {
width: 80px !important; width: 80px !important;
} }
/*定义滑块 内阴影+圆角*/ /*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
-webkit-box-shadow: inset 0 0 6px #fff; -webkit-box-shadow: inset 0 0 6px #fff;
@ -888,6 +903,7 @@ export default {
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 4px !important; /*对垂直流动条有效*/ width: 4px !important; /*对垂直流动条有效*/
} }
.store-home { .store-home {
width: 379px; width: 379px;
margin: 0 auto; margin: 0 auto;
@ -897,6 +913,7 @@ export default {
background-position: left top/750px 200px no-repeat fixed; background-position: left top/750px 200px no-repeat fixed;
overflow: hidden; overflow: hidden;
} }
.header { .header {
position: relative; position: relative;
z-index: 6; z-index: 6;
@ -905,6 +922,7 @@ export default {
padding-right: 17px; padding-right: 17px;
height: 43px; height: 43px;
padding-left: 16px; padding-left: 16px;
.head-menu { .head-menu {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
@ -916,10 +934,12 @@ export default {
width: 70px; width: 70px;
background: rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.25);
border-radius: 13px; border-radius: 13px;
.icon-xiangzuo { .icon-xiangzuo {
font-size: 16px; font-size: 16px;
color: #FFFFFF; color: #FFFFFF;
} }
.iconfont-h5 { .iconfont-h5 {
-webkit-box-flex: 1; -webkit-box-flex: 1;
-webkit-flex: 1; -webkit-flex: 1;
@ -927,11 +947,13 @@ export default {
text-align: center; text-align: center;
color: #fff; color: #fff;
box-sizing: border-box; box-sizing: border-box;
&.icon-xiangzuo { &.icon-xiangzuo {
border-right: 1px solid rgba(255, 255, 255, .3); border-right: 1px solid rgba(255, 255, 255, .3);
} }
} }
} }
.search { .search {
flex: 1; flex: 1;
display: flex; display: flex;
@ -944,6 +966,7 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 13px; font-size: 13px;
color: #999999; color: #999999;
.iconfont-h5 { .iconfont-h5 {
margin-right: 6px; margin-right: 6px;
margin-left: 15px; margin-left: 15px;
@ -951,6 +974,7 @@ export default {
} }
} }
} }
.store { .store {
position: relative; position: relative;
z-index: 6; z-index: 6;
@ -960,28 +984,34 @@ export default {
padding-left: 10px; padding-left: 10px;
padding-top: 10px; padding-top: 10px;
padding-bottom: 11px; padding-bottom: 11px;
image { image {
width: 37px; width: 37px;
height: 37px; height: 37px;
border-radius: 3px; border-radius: 3px;
} }
.kefu { .kefu {
color: #ffffff; color: #ffffff;
margin-right: 13px; margin-right: 13px;
cursor: pointer; cursor: pointer;
.icon-kefu3 { .icon-kefu3 {
font-size: 17px; font-size: 17px;
} }
} }
.text { .text {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
margin-right: 10px; margin-right: 10px;
margin-left: 10px; margin-left: 10px;
div { div {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
max-width: 100%; max-width: 100%;
.name { .name {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
@ -993,12 +1023,14 @@ export default {
line-height: 1; line-height: 1;
color: #FFFFFF; color: #FFFFFF;
} }
.iconfont-h5 { .iconfont-h5 {
margin-left: 5px; margin-left: 5px;
font-size: 8px; font-size: 8px;
color: #FFFFFF; color: #FFFFFF;
} }
} }
.score { .score {
display: flex; display: flex;
align-items: center; align-items: center;
@ -1007,6 +1039,7 @@ export default {
font-size: 12px; font-size: 12px;
line-height: 1; line-height: 1;
color: #FFFFFF; color: #FFFFFF;
.star { .star {
position: relative; position: relative;
width: 56px; width: 56px;
@ -1014,6 +1047,7 @@ export default {
margin-right: 5px; margin-right: 5px;
background: url(../../assets/images/star_active.png) left top/100% 100% no-repeat; background: url(../../assets/images/star_active.png) left top/100% 100% no-repeat;
overflow: hidden; overflow: hidden;
span { span {
position: absolute; position: absolute;
top: 0; top: 0;
@ -1024,6 +1058,7 @@ export default {
} }
} }
} }
.button { .button {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -1035,15 +1070,18 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 11px; font-size: 11px;
color: #FFFFFF; color: #FFFFFF;
.iconfont { .iconfont {
margin-right: 6 rpx; margin-right: 6 rpx;
font-size: 22 rpx; font-size: 22 rpx;
} }
&.gary { &.gary {
background-color: #999; background-color: #999;
} }
} }
} }
.font-bg-red { .font-bg-red {
display: inline-block; display: inline-block;
color: #fff; color: #fff;
@ -1056,18 +1094,22 @@ export default {
background-color: #E93323; background-color: #E93323;
border: 1px solid #E93323; border: 1px solid #E93323;
} }
.nav { .nav {
position: relative; position: relative;
.nav-cont { .nav-cont {
display: flex; display: flex;
align-items: center; align-items: center;
height: 42px; height: 42px;
.item { .item {
flex: 1; flex: 1;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
min-width: 0; min-width: 0;
.cont { .cont {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -1078,16 +1120,20 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 12px; font-size: 12px;
color: #FFFFFF; color: #FFFFFF;
.arrow-icon { .arrow-icon {
margin-left: 5px; margin-left: 5px;
font-size: 9px; font-size: 9px;
} }
.layout-icon { .layout-icon {
font-size: 16px; font-size: 16px;
} }
.icon-pailie { .icon-pailie {
font-size: 16px; font-size: 16px;
} }
image { image {
width: 8px; width: 8px;
height: 10px; height: 10px;
@ -1095,6 +1141,7 @@ export default {
} }
} }
} }
.active { .active {
.cont { .cont {
background-color: #FFFFFF; background-color: #FFFFFF;
@ -1104,6 +1151,7 @@ export default {
} }
} }
} }
.footer { .footer {
display: flex; display: flex;
width: 379px; width: 379px;
@ -1111,6 +1159,7 @@ export default {
height: 50px; height: 50px;
background-color: #FFFFFF; background-color: #FFFFFF;
opacity: 0.96; opacity: 0.96;
.item { .item {
flex: 1; flex: 1;
display: flex; display: flex;
@ -1120,17 +1169,21 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 10px; font-size: 10px;
color: #282828; color: #282828;
.iconfont-h5 { .iconfont-h5 {
font-size: 22px; font-size: 22px;
} }
.icon-zhuanti { .icon-zhuanti {
font-size: 18px; font-size: 18px;
} }
} }
.active { .active {
color: #E93323; color: #E93323;
} }
} }
.scrollCon { .scrollCon {
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
@ -1169,17 +1222,20 @@ export default {
min-width: 1100px; min-width: 1100px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left { .left {
min-width: 300px; min-width: 300px;
max-width: 300px; max-width: 300px;
border-radius: 4px; border-radius: 4px;
height: 100%; height: 100%;
.title-bar { .title-bar {
display: flex; display: flex;
color: #333; color: #333;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
.title-item { .title-item {
display: flex; display: flex;
align-items: center; align-items: center;
@ -1252,6 +1308,7 @@ export default {
margin-top: 5px; margin-top: 5px;
color: #999; color: #999;
align-items: center; align-items: center;
p { p {
flex: 1; flex: 1;
word-break: break-all; word-break: break-all;
@ -1314,13 +1371,16 @@ export default {
border: 2px dashed #437FFD; border: 2px dashed #437FFD;
padding: 10px 0; padding: 10px 0;
} }
&:hover, &.on { &:hover, &.on {
.delete-box { .delete-box {
/*display: block;*/ /*display: block;*/
} }
} }
&.on { &.on {
cursor: move; cursor: move;
.delete-box { .delete-box {
display: block; display: block;
border: 2px solid #437FFD; border: 2px solid #437FFD;
@ -1328,10 +1388,12 @@ export default {
} }
} }
} }
.picture { .picture {
width: 379px; width: 379px;
margin: 0 auto; margin: 0 auto;
} }
.page-title { .page-title {
position: relative; position: relative;
height: 35px; height: 35px;
@ -1343,6 +1405,7 @@ export default {
width: 379px; width: 379px;
overflow: hidden; overflow: hidden;
margin: 0 auto; margin: 0 auto;
.delete-box { .delete-box {
display: none; display: none;
position: absolute; position: absolute;
@ -1381,6 +1444,7 @@ export default {
&.on { &.on {
cursor: move; cursor: move;
.delete-box { .delete-box {
display: block; display: block;
border: 2px solid #437FFD; border: 2px solid #437FFD;
@ -1432,14 +1496,17 @@ export default {
.iconfont { .iconfont {
padding: 5px 0; padding: 5px 0;
&.on { &.on {
opacity: 0.4; opacity: 0.4;
} }
} }
} }
} }
&.on { &.on {
cursor: move; cursor: move;
.delete-box { .delete-box {
display: block; display: block;
border: 2px solid #437FFD; border: 2px solid #437FFD;
@ -1513,6 +1580,7 @@ export default {
bordr: none; bordr: none;
box-shadow: none; box-shadow: none;
} }
/deep/ .el-card__body { /deep/ .el-card__body {
padding: 0; padding: 0;
} }