Commit 3bdf7452 by 姜雷

Merge branch 'develop' into test

parents 460b6bf4 7070e748
......@@ -210,7 +210,7 @@ Page({
};
let dataList = Object.keys(res.data).map(key => ({
key,
a: '1',
a: 'payType',
name: keyMap[key],
count: res.data[key],
}));
......
......@@ -33,7 +33,7 @@ Component({
},
{
name: '退出登录',
icon: '../../../images/btn_Sign out@2x.png',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index',
reLaunch: true,
},
......@@ -43,4 +43,4 @@ Component({
account: 0,
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVwb3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBR0EsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFDN0IsU0FBUyxDQUFDO0lBQ1IsU0FBUyxFQUFFO1FBQ1QsUUFBUTtZQUNOLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsQ0FBQztZQUNyQyxJQUFJLENBQUMsT0FBUSxDQUFDO2dCQUNaLFFBQVEsRUFBRSxHQUFHLENBQUMsVUFBVSxDQUFDLFFBQVE7YUFDbEMsQ0FBQyxDQUFDO1FBQ0wsQ0FBQztLQUNGO0lBSUQsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUTtRQUNqQyxRQUFRLEVBQUU7WUFDUjtnQkFDRSxJQUFJLEVBQUUsUUFBUTtnQkFDZCxJQUFJLEVBQUUsa0NBQWtDO2dCQUN4QyxHQUFHLEVBQUUsb0NBQW9DO2dCQUN6QyxRQUFRLEVBQUUsS0FBSzthQUNoQjtZQUNEO2dCQUNFLElBQUksRUFBRSxRQUFRO2dCQUNkLElBQUksRUFBRSxtQ0FBbUM7Z0JBQ3pD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Li4vaW1hZ2VzL2J0bl9TaWduX291dEAyeC5wbmcnLFxuICAgICAgICB1cmw6ICcvcGFnZXMvaW5kZXgvaW5kZXgnLFxuICAgICAgICByZUxhdW5jaDogdHJ1ZSxcbiAgICAgIH0sXG4gICAgICB7fSxcbiAgICAgIHt9LFxuICAgIF0sXG4gICAgYWNjb3VudDogMCxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
......@@ -49,7 +49,7 @@ Component({
// },
{
name: '退出登录',
icon: '../../../images/btn_Sign out@2x.png',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index',
reLaunch: true,
},
......
import { baseFetch, statisticsFetch } from '../../api/fetch';
import { formatTime } from '../../utils/util';
import { IMyApp } from '../../app';
const app = getApp<IMyApp>();
// miniprogram/pages/userGrowth/userGrowth.js
Page({
......@@ -18,11 +20,31 @@ Page({
growthList: [],
customerCount: 0,
activeCount: 0,
isAdmin: 0,
},
initData() {
let time = formatTime(new Date());
console.log(time);
this.setData!({ month: time.slice(0, 7) }, () => {
console.log(app.globalData.userRoles);
this.setData!({
userInfo: app.globalData.userInfo,
});
let isAdmin = 0;
let registerRoute = app.globalData.userRoles.find(
item => item.menuCode === '0083',
);
if (
registerRoute &&
registerRoute.listMenuButtonVo &&
registerRoute.listMenuButtonVo.length
) {
if (
registerRoute.listMenuButtonVo.find(item => item.buttonCode === '0001')
)
isAdmin = 1;
}
this.setData!({ month: time.slice(0, 7), isAdmin }, () => {
this.fetchList();
});
},
......@@ -59,7 +81,7 @@ Page({
let reqBody = {
year,
month,
isAdmin: 1,
isAdmin: this.data.isAdmin,
...entity,
};
statisticsFetch({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment