Commit 6ee393de authored by youjie's avatar youjie

优化

parent 06caa4c5
......@@ -72,7 +72,13 @@
class="EvaluationDetailFixed"
:style="[titleStyle]">
<view class="EvaluationDetail-types-box">
<view style="padding: 0 80rpx;" class="row justify-between">
<view style="padding: 0 80rpx;" class="row"
:class="{
'justify-start': titles.length==1,
'justify-evenly': titles.length==2,
'justify-around': titles.length==3,
'justify-between': titles.length==4,
}">
<view class="EvaluationDetail-types-text row" v-for="(item,index) in titles" :key="index"
:class="[fatherType==item.type?'active':'']"
@click="fatherClick(item)">
......@@ -100,7 +106,13 @@
</view>
<view>
<view class="EvaluationDetail-types-box">
<view style="padding: 0 40rpx;" class="row justify-between">
<view style="padding: 0 40rpx;" class="row"
:class="{
'justify-start': titles.length==1,
'justify-evenly': titles.length==2,
'justify-around': titles.length==3,
'justify-between': titles.length==4,
}">
<view class="EvaluationDetail-types-text row" v-for="(item,index) in titles" :key="index"
:class="[fatherType==item.type?'active':'']"
@click="fatherClick(item)">
......
......@@ -1893,27 +1893,27 @@
}
}
for(let x = 0; x < this.commentTypes.length; x++){
let obj = this.commentTypes[x]
let list = this.Infor.filter(item=> item.commentType == obj.commentType )
if(list.length==0){
let types = JSON.parse(JSON.stringify(this.types))
if(obj.commentType==1){
types.commentType = 1
types.commentName = '酒店'
}else if(obj.commentType==2){
types.commentType = 2
types.commentName = '餐食'
}else if(obj.commentType==3){
types.commentType = 3
types.commentName = '景点'
}else if(obj.commentType==4){
types.commentType = 4
types.commentName = '用车'
}
this.Infor.push(types)
}
}
// for(let x = 0; x < this.commentTypes.length; x++){
// let obj = this.commentTypes[x]
// let list = this.Infor.filter(item=> item.commentType == obj.commentType )
// if(list.length==0){
// let types = JSON.parse(JSON.stringify(this.types))
// if(obj.commentType==1){
// types.commentType = 1
// types.commentName = '酒店'
// }else if(obj.commentType==2){
// types.commentType = 2
// types.commentName = '餐食'
// }else if(obj.commentType==3){
// types.commentType = 3
// types.commentName = '景点'
// }else if(obj.commentType==4){
// types.commentType = 4
// types.commentName = '用车'
// }
// this.Infor.push(types)
// }
// }
ScoreTotal = ScoreTotal/this.commentList.length
this.ScoreTotal = ScoreTotal.toFixed(1)
......@@ -3233,7 +3233,7 @@
font-weight: 400;
font-size: 28rpx;
color: #080A0A;
line-height: 42rpx;
line-height: 49rpx;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
......
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