Esdese 3 years ago
parent ea62dc8987
commit 6b6c7920a2

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

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

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

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

@ -47,7 +47,9 @@ Component({
return
}
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({
url: `/contrastPackages/carModelsRatio/index`,
})

Loading…
Cancel
Save