nalinv-mobile/App.vue

33 lines
774 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script>
import updateApp from '@/common/updateApp';
export default {
onLaunch() {
updateApp.updateAppVersion(this,false);
// 加入极光推送
console.log('App Launch');
},
/*onShow() {
this.updateBadge(); // 更新角标
},*/
methods: {
// 更新角标的方法
/*updateBadge() {
let value = uni.getStorageSync("mes_notice"); // 获取当前消息数量
if(value != ''){
plus.runtime.setBadgeNumber(value.length); // 如果消息数量大于0,则显示角标
}else{
plus.runtime.setBadgeNumber(-1);// 否则隐藏角标
}
}*/
}
}
</script>
<style>
@import url("@/static/iconfont/iconfont.css");
</style>
<style lang="scss">
@import "uview-ui/index.scss";
@import "pages/common/common.scss";
</style>