Commit 4f862683 authored by youjie's avatar youjie

修复bug

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