Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-boss
Commits
ec2f9691
Commit
ec2f9691
authored
Dec 31, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
8296f540
5ed10c4b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
4 deletions
+39
-4
index.js
miniprogram/pages/index/index.js
+20
-3
index.ts
miniprogram/pages/index/index.ts
+19
-1
No files found.
miniprogram/pages/index/index.js
View file @
ec2f9691
...
@@ -103,8 +103,21 @@ Page({
...
@@ -103,8 +103,21 @@ Page({
if
(
this
.
validateLoginData
())
{
if
(
this
.
validateLoginData
())
{
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
);
fetch_1
.
systemFetch
({
url
:
'/boss/login/init/data'
,
method
:
'GET'
,
})
.
then
(
function
(
res
)
{
console
.
log
(
res
);
return
res
.
templates
;
})
.
catch
(
function
(
err
)
{
return
;
})
.
then
(
function
(
ids
)
{
var
tmplIds
=
ids
&&
ids
.
length
?
ids
.
map
(
function
(
item
)
{
return
item
.
templateId
;
})
:
[];
wx
.
requestSubscribeMessage
({
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'WU2yMHKM_yNPLGHRsstggnnGIgcRgDEIaJQiWWNJ9ss'
]
,
tmplIds
:
tmplIds
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
'in success'
,
res
);
console
.
log
(
'in success'
,
res
);
},
},
...
@@ -181,6 +194,10 @@ Page({
...
@@ -181,6 +194,10 @@ Page({
});
});
},
},
});
});
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
}
},
},
codeLogin
:
function
()
{
codeLogin
:
function
()
{
...
@@ -245,4 +262,4 @@ Page({
...
@@ -245,4 +262,4 @@ Page({
var
_a
;
var
_a
;
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLHlDQUE4QztBQUM5QyxJQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUM7QUFHbkMsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFFN0IsSUFBSSxDQUFDO0lBQ0gsTUFBTSxZQUFDLE1BQU07UUFDWCxPQUFPLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ3BCLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztZQUN6QixJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7UUFDckIsQ0FBQztRQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztRQUUzQixDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixJQUFJLENBQUMsU0FBUyxFQUFFLENBQUM7UUFDbkIsQ0FBQztJQUNILENBQUM7SUFDRCxJQUFJLEVBQUU7UUFDSixPQUFPLEVBQUUsRUFBRTtRQUNYLEdBQUcsRUFBRSxFQUFF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J+eZu+mZhuS4rScgfSk7XG4gICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigoeyBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+XG4gICAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICB0b2tlbjogYXBwLmdsb2JhbERhdGEudG9rZW4sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcy5sZW5ndGhcbiAgICAgICAgICAgICAgICA/IHVzZXJSb2xlc1swXS5jaGlsZHNcbiAgICAgICAgICAgICAgICA6IFtdO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvcGFnZXMvaG9tZUFuZFJlcG9ydC9ob21lQW5kUmVwb3J0JyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH0pO1xuICB9LFxuICBsb2dpbkhhbmRsZSgpIHtcbiAgICBjb25zb2xlLmxvZyhhcHAuZ2xvYmFsRGF0YSk7XG4gICAgaWYgKHRoaXMudmFsaWRhdGVMb2dpbkRhdGEoKSkge1xuICAgICAgY29uc3QgeyBhY2NvdW50LCBwd2QgfSA9IHRoaXMuZGF0YTtcbiAgICAgIGNvbnNvbGUubG9nKGFjY291bnQsIHB3ZCk7XG4gICAgICB3eC5yZXF1ZXN0U3Vic2NyaWJlTWVzc2FnZSh7XG4gICAgICAgIHRtcGxJZHM6IFsnV1UyeU1IS01feU5QTEdIUnNzdGdnbm5HSWdjUmdERUlhSlFpV1dOSjlzcyddLFxuICAgICAgICBzdWNjZXNzKHJlcykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdpbiBzdWNjZXNzJywgcmVzKTtcbiAgICAgICAgfSxcbiAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnaW4gZmFpbCcsIHJlcyk7XG4gICAgICAgIH0sXG4gICAgICAgIGNvbXBsZXRlKHJlcykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdpbiBjb21wbGV0ZScsIHJlcyk7XG4gICAgICAgICAgd3gubG9naW4oe1xuICAgICAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgICAgICAgIHd4LnNob3dMb2FkaW5nKHsgdGl0bGU6ICcnIH0pO1xuICAgICAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICAgIHVybDogJy9sb2dpbi92ZXJpZnlDb2RlJyxcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgLnRoZW4oKHJlczogd3guUmVxdWVzdFN1Y2Nlc3NDYWxsYmFja1Jlc3VsdCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgICAgICAgIHZlcmlmeUNvZGU6IHJlcy5kYXRhLnZlcmlmeUNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgY29va2llOiByZXMuaGVhZGVyWydTZXQtQ29va2llJ10sXG4gICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgLnRoZW4oXG4gICAgICAgICAgICAgICAgICAgICh7XG4gICAgICAgICAgICAgICAgICAgICAgdmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICAgICAgICBjb29raWUsXG4gICAgICAgICAgICAgICAgICAgIH06IHtcbiAgICAgICAgICAgICAgICAgICAgICB2ZXJpZnlDb2RlOiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgICAgICAgY29va2llOiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgICAgIH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICBsZXQgbWl4cHdkID0gbWQ1KHB3ZCk7XG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNvb2tpZTogY29va2llLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY29kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgYWNjb3VudCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZhcmlmeUNvZGU6IHZlcmlmeUNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IHsgdXNlckluZm8sIHVzZXJSb2xlcyB9LFxuICAgICAgICAgICAgICAgICAgICB9ID0gcmVzO1xuICAgICAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VySW5mbyA9IHVzZXJJbmZvO1xuICAgICAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VyUm9sZXMgPSB1c2VyUm9sZXMubGVuZ3RoXG4gICAgICAgICAgICAgICAgICAgICAgPyB1c2VyUm9sZXNbMF0uY2hpbGRzXG4gICAgICAgICAgICAgICAgICAgICAgOiBbXTtcbiAgICAgICAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAgICAgICB3eC5zZXRTdG9yYWdlU3luYygndG9rZW4nLCB0b2tlbik7XG4gICAgICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7fVxuICAgICAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICAgICAgICB1cmw6ICcvcGFnZXMvaG9tZUFuZFJlcG9ydC9ob21lQW5kUmVwb3J0JyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICB0aXRsZTogJ+eZu+W9leiOt+WPlmNvZGXlpLHotKUnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0pO1xuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfVxuICAgIC8vIGZldGNoKClcbiAgICAvLyB3eC5yZWRpcmVjdFRvKHtcbiAgICAvLyAgIHVybDogJy9wYWdlcy9ob21lL2hvbWUnXG4gICAgLy8gfSlcbiAgfSxcbiAgY29kZUxvZ2luKCkge1xuICAgIHd4LmxvZ2luKHtcbiAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgIGlmIChyZXMuY29kZSkge1xuICAgICAgICAgIGNvbnN0IGNvZGUgPSByZXMuY29kZTtcbiAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgY29kZSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSlcbiAgICAgICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICB0b2tlbixcbiAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudG9rZW4gPSB0b2tlbjtcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzLmxlbmd0aFxuICAgICAgICAgICAgICAgID8gdXNlclJvbGVzWzBdLmNoaWxkc1xuICAgICAgICAgICAgICAgIDogW107XG4gICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgd3guc2V0U3RvcmFnZVN5bmMoJ3Rva2VuJywgdG9rZW4pO1xuICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge31cbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6ICfnmbvlvZXojrflj5Zjb2Rl5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbmFtZUlucHV0SGFuZGxlKGUp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tcbiAgICAgICAgICAgICAgICBjb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgIGNvb2tpZTogcmVzLmhlYWRlclsnU2V0LUNvb2tpZSddLFxuICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC50aGVuKCh7IGNvb2tpZSB9OiB7IGNvZGU6IHN0cmluZzsgY29va2llOiBzdHJpbmcgfSkgPT5cbiAgICAgICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgICBoZWFkZXI6IHtcbiAgICAgICAgICAgICAgICAgIGNvb2tpZTogY29va2llLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgICAgY29kZSxcbiAgICAgICAgICAgICAgICAgIHRva2VuOiBhcHAuZ2xvYmFsRGF0YS50b2tlbixcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICB0b2tlbixcbiAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudG9rZW4gPSB0b2tlbjtcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzLmxlbmd0aFxuICAgICAgICAgICAgICAgID8gdXNlclJvbGVzWzBdLmNoaWxkc1xuICAgICAgICAgICAgICAgIDogW107XG4gICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgIHd4LnJlZGlyZWN0VG8oe1xuICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfSk7XG4gIH0sXG4gIGxvZ2luSGFuZGxlKCkge1xuICAgIGNvbnNvbGUubG9nKGFwcC5nbG9iYWxEYXRhKTtcbiAgICBpZiAodGhpcy52YWxpZGF0ZUxvZ2luRGF0YSgpKSB7XG4gICAgICBjb25zdCB7IGFjY291bnQsIHB3ZCB9ID0gdGhpcy5kYXRhO1xuICAgICAgY29uc29sZS5sb2coYWNjb3VudCwgcHdkKTtcbiAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgdXJsOiAnL2Jvc3MvbG9naW4vaW5pdC9kYXRhJyxcbiAgICAgICAgbWV0aG9kOiAnR0VUJyxcbiAgICAgIH0pXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICByZXR1cm4gcmVzLnRlbXBsYXRlcztcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9KVxuICAgICAgICAudGhlbihpZHMgPT4ge1xuICAgICAgICAgIGxldCB0bXBsSWRzID1cbiAgICAgICAgICAgIGlkcyAmJiBpZHMubGVuZ3RoID8gaWRzLm1hcChpdGVtID0+IGl0ZW0udGVtcGxhdGVJZCkgOiBbXTtcbiAgICAgICAgICB3eC5yZXF1ZXN0U3Vic2NyaWJlTWVzc2FnZSh7XG4gICAgICAgICAgICB0bXBsSWRzOiB0bXBsSWRzLFxuICAgICAgICAgICAgc3VjY2VzcyhyZXMpIHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coJ2luIHN1Y2Nlc3MnLCByZXMpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKCdpbiBmYWlsJywgcmVzKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBjb21wbGV0ZShyZXMpIHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coJ2luIGNvbXBsZXRlJywgcmVzKTtcbiAgICAgICAgICAgICAgd3gubG9naW4oe1xuICAgICAgICAgICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcbiAgICAgICAgICAgICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgICAgICAgICAgIHVybDogJy9sb2dpbi92ZXJpZnlDb2RlJyxcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmVyaWZ5Q29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY29va2llOiByZXMuaGVhZGVyWydTZXQtQ29va2llJ10sXG4gICAgICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgLnRoZW4oXG4gICAgICAgICAgICAgICAgICAgICAgICAoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjb29raWUsXG4gICAgICAgICAgICAgICAgICAgICAgICB9OiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZlcmlmeUNvZGU6IHN0cmluZztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY29va2llOiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBtaXhwd2QgPSBtZDUocHdkKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhY2NvdW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXJpZnlDb2RlOiB2ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcy5sZW5ndGhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPyB1c2VyUm9sZXNbMF0uY2hpbGRzXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDogW107XG4gICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB3eC5zZXRTdG9yYWdlU3luYygndG9rZW4nLCB0b2tlbik7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge31cbiAgICAgICAgICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn55m75b2V6I635Y+WY29kZeWksei0pScsXG4gICAgICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH1cbiAgICAvLyBmZXRjaCgpXG4gICAgLy8gd3gucmVkaXJlY3RUbyh7XG4gICAgLy8gICB1cmw6ICcvcGFnZXMvaG9tZS9ob21lJ1xuICAgIC8vIH0pXG4gIH0sXG4gIGNvZGVMb2dpbigpIHtcbiAgICB3eC5sb2dpbih7XG4gICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICBjb25zdCBjb2RlID0gcmVzLmNvZGU7XG4gICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgdXJsOiAnL2Jvc3MvbG9naW4nLFxuICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcy5sZW5ndGhcbiAgICAgICAgICAgICAgICA/IHVzZXJSb2xlc1swXS5jaGlsZHNcbiAgICAgICAgICAgICAgICA6IFtdO1xuICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgIHd4LnNldFN0b3JhZ2VTeW5jKCd0b2tlbicsIHRva2VuKTtcbiAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgIHd4LnJlZGlyZWN0VG8oe1xuICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiAn55m75b2V6I635Y+WY29kZeWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfSk7XG4gIH0sXG4gIG5hbWVJbnB1dEhhbmRsZShlKSB7XG4gICAgY29uc3QgdmFsdWUgPSBlLmRldGFpbC52YWx1ZTtcbiAgICB0aGlzLnVwZGF0ZUlucHV0VmFsdWUoJ2FjY291bnQnLCB2YWx1ZSk7XG4gIH0sXG4gIHBhc3N3YXJkSW5vdXRIYW5kbGUoZSkge1xuICAgIGNvbnN0IHZhbHVlID0gZS5kZXRhaWwudmFsdWU7XG4gICAgdGhpcy51cGRhdGVJbnB1dFZhbHVlKCdwd2QnLCB2YWx1ZSk7XG4gIH0sXG4gIHVwZGF0ZUlucHV0VmFsdWUoa2V5OiBzdHJpbmcsIHZhbHVlOiBzdHJpbmcpIHtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIFtrZXldOiB2YWx1ZSxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/index/index.ts
View file @
ec2f9691
...
@@ -107,8 +107,22 @@ Page({
...
@@ -107,8 +107,22 @@ Page({
if
(
this
.
validateLoginData
())
{
if
(
this
.
validateLoginData
())
{
const
{
account
,
pwd
}
=
this
.
data
;
const
{
account
,
pwd
}
=
this
.
data
;
console
.
log
(
account
,
pwd
);
console
.
log
(
account
,
pwd
);
systemFetch
({
url
:
'/boss/login/init/data'
,
method
:
'GET'
,
})
.
then
(
res
=>
{
console
.
log
(
res
);
return
res
.
templates
;
})
.
catch
(
err
=>
{
return
;
})
.
then
(
ids
=>
{
let
tmplIds
=
ids
&&
ids
.
length
?
ids
.
map
(
item
=>
item
.
templateId
)
:
[];
wx
.
requestSubscribeMessage
({
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'WU2yMHKM_yNPLGHRsstggnnGIgcRgDEIaJQiWWNJ9ss'
]
,
tmplIds
:
tmplIds
,
success
(
res
)
{
success
(
res
)
{
console
.
log
(
'in success'
,
res
);
console
.
log
(
'in success'
,
res
);
},
},
...
@@ -193,6 +207,10 @@ Page({
...
@@ -193,6 +207,10 @@ Page({
});
});
},
},
});
});
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
}
}
// fetch()
// fetch()
// wx.redirectTo({
// wx.redirectTo({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment