Commit ab29a157 authored by 黄奎's avatar 黄奎

页面修改

parent 8dfdd6f9
......@@ -178,7 +178,7 @@
.diy-goods .diy-component-preview .goods-name-StaticName {
margin-top: 40px;
height:32px;
height: 32px;
}
.diy-goods .diy-component-preview .goods-price {
......@@ -319,18 +319,22 @@
.goodsDialog .el-dialog__body {
padding: 10px 20px;
}
.goods-priceScore{
.goods-priceScore {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 48px;
}
.goods-price .el-rate__icon{
font-size:30px;
.goods-price .el-rate__icon {
font-size: 30px;
}
.diy-goods .gd_Price{
font-size:12px!important;
.diy-goods .gd_Price {
font-size: 12px !important;
}
</style>
<template>
<div :class="{'active':goodData.isCked}">
......@@ -378,8 +382,8 @@
<div class="goods-price">
<template v-if="data.showGoodsPrice&&data.listStyle!=4">{{goods.price}}</template>
<template v-if="data.showScore&&data.listStyle==4">
<el-rate v-model="ScoreStar" disabled show-score :colors="ScoreArr" :text-color="ScoreArr[0]"
score-template="{value}分">
<el-rate v-model="ScoreStar" disabled show-score :colors="ScoreArr"
:text-color="ScoreArr[0]" score-template="{value}分">
</el-rate>
</template>
</div>
......@@ -599,7 +603,7 @@
</span>
</el-dialog>
<!-- 选择商品 :visible.sync="isShowGoods" -->
<el-dialog title="选择商品" custom-class="goodsDialog">
<el-dialog title="选择商品" custom-class="goodsDialog">
<choiceGood ref="choiceGood"></choiceGood>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="isShowGoods=false">取 消</el-button>
......@@ -642,8 +646,8 @@
choicImg: false,
isFenlei: false,
isShowGoods: false,
ScoreStar:5, //分数
ScoreArr:[], //颜色数组
ScoreStar: 5, //分数
ScoreArr: [], //颜色数组
//添加的下标
comIndex: -1,
goodsTags: [{
......@@ -803,26 +807,27 @@
},
//选择地接服务
getChoicedDijie(){
getChoicedDijie() {
var ckedArr = this.$refs.choiceDmc.getChoicedDijie();
console.log(ckedArr,'ckedArr');
var myArray = [];
if (ckedArr && ckedArr.length > 0) {
ckedArr.forEach(x => {
if(x.goodType==1){
if (x.goodType == 1) {
myArray.push({
id: x.HotelId,
name: x.HotelName,
picUrl: x.CoverImg,
price: x.SalesPrice
price: x.SalesPrice,
goodType: x.goodType
});
}
if(x.goodType==2||x.goodType==3){
if (x.goodType == 2 || x.goodType == 3) {
myArray.push({
id: x.ID,
name: x.Name,
picUrl: x.CoverImg,
price: x.SalesPrice
price: x.SalesPrice,
goodType: x.goodType
});
}
});
......@@ -834,7 +839,7 @@
}
this.isShowGoods = false;
this.$refs.choiceDmc.toggleSelection();
},
},
//取消选择商品
quxiaoGoods() {
......@@ -933,7 +938,7 @@
if (this.data.textStyle === 2 || this.data.listStyle === 0) {
return false;
}
if(this.data.listStyle==4){
if (this.data.listStyle == 4) {
return false;
}
return true;
......@@ -969,7 +974,7 @@
},
},
mounted() {
if(this.data.scoreColor){
if (this.data.scoreColor) {
this.ScoreArr.push(this.data.scoreColor);
this.ScoreArr.push(this.data.scoreColor);
this.ScoreArr.push(this.data.scoreColor);
......@@ -977,17 +982,17 @@
},
watch: {
"data.scoreColor"(val) {
this.ScoreArr=[];
this.ScoreArr = [];
this.ScoreArr.push(val);
this.ScoreArr.push(val);
this.ScoreArr.push(val);
this.$forceUpdate();
},
"data.listStyle"(val){
if(val==4){
this.data.showBuyBtn=false;
}else{
this.data.showBuyBtn=true;
"data.listStyle"(val) {
if (val == 4) {
this.data.showBuyBtn = false;
} else {
this.data.showBuyBtn = true;
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment