|
@@ -1,7 +1,7 @@
|
|
|
// pages/welfareMall/personal/personal.js
|
|
|
import WelfareMall from '../../../api/welfareMall'
|
|
|
import activity from '../../../api/activity'
|
|
|
-import {getMobileCache, getPhoneNumberNew as getPhoneNumberSync} from '../../../utils/user'
|
|
|
+import {getMobileCache, getPhoneNumberNew as getPhoneNumberSync, getColor} from '../../../utils/user'
|
|
|
const app = getApp();
|
|
|
Page({
|
|
|
|
|
@@ -19,6 +19,7 @@ Page({
|
|
|
hasUserInfo:false,
|
|
|
personHeadList: [],
|
|
|
staffImgList: [],
|
|
|
+ config: {},
|
|
|
|
|
|
},
|
|
|
onChooseAvatar(e) {
|
|
@@ -103,11 +104,12 @@ Page({
|
|
|
async getIndexList(){
|
|
|
let res = await WelfareMall.getPersonalData();
|
|
|
await this.getPath(res.data.navigationList);
|
|
|
- let info = await WelfareMall.getIndexList();
|
|
|
+ let info = await getColor();
|
|
|
this.setData({
|
|
|
navigationList:res.data.navigationList,
|
|
|
- personHeadList:info.data.personHeadList,
|
|
|
- staffImgList:info.data.staffImgList,
|
|
|
+ personHeadList:info.personHeadList,
|
|
|
+ staffImgList:info.staffImgList,
|
|
|
+ config:info.config
|
|
|
})
|
|
|
},
|
|
|
|