<template>
	<view class="page">
		<u-navbar :is-back="false" :title="tittxt" :border-bottom="false" :background="bgc" title-color='#fff'
			title-size='44' height='58' id="navbar">
		</u-navbar>
		<u-mask :show="showtip" @click="show = false" :z-index='1000' />
		<view class="tip_box" v-if="showtip">
			<view class="top">
				<view class="txt">
					系统检测到您的设备未联网或者为蓝牙版本,金额充值失败,请靠近设备进行蓝牙充值
				</view>

			</view>
			<view class="bot">
				<view class="bot_left" @click="showtip=false">
					取消
				</view>
				<view class="bot_right" @click="tocz()">
					蓝牙充值
				</view>
			</view>
		</view>
		<view class="fd" >
			<view class="fd_top">
				<view class="fd_da">
					<view class="fd_lt" :style="{ transform: `translateX(${-curtitidx * 100}rpx)`}"> 
						<view class="fd_tit" v-for="(item,index) in groupLists" :key="index"
							:class="index==curtitidx?'act1':''" @click="changeidx(index)">
							{{item.name}}
						</view>
					</view> 
				</view>
				<view class="right">
					<!-- <view class="fd_set" @click="show = true">
						+
					</view> -->
					<view class="fd_set iconfont icon-liebiao" @click="showfz = true">

					</view>
				</view>

			</view>
			<u-mask :show="showfz"></u-mask>
			<view class="fz" v-show="showfz">
				<view class="fz_top">
					<view class="iconfont icon-shanchu" @click="showfz=false">

					</view>
					<view class="tit">
						店铺管理
					</view>
					<view class="txt" @click="tosetpage()">
						管理
					</view>
				</view>
				<view class="card_cont">
					<view class="cards" v-for="(item,index) in groupLists" :key="index" >
						<!-- //@click="changeGp(item)" -->
						<view class="txt">
							{{item.name}}
						</view>
						<view class="num">
							{{item.deviceCount}}
						</view>
					</view>
					<view class="zhanwei" style="width: 100%;height: 100rpx;">

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

			<swiper class="swiper" style="height: 100%;margin-top: 20rpx;" :current='curtitidx' @change="swiperchange" @scrolltolower="onReachBottom">
				<swiper-item v-for="(item,index) in groupLists" :key="index">
					<view style="width: 100%;padding-top: 300rpx;text-align: center;font-size: 32rpx;font-weight: 600;color: #ccc;" class="" v-if="shujuflag">
						<image style="width: 432rpx;height: 432rpx;display: block;padding-left: 100rpx;margin-bottom: 30rpx;" src="https://api.ccttiot.com/smartmeter/img/static/unju6N2PoHUv2pyLegfV" mode=""></image>
						该店铺暂无设备...
					</view>
					<view class="swiper-item " >
						<view class="card_box" @click="todetail(item.deviceId)" 
							v-for="(item,index) in wateringList" :key="index">
							<view class="card" >
								<view class="card_left">
									<view class="card_left_tit">
										{{item.deviceName}}
									</view>
									<view class="card_left_sta">
										<image src="https://api.ccttiot.com/smartmeter/img/static/uZSiz7XWpxcXEkl6sTwj"
											mode=""></image>
										<view class="sta_txt" v-if="item.status==3">
											维修中
										</view>
										<view class="sta_txt" v-if="item.status==2" style="color:greenyellow;">
											使用中
										</view>
										<view class="sta_txt" v-if="item.status==1" style="color:seagreen;">
											正常
										</view>
									</view>
									<view class="card_left_no">
										S/N码:{{item.deviceNo}}
									</view>
								</view>
								<view class="card_right">
									<image v-if="item.customPicture" :src="item.customPicture" mode="" style="border-radius: 20rpx;"></image>
									<image v-else :src="item.picture" mode=""></image>
								</view>
							</view>
						</view>
					</view>
				</swiper-item>
			</swiper>

		</view>

		<view class="noDevice" v-if="addflag">
			<view class="img_box">
				<image src="https://api.ccttiot.com/smartmeter/img/static/uD3h9FDe458MjVW5H7VB" mode=""></image>
				<view class="tps">
					暂无设备
				</view>
			</view>

			<view class="addbutn" @click="show = true">
				添加方式
			</view>
			<view class="tip">需要添加设备后方可使用</view>
		</view>

		<tab-bar :indexs='0'></tab-bar>

		<view class="dd">
			<u-select v-model="show" :list="list" title='添加方式' @confirm="confirm"></u-select>
		</view>
	</view>
