wylyl22 3 years ago
parent a038c448b9
commit a35bb9f157

@ -62,7 +62,19 @@ Component({
]
},
methods: {
bindtaps(){
wx.request({
url: 'http://cloud.sws010.com/api/v7.ashx',
method:"POST",
success:(res)=>{
console.log(res.Data)
}
})
},
priceSel(e){
this.setData({
intervalSel: e.currentTarget.dataset.index

@ -2,7 +2,7 @@
<!-- 时间组件 -->
<time-component></time-component>
<view class="list_event" style="{{bgImage}}">
<view class="event_title">热点事件</view>
<view class="event_title" bindtap="bindtaps">热点事件</view>
<view class="event_content" wx:for="{{questes}}" wx:if="{{index < 5}}" wx:key="index" data-quest='{{item}}'>
<view class="event_text">
<view class="text_title">{{item.tip}}

@ -180,76 +180,12 @@ Page({
},
],
showChart: true,
positiveOption: {
grid:{
},
yAxis: [
{
type: 'value',
axisTick:{
show:false //去除刻度线
},
axisLine:{
show:false //去除轴线
},
axisLabel: {
color: '#999999',//y轴文本颜色
textStyle: {
fontSize : 9
}
},
splitLine: { //分割线
// lineStyle:{
// // color:"#2d3436"
// }
show: true,
lineStyle: {
type: 'dashed',
color: '#E8E8E8',
}
}
}
],
xAxis: [
{
type: 'category',
data: ['12月', '1月', '2月', '3月', '4月', '5月', '6月'],
axisTick:{
show:false //去除刻度线
},
axisLine:{
show:false, //去除轴线
},
axisLabel: {
color: '#999999',//x轴文本颜色
textStyle: {
fontSize : 9
}
}
}
],
series: {
type: 'line',
symbol:'none', //去圆点
data: [100, 200, 300, 500, 700, 500, 300],
itemStyle: {
normal:{
color: '#0084FF',
lineStyle: {
color: '#0084FF'
}
}
}}
},
option :{
grid:{
left:45,
left:30,
top:25,
height:168,
width:343
height:146,
width:323
},
yAxis: [
{

@ -189,7 +189,7 @@
<view class="popContent-text">销量趋势 </view>
<view class="popContent-title">宏光MINIEV销量趋势</view>
<view class="popContent-echars">
<c-echars showChart="{{showChart}}" canvasId="modelbar-canvas" chartId="modelbar" chartOption="{{option}}" height="100%">
<c-echars showChart="{{showChart}}" canvasId="modelbar-canvas" chartId="modelbar" chartOption="{{option}}" height="100%" >
</c-echars>
</view>
</view>

Loading…
Cancel
Save