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.
39 lines
765 B
39 lines
765 B
3 years ago
|
// pages/varComm/pages/brandRatio/index.js
|
||
|
Page({
|
||
|
|
||
|
/**
|
||
|
* 页面的初始数据
|
||
|
*/
|
||
|
data: {
|
||
|
boxArr:new Array(6),
|
||
|
tabActive:0,
|
||
|
sonCom:true
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 生命周期函数--监听页面加载
|
||
|
*/
|
||
|
onLoad(options) {
|
||
|
|
||
|
this.setData({
|
||
|
boxArr:wx.getStorageSync('themeData')
|
||
|
})
|
||
|
wx.setStorageSync('brandRatioTime', {sTimeType:'34'})
|
||
|
},
|
||
|
changeTab(val) {
|
||
|
let n = val.detail.index;
|
||
|
this.setData({
|
||
|
tabActive: n
|
||
|
})
|
||
|
},
|
||
|
changeTime(event){
|
||
|
let {detail} = event
|
||
|
wx.setStorageSync('brandRatioTime', detail)
|
||
|
this.setData({
|
||
|
sonCom:false
|
||
|
})
|
||
|
this.setData({
|
||
|
sonCom:true
|
||
|
})
|
||
|
}
|
||
|
})
|