<template>
	<view class="page">

		<view class="m-banner-img">
			<view class="member-top">
				<navigator url="/member/member/data" class="m-user-info">
					<image lazy-load :src="(userInfo.user_avatar)" mode="scaleToFill" />
					<view class="m-name">
						<label>{{userInfo.user_nickname}}</label>
						<text v-if="fxData.user_role.user_role_name"> - </text>
						<text class="sup">{{fxData.user_role.user_role_name}}</text>
					</view>
				</navigator>
				<view class="g-flex member-order-tab">
					<navigator url="/member/fans/endorsement" class="g-flex-item">
						<view class="iconfont zc zc-qrcode i-type"></view>
						{{__('生成推广码')}}
					</navigator>
					<navigator url="/pagesub/westore/index" class="g-flex-item" v-if="plantform_fx_westore_enable">
						<view class="iconfont zc zc-dianpu i-type"></view>
						{{__('我的小店')}}
					</navigator>
				</view>
			</view>
		</view>
		<view class="m-panel-bd">
			<view class="m-media-box m-media-box-small-appmsg">
				<view :class="{'m-cells':1, iconBoxLattice:true}">
					<navigator v-if="true" url="/member/fans/list" class="m-cell m-cell-access">
						<view class="m-cell-hd " style="color:#db384c">
							<label >{{fxData.all_num}}</label>
						</view>
						<view class="m-cell-bd m-cell-primary">
							<p>{{__('累计邀请')}}</p>
						</view>
						<text class="m-cell-ft"></text>
					</navigator>

                    	<navigator v-if="true" url="/member/fans/list" class="m-cell m-cell-access">
                    		<view class="m-cell-hd " style="color:#db384c">
                    			<label >{{fxData.month_num}}</label>
                    		</view>
                    		<view class="m-cell-bd m-cell-primary">
                    			<p>{{__('本月新增')}}</p>
                    		</view>
                    		<text class="m-cell-ft"></text>
                    	</navigator>

                        <navigator v-if="true" url="/member/fans/profitlist" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.user_commission_now}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('累计佣金')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                        <navigator v-if="commission_withdraw_mode==0" url="/member/cash/commissionapply" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.user_commission_now}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('佣金提现')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>
                        <navigator v-else url="/member/cash/commissionwithdraw" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.user_commission_now}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('佣金提现')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                        <navigator v-if="false" url="/member/fans/index" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.product_num}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('推广商品')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                        <navigator v-if="false" url="/member/fans/index" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.order_num}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('推广订单')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                    	<navigator v-if="false" url="/member/fans/index" class="m-cell m-cell-access">
                    		<view class="m-cell-hd " style="color:#db384c">
                    			<label >{{fxData.finish_nums}}</label>
                    		</view>
                    		<view class="m-cell-bd m-cell-primary">
                    			<p>{{__('完成订单')}}</p>
                    		</view>
                    		<text class="m-cell-ft"></text>
                    	</navigator>


                        <navigator v-if="true" url="/member/fans/profitlist?level=1" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.commission_buy_amount_0}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('累计消费奖')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                        <navigator v-if="fxData.user_role.user_is_sp" url="/member/fans/profitlist?level=6" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.commission_directseller_amount_0}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('累计销售奖')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                        <navigator v-if="fxData.user_role.user_is_pt" url="/member/fans/profitlist?level=15" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.commission_partner_buy_trade}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('合伙消费奖')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                        <navigator v-if="fxData.user_role.user_is_pt" url="/member/fans/profitlist?level=25" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.commission_partner_directseller_trade}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('合伙销售奖')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>


                        <navigator v-if="fxData.user_role.user_is_ca" url="/member/fans/profitlist?level=10" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.commission_buy_ca}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('市代消费奖')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                        <navigator v-if="fxData.user_role.user_is_ca" url="/member/fans/profitlist?level=20" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.commission_directseller_ca}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('市代销售奖')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>



                        <navigator v-if="fxData.user_role.user_is_da" url="/member/fans/profitlist?level=11" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.commission_buy_da}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('区代消费奖')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>

                        <navigator v-if="fxData.user_role.user_is_da" url="/member/fans/profitlist?level=21" class="m-cell m-cell-access">
                        	<view class="m-cell-hd " style="color:#db384c">
                        		<label >{{fxData.commission_directseller_da}}</label>
                        	</view>
                        	<view class="m-cell-bd m-cell-primary">
                        		<p>{{__('区代销售奖')}}</p>
                        	</view>
                        	<text class="m-cell-ft"></text>
                        </navigator>



				</view>
			</view>
		</view>



		<view style="margin-left: 20rpx;margin-top: 20rpx;margin-bottom: 10rpx;">
		    <text>{{__('最近收入')}}</text>
		</view>
		<view class="qiun-charts" >
			<!--#ifdef MP-ALIPAY -->
			<canvas canvas-id="canvasLineA" id="canvasLineA" class="charts" :width="cWidth*pixelRatio" :height="cHeight*pixelRatio" :style="{'width':cWidth+'px','height':cHeight+'px'}" @touchstart="touchLineA" @touchmove="moveLineA" @touchend="touchEndLineA"></canvas>
			<!--#endif-->
			<!--#ifndef MP-ALIPAY -->
			<canvas canvas-id="canvasLineA" id="canvasLineA" class="charts" @touchstart="touchLineA" @touchmove="moveLineA" @touchend="touchEndLineA"></canvas>
			<!--#endif-->
		</view>

		<!-- #ifdef APP-PLUS -->
		<share-box-app :shareDataDefault="shareData" ref="shareBoxApp"></share-box-app>
		<!-- #endif -->
		<!-- #ifdef MP-WEIXIN -->
		<share-box-mp :shareDataDefault="shareData" @cancelShare="cancelShare" @showCodeImg="showCodeImg" @shareQRCode="shareQRCode"
					  @saveImg="saveImg"  ref="shareBoxMp"></share-box-mp>
		<!-- #endif -->
	</view>
