Commit ab29a157 authored by 黄奎's avatar 黄奎

页面修改

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