Commit 7eea27b0 authored by 李晓兵's avatar 李晓兵

'推送'

parent 55631cb8
......@@ -5,7 +5,7 @@ export default {
// 获取设备号
onGetRegistrationID: function (data) {
try {
// alert("JPushPlugin:registrationID is " + JSON.stringify(data));
alert("JPushPlugin:registrationID is " + JSON.stringify(data));
if (data.length != 0) {
window.localStorage.setItem('registrationID', data)
}
......@@ -13,7 +13,7 @@ export default {
window.setTimeout(this.getRegistrationID, 1000)
}
} catch (exception) {
// alert(angular.toJson(exception));
alert('###'+angular.toJson(exception));
}
},
// 获取设备号
......@@ -183,6 +183,7 @@ export default {
_jpush_config: function (tagOption) {
if (process.env.isMobilePlatform) {
let phone = window.localStorage.user_phone
alert('phone'+phone)
let tags = []
for (let key in tagOption) {
tags.push(tagOption[key])
......@@ -192,9 +193,9 @@ export default {
} */
window.plugins.jPushPlugin.setTags({sequence: Number(phone), tags: tags},
function (result) {
// alert(result.tags)
alert('11'+result.tags)
}, function (error) {
// alert(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