|
@@ -30,12 +30,6 @@ Page({
|
|
|
*/
|
|
|
onLoad: async function (options) {
|
|
|
console.log(options)
|
|
|
- wx.setStorageSync('configinfo',null);
|
|
|
- let info = await getColor();
|
|
|
- this.setData({
|
|
|
- config:info.config,
|
|
|
- valueImgList: info.valueImgList,
|
|
|
- })
|
|
|
let userMobile = await Activity.getMobileCache();
|
|
|
if (userMobile.length !== 0) {
|
|
|
this.setData({
|
|
@@ -70,8 +64,13 @@ Page({
|
|
|
/**
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
- onShow: function () {
|
|
|
-
|
|
|
+ onShow: async function () {
|
|
|
+ wx.setStorageSync('configinfo',null);
|
|
|
+ let info = await getColor();
|
|
|
+ this.setData({
|
|
|
+ config:info.config,
|
|
|
+ valueImgList: info.valueImgList,
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
/**
|