</template>

<script>
	import uniEcCanvas from '@/components/uni-ec-canvas/uni-ec-canvas.vue'
	import * as echarts from '@/components/uni-ec-canvas/echarts'
	let chart = null
	export default {
		data() {
			return {
				bgc: { 
					backgroundColor: "#8883f0",
				},
				ec: {
					lazyLoad: true
				},
				deviceInfo: {},
				loadings: false,
				info: '',
				tittxt: "商户中心",
				titlist: '暂无店铺',
				curtitidx: 0,
				background: ['color1', 'color2', 'color3'],
				indicatorDots: true,
				autoplay: true,
				interval: 2000,
				duration: 500,
				deviceList: [],
				userType: '',
				addflag: false,
				sbflag: true,
				show: false,
				list: [{
						value: '1',
						label: '扫码添加'
					},
					{
						value: '2',
						label: '搜索附近设备添加'
					}
				],
				qrResult: '',
				showfz: false,
				groupList: [],
				groupLists: [],
				total: '',
				gps: {},
				mac: '',
				deviceId: '',
				showtip: false,
				orderinfo: [],
				storeId: '',
				pagenum: 1,
				wateringList: [],
				pagesize: 10,
				isLoading: false,
				noMoreData: false,
				total: 0,
				shujuflag:false,
				
			}
		},
		onLoad() {

		},
		onShow() {
			this.pagenum = 1
			this.wateringList = []
			this.logins();
			this.getgroup();
			this.deviceId = uni.getStorageSync('deviceIds');
			this.name = uni.getStorageSync('name');
			// console.log(this.deviceId,'aaa',this.name);
			let that = this; // 将外部的 this 绑定到 that 上

			setTimeout(() => {
				if (this.userType === '01') { // 注意 '01' 是一个字符串
					if (uni.getStorageSync('mac')) {
						this.mac = uni.getStorageSync('mac');
						uni.getLocation({
							type: 'wgs84',
							success: function(lb) {

								that.gps.lat = lb.latitude;
								that.gps.lon = lb.longitude;
								that.tobind()
							},
							fail: function(error) {
								console.error('获取位置信息失败:', error);
								that.gps.lat = 0;
								that.gps.lon = 0;
								that.tobind()
							}
						});
					}
				} else {
					if (uni.getStorageSync('billNo')) {
						let billNo = uni.getStorageSync('billNo')
						this.$u.get(`/app/bill/recharge/${billNo}/bluetoothSuccess`).then((res) => {
							if (res.code == 200) {
								uni.removeStorageSync('billNo');
								this.showtip = false
								this.order()
							}
							// console.log(this.deviceInfo,'this.deviceInfo');

						});
					}
				}
			}, 2000);
		},
		methods: {







			tocz() {
				this.showtip = false
				uni.navigateTo({
					url: '/page_fenbao/device/czDevice?orderinfo=' + JSON.stringify(this.orderinfo)
				});
			},
			checkModelTags(modelTags) {
				return modelTags && modelTags.some(tag => tag === 2);
			},
			order() {
				console.log('调用了');
				this.$u.get("/app/bill/recharge/device/fail/list").then((res) => {


					if (res.data.length != 0) {
						this.showtip = true
						this.orderinfo = res.data[0]
					} else {
						this.orderinfo = null
					}

				});
			},
			towifi(mac) {
				uni.navigateTo({
					url: '/page_fenbao/device/wifiDevice?mac=' + mac

				})
			},
			tobind() {
				this.$u.put(`/app/device/bind/${this.mac}`, this.gps).then((res) => {
					if (res.code === 200) {

						let systemInfo = uni.getSystemInfoSync();
						if (systemInfo.platform === 'android') {
							// 当前设备是 Android  

						} else if (systemInfo.platform === 'ios') {
							// console.log('aaaaaaaaaaaa');
							uni.navigateTo({
								url: '/page_components/wifilist/index?deviceId=' + this.deviceId +
									'&name=' + this.name
							})
						}
						uni.showToast({
							title: '绑定成功',
							icon: 'none',
							duration: 2000
						});
						uni.removeStorageSync('mac');
						uni.removeStorageSync('deviceIds');
						uni.removeStorageSync('name');
						this.getDeviceList();
					} else {
						// 处理失败情况
					}
				});
			},
			opendevice() {
				let stause = 0
				if (this.deviceInfo.powerStatus == 1) {
					stause = 0
				} else {
					stause = 1
				}
				console.log(stause, 'stausestause');
				this.$u.put(`/app/device/${this.deviceInfo.deviceId}/changePower?status=` + stause).then((res) => {
					// this.$forceUpdate()
					if (res.code == 200) {
						setTimeout(() => {
							this.getdevice()
						}, 2000)

						// this.loadings=true
						// this.initChart()
					} else {
						uni.showToast({
							title: res.msg,
							icon: 'none'
						});
					}
				});
			},
			getgroup() {
				this.$u.get("/app/store/listCount").then((res) => {
					if (res.data != 0) {
						this.groupList = []
						this.groupLists = res.data
						this.groupList = res.data.filter(item => {
							return item.name === '全部';
						})
						this.titlist = this.groupList[0].name
						this.storeId = this.groupList[0].storeId
						this.getlist()
					}
				});
			},
			getlist() {
				this.shujuflag = false
				if (this.storeId == null) {
					this.$u.get(`/app/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}`).then((res) => {
						if (res.code == 200) {
							this.total = res.total
							// this.wateringList = []
							if (res.rows.length > 0) {
								// 有数据,追加到列表  
								this.wateringList = this.wateringList.concat(res.rows)
								this.pagenum++
								this.shujuflag = false
								uni.hideLoading()
							} else {
								// 没有更多数据  
                                this.shujuflag = true
								uni.hideLoading()
							}
							this.isLoading = false;
						}
					})
				} else {
					this.$u.get(
							`/app/device/list?storeId=${this.storeId}&pageNum=${this.pagenum}&pageSize=${this.pagesize}`)
						.then((res) => {
							if (res.code == 200) {
								this.total = res.total
								// this.wateringList = []
								if (res.rows.length > 0) {
									// 有数据,追加到列表  
									this.wateringList = this.wateringList.concat(res.rows)
									this.pagenum++
									this.shujuflag = false
									uni.hideLoading()
								} else {
									// 没有更多数据  
                                    this.shujuflag = true
									uni.hideLoading()
								}
								this.isLoading = false;
							}
						})
				}
			},
			onReachBottom() {
				let sum = this.total / this.pagesize
				if (this.pagenum - 1 < sum) {
					this.getlist(); // 上拉加载更多  
				} else {
					uni.showToast({
						title: '没有更多设备了',
						icon: 'none',
						duration: 1000
					});
				}
			},


			changeGp(item, index) {
				console.log(item);
				this.showfz = false
				if (item == 1) {
					this.getDeviceList()
				} else {
					if (item.storeId == null) {
						this.pagenum = 1
						this.wateringList = []
						this.titlist = item.name
						this.$u.get(`/app/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}`).then((res) => {
							if (res.code == 200) {
								this.total = res.total
								if (res.rows.length > 0) {
									// 有数据,追加到列表  
									this.wateringList = this.wateringList.concat(res.rows)
									this.pagenum++
								} else {
									// 没有更多数据  
									this.noMoreData = true;
								}
								this.isLoading = false;
							}
						});
					} else {
						this.pagenum = 1
						this.wateringList = []
						this.titlist = item.name
						this.$u.get(
							`/app/device/list?storeId=${item.storeId}&pageNum=${this.pagenum}&pageSize=${this.pagesize}`
						).then((res) => {
							if (res.code == 200) {
								this.total = res.total
								if (res.rows.length > 0) {
									// 有数据,追加到列表  
									this.wateringList = this.wateringList.concat(res.rows)
									this.pagenum++
								} else {
									// 没有更多数据  
									this.noMoreData = true;
								}
								this.isLoading = false;
							}
						});
						// this.$u.put(`/app/store/${item.storeId}/setDefault`).then((res) => {
						// 	if (res.code == 200) {

						// 	}
						// })
					}
				}
			},
			tosetpage() {
				this.showfz = false
				uni.navigateTo({
					url: '/page_user/fenzu'
				})
			},
			// 点击更换用户模式
			confirm(e) {
				// console.log(e,'eeeeeeeeee');
				let type = e[0].value
				if (type == '1') {
					this.scanQRCode()
				} else if (type == '2') {
					uni.navigateTo({
						url: '/page_fenbao/device/index'
					})
				}
				// console.log(e);
				// this.mode = e[0].label
				// this.gettype()
			},
			// scanQRCode() {
			// 	uni.scanCode({
			// 		onlyFromCamera: true,
			// 		scanType: ['qrCode'],
			// 		success: res => {
			// 			console.log('扫描结果:', res);
						
						
			// 			this.qrResult = res.result;
			// 			// this.$u.get(`/app/device/${this.qrResult}/withSuitList`).then((res) =>{
			// 			// 	if(res.code == 200){
			// 			// 		console.log(res);
			// 			// 	}
			// 			// })
			// 		},
			// 		fail: err => {
			// 			console.error('扫描失败:', err);
			// 			uni.showToast({
			// 				title: '扫描失败',
			// 				icon: 'none'
			// 			});
			// 		}
			// 	});
			// },
			logins() {
				if (uni.getStorageSync('userType')) {
					this.userType = uni.getStorageSync('userType')
					this.userType = '01'
					if (this.userType == '01') {
						this.getDeviceList()
					} else if (this.userType == '00') {
						this.getdevice()
					}
				} else {

				}
				this.getuserinfo()
			},
			// 点击搜索附近设备进行跳转
			btnserch() {
				uni.navigateTo({
					url: '/page_fenbao/device/index'
				})
			},

			async initChart() {
				let value = 100;
				let value2 = this.deviceInfo.surplusElectriQuantity
				const option = {
					// backgroundColor:"#061740",
					title: {
						show: false,
						text: `历史请求满意度`, // 图表标题
						x: 'center',
						y: '20',
						textStyle: {
							color: '#333', //'#fff',
							fontSize: 20,
						},
					},
					series: [{
							type: 'pie', // 饼图类型
							radius: ['98%', '70%'], // 饼图半径,第一个值是内半径,第二个值是外半径
							silent: true,
							clockwise: true,
							startAngle: 90, // 起始角度
							z: 0,
							zlevel: 0,

							data: [{
									value: value,
									name: '占比', // 数据项名称
									itemStyle: {
										normal: {
											color: '#8883F0', // 数据项颜色
										},
									},
									label: {
										normal: {
											position: 'center',
											formatter: ` {a|${value2}}\n\n{b|剩余电量}`, // 标签内容格式
											rich: {
												a: {
													fontSize: 15,
													fontWeight: '700',
													color: '#333',
												},
												b: {
													fontSize: 11,
													color: '#888',
												},
											},
										},
									},
								},
								{
									value: 100 - value,
									name: '',
									label: {
										normal: {
											show: false,
										},
									},
									itemStyle: {
										normal: {
											color: '#173164',
										},
									},
								},
							],
						},
						{
							type: 'gauge', // 仪表盘类型
							radius: '130%', // 仪表盘半径,占图表容器的百分比
							center: ['50%', '50%'], // 仪表盘中心位置
							startAngle: 359,
							endAngle: 359.9,
							splitNumber: 2, // 刻度分割段数
							hoverAnimation: true,
							axisTick: {
								show: true, // 是否显示刻度线
								length: 10, // 刻度线长度
								lineStyle: {
									color: 'auto',
									width: 1,
								},
							},
							splitLine: {
								length: 0, // 刻度线分隔线长度
								lineStyle: {
									width: 1,
									color: '#061740',
								},
							},
							axisLabel: {
								show: false, // 是否显示刻度标签
							},
							pointer: {
								show: false, // 是否显示指针
							},
							axisLine: {
								lineStyle: {
									opacity: 0,
								},
							},
							detail: {
								show: false, // 是否显示仪表盘详情
							},
							data: [{
								value: 0,
								name: '',
							}, ],
						},
					],
				};

				// console.log( this.$refs.chartRef,'1111');
				const chart = await this.$refs.chart.init(echarts);
				// console.log(option);
				chart.setOption(option)

				return chart
			},
			// 获取设备详情
			getDevice() {
				this.$u.get("app/device/1").then((res) => {
					// this.$forceUpdate()
					if (res.code == 200) {
						this.deviceInfo = res.data
						// console.log(this.deviceInfo, 1111);
						this.loadings = true
					}
				});

			},
			getuserinfo() {
				this.$u.get("/app/user/userInfo").then((res) => {
					// this.$forceUpdate()
					if (res.code == 200) {

						uni.setStorageSync('userType', res.data.userType)
						this.userType = res.data.userType
						if (this.userType == '01') {
							this.getDeviceList()
						} else if (this.userType == '00') {
							this.getdevice()
						}

					} else {
						this.jmlogin()
					}
				});
			},
			jmlogin() {
				let taht = this
				wx.login({
					success(res) {
						if (res.code) {
							let data = {
								loginCode: res.code,

							};
							taht.$u.post('/app/auth/wxLogin', data).then(res => {
								if (res.code == 10003) {
									uni.navigateTo({
										url: '/pages/login/login'
									})

								} else if (res.code == 200) {
									// console.log("老用户登录",res.data)
									uni.setStorageSync('token', res.token);
									taht.logins()
								}
							});
						}
					},

				});
			},
			getDeviceList() {
				this.$u.get("/app/device/list").then((res) => {
					// this.$forceUpdate()
					if (res.code == 200) {
						this.deviceList = res.rows.filter(row => row.isDefault === true)
						console.log(this.deviceList);

						this.total = res.total
						if (this.deviceList == '') {
							this.addflag = true
							this.sbflag = false
						} else {
							this.addflag = false
							this.sbflag = true
						}
					}
				});

			},
			swiperchange(e) {
				// console.log(e);
				
				uni.showLoading({  
				    title: '加载中...'
				});
				this.wateringList = []
				this.pagenum = 1
				this.curtitidx = e.detail.current
				// console.log(this.groupLists[this.curtitidx].storeId)
				this.storeId = this.groupLists[this.curtitidx].storeId
				this.getlist()
			},

			getdevice() {
				this.$u.get("/app/device/tenant").then((res) => {
					this.deviceInfo = res.rows.find(item => item.isDefault === true);
					if (this.deviceInfo == undefined) {
						this.addflag = true
						this.sbflag = false
					} else {
						this.addflag = false
						this.sbflag = true
					}
					uni.setStorageSync('deviceId', this.deviceInfo.deviceId);
					// this.initChart()
					this.order()
				});
			},
			changeidx(index) {
				this.curtitidx = index
			},

			toydfx() {
				uni.navigateTo({
					url: "/page_components/eletj"
				})
			},
			todetail(id) {
				uni.navigateTo({
					url: '/page_user/sbdetail?id=' + id
				})
			},
			// 跳转到抄表
			tochaobiao() {
				uni.navigateTo({
					url: '/page_user/cbRecord'
				})
			},
			// 点击切换设备
			switchs() {
				uni.navigateTo({
					url: '/page_user/switchs'
				})
			}
		}
	}
