Commit d39eae0a by 姜雷

Merge branch 'develop' into test

parents 91b28ab3 0b375fde
......@@ -141,7 +141,7 @@ Component({
},
goRecordsPage: function () {
wx.navigateTo({
url: '/pages/platformFeeRecord/platformFeeRecord',
url: '/pages/platformFee/platformFee',
});
},
toggleType: function () {
......@@ -244,4 +244,4 @@ Component({
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDRDQUFtRDtBQUduRCxJQUFNLEdBQUcsR0FBRyxNQUFNLEVBQVUsQ0FBQztBQUM3QixJQUFJLEtBQUssR0FBRyxJQUFJLENBQUM7QUFDakIsSUFBSSxlQUFlLEdBQUcsS0FBSyxDQUFDO0FBRTVCLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLENBQUM7WUFDckMsSUFBSSxDQUFDLE9BQVEsQ0FBQztnQkFDWixRQUFRLEVBQUUsR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRO2FBQ2xDLENBQUMsQ0FBQztZQUNILElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxLQUFLLE1BQU07Z0JBQzVCLENBQUMsZUFBZTtnQkFDaEIsSUFBSSxDQUFDLGdCQUFnQixFQUFFLENBQUM7UUFDNUIsQ0FBQztLQUNGO0lBSUQsVUFBVSxFQUFFO1FBQ1YsU0FBUyxFQUFFLEVBQUUsSUFBSSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFO0tBQzNDO0lBS0QsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLEdBQUcsQ0FB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DEg5pSv5LuYIDIg5omr56CBXG4gICAgaXNTa2lwOiAwLFxuICAgIHJlY2hhcmdlQmFsYW5jZTogMCxcbiAgICBwYXlUaW1lTGltaXQ6IDAsXG4gICAgYmlsbFR5cGU6ICcwJyxcbiAgICBwYXlRclVybDogJycsXG4gICAgY291bnREb3duOiA2MDAsXG4gICAgY291bnREb3duU3RyaW5nOiAnMTDliIYwMOenkicsXG4gIH0sXG5cbiAgLyoqXG4gICAqIOe7hOS7tueahOaWueazleWIl+ihqFxuICAgKi9cbiAgbWV0aG9kczoge1xuICAgIGZldGNoUGxhdGZvcm1GZWUoKSB7XG4gICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2UvaW5pdGRhdGEnLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgZGF0YToge1xuICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgIHBvc2l0aW9uOiAzLFxuICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgIH0sXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIGNvbnN0IHsgaXNTa2lwLCByZWNoYXJnZUJhbGFuY2UsIHBheVRpbWVMaW1pdCB9ID0gcmVzO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICBpc1NraXAsXG4gICAgICAgICAgICByZWNoYXJnZUJhbGFuY2UsXG4gICAgICAgICAgICBwYXlUaW1lTGltaXQsXG4gICAgICAgICAgICBzaG93RGlhbG9nOiByZWNoYXJnZUJhbGFuY2UgPiAwID8gdHJ1ZSA6IGZhbHNlLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGZldGNoZWRQbGF0Zm9ybSA9IHRydWU7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgY2FuY2VsU2hvdygpIHtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHNob3dEaWFsb2c6IGZhbHNlLFxuICAgICAgfSk7XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlSW5mbygpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdpbiBmZXRjaFJlY2hhcmdlSW5mbycpO1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAgICAgICAganNDb2RlOiByZXMuY29kZSxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlJbmZvIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgd3gucmVxdWVzdFBheW1lbnQoe1xuICAgICAgICAgICAgICAgICAgdGltZVN0YW1wOiBwYXlJbmZvLnRpbWVTdGFtcCxcbiAgICAgICAgICAgICAgICAgIG5vbmNlU3RyOiBwYXlJbmZvLm5vbmNlU3RyLFxuICAgICAgICAgICAgICAgICAgcGFja2FnZTogcGF5SW5mby5wYWNrYWdlLFxuICAgICAgICAgICAgICAgICAgc2lnblR5cGU6IHBheUluZm8uc2lnblR5cGUsXG4gICAgICAgICAgICAgICAgICBwYXlTaWduOiBwYXlJbmZvLnBheVNpZ24sXG4gICAgICAgICAgICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn5pSv5LuY5oiQ5Yqf77yBJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgc2hvd0RpYWxvZzogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfmlK/ku5jlpLHotKXvvIEnLFxuICAgICAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIubXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICAgIGdvUmVjb3Jkc1BhZ2UoKSB7XG4gICAgICB3eC5uYXZpZ2F0ZVRvKHtcbiAgICAgICAgdXJsOiAnL3BhZ2VzL3BsYXRmb3JtRmVlUmVjb3JkL3BsYXRmb3JtRmVlUmVjb3JkJyxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgdG9nZ2xlVHlwZSgpIHtcbiAgICAgIGxldCB0eXBlID0gdGhpcy5kYXRhLnR5cGU7XG4gICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICB0eXBlOiB0eXBlID09PSAxID8gMiA6IDEsXG4gICAgICB9KTtcbiAgICAgIGlmICh0eXBlID09PSAxKSB7XG4gICAgICAgIHRoaXMuZmV0Y2hSZWNoYXJnZU9yZGVyUVJjb2RlKCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aW1lciAmJiBjbGVhckludGVydmFsKHRpbWVyKTtcbiAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcnLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9LFxuICAgIGNoZWNrQmlsbFR5cGUoZSkge1xuICAgICAgY29uc29sZS5sb2coZSk7XG4gICAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmN1cnJlbnRUYXJnZXQuZGF0YXNldDtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIGJpbGxUeXBlOiB2YWx1ZSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgZmV0Y2hSZWNoYXJnZU9yZGVyUVJjb2RlKCkge1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAgICAgICAganNDb2RlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlRclVybCB9ID0gcmVzO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICBwYXlRclVybCxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB0aW1lciA9IHNldEludGVydmFsKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgIGxldCBjb3VudCA9IHRoaXMuZGF0YS5jb3VudERvd247XG4gICAgICAgICAgICAgICAgICBpZiAoY291bnQgPT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgY2xlYXJJbnRlcnZhbCh0aW1lcik7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgcGF5UXJVcmw6ICcnLFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93bjogNjAwLFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93blN0cmluZzogJzDnp5InLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBuZXdDb3VudCA9IGNvdW50IC0gMTtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGNvdW50U3RyaW5nID1cbiAgICAgICAgICAgICAgICAgICAgICBNYXRoLmZsb29yKG5ld0NvdW50IC8gNjApICsgJ+WIhicgKyAobmV3Q291bnQgJSA2MCkgKyAn56eSJztcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd246IG5ld0NvdW50LFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93blN0cmluZzogY291bnRTdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sIDEwMDApO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLm1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDRDQUFtRDtBQUduRCxJQUFNLEdBQUcsR0FBRyxNQUFNLEVBQVUsQ0FBQztBQUM3QixJQUFJLEtBQUssR0FBRyxJQUFJLENBQUM7QUFDakIsSUFBSSxlQUFlLEdBQUcsS0FBSyxDQUFDO0FBRTVCLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLENBQUM7WUFDckMsSUFBSSxDQUFDLE9BQVEsQ0FBQztnQkFDWixRQUFRLEVBQUUsR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRO2FBQ2xDLENBQUMsQ0FBQztZQUNILElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxLQUFLLE1BQU07Z0JBQzVCLENBQUMsZUFBZTtnQkFDaEIsSUFBSSxDQUFDLGdCQUFnQixFQUFFLENBQUM7UUFDNUIsQ0FBQztLQUNGO0lBSUQsVUFBVSxFQUFFO1FBQ1YsU0FBUyxFQUFFLEVBQUUsSUFBSSxFQUFFLE1BQU0sRUFBRSxLQUFL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FwcC5nbG9iYWxEYXRhLnVzZXJJbmZvLFxuICAgIHNob3dEaWFsb2c6IGZhbHNlLFxuICAgIHR5cGU6IDEsIC8vIDEg5pSv5LuYIDIg5omr56CBXG4gICAgaXNTa2lwOiAwLFxuICAgIHJlY2hhcmdlQmFsYW5jZTogMCxcbiAgICBwYXlUaW1lTGltaXQ6IDAsXG4gICAgYmlsbFR5cGU6ICcwJyxcbiAgICBwYXlRclVybDogJycsXG4gICAgY291bnREb3duOiA2MDAsXG4gICAgY291bnREb3duU3RyaW5nOiAnMTDliIYwMOenkicsXG4gIH0sXG5cbiAgLyoqXG4gICAqIOe7hOS7tueahOaWueazleWIl+ihqFxuICAgKi9cbiAgbWV0aG9kczoge1xuICAgIGZldGNoUGxhdGZvcm1GZWUoKSB7XG4gICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2UvaW5pdGRhdGEnLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgZGF0YToge1xuICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgIHBvc2l0aW9uOiAzLFxuICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgIH0sXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIGNvbnN0IHsgaXNTa2lwLCByZWNoYXJnZUJhbGFuY2UsIHBheVRpbWVMaW1pdCB9ID0gcmVzO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICBpc1NraXAsXG4gICAgICAgICAgICByZWNoYXJnZUJhbGFuY2UsXG4gICAgICAgICAgICBwYXlUaW1lTGltaXQsXG4gICAgICAgICAgICBzaG93RGlhbG9nOiByZWNoYXJnZUJhbGFuY2UgPiAwID8gdHJ1ZSA6IGZhbHNlLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGZldGNoZWRQbGF0Zm9ybSA9IHRydWU7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgY2FuY2VsU2hvdygpIHtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHNob3dEaWFsb2c6IGZhbHNlLFxuICAgICAgfSk7XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlSW5mbygpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdpbiBmZXRjaFJlY2hhcmdlSW5mbycpO1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAgICAgICAganNDb2RlOiByZXMuY29kZSxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlJbmZvIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgd3gucmVxdWVzdFBheW1lbnQoe1xuICAgICAgICAgICAgICAgICAgdGltZVN0YW1wOiBwYXlJbmZvLnRpbWVTdGFtcCxcbiAgICAgICAgICAgICAgICAgIG5vbmNlU3RyOiBwYXlJbmZvLm5vbmNlU3RyLFxuICAgICAgICAgICAgICAgICAgcGFja2FnZTogcGF5SW5mby5wYWNrYWdlLFxuICAgICAgICAgICAgICAgICAgc2lnblR5cGU6IHBheUluZm8uc2lnblR5cGUsXG4gICAgICAgICAgICAgICAgICBwYXlTaWduOiBwYXlJbmZvLnBheVNpZ24sXG4gICAgICAgICAgICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn5pSv5LuY5oiQ5Yqf77yBJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgc2hvd0RpYWxvZzogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfmlK/ku5jlpLHotKXvvIEnLFxuICAgICAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIubXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICAgIGdvUmVjb3Jkc1BhZ2UoKSB7XG4gICAgICB3eC5uYXZpZ2F0ZVRvKHtcbiAgICAgICAg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biAgICAgICAgICAgICAganNDb2RlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlRclVybCB9ID0gcmVzO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICBwYXlRclVybCxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB0aW1lciA9IHNldEludGVydmFsKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgIGxldCBjb3VudCA9IHRoaXMuZGF0YS5jb3VudERvd247XG4gICAgICAgICAgICAgICAgICBpZiAoY291bnQgPT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgY2xlYXJJbnRlcnZhbCh0aW1lcik7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgcGF5UXJVcmw6ICcnLFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93bjogNjAwLFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93blN0cmluZzogJzDnp5InLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBuZXdDb3VudCA9IGNvdW50IC0gMTtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGNvdW50U3RyaW5nID1cbiAgICAgICAgICAgICAgICAgICAgICBNYXRoLmZsb29yKG5ld0NvdW50IC8gNjApICsgJ+WIhicgKyAobmV3Q291bnQgJSA2MCkgKyAn56eSJztcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd246IG5ld0NvdW50LFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93blN0cmluZzogY291bnRTdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sIDEwMDApO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLm1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
......@@ -150,7 +150,7 @@ Component({
},
goRecordsPage() {
wx.navigateTo({
url: '/pages/platformFeeRecord/platformFeeRecord',
url: '/pages/platformFee/platformFee',
});
},
toggleType() {
......
......@@ -161,6 +161,51 @@ Page({
});
}
},
codeLogin: function () {
wx.login({
success: function (res) {
if (res.code) {
var code = res.code;
fetch_1.systemFetch({
url: '/boss/login',
method: 'POST',
data: {
code: code,
},
})
.then(function (res) {
console.log(res);
var token = res.token, _a = res.data, userInfo = _a.userInfo, userRoles = _a.userRoles;
app.globalData.token = token;
app.globalData.userInfo = userInfo;
app.globalData.userRoles = userRoles;
try {
wx.setStorageSync('token', token);
}
catch (error) { }
wx.hideLoading();
wx.redirectTo({
url: '/pages/homeAndReport/homeAndReport',
});
})
.catch(function (err) {
console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
});
}
else {
wx.showToast({
title: '登录获取code失败',
icon: 'none',
});
}
},
});
},
nameInputHandle: function (e) {
var value = e.detail.value;
this.updateInputValue('account', value);
......@@ -176,4 +221,4 @@ Page({
var _a;
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLHl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rScgfSk7XG4gICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigoeyBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+XG4gICAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICB0b2tlbjogYXBwLmdsb2JhbERhdGEudG9rZW4sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcztcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbG9naW5IYW5kbGUoKSB7XG4gICAgY29uc29sZS5sb2coYXBwLmdsb2JhbERhdGEpO1xuICAgIGlmICh0aGlzLnZhbGlkYXRlTG9naW5EYXRhKCkpIHtcbiAgICAgIGNvbnN0IHsgYWNjb3VudCwgcHdkIH0gPSB0aGlzLmRhdGE7XG4gICAgICBjb25zb2xlLmxvZyhhY2NvdW50LCBwd2QpO1xuICAgICAgd3gubG9naW4oe1xuICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgIGlmIChyZXMuY29kZSkge1xuICAgICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJycgfSk7XG4gICAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9sb2dpbi92ZXJpZnlDb2RlJyxcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC50aGVuKChyZXM6IHd4LlJlcXVlc3RTdWNjZXNzQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICB2ZXJpZnlDb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgY29va2llOiByZXMuaGVhZGVyWydTZXQtQ29va2llJ10sXG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4oXG4gICAgICAgICAgICAgICAgKHtcbiAgICAgICAgICAgICAgICAgIHZlcmlmeUNvZGUsXG4gICAgICAgICAgICAgICAgICBjb29raWUsXG4gICAgICAgICAgICAgICAgfToge1xuICAgICAgICAgICAgICAgICAgdmVyaWZ5Q29kZTogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgY29va2llOiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgbGV0IG1peHB3ZCA9IG1kNShwd2QpO1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAnL2Jvc3MvbG9naW4nLFxuICAgICAgICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICAgICAgY29va2llOiBjb29raWUsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgICBjb2RlLFxuICAgICAgICAgICAgICAgICAgICAgIGFjY291bnQsXG4gICAgICAgICAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgICAgICAgICAgdmFyaWZ5Q29kZTogdmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzO1xuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICB3eC5zZXRTdG9yYWdlU3luYygndG9rZW4nLCB0b2tlbik7XG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgdGl0bGU6ICfnmbvlvZXojrflj5Zjb2Rl5aSx6LSlJyxcbiAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfVxuICAgIC8vIGZldGNoKClcbiAgICAvLyB3eC5yZWRpcmVjdFRvKHtcbiAgICAvLyAgIHVybDogJy9wYWdlcy9ob21lL2hvbWUnXG4gICAgLy8gfSlcbiAgfSxcbiAgbmFtZUlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB2YWx1ZSA9IGUuZGV0YWlsLnZhbHVlO1xuICAgIHRoaXMudXBkYXRlSW5wdXRWYWx1ZSgnYWNjb3VudCcsIHZhbHVlKTtcbiAgfSxcbiAgcGFzc3dhcmRJbm91dEhhbmRsZShlKSB7XG4gICAgY29uc3QgdmFsdWUgPSBlLmRldGFpbC52YWx1ZTtcbiAgICB0aGlzLnVwZGF0ZUlucHV0VmFsdWUoJ3B3ZCcsIHZhbHVlKTtcbiAgfSxcbiAgdXBkYXRlSW5wdXRWYWx1ZShrZXk6IHN0cmluZywgdmFsdWU6IHN0cmluZykge1xuICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgW2tleV06IHZhbHVlLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
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HtcbiAgICBjb25zdCB7IGFjY291bnQsIHB3ZCB9ID0gdGhpcy5kYXRhO1xuICAgIGlmICghYWNjb3VudCkge1xuICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgdGl0bGU6ICfor7fovpPlhaXotKbmiLcnLFxuICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICB9KTtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgaWYgKCFwd2QpIHtcbiAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgIHRpdGxlOiAn6K+36L6T5YWl5a+G56CBJyxcbiAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgfSk7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHJldHVybiB0cnVlO1xuICB9LFxuICB0b2tlbkxvYWdpbigpIHtcbiAgICB3eC5sb2dpbih7XG4gICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICBjb25zdCBjb2RlID0gcmVzLmNvZGU7XG5cbiAgICAgICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAn55m76ZmG5LitJyB9KTtcbiAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICB1cmw6ICcvbG9naW4vdmVyaWZ5Q29kZScsXG4gICAgICAgICAgfSlcbiAgICAgICAgICAgIC50aGVuKChyZXM6IHd4LlJlcXVlc3RTdWNjZXNzQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICBjb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgIGNvb2tpZTogcmVzLmhlYWRlclsnU2V0LUNvb2tpZSddLFxuICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC50aGVuKCh7IGNvb2tpZSB9OiB7IGNvZGU6IHN0cmluZzsgY29va2llOiBzdHJpbmcgfSkgPT5cbiAgICAgICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgICBoZWFkZXI6IHtcbiAgICAgICAgICAgICAgICAgIGNvb2tpZTogY29va2llLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgICAgY29kZSxcbiAgICAgICAgICAgICAgICAgIHRva2VuOiBhcHAuZ2xvYmFsRGF0YS50b2tlbixcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICB0b2tlbixcbiAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudG9rZW4gPSB0b2tlbjtcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvcGFnZXMvaG9tZUFuZFJlcG9ydC9ob21lQW5kUmVwb3J0JyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH0pO1xuICB9LFxuICBsb2dpbkhhbmRsZSgpIHtcbiAgICBjb25zb2xlLmxvZyhhcHAuZ2xvYmFsRGF0YSk7XG4gICAgaWYgKHRoaXMudmFsaWRhdGVMb2dpbkRhdGEoKSkge1xuICAgICAgY29uc3QgeyBhY2NvdW50LCBwd2QgfSA9IHRoaXMuZGF0YTtcbiAgICAgIGNvbnNvbGUubG9nKGFjY291bnQsIHB3ZCk7XG4gICAgICB3eC5sb2dpbih7XG4gICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgICBjb25zdCBjb2RlID0gcmVzLmNvZGU7XG4gICAgICAgICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcbiAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4oKHJlczogd3guUmVxdWVzdFN1Y2Nlc3NDYWxsYmFja1Jlc3VsdCkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgIHZlcmlmeUNvZGU6IHJlcy5kYXRhLnZlcmlmeUNvZGUsXG4gICAgICAgICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihcbiAgICAgICAgICAgICAgICAoe1xuICAgICAgICAgICAgICAgICAgdmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICAgIGNvb2tpZSxcbiAgICAgICAgICAgICAgICB9OiB7XG4gICAgICAgICAgICAgICAgICB2ZXJpZnlDb2RlOiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgICBjb29raWU6IHN0cmluZztcbiAgICAgICAgICAgICAgICB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICBsZXQgbWl4cHdkID0gbWQ1KHB3ZCk7XG4gICAgICAgICAgICAgICAgICByZXR1cm4gc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICAgICAgICBoZWFkZXI6IHtcbiAgICAgICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgYWNjb3VudCxcbiAgICAgICAgICAgICAgICAgICAgICBwd2Q6IG1peHB3ZCxcbiAgICAgICAgICAgICAgICAgICAgICB2YXJpZnlDb2RlOiB2ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgICB9ID0gcmVzO1xuICAgICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VyUm9sZXMgPSB1c2VyUm9sZXM7XG4gICAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAgIHd4LnNldFN0b3JhZ2VTeW5jKCd0b2tlbicsIHRva2VuKTtcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge31cbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIHd4LnJlZGlyZWN0VG8oe1xuICAgICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICB0aXRsZTogJ+eZu+W9leiOt+WPlmNvZGXlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9XG4gICAgLy8gZmV0Y2goKVxuICAgIC8vIHd4LnJlZGlyZWN0VG8oe1xuICAgIC8vICAgdXJsOiAnL3BhZ2VzL2hvbWUvaG9tZSdcbiAgICAvLyB9KVxuICB9LFxuICBjb2RlTG9naW4oKSB7XG4gICAgd3gubG9naW4oe1xuICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICBjb2RlLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9KVxuICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgIGRhdGE6IHsgdXNlckluZm8sIHVzZXJSb2xlcyB9LFxuICAgICAgICAgICAgICB9ID0gcmVzO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VySW5mbyA9IHVzZXJJbmZvO1xuICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VyUm9sZXMgPSB1c2VyUm9sZXM7XG4gICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgd3guc2V0U3RvcmFnZVN5bmMoJ3Rva2VuJywgdG9rZW4pO1xuICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge31cbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6ICfnmbvlvZXojrflj5Zjb2Rl5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbmFtZUlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB2YWx1ZSA9IGUuZGV0YWlsLnZhbHVlO1xuICAgIHRoaXMudXBkYXRlSW5wdXRWYWx1ZSgnYWNjb3VudCcsIHZhbHVlKTtcbiAgfSxcbiAgcGFzc3dhcmRJbm91dEhhbmRsZShlKSB7XG4gICAgY29uc3QgdmFsdWUgPSBlLmRldGFpbC52YWx1ZTtcbiAgICB0aGlzLnVwZGF0ZUlucHV0VmFsdWUoJ3B3ZCcsIHZhbHVlKTtcbiAgfSxcbiAgdXBkYXRlSW5wdXRWYWx1ZShrZXk6IHN0cmluZywgdmFsdWU6IHN0cmluZykge1xuICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgW2tleV06IHZhbHVlLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
......@@ -178,6 +178,52 @@ Page({
// url: '/pages/home/home'
// })
},
codeLogin() {
wx.login({
success: res => {
if (res.code) {
const code = res.code;
systemFetch({
url: '/boss/login',
method: 'POST',
data: {
code,
},
})
.then(res => {
console.log(res);
const {
token,
data: { userInfo, userRoles },
} = res;
app.globalData.token = token;
app.globalData.userInfo = userInfo;
app.globalData.userRoles = userRoles;
try {
wx.setStorageSync('token', token);
} catch (error) {}
wx.hideLoading();
wx.redirectTo({
url: '/pages/homeAndReport/homeAndReport',
});
})
.catch(err => {
console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
});
} else {
wx.showToast({
title: '登录获取code失败',
icon: 'none',
});
}
},
});
},
nameInputHandle(e) {
const value = e.detail.value;
this.updateInputValue('account', value);
......
......@@ -11,5 +11,8 @@
</div>
</view>
<button class="login-btn" bindtap="loginHandle">登录</button>
<view class="wx-login" bind:tap="codeLogin">
<image class="wx-login-icon" src="../../images/ic_wechat@2x.png"></image>
</view>
</view>
</view>
\ No newline at end of file
......@@ -39,3 +39,12 @@
.login-btn {
margin-top: 40rpx;
}
.wx-login {
width: 72rpx;
height: 72rpx;
margin: 80rpx auto 0;
}
.wx-login-icon {
width: 72rpx;
height: 72rpx;
}
{
"name": "demo",
"version": "1.0.1",
"name": "wx-manage-shell",
"version": "1.0.2",
"scripts": {
"compile": "./node_modules/typescript/bin/tsc",
"tsc": "node ./node_modules/typescript/lib/tsc.js"
......
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