Esdese 3 years ago
parent ea62dc8987
commit 6b6c7920a2

@ -24,7 +24,7 @@ Component({
}, },
lifetimes: { lifetimes: {
attached() { attached() {
let brandRatioTime = wx.getStorageSync('brandRatioTime') let brandRatioTime = wx.getStorageSync('brandRatioTime') || 34
let sBrand = wx.getStorageSync('sBrand') let sBrand = wx.getStorageSync('sBrand')
this.setData({ this.setData({
boxArr: wx.getStorageSync('modelsData') boxArr: wx.getStorageSync('modelsData')

@ -30,7 +30,7 @@ Component({
}, },
lifetimes: { lifetimes: {
attached() { attached() {
let brandRatioTime = wx.getStorageSync('brandRatioTime') let brandRatioTime = wx.getStorageSync('brandRatioTime') || 34
let sBrand = wx.getStorageSync('sBrand') let sBrand = wx.getStorageSync('sBrand')
this.setData({ this.setData({
boxArr: wx.getStorageSync('modelsData') boxArr: wx.getStorageSync('modelsData')

@ -27,7 +27,7 @@ Component({
}, },
lifetimes: { lifetimes: {
attached() { attached() {
let brandRatioTime = wx.getStorageSync('brandRatioTime') let brandRatioTime = wx.getStorageSync('brandRatioTime') || 34
let sBrand = wx.getStorageSync('sBrand') let sBrand = wx.getStorageSync('sBrand')
this.setData({ this.setData({
boxArr: wx.getStorageSync('modelsData') boxArr: wx.getStorageSync('modelsData')

@ -27,7 +27,7 @@ Component({
}, },
lifetimes: { lifetimes: {
attached() { attached() {
let brandRatioTime = wx.getStorageSync('brandRatioTime') let brandRatioTime = wx.getStorageSync('brandRatioTime') || 34
let sBrand = wx.getStorageSync('sBrand') let sBrand = wx.getStorageSync('sBrand')
this.setData({ this.setData({
boxArr: wx.getStorageSync('modelsData') boxArr: wx.getStorageSync('modelsData')

@ -47,7 +47,9 @@ Component({
return return
} }
wx.setStorageSync('modelsData', this.data.boxArr) wx.setStorageSync('modelsData', this.data.boxArr)
wx.setStorageSync('sBrand', this.data.sBrand) if(wx.getStorageSync('sBrand').length<1){
wx.setStorageSync('sBrand', this.data.sBrand)
}
wx.navigateTo({ wx.navigateTo({
url: `/contrastPackages/carModelsRatio/index`, url: `/contrastPackages/carModelsRatio/index`,
}) })

Loading…
Cancel
Save