Commit e8b0645c authored by 李晓兵's avatar 李晓兵

'jpush'

parent f27f3b1a
...@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService' ...@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
import Jmessage from './scripts/jmessageService' import Jmessage from './scripts/jmessageService'
// if (process.env.CONFIG_ENV === 'uat') { // if (process.env.CONFIG_ENV === 'uat') {
const VConsole = require('vconsole') //const VConsole = require('vconsole')
new VConsole() // eslint-disable-line // new VConsole() // eslint-disable-line
// } // }
Vue.use(componentInstall) Vue.use(componentInstall)
......
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
_jpush_config: function (tagOption) { _jpush_config: function (tagOption) {
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) {
tags.push(tagOption[key]) tags.push(tagOption[key])
...@@ -201,9 +201,9 @@ export default { ...@@ -201,9 +201,9 @@ export default {
} */ } */
window.plugins.jPushPlugin.setTags({sequence: Number(phone), tags: tags}, window.plugins.jPushPlugin.setTags({sequence: Number(phone), tags: tags},
function (result) { function (result) {
alert('11'+result.tags) // alert('11'+result.tags)
}, function (error) { }, function (error) {
alert('22'+error.code) // alert('22'+error.code)
}) })
} }
}, },
......
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