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.

179 lines
3.3 KiB

3 years ago
// pages/index/Rankdetail/Rankdetail.js
3 years ago
var newtime=new Date();
3 years ago
Page({
/**
* 页面的初始数据
*/
data: {
3 years ago
end:newtime.toLocaleDateString(),
3 years ago
show:false,
date:'2016-09-01',
date2:'2016-09-02',
currentDate: new Date().getTime(),
minDate: new Date().getTime(),
option1: [
{ text: '全部商品', value: 0 },
{ text: '新款商品', value: 1 },
{ text: '活动商品', value: 2 },
],
option2: [
{ text: '默认排序', value: 'a' },
{ text: '好评排序', value: 'b' },
{ text: '销量排序', value: 'c' },
],
value1: 0,
value2: 'a',
3 years ago
ranking: [
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
{
time:'2022-05',
vehicle:9391,
share: 10.02,
},
],
},
// sliderChange(event) {
// this.setData({
// sliderValue: event.detail
// });
// },
dropdownSel(e){
this.setData({
value1:e.detail
})
},
priceSel(e){
this.setData({
priceSelected: e.currentTarget.dataset.index
})
},
3 years ago
//详情跳转
detail(){
wx.navigateTo({
url: '/pages/index/detailedvolume/detailedvolume',
})
},
3 years ago
showPopup() {
this.setData({ show: true });
},
onClose() {
this.setData({ show: false });
},
onInput(event) {
this.setData({
currentDate: event.detail,
});
},
// 点击日期组件确定事件
bindDateChange: function (e) {
this.setData({
date: e.detail.value
})
},
bindDateChange2: function (e) {
this.setData({
date2: e.detail.value
})
},
3 years ago
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})