<script>
    
    var QQMapWX = require("./utils/qqmap-wx-jssdk.min.js");
    var qqmapsdk;
    
    import { config } from '@/apis/interfaces/wxJSDK'
	export default {
		onLaunch() {
		    // config({
		    //     list    : ["requestPayment", "updateAppMessageShareData"],
		    //     url     : location.href.split('#')[0]
		    // }).then(res=>{
		    //     this.$wx.config(res)
		    // })
            
            this.qqmapsdk = new QQMapWX({
                key: '4KYBZ-LCAKF-QWOJN-NIDNZ-FZHLZ-2XFW7'
            }); // 版本更新提示
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
        globalData:{
            envType : '',
            shareObj : {
                type    : '',
                goodsId : '',
                userId  : ''
            }
        }
	}
</script>

<style>
	/*每个页面公共css */
    page {
        background-color: #f3f3f3;    
    }
    
    /* 文字截取 */
    .nowrap {
    	max-width: 100%;
    	overflow: hidden;
    	white-space: nowrap;
    	text-overflow: ellipsis;
    }
    
    .nowrap-multi {
    	display: -webkit-box;
    	overflow: hidden;
    	text-overflow: ellipsis;
    	-webkit-box-orient: vertical;
    	-webkit-line-clamp: 2;
    }
    
    /* 水平居中 */
    .pack-center {
    	display: -webkit-box;
    	-webkit-box-orient: vertical;
    	-webkit-box-pack: center;
    	position: absolute;
    	left: 0;
    	right: 0;
    	top: 0;
    	bottom: 0;
    	z-index: -1;
    }
    
    /* 页面信息提醒 */
    .pages-hint {
    	text-align: center;
    	color: #747788;
    	font-size: 28rpx;
    	background: white;
    }
    
    .pages-hint image {
    	width: 188rpx;
    	height: 188rpx;
    }
    
    /* 上拉加载 */
    .pagesLoding{
        text-align: center;
        line-height: 90rpx;
        color: gray;
    }
    
    .pagesLoding-icon{
        width: 28rpx;
        height: 28rpx;
        vertical-align: middle;
        margin-right: 10rpx;
        margin-bottom: 3rpx;
    }
    
    /* 下边框 */
    .uni-border-top,
    .uni-border-bottom {
    	position: relative;
    }
    
    .uni-border-top::after,
    .uni-border-bottom::after {
    	position: absolute;
    	content: '';
    	left: 0;
    	width: 100%;
    	height: 2rpx;
    	background: #f3f3f3;
    }
    
    .uni-border-top::after {
    	top: 0;
    }
    
    .uni-border-bottom::after {
    	bottom: 0;
    }
</style>
