You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

212 lines
4.8 KiB

3 years ago
// pages/index/Rankdetail/Rankdetail.js
3 years ago
Page({
/**
* 页面的初始数据
*/
data: {
3 years ago
3 years ago
sortOpt: [
{
text: '列表展示',
value1: 0
},
{
text: '图表展示',
value1: 1
}
],
3 years ago
value:0,
// 时间
3 years ago
priceOpt: ['2022年5月','2022年4月','2022年3月',
3 years ago
3 years ago
'2022年2月','2022年1月','2021年12月',
'2021年11月','2021年10月','2021年9月',
'2021年8月','2021年7月','2021年6月',
'2021年5月','近半年','近一年',
],
prcieInterval: [0, 10, 20, 30, 40, 50, '不限'],
3 years ago
value1: 0,
// 品牌
value2: '全部品牌',
3 years ago
typeOpt: [
3 years ago
3 years ago
],
3 years ago
// 级别
3 years ago
level:[
{
text:'全部级别',
value4:'0'
},
{
text:'微型车',
value4:'1'
},
{
text:'小型车',
value4:'2'
},
{
text:'紧凑型车',
value4:'3'
},
{
text:'中型车',
value4:'4'
},
{
text:'中大型车',
value4:'5'
},
{
text:'MPV',
value4:'6'
},
{
text:'SUV',
value4:'7'
}
],
3 years ago
// 价格
3 years ago
Price:[
{
text:'全部价格',
value5:'0'
},
{
text:'10万以内',
value5:'1'
},
{
text:'10万-15万',
value5:'2'
},
{
text:'15万-25万',
value5:'3'
},
{
text:'25万-35万',
value5:'4'
},
{
text:'35万-50万',
value5:'5'
},
{
text:'50万以上',
value5:'6'
}
],
3 years ago
// 能源
3 years ago
energy:[
{
text:'全部能源',
value6:'0'
},
{
text:'新能源',
value6:'1'
},
{
text:'汽油',
value6:'2'
},
{
text:'柴油',
value6:'3'
},
{
text:'油电混合',
value6:'4'
},
{
text:'轻混系统',
value6:'5'
},
],
3 years ago
// 数据列表
3 years ago
ranking: [
{
volume: '12345',
media: '媒体',
num:'3.23-6.98万',
energy:'新能源',
stsId:"2",
},
{
volume: '12345',
media: '媒体',
num:'3.23-6.98万',
energy:'汽油',
stsId:"1",
},
{
volume: '12345',
media: '媒体',
num:'3.23-6.98万',
energy:'柴油',
},
{
volume: '12345',
media: '媒体',
num:'3.23-6.98万',
energy:'油电混合',
},
{
volume: '12345',
media: '媒体',
num:'3.23-6.98万',
energy:'轻混系统',
},
{
volume: '12345',
media: '媒体',
num:'3.23-6.98万',
energy:'新能源',
},
{
volume: '12345',
media: '媒体',
num:'3.23-6.98万',
energy:'新能源',
},
{
volume: '12345',
media: '媒体',
num:'3.23-6.98万',
energy:'新能源',
},
],
},
// sliderChange(event) {
// this.setData({
// sliderValue: event.detail
// });
// },
dropdownSel(e){
this.setData({
value1:e.detail
})
},
3 years ago
priceSel(e){
3 years ago
this.setData({
priceSelected: e.currentTarget.dataset.index
})
3 years ago
},
3 years ago
onclick() {
this.setData({ show: true });
},
onClose() {
this.setData({ show: false });
3 years ago
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
3 years ago
console.log('111',this.data.sortOpt[0].value1)
3 years ago
},
3 years ago
3 years ago
})