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