Commit 4dd05e10 authored by 胡's avatar

fix: 极光推送优化

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