123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <script>
- export default {
- onLaunch: function() {
- console.log('App Launch');
-
- var info = plus.push.getClientInfo();
- console.log(JSON.stringify(info));
- uni.setStorageSync('clientid', info.clientid);
-
-
- plus.push.addEventListener("receive", function(msg) {
- console.log("(receive):" + JSON.stringify(msg));
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }, false);
-
-
-
- plus.push.addEventListener("click", function(msg) {
- console.log("(click):" + JSON.stringify(msg));
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }, false);
-
- },
- onShow: function() {
- console.log('App Show');
-
-
-
- },
- onHide: function() {
- console.log('App Hide');
-
-
-
-
- }
- }
- </script>
- <style>
- @import url("./static/font/iconfont.css");
-
- html {
- width: 100%;
- height: 100%;
- background: #f9fafb;
- }
- body {
- height: 100%;
- box-sizing: border-box;
-
- }
- #app {
- margin: 0px;
- padding: 0px;
- font-family: "PingFangSC-Regular";
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- text-align: center;
- font-size: 14px;
- color: rgb(51, 51, 51);
- width: 100%;
- height: 100%;
- }
-
- .seimin-btn-hover {
- box-shadow: 0px 0px 8px rgba(0, 0, 0, .1) inset !important;
- }
- .uni-picker-action-confirm{
- color: #49b856!important;
- }
- </style>
|