</script>

<style lang="scss">
	/deep/ .u-title{
		padding-bottom: 41rpx;
	}
	/deep/ .u-icon__icon{
		padding-bottom: 41rpx;
	}
	page {
		background-color: #F7FAFE;
		height: 100%;
	}

	.page {
		height: 100%;
		padding-bottom: 200rpx;

		.tip_box {
			position: fixed;
			left: 72rpx;
			top: 788rpx;
			width: 610rpx;
			// height: 282rpx;
			background: #F7FAFE;
			border-radius: 30rpx 30rpx 30rpx 30rpx;
			z-index: 10000000;

			.top {
				padding: 52rpx 38rpx 42rpx 36rpx;

				.txt {
					width: 100%;
					text-align: center;
					font-weight: 500;
					font-size: 32rpx;
					color: #3D3D3D;
				}
			}

			.bot {
				border-top: 2rpx solid #D8D8D8;
				display: flex;
				flex-wrap: nowrap;
				height: 100%;

				.bot_left {
					width: 50%;
					height: 98rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-weight: 500;
					font-size: 36rpx;
					color: #3D3D3D;
				}

				.bot_right {
					width: 50%;
					height: 98rpx;
					display: flex;
					align-items: center;
					justify-content: center;

					border-left: 2rpx solid #D8D8D8;
					font-weight: 500;
					font-size: 36rpx;
					color: #4C97E7;

				}

			}
		}

		.noDevice {
			margin-top: 432rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			flex-wrap: wrap;

			.img_box {
				width: 100%;
				display: flex;
				flex-wrap: wrap;
				justify-content: center;

				image {
					width: 252rpx;
					height: 252rpx;
				}

				.tps {
					margin-top: 4rpx;
					width: 100%;
					text-align: center;
					font-weight: 700;
					font-size: 32rpx;
					color: #BDBCBC;
				}
			}

			.addbutn {
				margin-top: 32rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				width: 266rpx;
				height: 96rpx;
				background: #8883F0;
				border-radius: 16rpx;

				font-weight: 500;
				font-size: 36rpx;
				color: #FFFFFF;
			}

			.tip {
				margin-top: 30rpx;
				width: 100%;
				text-align: center;
				font-weight: 400;
				font-size: 40rpx;
				color: #BDBCBC;
			}
		}

		.zhuhu {
			margin-top: 20rpx;
			padding: 0 40rpx;

			.card1 {
				padding: 34rpx 0 0 40rpx;
				width: 670rpx;
				height: 583rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 14rpx 35rpx 0rpx rgba(53, 140, 255, 0.1);
				border-radius: 28rpx 28rpx 28rpx 28rpx;

				.top {
					display: flex;
					flex-wrap: nowrap;
					justify-content: space-between;
					align-items: center;

					.left {
						font-size: 35rpx;
						font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
						font-weight: 400;
						color: #8883F0;
					}

					.right {
						margin-right: 56rpx;

						.imgs {
							width: 94rpx;
							height: 94rpx;
							vertical-align: bottom;
						}

						.img1 {
							width: 76rpx;
							height: 76rpx;
						}
					}
				}

				.mid {
					margin-top: 54rpx;
					display: flex;
					flex-wrap: nowrap;
					align-content: flex-start;

					.mid_left {
						image {
							width: 37rpx;
							height: 98rpx;
						}
					}

					.mid_right {
						margin-left: 40rpx;
						display: flex;
						flex-wrap: wrap;

						.mid_top {
							width: 100%;
							font-size: 42rpx;
							font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
							font-weight: 400;
							color: #262B37;
						}

						.mid_bot {
							display: flex;
							flex-wrap: nowrap;
							align-items: center;

							.txt {
								font-size: 24rpx;
								font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
								font-weight: 400;
								color: #95989D;
							}

							.tip {
								display: flex;
								align-items: center;
								justify-content: center;
								margin-left: 19rpx;
								width: 38rpx;
								height: 23rpx;
								background: rgba(204, 204, 204, 0);
								opacity: 1;
								border: 2rpx solid #8883F0;
								border-radius: 40rpx;
								font-size: 14rpx;
								font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
								font-weight: 400;
								color: #8883F0;
							}
						}
					}
				}

				.bot {
					margin-top: 83rpx;
					display: flex;
					flex-wrap: nowrap;
					align-items: center;

					.bot_left {
						width: 210rpx;
						height: 190.14rpx;
						margin-right: 34rpx;

						.echarts {
							width: 210rpx;
							height: 190.14rpx;
						}
					}

					.bot_right {
						// margin-top: 50rpx;
						display: flex;
						flex-wrap: nowrap;

						.cont {
							.tit {
								font-size: 28rpx;
								font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
								font-weight: 600;
								color: #262B37;
								line-height: 49rpx;
							}

							.txt {
								font-size: 24rpx;
								font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
								font-weight: 400;
								color: #262B37;
							}
						}
					}
				}
			}

			.card2 {
				padding-top: 40rpx;
				margin-top: 24rpx;
				width: 670rpx;
				height: 254rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(53, 140, 255, 0.1);
				border-radius: 28rpx;

				.tit {
					margin-left: 40rpx;

					font-size: 35rpx;
					font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
					font-weight: 400;
					color: #8883F0;
				}

				.cont_box {
					margin-top: 32rpx;
					display: flex;
					flex-wrap: nowrap;
					justify-content: space-around;
					text-align: center;

					.cont {
						width: 110rpx;
						display: flex;
						flex-wrap: wrap;
						align-items: center;
						justify-content: center;

						.top {
							font-size: 32rpx;
							font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
							font-weight: 400;
							color: #262B37;
							width: 110rpx;
						}

						.bot {
							margin-top: 20rpx;
							font-size: 24rpx;
							font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
							font-weight: 400;
							color: #262B37;
						}
					}
				}
			}

			.card3 {
				padding-top: 40rpx;
				margin-top: 24rpx;
				width: 670rpx;
				height: 318rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(53, 140, 255, 0.1);
				border-radius: 28rpx;

				.tit {
					margin-left: 40rpx;

					font-size: 35rpx;
					font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
					font-weight: 400;
					color: #8883F0;
				}

				.cont_box {
					margin-top: 32rpx;
					display: flex;
					flex-wrap: nowrap;
					// justify-content: space-around;
					padding-left: 50rpx;
					box-sizing: border-box;

					.cont {
						width: 100rpx;
						display: flex;
						flex-wrap: wrap;
						align-items: center;
						justify-content: center;
						margin-right: 40rpx;

						.top {
							image {
								width: 56rpx;
								height: 56rpx;
							}
						}

						.bot {
							margin-top: 28rpx;
							font-size: 28rpx;
							font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
							font-weight: 400;
							color: #808080;
						}
					}
				}
			}

			.button {
				margin-left: 76rpx;
				margin-top: 178rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				width: 520rpx;
				height: 104rpx;
				background: #8883F0;
				box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
				border-radius: 52rpx 52rpx 52rpx 52rpx;

				font-size: 32rpx;
				font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
				font-weight: 400;
				color: #FFFFFF;
			}
		}

		.fd {
			margin-top: 20rpx;
			padding: 0 40rpx;
			padding-bottom: 200rpx;
			height: 100%;

			.fz {
				margin: 0 -40rpx;
				position: fixed;
				bottom: 0;
				width: 750rpx;
				height: 1152rpx;
				background: #F7FAFE;
				border-radius: 30rpx 30rpx 0 0;
				z-index: 10071;

				.fz_top {
					margin: 18rpx 0 auto;
					display: flex;
					flex-wrap: nowrap;
					justify-content: space-between;

					.icon-shanchu {
						margin-left: 40rpx;
						font-size: 50rpx;
					}

					.tit {
						font-size: 36rpx;
						font-family: Source Han Sans, Source Han Sans;
						font-weight: 400;
						color: #000000;
					}

					.txt {
						margin-right: 40rpx;
						font-size: 36rpx;
						font-family: Source Han Sans, Source Han Sans;
						font-weight: 400;
						color: #2A82E4;

					}
				}

				.card_cont {
					width: 750rpx;
					// display: flex;
					// flex-wrap: wrap;
					// align-items: baseline;
					// justify-content: center;
					padding-left: 30rpx;
					height: 100%;
					overflow-y: auto;
					overflow-x: hidden;

					.cards {
						margin-top: 32rpx;
						display: flex;
						flex-wrap: nowrap;
						align-items: center;
						justify-content: space-between;
						padding: 0 40rpx;
						width: 682rpx;
						border-radius: 30rpx;
						height: 114rpx;
						background: #FFFFFF;
						box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);

						.txt {
							font-size: 36rpx;
							font-family: Source Han Sans, Source Han Sans;
							font-weight: 400;
							color: #000000;
						}

						.num {
							font-size: 36rpx;
							font-family: Source Han Sans, Source Han Sans;
							font-weight: 400;
							color: #000000;
						}
					}
				}
			}

			.fd_top {
				display: flex;
				flex-wrap: nowrap;
				// justify-content: space-between;
				align-items: center;
    //             position: fixed;
				// top: 220rpx;
				// left: 50%;
				// transform: translateX(-50%);
				.fd_da {
					width: 600rpx;
					// overflow-x: scroll;
					overflow: hidden;
					overflow-x: auto;
					white-space: nowrap;
					-ms-overflow-style: none;
					/* 去除IE和Edge的默认滚动条 */
					scrollbar-width: none;
					/* 去除Firefox的默认滚动条 */
					&::-webkit-scrollbar {
						display: none;
					}

					.fd_lt {
						width: 100vh;
						display: flex;
                        transition: transform 0.3s ease;
						.fd_tit {
							// width: 40%;
							text-align: center;
							// width: 100%;
							padding: 0 10rpx;
							box-sizing: border-box;
							// margin-right: 20rpx;
							font-size: 36rpx;
							font-weight: 400;
							color: #666;

						}
					}
				}

				.act1 {
					font-weight: 700 !important;
					color: #000000 !important;
				}




				.right {
					margin-left: auto;
					display: flex;
					flex-wrap: nowrap;
					align-items: center;

					.fd_set {
						// margin-bottom: 10rpx;
						// margin-left: 200rpx;
						// margin-left: auto;
						font-size: 60rpx;
					}

					.icon-liebiao {
						margin-top: 10rpx;
						margin-left: 20rpx;
						font-size: 40rpx;
					}
				}

			}
			.shebei{
				width: 750rpx;
				height: 100vh;
				position: fixed;
				top: 0;
				left: 0;
				text-align: center;
				padding-top: 300rpx;
				font-size: 32rpx;
				color: #ccc;
			}

			.swiper {
				// height: 100vh;
				.swiper-item {
					height: 100vh;
					overflow-y: auto;
					padding-bottom: 660rpx;
					.card_box {
						margin-top: 34rpx;
						display: flex;
						flex-wrap: wrap;

						.card {
							display: flex;
							// align-items: center;
							margin-top: 20rpx;
							width: 658rpx;
							height: 282rpx;
							background: #fff;
							box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(255, 255, 255, 0);
							border-radius: 24rpx 24rpx 24rpx 24rpx;

							.card_left {
								width: 310rpx;
								margin-top: 46rpx;
								margin-left: 50rpx;

								.card_left_tit {
									font-size: 44rpx;
									font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
									font-weight: 500;
									color: #8883F0;
								}

								.card_left_sta {

									margin-top: 15rpx;
									display: flex;
									flex-wrap: nowrap;
									align-items: center;

									image {
										width: 23.32rpx;
										height: 36.47rpx;

									}

									.sta_txt {
										margin-left: 15rpx;
										color: #262B37;
										font-size: 24rpx;
										font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
										font-weight: 400;
									}
								}

								.card_left_no {
									margin-top: 15rpx;
									font-size: 24rpx;
									font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
									font-weight: 400;
									color: #95989D;
								}
							}

							.card_right {
								margin-top: 30rpx;
								margin-left: auto;
								margin-right: 50rpx;

								image {
									width: 180rpx;
									height: 200rpx;
								}
							}
						}
					}
				}
			}

		}
	}

	.popup-content {
		text-align: center;

		text {
			display: block;
		}

		.add {
			margin-top: 10rpx;
			font-size: 36rpx;
			color: #000000;
			line-height: 80rpx;
		}

		.saoma {
			margin-top: 68rpx;
			font-size: 40rpx;
			color: #000000;
			line-height: 54rpx;
			border: 1px solid #ccc;
			padding: 30rpx 0;
			box-sizing: border-box;
		}

		.sousuo {
			margin-top: 46rpx;
			font-size: 40rpx;
			color: #000000;
			line-height: 54rpx;
			border: 1px solid #ccc;
			padding: 30rpx 0;
			box-sizing: border-box;
		}
	}
</style>