<script>
	import api from "@/ajax/api.js"
	import store from "@/store/index.js"
	export default {
		globalData: {
			skRSAPublicKey: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsYWp5UANmyoaXbhza0N23fzh2ciKYl/u2J30VhCzTFG4tldFTLaYOmTNFRWstUFPRaHp0vALjAW2espTuSpQQVawy2rqpQcIMcMS+W9cDtgvcVp/L3yFge2RdEQKXK3lxv7Iu8H4mA9SKfDRKjyb/pu2nVi4bcwdJidPW7NKnAZ+ejjiZesVAZ9/FWPseHg5w9qzGSY8arPJSGHzaeDSIq9oEZo0A3/N5xLyQEzp2a1jktuukCPZB2+9z9eGzAoD2vHK3WEypBbmg8jYVNPPWZ1p1of0h/2I+hTH7ZTW6jePvDHuGSU/U1Ql5DuBh2pmyqFN8FyTUfv12MihNzEwhwIDAQAB",
			aes: "1234123412ABCDEF",
			iv: "ABCDEF1234123412"
		},
		onInit: function() {

		},
		onLaunch: function() {
			// console.log('App Launch')
			console.log(this.$u.config.v);

			var script = document.createElement('script')
			script.src = 'https://ssl.captcha.qq.com/TCaptcha.js'
			document.body.appendChild(script)
		},
		onShow: function() {
			//隐私协议 获取是否隐藏和开启市场和转赠
			api.aboutall().then(res => {
				store.commit("change_send", res.data.zeng) //判断是否开启转赠
				store.commit("change_market", res.data.is_mark) //判断是否开启转售
				store.commit("change_kg", res.data.is_kg) //判断是否开启转售
				if (res.data.is_mark == 1) {

				} else {
					uni.setTabBarItem({
						index: 1,
						visible: false
					})

				}
			})
		}

	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
</style>

<style>
	@font-face {
		font-family: AlibabaSans-Black;
		src: url('https://b216.oss-cn-hangzhou.aliyuncs.com/98/c26977f10e409e4cce3c8007d5226b.otf');
		// src: "";
	}


	page {
		background: #171918;
		color: #000;
		height: 100vh;
	}


	.container {
		height: 100vh;
		width: 750rpx;
		overflow-y: scroll;
		background: #171918;
		color: #fff;
	}

	.uni-tabbar {
		padding-bottom: 30rpx !important;
	}



	.zindex999 {
		position: relative;
		z-index: 999;
	}

	.shadow {
		box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.1607843137254902);
	}

	.text_hide {
		overflow-x: hidden;
		text-overflow: ellipsis;
		/* 当对象内文本溢出时显示省略标记(...) ；需与overflow:hidden;一起使用。*/
		word-break: keep-all;
		/* 不换行 */
		white-space: nowrap;
		/* 不换行 */
	}

	/* 从下弹出样式 */
	.pop_down {
		height: 100vh;
		width: 100%;
		background: rgba(0, 0, 0, .6);
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
		display: flex;
		justify-content: center;
		transform: translateY(-100vh);
		animation: down 1s;
		animation-fill-mode: forwards;
	}

	.pop_down>view {
		align-self: center;
	}

	/* //若影若现弹出样式 */
	.pop_ocy {
		height: 100vh;
		width: 100%;

		background: rgba(0, 0, 0, .6);
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
		display: flex;
		justify-content: center;
		animation: ocy .5s;
		animation-fill-mode: forwards;
		opacity: 0
	}


	/* #ifdef H5 */
	uni-page-body {
		height: 100%;
	}

	/* #endif */

	.pop_ocy>view {
		align-self: center;
	}

	@keyframes down {
		0% {}

		100% {
			transform: translateY(0);
		}
	}

	@keyframes ocy {
		0% {}

		100% {
			opacity: 1;
		}
	}

	@keyframes rotate {
		0% {
			transform: rotateY(0deg);
			/*从0度开始*/
		}

		100% {
			transform: rotateY(360deg);
			/*360度结束*/
		}
	}

	.systemColor {
	/* 	background: linear-gradient(to bottom, #F2CF9C, #FFDEB3,#794013);
		-webkit-background-clip: text;
		display: inline-block;
		color: transparent; */
		color: #6E4DFF; 
		
		
	}

	.systemBcg {
		background: #F2CF9C;
	}


	/* .bcgBlack {
		background: #fff;
	}
 */
	.colorBlack {
		color: #fff;
	}

	.bcgWhite {
		background: #000;
	}

	.colorWhite {
		color: #000;
	}
	
	/deep/ p img {
		width: 100%;
	}
	
</style>
