Commit 4dd05e10 authored by 胡's avatar

fix: 极光推送优化

parent 9aabd347
......@@ -144,9 +144,10 @@ export default {
// vm.$router.push('tab')
vm.$router.push('/choose-user');
let tagOption = {
'username': vm.username,
}
vm.Jpush._jpush_config(tagOption)
'username': isNaN(Number(vm.username)) ? '11111111111': vm.username
}
let phone = isNaN(Number(vm.username)) ? '11111111111': vm.username;
vm.Jpush._jpush_config(tagOption, phone);
} else {
hlsPopup.hideLoading()
hlsPopup.showLongCenter(res.message)
......
......@@ -188,9 +188,9 @@ export default {
},
// 极光推送
_jpush_config: function (tagOption) {
_jpush_config: function (tagOption, phone) {
if (process.env.isMobilePlatform) {
let phone = window.localStorage.user_phone
// let phone = window.localStorage.user_phone
// alert('phone'+phone)
let tags = []
for (let key in tagOption) {
......
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