|
@ -451,6 +451,17 @@ Page({ |
|
|
url: '../../pages/login/login' |
|
|
url: '../../pages/login/login' |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
toPlugin () { |
|
|
|
|
|
let token = wx.getStorageSync('token') |
|
|
|
|
|
api.getCustomId().then(res => { |
|
|
|
|
|
if (res.code == 0 && res.msg == 'success') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: `plugin://work-plugin/main?token=${token}&customerId=${res.data}`, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |