Commit 836c791f by 姜雷

添加权限控制

parent f6780eff
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var app = getApp();
var tabList = [
{
pagePath: '/pages/home/home',
iconPath: '/images/tab_shuju_nor@2x.png',
selectedIconPath: '/images/tab_shuju_pre@2x.png',
text: '数据首页',
code: '9001',
},
{
pagePath: '/pages/report/report',
iconPath: '/images/tab_baobiao_nor@2x.png',
selectedIconPath: '/images/tab_baobiao_pre@2x.png',
text: '运营管理',
code: '9002',
},
];
Page({ Page({
onLoad: function () {
var userRoles = app.globalData.userRoles;
var list = userRoles
.map(function (item) { return tabList.find(function (menu) { return menu.code === item.menuCode; }); })
.filter(function (menu) { return (menu ? true : false); });
this.setData({
selected: list.length ? list[0].code : '',
list: list,
});
},
onShow: function () { onShow: function () {
if (wx.hideHomeButton) { if (wx.hideHomeButton) {
wx.hideHomeButton(); wx.hideHomeButton();
} }
}, },
data: { data: {
selected: 0, selected: '',
list: [ list: [],
{
pagePath: '/pages/home/home',
iconPath: '/images/tab_shuju_nor@2x.png',
selectedIconPath: '/images/tab_shuju_pre@2x.png',
text: '数据首页',
},
{
pagePath: '/pages/report/report',
iconPath: '/images/tab_baobiao_nor@2x.png',
selectedIconPath: '/images/tab_baobiao_pre@2x.png',
text: '运营管理',
},
],
}, },
clickHandle: function (e) { clickHandle: function (e) {
console.log('in click', e); console.log('in click', e);
...@@ -30,4 +45,4 @@ Page({ ...@@ -30,4 +45,4 @@ Page({
}); });
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZUFuZFJlcG9ydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWVBbmRSZXBvcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQUksQ0FBQztJQUNILE1BQU07UUFDSixFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztZQ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SWNvblBhdGg6ICcvaW1hZ2VzL3RhYl9iYW9iaWFvX3ByZUAyeC5wbmcnLFxuICAgIHRleHQ6ICfov5DokKXnrqHnkIYnLFxuICAgIGNvZGU6ICc5MDAyJyxcbiAgfSxcbl07XG5cblBhZ2Uoe1xuICBvbkxvYWQoKSB7XG4gICAgbGV0IHVzZXJSb2xlcyA9IGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcztcbiAgICBsZXQgbGlzdCA9IHVzZXJSb2xlc1xuICAgICAgLm1hcChpdGVtID0+IHRhYkxpc3QuZmluZChtZW51ID0+IG1lbnUuY29kZSA9PT0gaXRlbS5tZW51Q29kZSkpXG4gICAgICAuZmlsdGVyKG1lbnUgPT4gKG1lbnUgPyB0cnVlIDogZmFsc2UpKTtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIHNlbGVjdGVkOiBsaXN0Lmxlbmd0aCA/IGxpc3RbMF0uY29kZSA6ICcnLFxuICAgICAgbGlzdCxcbiAgICB9KTtcbiAgfSxcbiAgb25TaG93KCkge1xuICAgIGlmICh3eC5oaWRlSG9tZUJ1dHRvbikge1xuICAgICAgd3guaGlkZUhvbWVCdXR0b24oKTtcbiAgICB9XG4gIH0sXG4gIGRhdGE6IHtcbiAgICBzZWxlY3RlZDogJycsXG4gICAgbGlzdDogW10sXG4gIH0sXG4gIGNsaWNrSGFuZGxlKGUpIHtcbiAgICBjb25zb2xlLmxvZygnaW4gY2xpY2snLCBlKTtcbiAgICBsZXQgeyBwYXRoLCBpbmRleCB9ID0gZS5kZXRhaWw7XG4gICAgLy8gY29uc29sZS5sb2cocGF0aCwgaW5kZXgpO1xuICAgIC8vIHd4LnN3aXRjaFRhYih7IHVybDogcGF0aCB9KTtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIHNlbGVjdGVkOiBpbmRleCxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file \ No newline at end of file
import { IMyApp } from '../../app';
type Menu = {
pagePath: string;
iconPath: string;
selectedIconPath: string;
text: string;
code: string;
};
const app = getApp<IMyApp>();
const tabList: Menu[] = [
{
pagePath: '/pages/home/home',
iconPath: '/images/tab_shuju_nor@2x.png',
selectedIconPath: '/images/tab_shuju_pre@2x.png',
text: '数据首页',
code: '9001',
},
{
pagePath: '/pages/report/report',
iconPath: '/images/tab_baobiao_nor@2x.png',
selectedIconPath: '/images/tab_baobiao_pre@2x.png',
text: '运营管理',
code: '9002',
},
];
Page({ Page({
onLoad() {
let userRoles = app.globalData.userRoles;
let list = userRoles
.map(item => tabList.find(menu => menu.code === item.menuCode))
.filter(menu => (menu ? true : false));
this.setData!({
selected: list.length ? list[0].code : '',
list,
});
},
onShow() { onShow() {
if (wx.hideHomeButton) { if (wx.hideHomeButton) {
wx.hideHomeButton(); wx.hideHomeButton();
} }
}, },
data: { data: {
selected: 0, selected: '',
list: [ list: [],
{
pagePath: '/pages/home/home',
iconPath: '/images/tab_shuju_nor@2x.png',
selectedIconPath: '/images/tab_shuju_pre@2x.png',
text: '数据首页',
},
{
pagePath: '/pages/report/report',
iconPath: '/images/tab_baobiao_nor@2x.png',
selectedIconPath: '/images/tab_baobiao_pre@2x.png',
text: '运营管理',
},
],
}, },
clickHandle(e) { clickHandle(e) {
console.log('in click', e); console.log('in click', e);
let { path, index } = e.detail; let { path, index } = e.detail;
// console.log(path, index); // console.log(path, index);
// wx.switchTab({ url: path }); // wx.switchTab({ url: path });
this.setData({ this.setData!({
selected: index, selected: index,
}); });
}, },
......
<!-- miniprogram/pages/homeAndReport/homeAndReport.wxml --> <!-- miniprogram/pages/homeAndReport/homeAndReport.wxml -->
<view class="container"> <view class="container">
<home wx:if="{{selected === 0}}" /> <home wx:if="{{selected === '9001'}}" />
<report wx:elif="{{selected === 1}}" class="report-wrap" /> <report wx:elif="{{selected === '9002'}}" class="report-wrap" />
<tab-bar checked="{{selected}}" listData="{{list}}" bindcustomevent="clickHandle"></tab-bar> <tab-bar checked="{{selected}}" listData="{{list}}" bindcustomevent="clickHandle"></tab-bar>
</view> </view>
\ No newline at end of file
...@@ -102,7 +102,7 @@ Page({ ...@@ -102,7 +102,7 @@ Page({
var _a = this.data, account_1 = _a.account, pwd_1 = _a.pwd; var _a = this.data, account_1 = _a.account, pwd_1 = _a.pwd;
console.log(account_1, pwd_1); console.log(account_1, pwd_1);
wx.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: ['WU2yMHKM_yNPLGHRsstggsDYnZhKoHIg4heM2fZkD5I'], tmplIds: ['WU2yMHKM_yNPLGHRsstggnnGIgcRgDEIaJQiWWNJ9ss'],
success: function (res) { success: function (res) {
console.log('in success', res); console.log('in success', res);
}, },
...@@ -239,4 +239,4 @@ Page({ ...@@ -239,4 +239,4 @@ Page({
var _a; var _a;
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLHlDQUE4QztBQUM5QyxJQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUM7QUFHbkMsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFFN0IsSUFBSSxDQUFDO0lBQ0gsTUFBTSxZQUFDLE1BQU07UUFDWCxPQUFPLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ3BCLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztZQUN6QixJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7UUFDckIsQ0FBQztRQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztRQUUzQixDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixJQUFJL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A9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigoeyBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+XG4gICAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICB0b2tlbjogYXBwLmdsb2JhbERhdGEudG9rZW4sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcztcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbG9naW5IYW5kbGUoKSB7XG4gICAgY29uc29sZS5sb2coYXBwLmdsb2JhbERhdGEpO1xuICAgIGlmICh0aGlzLnZhbGlkYXRlTG9naW5EYXRhKCkpIHtcbiAgICAgIGNvbnN0IHsgYWNjb3VudCwgcHdkIH0gPSB0aGlzLmRhdGE7XG4gICAgICBjb25zb2xlLmxvZyhhY2NvdW50LCBwd2QpO1xuICAgICAgd3gucmVxdWVzdFN1YnNjcmliZU1lc3NhZ2Uoe1xuICAgICAgICB0bXBsSWRzOiBbJ1dVMnlNSEtNX3lOUExHSFJzc3RnZ3NEWW5aaEtvSElnNGhlTTJmWmtENUknXSxcbiAgICAgICAgc3VjY2VzcyhyZXMpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnaW4gc3VjY2VzcycsIHJlcyk7XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgY29uc29sZS5sb2coJ2luIGZhaWwnLCByZXMpO1xuICAgICAgICB9LFxuICAgICAgICBjb21wbGV0ZShyZXMpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnaW4gY29tcGxldGUnLCByZXMpO1xuICAgICAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgICAgIGlmIChyZXMuY29kZSkge1xuICAgICAgICAgICAgICAgIGNvbnN0IGNvZGUgPSByZXMuY29kZTtcbiAgICAgICAgICAgICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcbiAgICAgICAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICAgICAgICB1cmw6ICcvbG9naW4vdmVyaWZ5Q29kZScsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgIC50aGVuKChyZXM6IHd4LlJlcXVlc3RTdWNjZXNzQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgICAgICB2ZXJpZnlDb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgIGNvb2tpZTogcmVzLmhlYWRlclsnU2V0LUNvb2tpZSddLFxuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgIC50aGVuKFxuICAgICAgICAgICAgICAgICAgICAoe1xuICAgICAgICAgICAgICAgICAgICAgIHZlcmlmeUNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgY29va2llLFxuICAgICAgICAgICAgICAgICAgICB9OiB7XG4gICAgICAgICAgICAgICAgICAgICAgdmVyaWZ5Q29kZTogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgICAgIGNvb2tpZTogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgICB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgbGV0IG1peHB3ZCA9IG1kNShwd2QpO1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcjoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGFjY291bnQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHB3ZDogbWl4cHdkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB2YXJpZnlDb2RlOiB2ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICAgICAgICB0b2tlbixcbiAgICAgICAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudG9rZW4gPSB0b2tlbjtcbiAgICAgICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzO1xuICAgICAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgICAgIHd4LnNldFN0b3JhZ2VTeW5jKCd0b2tlbicsIHRva2VuKTtcbiAgICAgICAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gICAgICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnJlZGlyZWN0VG8oe1xuICAgICAgICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiAn55m75b2V6I635Y+WY29kZeWksei0pScsXG4gICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9XG4gICAgLy8gZmV0Y2goKVxuICAgIC8vIHd4LnJlZGlyZWN0VG8oe1xuICAgIC8vICAgdXJsOiAnL3BhZ2VzL2hvbWUvaG9tZSdcbiAgICAvLyB9KVxuICB9LFxuICBjb2RlTG9naW4oKSB7XG4gICAgd3gubG9naW4oe1xuICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICBjb2RlLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9KVxuICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgIGRhdGE6IHsgdXNlckluZm8sIHVzZXJSb2xlcyB9LFxuICAgICAgICAgICAgICB9ID0gcmVzO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VySW5mbyA9IHVzZXJJbmZvO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VyUm9sZXMgPSB1c2VyUm9sZXM7XG4gICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgd3guc2V0U3RvcmFnZVN5bmMoJ3Rva2VuJywgdG9rZW4pO1xuICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge31cbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6ICfnmbvlvZXojrflj5Zjb2Rl5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbmFtZUlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB2YWx1ZSA9IGUuZGV0YWlsLnZhbHVlO1xuICAgIHRoaXMudXBkYXRlSW5wdXRWYWx1ZSgnYWNjb3VudCcsIHZhbHVlKTtcbiAgfSxcbiAgcGFzc3dhcmRJbm91dEhhbmRsZShlKSB7XG4gICAgY29uc3QgdmFsdWUgPSBlLmRldGFpbC52YWx1ZTtcbiAgICB0aGlzLnVwZGF0ZUlucHV0VmFsdWUoJ3B3ZCcsIHZhbHVlKTtcbiAgfSxcbiAgdXBkYXRlSW5wdXRWYWx1ZShrZXk6IHN0cmluZywgdmFsdWU6IHN0cmluZykge1xuICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgW2tleV06IHZhbHVlLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0= //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIGlmICghcHdkKSB7XG4gICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICB0aXRsZTogJ+ivt+i+k+WFpeWvhueggScsXG4gICAgICAgIGljb246ICdub25lJyxcbiAgICAgIH0pO1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSxcbiAgdG9rZW5Mb2FnaW4oKSB7XG4gICAgd3gubG9naW4oe1xuICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuXG4gICAgICAgICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJ+eZu+mZhuS4rScgfSk7XG4gICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigoeyBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+XG4gICAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICB0b2tlbjogYXBwLmdsb2JhbERhdGEudG9rZW4sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcztcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbG9naW5IYW5kbGUoKSB7XG4gICAgY29uc29sZS5sb2coYXBwLmdsb2JhbERhdGEpO1xuICAgIGlmICh0aGlzLnZhbGlkYXRlTG9naW5EYXRhKCkpIHtcbiAgICAgIGNvbnN0IHsgYWNjb3VudCwgcHdkIH0gPSB0aGlzLmRhdGE7XG4gICAgICBjb25zb2xlLmxvZyhhY2NvdW50LCBwd2QpO1xuICAgICAgd3gucmVxdWVzdFN1YnNjcmliZU1lc3NhZ2Uoe1xuICAgICAgICB0bXBsSWRzOiBbJ1dVMnlNSEtNX3lOUExHSFJzc3RnZ25uR0lnY1JnREVJYUpRaVdXTko5c3MnXSxcbiAgICAgICAgc3VjY2VzcyhyZXMpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnaW4gc3VjY2VzcycsIHJlcyk7XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgY29uc29sZS5sb2coJ2luIGZhaWwnLCByZXMpO1xuICAgICAgICB9LFxuICAgICAgICBjb21wbGV0ZShyZXMpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnaW4gY29tcGxldGUnLCByZXMpO1xuICAgICAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgICAgIGlmIChyZXMuY29kZSkge1xuICAgICAgICAgICAgICAgIGNvbnN0IGNvZGUgPSByZXMuY29kZTtcbiAgICAgICAgICAgICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcbiAgICAgICAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICAgICAgICB1cmw6ICcvbG9naW4vdmVyaWZ5Q29kZScsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgIC50aGVuKChyZXM6IHd4LlJlcXVlc3RTdWNjZXNzQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgICAgICB2ZXJpZnlDb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgIGNvb2tpZTogcmVzLmhlYWRlclsnU2V0LUNvb2tpZSddLFxuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgIC50aGVuKFxuICAgICAgICAgICAgICAgICAgICAoe1xuICAgICAgICAgICAgICAgICAgICAgIHZlcmlmeUNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgY29va2llLFxuICAgICAgICAgICAgICAgICAgICB9OiB7XG4gICAgICAgICAgICAgICAgICAgICAgdmVyaWZ5Q29kZTogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgICAgIGNvb2tpZTogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgICB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgbGV0IG1peHB3ZCA9IG1kNShwd2QpO1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcjoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGFjY291bnQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHB3ZDogbWl4cHdkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB2YXJpZnlDb2RlOiB2ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICAgICAgICB0b2tlbixcbiAgICAgICAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudG9rZW4gPSB0b2tlbjtcbiAgICAgICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzO1xuICAgICAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgICAgIHd4LnNldFN0b3JhZ2VTeW5jKCd0b2tlbicsIHRva2VuKTtcbiAgICAgICAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gICAgICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnJlZGlyZWN0VG8oe1xuICAgICAgICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiAn55m75b2V6I635Y+WY29kZeWksei0pScsXG4gICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9XG4gICAgLy8gZmV0Y2goKVxuICAgIC8vIHd4LnJlZGlyZWN0VG8oe1xuICAgIC8vICAgdXJsOiAnL3BhZ2VzL2hvbWUvaG9tZSdcbiAgICAvLyB9KVxuICB9LFxuICBjb2RlTG9naW4oKSB7XG4gICAgd3gubG9naW4oe1xuICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICBjb2RlLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9KVxuICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgIGRhdGE6IHsgdXNlckluZm8sIHVzZXJSb2xlcyB9LFxuICAgICAgICAgICAgICB9ID0gcmVzO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VySW5mbyA9IHVzZXJJbmZvO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VyUm9sZXMgPSB1c2VyUm9sZXM7XG4gICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgd3guc2V0U3RvcmFnZVN5bmMoJ3Rva2VuJywgdG9rZW4pO1xuICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge31cbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6ICfnmbvlvZXojrflj5Zjb2Rl5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbmFtZUlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB2YWx1ZSA9IGUuZGV0YWlsLnZhbHVlO1xuICAgIHRoaXMudXBkYXRlSW5wdXRWYWx1ZSgnYWNjb3VudCcsIHZhbHVlKTtcbiAgfSxcbiAgcGFzc3dhcmRJbm91dEhhbmRsZShlKSB7XG4gICAgY29uc3QgdmFsdWUgPSBlLmRldGFpbC52YWx1ZTtcbiAgICB0aGlzLnVwZGF0ZUlucHV0VmFsdWUoJ3B3ZCcsIHZhbHVlKTtcbiAgfSxcbiAgdXBkYXRlSW5wdXRWYWx1ZShrZXk6IHN0cmluZywgdmFsdWU6IHN0cmluZykge1xuICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgW2tleV06IHZhbHVlLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file \ No newline at end of file
...@@ -106,7 +106,7 @@ Page({ ...@@ -106,7 +106,7 @@ Page({
const { account, pwd } = this.data; const { account, pwd } = this.data;
console.log(account, pwd); console.log(account, pwd);
wx.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: ['WU2yMHKM_yNPLGHRsstggsDYnZhKoHIg4heM2fZkD5I'], tmplIds: ['WU2yMHKM_yNPLGHRsstggnnGIgcRgDEIaJQiWWNJ9ss'],
success(res) { success(res) {
console.log('in success', res); console.log('in success', res);
}, },
......
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
var fetch_1 = require("../../api/fetch"); var fetch_1 = require("../../api/fetch");
var navList = [
{
name: '月度运营分析',
icon: '../../../images/btn_yuedu@2x.png',
url: '/pages/monthOperator/monthOperator',
code: '9102',
reLaunch: false,
},
{
name: '会员反馈',
icon: '../../../images/btn_fsnkui@2x.png',
url: '/pages/feedback/feedback',
code: '9104',
reLaunch: false,
},
{
name: '服务费明细',
icon: '../../../images/btn_jiaona@2x.png',
url: '/pages/platformFee/platformFee',
code: '9105',
reLaunch: false,
},
{
name: '退出登录',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index?logout=true',
reLaunch: true,
},
];
var app = getApp(); var app = getApp();
Component({ Component({
lifetimes: { lifetimes: {
attached: function () { attached: function () {
console.log(app.globalData.userInfo); console.log(app.globalData.userInfo);
var itemList = [];
var showBalance = false;
var pageItem = app.globalData.userRoles.find(function (menu) { return menu.menuCode === '9002'; });
if (pageItem) {
itemList = pageItem.childs
.map(function (item) { return navList.find(function (menu) { return menu.code === item.menuCode; }); })
.filter(function (menu) { return (menu ? true : false); });
if (pageItem.childs.find(function (item) { return item.menuCode === '9101'; }))
showBalance = true;
}
itemList.push(navList[navList.length - 1]);
while (itemList.length % 3) {
itemList.push({});
}
this.setData({ this.setData({
userInfo: app.globalData.userInfo, userInfo: app.globalData.userInfo,
itemList: itemList,
showBalance: showBalance,
}); });
this.fetchPlatformFee(); this.fetchPlatformFee();
}, },
}, },
data: { data: {
userInfo: app.globalData.userInfo, userInfo: app.globalData.userInfo,
itemList: [ itemList: [],
{ showBalance: false,
name: '月度运营分析',
icon: '../../../images/btn_yuedu@2x.png',
url: '/pages/monthOperator/monthOperator',
reLaunch: false,
},
{
name: '会员反馈',
icon: '../../../images/btn_fsnkui@2x.png',
url: '/pages/feedback/feedback',
reLaunch: false,
},
{
name: '服务费明细',
icon: '../../../images/btn_jiaona@2x.png',
url: '/pages/platformFee/platformFee',
reLaunch: false,
},
{
name: '退出登录',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index?logout=true',
reLaunch: true,
},
{},
{},
],
account: 0, account: 0,
platformFee: '0.00', platformFee: '0.00',
}, },
...@@ -67,4 +86,4 @@ Component({ ...@@ -67,4 +86,4 @@ Component({
}, },
}, },
}); });
//# sourceMapping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GEudXNlckluZm8sXG4gICAgICAgIGl0ZW1MaXN0LFxuICAgICAgICBzaG93QmFsYW5jZSxcbiAgICAgIH0pO1xuICAgICAgdGhpcy5mZXRjaFBsYXRmb3JtRmVlKCk7XG4gICAgfSxcbiAgfSxcbiAgLyoqXG4gICAqIOmhtemdoueahOWIneWni+aVsOaNrlxuICAgKi9cbiAgZGF0YToge1xuICAgIHVzZXJJbmZvOiBhcHAuZ2xvYmFsRGF0YS51c2VySW5mbyxcbiAgICBpdGVtTGlzdDogW10sXG4gICAgc2hvd0JhbGFuY2U6IGZhbHNlLFxuICAgIGFjY291bnQ6IDAsXG4gICAgcGxhdGZvcm1GZWU6ICcwLjAwJyxcbiAgfSxcbiAgbWV0aG9kczoge1xuICAgIGZldGNoUGxhdGZvcm1GZWUoKSB7XG4gICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3VucGFpZE1vbmV5JyxcbiAgICAgIH0pXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgcGxhdGZvcm1GZWU6IHJlcy5kYXRhID8gcmVzLmRhdGEudG9GaXhlZCgyKSA6ICcwLjAwJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgICBzaG93UmVjaGFyZ2VEaWFsb2coKSB7XG4gICAgICBsZXQgZGlhbG9nID0gdGhpcy5zZWxlY3RDb21wb25lbnQoJyNwbGF0Zm9ybURpYWxvZycpO1xuICAgICAgZGlhbG9nLmZldGNoUGxhdGZvcm1GZWUoKTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file \ No newline at end of file
import { IMyApp } from '../../app'; import { IMyApp } from '../../app';
import { operatorFetch } from '../../api/fetch'; import { operatorFetch } from '../../api/fetch';
const navList = [
{
name: '月度运营分析',
icon: '../../../images/btn_yuedu@2x.png',
url: '/pages/monthOperator/monthOperator',
code: '9102',
reLaunch: false,
},
// {
// name: '用户增长分析',
// icon: '../../../images/btn_yonghu@2x.png',
// url: '/pages/userGrowth/userGrowth',
// code:'9103',
// reLaunch: false,
// },
{
name: '会员反馈',
icon: '../../../images/btn_fsnkui@2x.png',
url: '/pages/feedback/feedback',
code: '9104',
reLaunch: false,
},
{
name: '服务费明细',
icon: '../../../images/btn_jiaona@2x.png',
url: '/pages/platformFee/platformFee',
code: '9105',
reLaunch: false,
},
// {
// name: '账户提现',
// icon: '../../../images/btn_tixian@2x.png',
// url: '',
// reLaunch: false,
// },
{
name: '退出登录',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index?logout=true',
reLaunch: true,
},
];
// miniprogram/pages/report/report.js // miniprogram/pages/report/report.js
const app = getApp<IMyApp>(); const app = getApp<IMyApp>();
Component({ Component({
lifetimes: { lifetimes: {
attached() { attached() {
console.log(app.globalData.userInfo); console.log(app.globalData.userInfo);
let itemList = [];
let showBalance = false;
let pageItem = app.globalData.userRoles.find(
menu => menu.menuCode === '9002',
);
if (pageItem) {
itemList = pageItem.childs
.map(item => navList.find(menu => menu.code === item.menuCode))
.filter(menu => (menu ? true : false));
if (pageItem.childs.find(item => item.menuCode === '9101'))
showBalance = true;
}
itemList.push(navList[navList.length - 1]);
while (itemList.length % 3) {
itemList.push({});
}
this.setData!({ this.setData!({
userInfo: app.globalData.userInfo, userInfo: app.globalData.userInfo,
itemList,
showBalance,
}); });
this.fetchPlatformFee(); this.fetchPlatformFee();
}, },
...@@ -18,46 +79,8 @@ Component({ ...@@ -18,46 +79,8 @@ Component({
*/ */
data: { data: {
userInfo: app.globalData.userInfo, userInfo: app.globalData.userInfo,
itemList: [ itemList: [],
{ showBalance: false,
name: '月度运营分析',
icon: '../../../images/btn_yuedu@2x.png',
url: '/pages/monthOperator/monthOperator',
reLaunch: false,
},
// {
// name: '用户增长分析',
// icon: '../../../images/btn_yonghu@2x.png',
// url: '/pages/userGrowth/userGrowth',
// reLaunch: false,
// },
{
name: '会员反馈',
icon: '../../../images/btn_fsnkui@2x.png',
url: '/pages/feedback/feedback',
reLaunch: false,
},
{
name: '服务费明细',
icon: '../../../images/btn_jiaona@2x.png',
url: '/pages/platformFee/platformFee',
reLaunch: false,
},
// {
// name: '账户提现',
// icon: '../../../images/btn_tixian@2x.png',
// url: '',
// reLaunch: false,
// },
{
name: '退出登录',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index?logout=true',
reLaunch: true,
},
{},
{},
],
account: 0, account: 0,
platformFee: '0.00', platformFee: '0.00',
}, },
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<view class="report-header-accountItemValue">10000</view> <view class="report-header-accountItemValue">10000</view>
</view> </view>
</view> --> </view> -->
<view class="report-header-platform"> <view class="report-header-platform" wx:if="{{showBalance}}">
<view class="report-header-platform-info"> <view class="report-header-platform-info">
待缴纳服务费 待缴纳服务费
<text class="report-header-platform-fee" selectable="false" space="false" decode="false"> <text class="report-header-platform-fee" selectable="false" space="false" decode="false">
......
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