Commit 4f862683 authored by youjie's avatar youjie

修复bug

parent fbddb2f3
......@@ -159,7 +159,7 @@
content: " ";
position: absolute;
left: -6rpx;
bottom: -1rpx;
bottom: 1rpx;
z-index: 0;
}
.big-title text {
......
......@@ -96,7 +96,7 @@
content: " ";
position: absolute;
left: -6rpx;
bottom: -1rpx;
bottom: 1rpx;
z-index: 0;
}
.big-title text {
......
......@@ -1106,7 +1106,7 @@
background: url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hoteldetailtag.png) no-repeat;
background-size: 100% 42rpx;
font-weight: 500;
font-size: 28rpx;
font-size: 26rpx;
color: #82610F;
text-align: center;
line-height: 42rpx;
......
......@@ -469,7 +469,7 @@
IsAdult: 0,
LastName: "",
FirstName: "",
Age: item.ChildAgeTexts[i]
Age: item.ChildAgeTexts[i].number
};
guestInfoList.push(obj);
}
......
......@@ -55,16 +55,17 @@
<view>{{ StartTimes }}-{{ EndTimes }}</view>
</view>
</view>
<!---->
<view class="userHeadCostRing">
<mrsongCharts v-if="chartsData.series[0].data.length>0"
type='ring'
align='center'
:config="config"
:options="options"
:charts-data="chartsData"
height="600rpx" />
<u-empty v-else text="暂无使用优惠,快去使用吧!" mode="coupon" padding-top="20" color="#000"></u-empty>
<view v-show="chartsData&&chartsData.series&&chartsData.series[0].data.length>0">
<mrsongCharts
type='ring'
align='center'
:config="config"
:options="options"
:charts-data="chartsData"
height="600rpx" />
</view>
<u-empty v-show="chartsData&&chartsData.series&&chartsData.series[0].data.length==0" text="暂无使用优惠,快去使用吧!" mode="coupon" padding-top="20" color="#000"></u-empty>
</view>
</view>
</view>
......@@ -258,30 +259,7 @@
},
chartsData:{
series: [{
data: [
// {
// name: '一班',
// value: 82,
// },
// {
// name: '二班',
// value: 63
// },
// {
// name: '三班',
// value: 50
// },
// {
// name: '四班',
// value: 40,
// "labelText":"四班:40人"
// },
// {
// name: '五班',
// value: 30,
// }
]
data: []
}]
},
};
......@@ -431,10 +409,12 @@
list.push(obj)
}
});
this.chartsData.series[0].data = list
if(this.chartsData.series[0].data.length==1){
if(list.length>0) this.chartsData.series[0].data = list
else this.chartsData.series[0].data = []
if(this.chartsData.series[0].data.length>0&&this.chartsData.series[0].data.length==1){
this.options.extra.ring.border = false
}
this.$forceUpdate()
},(err)=>{
}
......
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