|
|
@ -99,6 +99,11 @@ Component({
|
|
|
|
lifetimes: {
|
|
|
|
lifetimes: {
|
|
|
|
attached() {
|
|
|
|
attached() {
|
|
|
|
let x=wx.getStorageSync('themeData')
|
|
|
|
let x=wx.getStorageSync('themeData')
|
|
|
|
|
|
|
|
let arr = [];
|
|
|
|
|
|
|
|
x.forEach(ele => {
|
|
|
|
|
|
|
|
arr.push(JSON.stringify(ele))
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.setData({result: arr})
|
|
|
|
if(wx.getStorageSync('themeData')){
|
|
|
|
if(wx.getStorageSync('themeData')){
|
|
|
|
let result = x.map(ele=>{
|
|
|
|
let result = x.map(ele=>{
|
|
|
|
return JSON.stringify(ele)
|
|
|
|
return JSON.stringify(ele)
|
|
|
|