<template>
	<view class="maintenance-detail">
		<u-navbar :title="''" leftIconColor='#ffffff' leftIconSize='38rpx' autoBack="true" :fixed="true"
			:bgColor="bgColor">
		</u-navbar>

		<view class="content">
			<!-- 	<view class="top-fixed" :style="{ height: paddingTop }">
				<image style="width: 100%;height: 100%;" :src="firstImage" :mode="'widthFix'"></image>
			</view> -->

			<view class="swiper-wrap">
				<swiper class="swiper" :current="current" @change="changeswiper">
					<swiper-item v-for="(item, index) in goodsDetail.goodsImageList" :key="index">
						<view class="swiper-item">
							<image style="width: 100%;height: 100%;" :src="item" :mode="'scaleToFill'"></image>
						</view>
					</swiper-item>
				</swiper>
				<!-- <view
					class="shop-car"
					:style="{ top: paddingTop }"
					@click="enterShopCar"
				>	
					<image src="../.././static/common/shop_car.png" style="width: 100%;height: 100%;"></image>
				</view> -->
				<view class="swiper-num fw400 fs28" v-if="goodsDetail.goodsImageList">
					{{current + 1}}/{{goodsDetail.goodsImageList.length ? goodsDetail.goodsImageList.length : 0}}</view>
			</view>

			<view class="content-detail">
				<view class="shop-desc">
					<view class="common-card mg-bot-20">
						<view class="u-f u-f-jcsb u-f-aic mg-bot-16">
							<view class="u-f u-f-jcfs u-f-aic">
								<view class="main-color mg-right-14">
									<text class="fs38">￥</text>
									<text class="fs44 fw600">{{goodsDetail.commodityPrice}}</text>
								</view>
								<view class="light-gray fs24 delete-line">
									<text>￥{{goodsDetail.goodsOriginalPrice}}</text>
								</view>
							</view>
							<button open-type="share" class="u-f u-f-fdc u-f-jcc shareBtn" >
								<image class="share-icon" :mode="'widthFix'" src="../.././static/common/share.png">
								</image>
								<text class="main-color fs22 fw400">分享</text>
							</button>
						</view>
						<view class="fw700 fs32 light-black two-line-ellipsis mg-bot-16 fw600">{{goodsDetail.goodsName}}
						</view>
						<view class="fw400 fs24 light-gray mg-bot-30">总销 {{goodsDetail.totalSales}}</view>
						<view>
							<view class="u-f u-f-aic u-f-jcfs fs28 mg-bot-30">
								<text class="light-gray mg-right-75 second-title">服务</text>
								<text class="light-blac">随时退 | 过期退</text>
							</view>
							<view class="u-f u-f-aic u-f-jcfs fs28 mg-bot-30">
								<text class="light-gray mg-right-75 second-title">须知</text>
								<text class="light-blac">周一至周日可用</text>
							</view>
							<view class="u-f u-f-aic u-f-jcfs fs28 mg-bot-30">
								<text class="light-gray mg-right-75 second-title">方式</text>
								<text class="light-blac">免预约</text>
							</view>
							<view class="u-f u-f-aifs u-f-jcfs fs28">
								<text class="light-gray mg-right-75 second-title">门店</text>
								<view>
									<view class="mg-bot-20">
										<text class="light-blac">中国石化加油站(心怡路店)</text>
									</view>
									<view class="u-f u-f-jcfs u-f-aic mg-bot-20">
										<text class="light-gray mg-right-8">距您当前</text>
										<text class="light-black">{{goodsDetail.distance}}km</text>
									</view>
									<view class="light-gray">
										<text>{{goodsDetail.detailedAddress}}</text>
									</view>
								</view>
							</view>
						</view>
					</view>

					<view class="common-card mg-bot-20">
						<view class="mg-bot-20">
							<common-title :msg="'购买须知'"></common-title>
						</view>
						<view>
							<view class="u-f u-f-aic u-f-jcfs fs28 mg-bot-30">
								<text class="light-gray mg-right-42">有效日期</text>
								<text class="light-blac">购买后1年内有效</text>
							</view>
							<view class="u-f u-f-aic u-f-jcfs fs28 mg-bot-30">
								<text class="light-gray mg-right-42">使用时间</text>
								<text class="light-blac">营业时间内可用</text>
							</view>
							<view class="u-f u-f-aic u-f-jcfs fs28">
								<text class="light-gray mg-right-42">适用规则</text>
								<text class="light-blac">请在指定门店线下核销使用</text>
							</view>
						</view>
					</view>

				</view>
			</view>

			<view class="fix-bot u-f u-f-aic u-f-jcc">
				<view class="u-f u-f-aic u-f-jcsb" style="width: calc(100% - 48rpx);">
					<view class="u-f u-f-jcfs u-f-aic">
						<view class="u-f u-f-fdc u-f-jcc mg-right-48" @click="addCollection">
							<image v-show="goodsDetail.isCollect" class="already-collect mg-bot-10"
								src="../.././static/common/star.png"></image>
							<image v-show="!goodsDetail.isCollect" class="collect mg-bot-10"
								src="../.././static/common/collect.png"></image>
							<!-- onCollect -->
							<text class="light-black fs24 fw400">收藏</text>
						</view>
						<view class="u-f u-f-fdc u-f-jcc" @click="showCusServeicePopup">
							<text class="serve-person mg-bot-10"></text>
							<text class="light-black fs24 fw400">客服</text>
						</view>
					</view>
					<view class="u-f u-f-jcc u-f-aic" style="width: calc(100% - 166rpx);text-align: center;">
						<text class="main-btn" style="width: 80%" @click="createBill">立即购买</text>
					</view>
				</view>
			</view>
		</view>

		<!-- <uni-popup :position="'bottom'" :show="showChoiseSize" @hidePopup="handleHideChoiseSize">
			<view class="share-modal">
				<view class="gray-close fw70" @click="handleHideChoiseSize">
					<image style="width: 100%;height: 100%;" src="../.././static/common/gray_close.png"></image>
				</view>
				<view>
					<view class="u-f  u-f-aic">
						<image style="width: 146rpx;height: 146rpx;" :mode="'aspectFit' "
							:src="goodsDetail.goodsImageList&&goodsDetail.goodsImageList[current]">
						</image>
		
						<view class="u-f u-f-fdc u-f-aifs">
							<view class="light-black fs28 ellipsis" style="text-align: left;">{{goodsDetail.goodsName}}
							</view>
							<view class="u-f u-f-jcfs u-f-aic">
								<view class="light-black mg-right-18 main-color">
									<text class="fs38">￥</text>
									<text
										class="fs44">{{(goodsDetail.specificationListList&&goodsDetail.specificationListList[active].specificationsUnitPrice) || goodsDetail.goodsPrice}}</text>
								</view>
							</view>
						</view>
		
					</view>
		
					<view class="mg-bot-40">
						<view class="fw700 light-black fs28 mg-bot-24" style="text-align: left;">规格</view>
						<view class="tab-list u-f u-f-jcfs">
							<view :class="['tab-item mg-right-20', active === index ? 'active' : '']"
								v-for="(item, index) in goodsDetail.specificationListList" :key="item.specificationsId"
								@click="handleTabChooseSize(index, item)">
								{{item.specificationsName}}
							</view>
						</view>
					</view>
		
					<view class="u-f u-f-jcsb u-f-aic mg-bot-56">
						<text>数量</text>
						<view>
							<uni-number :min="1" v-model="goodsNum"></uni-number>
						</view>
					</view>
		
					<view class="u-f u-f-aic u-f-jcc" style="width: 100%;">
						<view class="line-gradient-btn" style="flex: 1;padding: 22rpx 0;" @click="addToShopCar">{{isShowCart == 1?'加入购物车':'立即购买'}}</view>
					</view>
		
				</view>
			</view>
		</uni-popup> -->

		<!-- 客服 -->
		<uni-popup :position="'middle'" class="middle-wrap" :show="showBotPopup" @hidePopup="hideCusServeicePopup">
			<view class="common-mes-nofity">
				<view class="top u-f u-f-aic u-f-jcc">联系客服</view>
				<view class="mg-top-28">客服电话：{{customerService.cusServicePhone}}</view>
				<view class="bot u-f u-f-jcc u-f-aic" @click="callOut(customerService.cusServicePhone)">
					<text class="confirm">拨打电话</text>
				</view>
			</view>
		</uni-popup>

		<!-- 分享 -->
		<uni-popup :position="'bottom'" class="updatePopup" :show="show" @hidePopup="handleHidePopup">
			<view class="share-modal">
				<image class="gray-close fw70" @click="handleHidePopup" src="../../static/common/gray_close.png"
					mode=""></image>
				<!-- <view class="gray-close fw70" @click="handleHidePopup"></view> -->
				<view class="u-f u-f-aic u-f-jcc one-line-ellipsis mg-bot-32 fs28 fw600">
					分享出去，让更多人看到
				</view>

				<view class="content-wrap u-f u-f-fdc u-f-aic">
					<image :src="path" mode="widthFix"></image>

					<l-painter ref="painter" isCanvasToTempFilePath @success="path = $event" hidden
						css="width: 429rpx;height: 562rpx;border: 10rpx solid #FF5502;border-radius:12rpx;padding:20rpx;background:#fff">
						<!-- 基础用法 -->
						<l-painter-image :src="goodsDetail.goodsImageList&&goodsDetail.goodsImageList[0]"
							css="width: 373rpx; height: 363rpx;margin-bottom:10rpx;object-fit: contain;" />
						<l-painter-text :text="goodsDetail.goodsName"
							css="font-size: 28rpx;color: #333333;line-clamp:2" />
						<l-painter-view css="display:flex;">
							<l-painter-text :text="goodsDetail.goodsOriginalPrice"
								css="font-size: 28rpx;color: #FF4502;margin-right:20rpx" />
							<l-painter-text :text="goodsDetail.commodityPrice"
								css="font-size: 24rpx;color: #999999; text-decoration: line-through;vertical-align: bottom;" />
							<l-painter-image :src="QRCode"
								css="width: 70rpx; height: 70rpx;object-fit: contain;margin-left:100rpx" />
						</l-painter-view>
					</l-painter>

					<view class="share u-f u-f-jcsb u-f-aic mg-top-30 mg-bot-46">
						<view class="u-f u-f-fdc u-f-aic" @click="handleShareWxFriend">
							<view class="wx mg-bot-8">
								<image src="../../static/common/weixin.png" style="width: 100%;height: 100%;" mode="">
								</image>
							</view>
							<text class="fs24 light-gray">微信好友</text>
						</view>
						<view class="u-f u-f-fdc u-f-aic" @click="handleShareWxPengyouquan">
							<view class="wx-pengyouquan mg-bot-8">
								<image src="../../static/common/pengyouquan.png" style="width: 100%;height: 100%;"
									mode="">
								</image>
							</view>
							<text class="fs24 light-gray">朋友圈</text>
						</view>
					</view>

					<view class="u-f u-f-aic u-f-jcc" style="width: 100%;">
						<view class="line-gradient-btn" style="flex: 1;padding: 22rpx 0;" @click="savePic">保存图片</view>
					</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	import commonTitle from "../.././components/common-title/common-title.vue"
	import uniNumber from "../.././components/uni-number-box/uni-number-box.vue"
	import {
		getCusNavBarInfo
	} from "../.././common/customizeNavBarInfo.js"
	export default {
		components: {
			commonTitle,
			uniNumber
		},
		data() {
			return {
				active: 0,
				storeId: 0,
				goodsId: 0,
				paddingTop: 0,
				goodsDetail: {},
				current: 0,
				reviewPageNum: 1,
				reviewPageSize: 1,
				reviewsList: [],
				showChoiseSize: false,
				goodsNum: 1,
				goodsSpecificationId: 0,
				goodsSpecification: '',
				isShowCart: 1,
				showBotPopup: false,
				customerService: {},
				bgColor: 'rgba(0,0,0,0)',
				show: false,
				QRCode: '',
				path: ''

			}
		},
		mounted() {
			let {
				customizeNavBarHeight
			} = getCusNavBarInfo()
			this.paddingTop = customizeNavBarHeight + 'px'
		},
		computed: {
			firstImage() {
				return this.goodsDetail.goodsImageList && this.goodsDetail.goodsImageList[this.current]
			}
		},
		onLoad(option) {
			this.storeId = option.storeId
			this.goodsId = option.goodsId || option.id

			this.getStoreGoodDetail()
			this.getReviewsList()
			this.getGenerateQRCodeData()
			this.getCustomerService() // 获取客服信息
			
			const token = uni.getStorageSync('token')
			if (!token) {
				//沒有登录  先登录
				uni.navigateTo({
					url: '/pages/login/login?share=1'
				})
			}
		},

		onShareAppMessage(res) {
			// id=1854410148847865857&storeId=1854405699001700354
			return {
				title: '蚂蚁车生活', // 分享出去的标题
				path: '/pagesF/oil-quan-detail/oil-quan-detail?id=' + this.goodsId + '&storeId=' + this
					.storeId + '&share=1'// 分享出去的页面路径
			}
		},
		onShareTimeline() {
			return {
				title: '蚂蚁车生活', // 分享出去的标题
			}
		}, // 像这样不配置也行,都有默认值
		methods: {
			async getStoreGoodDetail() {
				let data = {
					"lon": this.User.curcity.lng,
					"lat": this.User.curcity.lat,
					"goodsId": this.goodsId,
					"storeId": this.storeId
				}

				let res = await this.$http.post('/api/client/collectionRecord/oilCouponsDetails', data)
				let goodsDetail = res.data.data
				this.goodsDetail = goodsDetail
				this.goodsSpecificationId = this.goodsDetail.specificationListList ? this.goodsDetail
					.specificationListList[
						this.active].specificationsId : 0
				this.goodsSpecification = this.goodsDetail.specificationListList ? this.goodsDetail
					.specificationListList[
						this.active].specificationsName : ''
			},
			async getReviewsList() {
				let data = {
					"pageNum": this.reviewPageNum,
					"pageSize": this.reviewPageSize,
					"goodsId": this.goodsId,
					"storeId": this.storeId
				}

				let res = await this.$http.post('/api/client/store/reviewsList', data)
				let reviewsList = res.data.data.rows
				this.reviewsList = reviewsList
			},
			// async addToShopCar() {

			// 	if(this.isShowCart == 1){
			// 		let data = {
			// 			"goodsSpecificationId": this.goodsSpecificationId,
			// 		     "goodsSpecification": this.goodsSpecification,
			// 			"goodsId": this.goodsId,
			// 			"storeId": this.storeId,
			// 			"goodsNum": this.goodsNum
			// 		}
			// 		this.handleHideChoiseSize()
			// 		let res = await this.$http.post('/api/client/shopping/add', data, {token: true, checkToken: true})
			// 		let resData = res.data
			// 		console.log("resData", resData)

			// 		uni.showToast({
			// 			title: resData.msg,
			// 			duration: 500
			// 		})

			// 	}else{
			// 		this.createBill()
			// 	}

			// },
			async createBill() {
				let data = {
					"lon": this.User.curcity.lng,
					"lat": this.User.curcity.lat,
					"storeId": this.storeId,
					"type": 1, // 1-商品 2-会员权益 3-团购商品 4-积分商品 5-优惠券 6-投诉
					"goodsId": this.goodsId,
					"goodsNum": 1
				}

				// 创建订单
				let res = await this.$http.post('/api/client/order/createOrder', data, {
					token: true,
					checkToekn: true
				})
				let resData = res.data.data
				let key = resData.key
				let orderId = resData.orderId
				let storeId = resData.storeId

				this.User.navigate({
					url: '/pagesD/quick-buy-oil/quick-buy-oil?id=' + key + '&orderId=' + orderId +
						'&storeId=' + storeId
				}, "navigateTo", true)
			},
			async getCustomerService() {
				let res = await this.$http.get('/api/client/userInfo/customerService')
				let customerService = res.data.data
				this.customerService = customerService
			},
			// enterShopCar() {
			// 	uni.navigateTo({
			// 		url: '/pagesC/shop-car/shop-car'
			// 	})
			// },
			handleClickLeft() {
				uni.navigateBack({
					delta: 1
				});
			},
			handleShowChoiseSize(type) {
				this.showChoiseSize = true;
				this.isShowCart = type
			},
			handleHideChoiseSize() {
				this.showChoiseSize = false;
			},
			reSetChooose() {
				this.goodsNum = 1
				this.active = 0
				this.goodsSpecificationId = this.goodsDetail.specificationListList ? this.goodsDetail
					.specificationListList[
						this.active].specificationsId : 0
				this.goodsSpecification = this.goodsDetail.specificationListList ? this.goodsDetail.specificationListList[
					this.active].specificationsName : ''
			},
			handleTabChooseSize(index, item) {
				this.active = index;
				this.specificationsId = item.specificationsId
				this.goodsSpecification = item.specificationsName
			},
			jumpToEvaluationList() {
				this.User.navigate({
					url: '/pages/evaluation-list/evaluation-list?storeId=' + this.storeId
				})
			},
			//收藏
			addCollection() {
				this.$http.post('/api/client/collectionRecord/addCollection', {
					targetId: this.goodsId,
					storeId: this.goodsDetail.storeId,
					type: 2
				}).then(res => {
					this.goodsDetail.isCollect = !this.goodsDetail.isCollect
					if (this.goodsDetail.isCollect) {
						uni.showToast({
							icon: 'none',
							title: '收藏成功'
						})
					} else {
						uni.showToast({
							icon: 'none',
							title: '取消收藏成功'
						})
					}
				})
			},
			showCusServeicePopup() {
				this.showBotPopup = true
				console.log("showCusServeicePopup", this.showBotPopup)
			},
			hideCusServeicePopup() {
				this.showBotPopup = false
			},
			callOut(data) {
				console.log("呼叫");
				uni.makePhoneCall({
					phoneNumber: data, //要拨打的手机号
					success: (res) => {
						// console.log("调用成功")
					},
					fail: (res) => {
						// console.log('调用失败!')
					}
				})
			},
			changeswiper(e) {
				this.current = e.detail.current
			},
			handleHidePopup() {
				this.show = false;
			},
			showBottomPopup() {
				this.show = true;
			},
			//获取小程序二维码
			getGenerateQRCodeData() {
				this.$http.get('/api/client/userInfo/generateQRCode', {
					path: "/pagesB/good-product-detail/good-product-detail?id=" + this.goodsId + '&storeId=' + this
						.storeId
				}).then((res) => {
					this.QRCode = res.data.data
				})
			},

			sharePic() { //分享图片给好友按钮的点击事件函数
				let that = this
				this.base64ToFilePath(this.userInfo.jumpAddFriendQr, (filePath) => {
					console.log(filePath);
					wx.showShareImageMenu({ //分享给朋友
						path: filePath,
						success: (res) => {
							console.log("分享成功：", res);
						},
						fail: (err) => {
							console.log("分享取消：", err);
						},
					})
				})
			},
			base64ToFilePath(base64data, fun) { //封装的base64转换成临时文件路径的函数
				const base64 = base64data; //base64格式图片
				const time = new Date().getTime();
				const imgPath = wx.env.USER_DATA_PATH + "/addFriends" + time + "share_qrcode" +
					".png"; //去掉data:image/png;base64,如果图片字符串不含要清空的前缀,可以不执行下行代码.
				const imageData = base64.replace(/^data:image\/\w+;base64,/, "");
				const file = wx.getFileSystemManager();
				file.writeFileSync(imgPath, imageData, "base64");
				fun(imgPath);
			},
			handleShareWxFriend() {
				let that = this
				this.base64ToFilePath(this.path, (filePath) => {
					console.log(filePath);
					wx.showShareImageMenu({ //分享给朋友
						path: filePath,
						success: (res) => {
							console.log("分享成功：", res);
						},
						fail: (err) => {
							console.log("分享取消：", err);
						},
					})
				})
				console.log(this.path);
				// uni.downloadFile({
				//   url: this.path,
				//   success: (res) => {
				//    console.log(res);
				//     uni.showShareImageMenu({
				//       path: res.tempFilePath
				//     })
				//   }
				// })


			},
			handleShareWxPengyouquan() {
				this.savePic('pengyouquan')

			},
		}
	}
