12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <script>
- export default {
- globalData: {
- postHeader: null,
- uuid: '',
- skey: '',
- postHeader: null,
- systemInfo: null
- },
- beforeDestroy() {},
- onLaunch: function(options) {
- let systemInfo = uni.getSystemInfoSync();
- this.globalData.uuid = systemInfo.deviceId;
- let skey = uni.getStorageSync("wapptoken");
- if (skey != null && skey != "" && skey != undefined) {
- this.globalData.skey = skey;
- }
- },
- onShow: function(options) {
- console.log('App Show');
- // setTimeout(()=>{
- // uni.hideTabBar()
- // },100)
- },
- onHide: function() {
- console.log('App Hide');
- },
- onAppBackground() {},
- methods: {}
- };
- </script>
- <style>
- /*每个页面公共css */
- @import 'colorui/main.css';
- @import 'colorui/icon.css';
- @import 'style/FontStyle.css';
- @import "uni_modules/cl-uni/index.scss";
- body {
- -webkit-text-size-adjust: none;
- overscroll-behavior-y: contain;
- -webkit-overflow-scrolling: touch;
- background-color: #161616;
- background: url('./static/w3/bg.png');
- background-size: 750rpx 1624rpx;
- background-repeat: repeat-y;
- }
- /* 超出一行省略号 */
- .one-omit {
- white-space: nowrap;
- /*规定段落中的文本不进行换行*/
- overflow: hidden;
- /*内容会被修剪,并且其余内容是不可见的。*/
- text-overflow: ellipsis;
- /*显示省略号来代表被修剪的文本*/
- }
- .two-omit {
- display: -webkit-box;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-box-orient: vertical;
- }
- img {
- width: 100%;
- }
- uni-modal {
- z-index: 998 !important;
- }
- .cu-modal {
- z-index: 997 !important;
- }
- </style>
|