Commit ec2f9691 by 姜雷

Merge branch 'develop' into test

parents 8296f540 5ed10c4b
...@@ -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({
......
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