</template>

<script>
	import shareBoxMp from '../../components/share-box-mp.vue'
	import shareBoxApp from '../../components/share-box-app.vue'

	import uCharts from './u-charts/u-charts.min.js';

	import {
		mapState,
		mapMutations
	} from 'vuex'

	var _self;
	var canvaLineA=null;
	var lastMoveTime=null;//最后执行移动的时间戳


	export default {
		data() {
			return {

				fxData:{
					base:{},
					member_info:{},
					user_role:{}
				},

				PageQRCodeInfo: {
					Path: "",
					IsShare: false,
					IsShareBox: false,
					IsJT: false
				},
				shareData:{},



				cWidth:'',
				cHeight:'',
				pixelRatio:1,
				Interactive:'',//交互显示的数据
				plantform_fx_westore_enable: 0,
				
				isShowMoney:true,
				commission_withdraw_mode:0
			}
		},
		computed: mapState(['Config', 'StateCode', 'notice', 'plantformInfo', 'shopInfo', 'userInfo', 'hasLogin']),
		components: {
			shareBoxMp,
			shareBoxApp
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title:this.__('推广中心')
			});

			var that = this;
			this.refreshData();

            this.getPlantformInfo(function(plantformInfo) {
                that.setData({
					plantform_fx_westore_enable: plantformInfo.config.plantform_fx_westore_enable
                });
				
				that.commission_withdraw_mode = plantformInfo.config.plantform_commission_withdraw_mode || 0
				
				//如果启用了支付方式
				if (that.$.inArray(plantformInfo.payment_channel_code_row, 'money'))
				{
					that.isShowMoney = true;
				}
				else
				{
					that.isShowMoney = false;
				}
            });
			

				_self = this;
				//#ifdef MP-ALIPAY
				uni.getSystemInfo({
					success: function (res) {
						if(res.pixelRatio>1){
							//正常这里给2就行，如果pixelRatio=3性能会降低一点
							//_self.pixelRatio =res.pixelRatio;
							_self.pixelRatio =2;
						}
					}
				});
				//#endif
				this.cWidth=uni.upx2px(750);
				this.cHeight=uni.upx2px(450);
				this.getServerData();
		},
		onShareAppMessage() {
			return {
				title: this.userInfo.user_nickname,
				path: "/pagesub/westore/index?wd_id=" + this.userInfo.user_id
			}
		},
		onBackPress() {
			// #ifdef APP-PLUS
			if (this.$refs.shareBoxApp.showBoxView) {
				this.$refs.shareBoxApp.cancel();
				return true;
			}
			// #endif
			// #ifdef MP-WEIXIN
			if (this.$refs.shareBoxMp.showBoxView) {
				this.$refs.shareBoxMp.cancel();
				return true;
			}
			// #endif
		},
		onUnload() {
			// #ifdef APP-PLUS
			if (this.$refs.shareBoxApp.showBoxView) {
				this.$refs.shareBoxApp.cancel();
			}
			// #endif
			// #ifdef MP-WEIXIN
			if (this.$refs.shareBoxMp.showBoxView) {
				this.$refs.shareBoxMp.cancel();
			}
			// #endif
		},
		onNavigationBarButtonTap(e) {
			var that = this;

			if (e.index === 0) {
				that.onShareBox(e);
			} else {
				uni.showToast({
					title: "你点了收藏按钮",
					icon: "none"
				})
			}
		},
		methods: {
			...mapMutations(['login', 'logout', 'getPlantformInfo', 'forceuserInfo', 'getuserInfo']),

			refreshData: function(callback) {

				var that = this;
				let params = {};

				that.$.request({
					url: this.Config.URL.fx.index,
					data: params,
					/* ajaxCache: {
                        timeout: this.Config.CACHE_EXPIRE
                    }, */
					success: function(data, status, msg, code) {
						that.setData({
							fxData: data
						})
					}
				});
			},
			onShareBox: function(e) {

				let that = this;
				var $href = that.$.sprintf('%s/tmpl/member/directseller_store.html?u_id=%d&FX=%d', this.Config.WapSiteUrl, this.post.wd_id, this.userInfo
						.user_id);


				$href = that.$.sprintf('%s/h5/pagesub/westore/index?wd_id=%s&uid=%d', that.Config.SiteUrl, this.post.wd_id, this.userInfo.user_id);

				// 如允许点击超链接跳转，则应该打开一个新页面，并传入href，由新页面内嵌webview组件负责显示该链接内容
				// #ifdef APP-PLUS
				// #endif

				// #ifdef MP-WEIXIN
				$href = "/pagesub/westore/index?wd_id=" + this.post.wd_id;
				// #endif

				this.setData({
					shareData: {
						shareTitle: this.store_data.westore_name,
						shareText: this.store_data.westore_name,
						href: $href,
						image: this.store_data.invite_info.qrcode
					}
				});

				// 如允许点击超链接跳转，则应该打开一个新页面，并传入href，由新页面内嵌webview组件负责显示该链接内容
				// #ifdef APP-PLUS
				this.$refs.shareBoxApp.show();
				// #endif

				// #ifdef MP-WEIXIN
				this.$refs.shareBoxMp.show();
				// #endif
			},







				getServerData(){
						let that = this;
						that.$.request({
							url: this.Config.URL.fx.getCommissionTimeline,
							data: {},
							/* ajaxCache: {
								timeout: this.Config.CACHE_EXPIRE
							}, */
							success: function(data, status, msg, code) {
									_self.showLineA("canvasLineA", data);

							}
						});
				},
				showLineA(canvasId,chartData){
					canvaLineA=new uCharts({
						$this:_self,
						canvasId: canvasId,
						type: 'line',
			  colors:['#facc14', '#f04864', '#8543e0', '#90ed7d'],
						fontSize:11,
						padding:[15,15,0,15],
						legend:{
							show:true,
							padding:5,
							lineHeight:11,
							margin:0,
						},
						dataLabel:false,
						dataPointShape:true,
						background:'#FFFFFF',
						pixelRatio:_self.pixelRatio,
						categories: chartData.categories,
						series: chartData.series,
						animation: true,
						xAxis: {
							type:'grid',
							gridColor:'#CCCCCC',
							gridType:'dash',
							dashLength:8,
							//disableGrid:true
						},
						yAxis: {
							gridType:'dash',
							gridColor:'#CCCCCC',
							dashLength:8,
						},
						width: _self.cWidth*_self.pixelRatio,
						height: _self.cHeight*_self.pixelRatio,
						extra: {
							line:{
								type: 'straight'
							}
						}
					});

				},
				touchLineA(e) {
					lastMoveTime=Date.now();
				},
				moveLineA(e){
					let currMoveTime = Date.now();
					let duration = currMoveTime - lastMoveTime;
					if (duration < Math.floor(1000 / 60)) return;//每秒60帧
					lastMoveTime = currMoveTime;

					let currIndex=canvaLineA.getCurrentDataIndex(e);
					if(currIndex>-1&&currIndex<canvaLineA.opts.categories.length){
						let riqi=canvaLineA.opts.categories[currIndex];
						let leibie=canvaLineA.opts.series[0].name;
						let shuju=canvaLineA.opts.series[0].data[currIndex];
						this.Interactive=leibie+':'+riqi+'-'+shuju+'元';
					}
					canvaLineA.showToolTip(e, {
						format: function (item, category) {
							return category + ' ' + item.name + ':' + item.data
						}
					});
				},
				touchEndLineA(e){
					let currIndex=canvaLineA.getCurrentDataIndex(e);
					if(currIndex>-1&&currIndex<canvaLineA.opts.categories.length){
						let riqi=canvaLineA.opts.categories[currIndex];
						let leibie=canvaLineA.opts.series[0].name;
						let shuju=canvaLineA.opts.series[0].data[currIndex];
						this.Interactive=leibie+':'+riqi+'-'+shuju+'元';
					}
					canvaLineA.touchLegend(e);
					canvaLineA.showToolTip(e, {
						format: function (item, category) {
							return category + ' ' + item.name + ':' + item.data
						}
					});
				}/*,
				changeData(){
					if(isJSON(_self.textarea)){
						let newdata=JSON.parse(_self.textarea);
						canvaLineA.updateData({
							series: newdata.series,
							categories: newdata.categories
						});
					}else{
						uni.showToast({
							title:'数据格式错误',
							image:'../../../static/images/alert-warning.png'
						})
					}
				}*/
		}
	}