</script>

<style>
	page {
		background-color: #F9F9F9;
	}
</style>

<style lang="scss" scoped>
	.maintenance-detail {
		padding-bottom: 232rpx;

		.back-wrap {
			.white-back-icon {
				width: 30rpx;
				height: 30rpx;
				background: url(../.././static/common/white_left_arrrow.png) no-repeat center center;
				background-size: 50%;
			}
		}

		.content {
			position: relative;

			.top-fixed {
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				z-index: 3;
				overflow: hidden;
			}

			.swiper-wrap {
				position: relative;

				.swiper {
					height: 750rpx;

					.swiper-item {
						display: block;
						width: 100%;
						height: 750rpx;
					}
				}

				.shop-car {
					padding-top: 10rpx;
					position: fixed;
					right: 28rpx;
					width: 62rpx;
					height: 62rpx;
					z-index: 1000;
				}

				.swiper-num {
					color: #ffffff;
					padding: 10rpx 24rpx;
					position: absolute;
					bottom: 58rpx;
					right: 24rpx;
					background-color: rgba(0, 0, 0, 0.25);
					border-radius: 28rpx 28rpx 28rpx 28rpx;
					z-index: 2;
				}
			}

			.avatar {
				width: 78rpx;
				height: 78rpx;
			}

			.content-detail {
				position: relative;
				margin-top: -50rpx;
				padding: 26rpx 24rpx 24rpx 34rpx;
				background-color: #F9F9F9;
				border-radius: 40rpx 40rpx 0 0;

				.common-card {
					padding: 20rpx;
					border-radius: 18rpx;
					background-color: #ffffff;

					.ue-user {
						.avatar {
							width: 78rpx;
							height: 78rpx;
						}

						.user-desc {
							.evaluate-wrap {
								.evaluate {
									.star-icon {
										width: 32rpx;
										height: 32rpx;
										// background: url(../.././static/star.png) no-repeat center center;
										background-size: 100%;
									}

									.star-num {
										color: #F2CB51;
									}
								}
							}
						}
					}

					.ue-content {
						.image-list {
							.image-item {
								width: calc(25% - 12rpx);

								image {
									width: 100%;
								}
							}
						}
					}

					.good-detail {
						.big-title {
							.left {
								width: 165rpx;
								height: 4rpx;
								background: url(../.././static/common/l_recom.png) no-repeat center center;
								background-size: 100%;
							}

							.right {
								width: 165rpx;
								height: 4rpx;
								background: url(../.././static/common/r_recom.png) no-repeat center center;
								background-size: 100%;
							}
						}
					}
				}
			}
		}

		.fix-bot {
			width: 100%;
			position: fixed;
			bottom: 0;
			left: 0;
			padding: 10rpx 0;
			background-color: #ffffff;
		}
	}

	.big-gray-right-arrow {
		width: 26rpx;
		height: 26rpx;
		// background: url(../.././static/common/big_gray_right_arrow.png) no-repeat center center;
		background-size: 100%;
	}

	.send-icon {
		width: 56rpx;
		height: 56rpx;
		// background: url(../.././static/common/send.png) no-repeat center center;
		background-size: 100%;
	}

	.default-line-btn {
		color: #333333;
		font-size: 22rpx;
		border-radius: 40rpx;
		padding: 30rpx 46rpx;
		text-align: center;
		background-color: transparent;
		border: 1rpx solid #707070;
	}

	.main-btn {
		color: #ffffff;
		font-size: 22rpx;
		background: linear-gradient(90deg, #FF4502 0%, #FF8903 100%);
		border-radius: 41rpx 41rpx 41rpx 41rpx;
		padding: 30rpx 100rpx;
	}

	.jump-location {
		width: 16rpx;
		height: 16rpx;
	}

	.serve-person {
		width: 40rpx;
		height: 40rpx;
		background: url(../.././static/common/say.png) no-repeat center center;
		background-size: 100%;
	}

	.share-icon {
		width: 30rpx;
		height: 30rpx;
		// background: url(../.././static/common/share.png) no-repeat center center;
		background-size: 100%;
	}

	.share-modal {
		position: relative;
		padding: 44rpx;

		.gray-close {
			position: absolute;
			right: 28rpx;
			top: 28rpx;
			width: 42rpx;
			height: 42rpx;
			// background: url(../.././static/common/gray_close.png) no-repeat center center;
			background-size: 100%;
		}

		.content-wrap {
			width: 100%;

			.inner {
				position: relative;
				width: 420rpx;
				padding: 12rpx;
				border-radius: 10rpx;
				background-color: #ffffff;
				border: 10rpx solid #FF4502;

				.codeImg {
					position: absolute;
					right: 21rpx;
					bottom: 21rpx;
					width: 70rpx;
					height: 70rpx;
					background-color: #FF4502;
					border-radius: 50%;
				}
			}

			.share {
				width: 420rpx;

				view {
					.wx {
						width: 58rpx;
						height: 58rpx;
						// background: url(../.././static/common/wx.png) no-repeat center center;
						background-size: 100%;
					}

					.wx-pengyouquan {
						width: 58rpx;
						height: 58rpx;
						// background: url(../.././static/common/wx__pengyouquan.png) no-repeat center center;
						background-size: 100%;
					}
				}
			}
		}
	}


	.tab-list {
		.tab-item {
			padding: 12rpx 30rpx;
			font-size: 22rpx;
			border-radius: 28rpx;
			background-color: transparent;
			border: 1rpx solid transparent;
			background-color: #F9F9F9;
			color: #333333;

			&.active {
				color: #FF4502;
				background-color: #FFEFE9;
				border-color: #FF4502;
			}
		}
	}

	.image-item {
		width: 156rpx;
		height: 156rpx;
	}

	.collect {
		width: 40rpx;
		height: 40rpx;
	}

	.already-collect {
		width: 40rpx;
		height: 40rpx;
	}

	.updatePopup :deep(.uni-popup-bottom) {
		border-radius: 40rpx 40rpx 0 0;
	}

	.middle-wrap :deep(.uni-popup-insert) {
		width: 624rpx !important;
	}

	.second-title {
		width: 56rpx;
		white-space: nowrap;
	}
	
	.shareBtn {
		background: #ffffff;
	}
	
	.shareBtn {
		margin: unset;
		padding: unset;
	}
	
	.shareBtn:after {
		border: unset;
	}
</style>