</script>

<style lang="scss">

	@import '../../styles/_variables.scss';


	.u-loadmore
	{
		width: 100%;
	}


	.member-top {
		-webkit-animation: changeBg 20s infinite;
		animation: changeBg 20s infinite;
		background-color: #f30213;
		background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZ4AAADhBAMAAAAKUc6cAAAAD1BMVEX///////9MaXH////////RWIOUAAAABXRSTlMiEQAzRBQVqpYAAAlZSURBVHhezNpRkpswDAZged0DyOQCDSdwxnuAzmzuf6aGJuEvGEsWIpvVSx8AO59/YWCnNN7qNy1qvFfqqFGu9LIq96p+OE3TMi1qGG91TskLqsdgCvd/iMIhnrzpoWV96ByUJR6a6p+GvKK4EVB4eM6VBxwXqEpnWR7PqdSgj4bnAo4HtB6FqjrCk1eeejsoF+N93OEBJ+ZDQFzqgIZNTyyXZKuho914Hh0eF6jUAY1bnlhKTseAtpptfQu7Gw7jhU1P2eFJWrshHszvDIirgAZ4Fhz0W38pHnDg8QZU1gGNG5640zOI7Ybh62fgAQ2X592t2q8LPG7QxnMH02sBMY52BjTOnnG5fmVXDwjthuHhkQOqjusBfWx5CjzugM6NeEpRPLhAySgioGlzg4eX86Vd1fSQ7AkCRwEhIBpmDzaEhzenfdXwsOYROAqIZ8/EgeeM6bAdeDuu/n1x00MaR2+5ezrwjPz/dGlvae2me8DRQRh+Wkl45oYraDd/QIhH9QThJRxosdaekTBbaD4NVJAYDxZM8BDtAg1rz2/p7sES9weUDB612/QXo7Vn5Pbmxt2jpjoe1j0kxYOyeUZucSzLNAjxqB7g7QENlWdkKpnkdHRQj4eaHiJ3QFS1SM2xrxPazeJh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TUq54dNhIkUNaszPdB4v369RGqPx+zn3ktD+xXMde7CLqOhzxYZNB2HQ9kTS7oIp48WjnpBPV7crLn+x6etSNP8dS7nsezXdPzeDjRw+PJOer/YB9PLY+7EO7vGR/nGf0eFA839Wztx+c8z7A9/gHyPcieTRm3fg8jFaRwSvdsSj39npke8qWE5fEL8jmlehbI5/ieuQ/ahhRED/8/0uj3paVUzxwrwo5u9zC6g+uZzZwKHreg48UEj1rQ8RWW7iF897EggscsSDhkFTwiqIw1SPCIE2fs9QoeEQQCiODxQMovFcHjgZS7RAWPthTKuUwQPFZF0nWP4BFjiBA87g9wzcARPBqpXpeH4NFMFccR0dM/jYXo6ReB5+kXgeXpNxW7+QGaJMQFymoTmAAAAABJRU5ErkJggg==');
		background-size: cover;
		text-align: center;
		width: 100%;
		/*height: 11rem;*/

		overflow: hidden;
		height: 480rpx; /* 320 */

		color: #fff;
		position: relative;
		z-index: 1;
	}

	@-webkit-keyframes changeBg {
		0% {
			background-color: #f30213;
		}

		90% {
			background-color: #f30213;
		}

		10% {
			background-color: #fb6e52;
		}

		20% {
			background-color: #ffce55;
		}

		30% {
			background-color: #a0d468;
		}

		40% {
			background-color: #48cfae;
		}

		50% {
			background-color: #4fc0e8;
		}

		60% {
			background-color: #5d9cec;
		}

		70% {
			background-color: #ac92ed;
		}

		80% {
			background-color: #ec87bf;
		}
	}

	@keyframes changeBg {
		0% {
			background-color: #f30213;
		}

		90% {
			background-color: #f30213;
		}

		10% {
			background-color: #fb6e52;
		}

		20% {
			background-color: #ffce55;
		}

		30% {
			background-color: #a0d468;
		}

		40% {
			background-color: #48cfae;
		}

		50% {
			background-color: #4fc0e8;
		}

		60% {
			background-color: #5d9cec;
		}

		70% {
			background-color: #ac92ed;
		}

		80% {
			background-color: #ec87bf;
		}
	}

	.m-banner-img {
		width: 100%;
		/*height: 200rpx;*/
		vertical-align: top;
		position: relative;
	}

	.m-user-info {
		text-align: center;
		/*
		position: absolute;
		top: 115rpx;
		width: 140rpx;
		height: 140rpx;
		left: 50%;
		margin-left: -70rpx;
		*/
		z-index: 3;
		color: #666;
		margin-top:100rpx;
	}

	.m-user-info image {
		width: 140rpx;
		height: 140rpx;
		border-radius: 120rpx;
		border: 1px solid #fff;
		vertical-align: middle;
		box-shadow: 0px 2rpx 15rpx rgba(0, 0, 0, 0.35);

		position: absolute;
		left:305rpx;
	}

	.m-user-info .m-name {
		position: absolute;
		top:260rpx;
		text-align: center;
		width: 750rpx;
	}

	.m-user-info text, .m-user-info label {
		line-height: 70rpx;

		font-size: 28rpx;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		color: #fff;
		font-weight: bold;
	}

	.m-user-info .Phone {
		width: 140rpx;
		height: 140rpx;
		border-radius: 120rpx;
		border: 1px solid #fff;
		vertical-align: middle;
		box-shadow: 0px 2rpx 15rpx rgba(0, 0, 0, 0.35);
		overflow: hidden;
	}

	.m-user-info .NickName {
		line-height: 70rpx;
		display: block;
		font-size: 28rpx;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.member-order-tab {
		font-size: 12px;
		text-align: center;
		background: rgba(0, 0, 0, 0.1);
		line-height: 20px;
		/*box-shadow: 0px 0rpx 10rpx rgba(0, 0, 0, 0.35);*/

		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
	}

	.i-type {
		font-size: 40rpx;
	}

	.m-cell-hd {
		text-align: center;
		line-height: 56rpx;
	}

	.member-order-tab .g-flex-item {
		padding: 28rpx 0 20rpx 0;
	}

	.member-order-tab .g-flex-item:active {
		background-color: #ececec;
	}

	.my_od {
		border-left: 1px solid #dfdfdf;
	}

	.all_order {
		position: relative;
		display: block;
	}

	.m-panel-bd {
		margin-top: 20rpx;
	}

	.m-panel-bd label {
		vertical-align: middle;
		font-size: 50rpx;
		margin: 0rpx 10rpx;
	}

	.m-cell-primary {
		font-size: 24rpx;
		margin-top: 10rpx;

		label {
			font-size: 24rpx;
		}
	}

	.m-animate-img {
		width: 100%;
		height: 250rpx;
		overflow: hidden;
		-webkit-animation: imageAnimation 15s linear infinite alternate;
		animation: imageAnimation 15s linear infinite alternate;
		webkit-backface-visibility: hidden;
		-webkit-filter: blur(5px);
		filter: blur(5px);
		margin-top: -20px;
	}

	.m-animate-warp {
		overflow: hidden;
		height: 200rpx;
		-webkit-animation: imageAnimation 15s linear infinite alternate;
		animation: imageAnimation 15s linear infinite alternate;
	}

	@-webkit-keyframes imageAnimation {
		0% {
			background-position: 0 0;
		}

		100% {
			background-position: 0 100%;
		}
	}

	@keyframes imageAnimation {
		0% {
			background-position: 0 0;
		}

		100% {
			background-position: 0 100%;
		}
	}

	.iconBoxLattice .m-cell {
		display: inline-block;
		width: 25%;
		box-sizing: border-box;
		text-align: center;
		border-right: 1rpx solid #f8f8f8;
		border-bottom: 1rpx solid #f8f8f8;
	}

	.iconBoxLattice .m-cell .iconfont {
		font-size: 60rpx;
	}

	.iconBoxLattice .m-cell::before {
		border: none;
	}

	.iconBoxLattice .m-cell p {
		font-size: 24rpx;
	}

	.iconBoxLattice .m-cell label {
		font-size: 24rpx;
	}

	.iconBoxLattice .m-cell label.iconfont {
		font-size: 60rpx;
	}

	.iconBoxLattice .m-cell label.zc {
		font-size: 48rpx;
	}

	.iconBoxLattice .m-cell image {
		display: inline-block !important;
		margin: 0 !important;
		padding: 0 !important;
		width: 60rpx !important;
		height: 60rpx !important;
	}

	.iconBoxLattice .m-cell-ft {
		display: none;
	}

	.msk {
		position: fixed;
		top: 0;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.8);
	}

	.model {
		width: 80%;
		height: 290rpx;
		background: #fff;
		border-radius: 6rpx;
		margin: auto;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.hint {
		height: 200rpx;
		display: flex;
		flex-flow: column;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.hint::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		border-bottom: 1px solid #e5e5e5;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		width: 200%;
		height: 200%;
		-webkit-transform: scale(0.5);
		transform: scale(0.5);
		-webkit-transform-origin: left top;
		transform-origin: left top;
	}

	.hint .title {
		font-size: 36rpx;
	}

	.hint .content {
		width: 80%;
		color: #999999;
		font-size: 30rpx;
		margin-top: 20rpx;
	}

	.operation {
		height: 90rpx;
		display: flex;
		align-items: center;
	}

	.cancel,
	.success {
		flex: 1;
		background: #fff;
		height: 90rpx;
		font-size: 36rpx;
	}

	button::after {
		line-height: none;
	}

	.cancel {
		position: relative;
		text-align: center;
		line-height: 90rpx;
	}

	.success {
		color: #3cc51f;
		padding: 0;
	}

	.cancel::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		border-right: 2px solid #e5e5e5;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		width: 200%;
		height: 200%;
		-webkit-transform: scale(0.5);
		transform: scale(0.5);
		-webkit-transform-origin: left top;
		transform-origin: left top;
	}

	.m-cell-bd label {
		margin: 0rpx 5rpx;
	}




	/*样式的width和height一定要与定义的cWidth和cHeight相对应*/
	.qiun-charts {
		width: 750rpx;
		height: 450rpx;
		background-color: #FFFFFF;
	}

	.charts {
		width: 750rpx;
		height: 450rpx;
		background-color: #FFFFFF;
	}
</style>
