submitClock.vue 20.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889
<template>
	<!-- 提交内容 -->
	<view class="submit_clock">
		<!-- 标题 -->
		<view class="layer_between clock_title">
			<view class="layer_star">
				<image src="../../static/theme.png" mode="widthFix"></image>
				<view class="title_l">提交内容</view>
			</view>
			<view class="layer_star flexone" v-if="is_privacy==2" @click="setpricy">
				<view class="clockimg">
					<image src="../../static/colco.png" mode="widthFix"></image>
				</view>
				<view class="title_r">设为隐私</view>
			</view>
			<view class="layer_star flexone" v-else @click="cancelpricy">
				<view class="clockimg">
					<image src="../../static/jucolock.png" mode="widthFix"></image>
				</view>
				<view class="title_r juse">取消隐私</view>
			</view>
		</view>
		<!-- 打卡 -->

		<!-- <picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">
			<view class="clock_single layer_nostar">打卡时间:{{date}}</view>
		</picker> -->
		<view class="clock_single layer_nostar">
			<text class='dakaganwu'>打卡感悟:</text>
			
			<view class="flex_star">
				<textarea v-model="gantext" value="gantext" placeholder="请输入您的打卡感悟" @input="entertext" maxlength="2000"/>

				<view class="flexone imagebox">
					
						<view class="addimg"  v-for="(item,index) in image" :key="index">
							<image class="add_img" :src="item" mode=""></image>
							<view class="closeimg" @click="deleteimg" :data-url="item">
								<image src="../../static/close.png"></image>
							</view>
						</view>
					
					<view class="imgadd">
						<image class="add_img" src="../../static/addpic.png" mode="widthFix" @click="chooseImage"></image>
					</view>
				</view>
			</view>
		</view>
		<!-- 自我打分 -->
		<view class="self_mark">
			<view class="mark_title">自我打分:</view>
			<view class="layer_star no_icon_single" v-for="(item,index) in scorelist" :key="index">
				{{item.title}}:
				<picker mode="selector" :range="item.score" @change="changeComplete" :value="item.indexk" :data-index="index">
					<view class="score_picker layer_between">
						<view>{{item.name}}</view>
						<image src="../../static/start_01.png" mode="widthFix"></image>
					</view>
				</picker>
			</view>
		</view>
		<!-- 按钮 -->
		<view  v-if="item==''">
			<view class="submit_btn" @click="submitClock()" v-if="daka==false">打卡</view>
			<view class="submit_btn" v-else>打卡</view>
		</view>
		
		<view v-else>
			<view class="submit_btn" @click="editClock()" v-if="dakak==false">
				修改
			</view>
			<view class="submit_btn" v-else>修改</view>
			
		</view>
		
		<!-- 弹窗 -->
		<view class="tx_mask" v-if="isDialog" @click="closeDialog"></view>
		<view class="mask_content" v-if="isContent">
			<view class="content_tips">打卡内容不能为空,请重新编辑</view>
			<view class="content_btn" @click="closeDialog">确定</view>
		</view>
		
		
		<!-- 海报 -->
		<view class="register" v-if="isCanvas">
			<view class="canvas_dialog" >
				<!-- <canvas style="width: 100%;height: 690;backgroundColor: #FFFFFF" canvas-id="myCanvas"></canvas> -->
				<view class="topimg">
					<image :src="posterimg"></image>
				</view>
				<!-- 保存、分享按钮 -->
				<view class="layer_around share_group_btn">
					<view class="layer_around share_btn" @click="cancel">
						<image src="../../static/baocun_icon@2x.png" mode="widthFix"></image>
						取消
					</view>
					<view class="layer_around share_btn" @click='baocun'>
						<image src="../../static/baocun_icon@2x.png" mode="widthFix"></image>
						保存图片
						<!-- <button open-type="share"></button> -->
					</view>
				</view>
			</view>
				
				
			
		</view>
		
	
	</view>
</template>

<script>
	import app from "../../App.vue";
export default {
	
	data() {
		const currentDate = this.getDate({
		            format: true
		        })
		return {
			completeList: [],
			complete: '',
			feeling:[],
			feelindex:'',
			content: '',
			// 弹窗
			isDialog: false,
			// 必填提示
			isContent: false,
			// 海报
			isCanvas: false,
			// 防连点
			isClick: false,
			
			date: currentDate,
			// 打卡感悟
			gantext:'',
			type:1,
			course_id:'',
			customs_id:'',
			score:[],
			// 是否是隐私
			is_privacy:2,
			images:'',
			// 打卡分数
			scorearr:{},
			// 显示的图片
			image:[],
			// 传的图片
			cimage:[],
			eventid:'',
			ganid:'',
			item:'',
			change:'',
			posterimg:'',
			// 打分数组
			scorelist:[],
			clock_log_id:'',
			changetype:'',
			daka:false,
			dakak:false
			
			
		};
	},
	methods: {
		
		// 设为隐私
		
		setpricy(){
			
			this.is_privacy=1;
			// let that=this;
			// let url='/api/clock/set_privacy'
			// let param = {
			// 	clock_log_id:this.clock_log_id
			// }
			// app.post(url, param)
			// 	.then(r => {
			// 		console.log(r)
			// 		uni.showToast({
			// 			title:'设为隐私成功',
			// 			icon:'none'
			// 		})
			// 	})
		},
		// 取消隐私
		cancelpricy(){
			this.is_privacy=2;
			// let that=this;
			// let url='/api/clock/set_privacy'
			
			// let param = {
			// 	clock_log_id:this.clock_log_id
			// }
			// app.post(url, param)
			// 	.then(r => {
			// 		console.log(r)
			// 		uni.showToast({
			// 			title:'取消隐私成功',
			// 			icon:'none'
			// 		})
			// 	})
		},
		
		// 获取打分项目
		getfenshu(){
			let that = this;
			    var url = '/api/clock/score_option';
			    var params = {
			     course_id:that.course_id
			    }
			    app.post(url, params,"post").then((res) => {
					
					for(var obj of res){
						obj.score=[];
						obj.name='请打分';
						obj.indexk=0;
						if(obj.min==obj.max){
							obj.score.push(obj.max)
						}else{
							for(var i=obj.min;i<=obj.max;i++){
							 obj.score.unshift(i)
							}
						}
					}
					that.scorelist=res
					
					// 给打分项赋默认值
					if(that.item!=''){
						for(var i=0;i<that.scorelist.length;i++){
							for(var j=0;j<that.item.clock_score.length;j++)
							if(that.scorelist[i].title==that.item.clock_score[j].title){
								that.scorelist[i].name=that.item.clock_score[j].score;
								for(var k=0;k<that.scorelist[i].score.length;k++){
									if(that.scorelist[i].score[k]==that.item.clock_score[j].score){
										that.scorelist[i].indexk=k
										
									}
								}
							}
						}
						// 给打分项赋值
						that.scorelist.forEach(function(value,index,array){
							that.scorearr[value.id]=value.name
						})
					}
					that.scorearr=that.scorearr;
					that.scorelist=that.scorelist
			
			    }).catch((err) => {
			
			})
		},
		// 完成事件打分
		changeComplete(e) {
			
			console.log(e)
			let index=e.currentTarget.dataset.index;
			let indexk=e.detail.value
			let newscorelist=this.scorelist;
			newscorelist[index].name=newscorelist[index].score[indexk];
			this.scorelist=newscorelist;
			// 传值
			this.scorearr[newscorelist[index].id]=newscorelist[index].score[indexk];
			console.log(this.scorearr)
		},
	
		// 修改日期
		 getDate(type) {
		            const date = new Date();
		            let year = date.getFullYear();
		            let month = date.getMonth() + 1;
		            let day = date.getDate();
		
		            if (type === 'start') {
		                year = year - 60;
		            } else if (type === 'end') {
		                year = year + 2;
		            }
		            month = month > 9 ? month : '0' + month;;
		            day = day > 9 ? day : '0' + day;
		            return `${year}-${month}-${day}`;
		        },
		 bindDateChange: function(e) {
		               this.date = e.target.value
		           },
				   
				   // 输入打卡感悟
				   entertext(e){
					   let str=e.detail.value;
					 str = str.split('&hc').join('\n');
					 this.gantext=str ;
					 console.log(this.gantext)
					  
				   },
				   // 上传图片
				   
				    chooseImage() {
				       let that = this;
				       uni.chooseImage({
				         count: 1,
				         sizeType: ['original', 'compressed'],
				         success: function (res) {
				           console.log(res.tempFilePaths[0])
				           app.upload('image', res.tempFilePaths[0],"post").then((res) => {
				             console.log('上传文件', res);
							 console.log('99887',that.image)
							 let newimage=that.image;
							 newimage.push(res.url);
							 console.log(newimage)
							 console.log(res.url)
							 that.iamge=newimage
				              // that.image.push(res.url)
				              // that.cimage.push(res.kurl)
							  // that.image=that.image;
							  // that.cimage=that.cimage
				           }).catch((err) => {
				             console.log(err)
				           })
				         },
				         fail: function (res) { }
				       })
				     },
		
		// 删除图片
		deleteimg(e){
			console.log(e)
			var url=e.currentTarget.dataset.url;
			console.log(url)
			for(var i=0;i<this.image.length;i++){
				if(url==this.image[i]){
					this.image.splice(i,1);
					// this.cimage.splice(i,1)
				}
			}
			this.image=this.image;
			this.cimage=this.cimage;
			
		},
		
		// 获取详情
		getcordtail(){
			let that=this;
			let url='/api/clock/edit_clock_view'
			
			let param = {
				clock_log_id:that.clock_log_id
			}
			app.post(url, param)
				.then(r => {
					console.log(r)
					that.item=r;
					console.log('7896754',that.item)
					
					this.gantext=r.content;
					this.date=r.createtime;
					this.is_privacy=r.is_privacy;
					this.image=r.images==null?[]:r.images;
					this.cimage=r.images==null?[]:r.images;
					
					console.log(this.image)
					
					that.getfenshu()

				})
		},
		
		// 提交
		
		submitClock() {
			var that = this;
			that.daka=true
				
			if (!that.isClick) {
				
				if(that.gantext==''){
					uni.showToast({
						title:'请输入打卡感悟',
						icon:"none"
					})
					that.daka=false
					return false
				}
				
				
				for(var obj of that.scorelist){
					if(obj.name=='请打分'){
						uni.showToast({
							title:'请选择打分事项',
							icon:'none'
						})
						that.daka=false
						return false
					}
				}
				uni.showLoading({
				    title: '加载中'
				});
					
					    var url = '/api/clock/clock';
					    var params = {
						  content:that.gantext,
						  course_id:that.course_id,
						  customs_id:that.customs_id,
						  images:that.image.join(","),
						  clock_score:JSON.stringify(that.scorearr),
						  is_privacy:that.is_privacy,
					    }
					    app.post(url, params).then((res) => {
							 uni.hideLoading();
					      console.log(res);
						 
						  setTimeout(function(){
							  uni.showToast({
							  	title: '打卡成功',
							  	icon: 'success',
							  	
							  });
						  },200)
						
							 
							 setTimeout(function() {
								 uni.showLoading({
								     title: '海报加载中'
								 });
							 }, 800);
							
							
							that.posterimg=res.poster;
							 that.savefilecode();
							 
							 setTimeout(function(){
								 
								  uni.hideLoading();
							 		
							 		that.isCanvas=true;
							 },2000)
							 
							 // setTimeout(function() {
								
							 // }, 3500);
					    }).catch((err) => {
							console.log(err)
							uni.showToast({
								title:err.msg,
								icon:'none'
							})
					
					    })
				} 
			
		},
		
		// 修改打卡
		editClock(){
			var that=this;
			console.log('448958989')
			 that.dakak=true
			if (!that.isClick) {
			
				if(that.gantext==''){
					
					uni.showToast({
						title:'请输入打卡感悟',
						icon:"none"
					})
					 that.dakak=false
					return false
				}
				// if(that.image==''){
				// 	uni.showToast({
				// 		title:'请上传图片',
				// 		icon:"none"
				// 	})
					
				// 	return false
				// }
				
				for(var obj of that.scorelist){
					if(obj.name=='请打分'){
						uni.showToast({
							title:'请选择打分事项',
							icon:'none'
						})
						 that.dakak=false
						return false
					}
				}
				
					console.log(that.scorearr)
					    var url = '/api/clock/edit_clock';
					    var params = {
						  id:that.clock_log_id,
						  content:that.gantext,
						  course_id:that.course_id,
						  customs_id:that.customs_id,
						  images:that.image==null?'':that.image.join(","),
						  clock_score:JSON.stringify(that.scorearr),
						  is_privacy:that.is_privacy,
					    }
					    app.post(url, params).then((res) => {
							
					      console.log(res);
							 uni.showToast({
							 	title: '修改成功',
							 	icon: 'seccess',
							 	duration:1000
							 });
							 console.log(that.changetype)
							 
							 setTimeout(function(){
								 if(that.changetype==1){
									 uni.navigateTo({
									 	url:"/pages/course/courseDetail?id="+that.customs_id+'&courseid='+that.course_id
									 })
								 }else{
									 uni.switchTab({
									 	url:'/pages/mine/mine'
									 })
								 }
							 },1500)
							 
					
					    }).catch((err) => {
							console.log(err)
					
					    })
				}
		},
		
		
		baocun: function () {
		    console.log(999)
		    var that = this
		    uni.getSetting({
		      success(res) {
		        if (!res.authSetting['scope.writePhotosAlbum']) {
		          uni.authorize({
		            scope: 'scope.writePhotosAlbum',
		            success() { //这里是用户同意授权后的回调
		
		
		              uni.saveImageToPhotosAlbum({
		                filePath: that.posterimg,
		                success(res) {
		                  uni.showModal({
		                    content: '图片已保存到相册',
		                    showCancel: false,
		                    confirmText: '好的',
		                    confirmColor: '#333',
		                    success: function (res) {
		                      if (res.confirm) {
		                        console.log('用户点击确定');
								setTimeout(function(){
									uni.navigateTo({
										url:"/pages/course/courseDetail?id="+that.customs_id+'&courseid='+that.course_id
									})
								},1500)
		                        /* 该隐藏的隐藏 */
		                        // that.setData({
		                        //   maskHidden: false
		                        // })
		                      }else{
								  
							  }
		                    },
		                    fail: function (res) {
		
		                    }
		                  })
		                }
		              })
		
		
		
		            },
		            fail() { //这里是用户拒绝授权后的回调
		
		              uni.showModal({
		                title: '提示',
		                content: '您取消授权,无法保存图片,点击确定打开权限',
		                success(res) {
		                  if (res.confirm) {
		                    console.log('用户点击确定')
		                    uni.openSetting({
		                      success(res) {
		                        console.log(res.authSetting)
		                        // res.authSetting = {
		                        //   "scope.userInfo": true,
		                        //   "scope.userLocation": true
		                        // }
		                      }
		                    })
		                  } else if (res.cancel) {
		                    console.log('用户点击取消')
		                  }
		                }
		              })
		
		            }
		          })
		        } else { //用户已经授权过了
		
		          // console.log(that.data.codeurl)
		          uni.saveImageToPhotosAlbum({
		            filePath: that.posterimg,
		            success(res) {
		              uni.showModal({
		                content: '图片已保存到相册',
		                showCancel: false,
		                confirmText: '好的',
		                confirmColor: '#333',
		                success: function (res) {
		                  if (res.confirm) {
		                    console.log('用户点击确定');
							setTimeout(function(){
								uni.redirectTo({
								
									url:"/pages/course/courseDetail?id="+that.customs_id+'&courseid='+that.course_id
								})
							},1500)
		                    /* 该隐藏的隐藏 */
		                    // that.setData({
		                    //   maskHidden: false
		                    // })
		                  }else{
							  
						  }
		                },
		                fail: function (res) {
		
		                }
		              })
		            }
		          })
		        }
		      }
		    })
		
		  },
		
		  savefilecode() {
		    let that = this;
		    
		    uni.downloadFile({
		      url: that.posterimg,
		      header: {},
		      success: function (res) {
		        console.log('下载图片下载图片下载图片', res)
		        var tempFilePath = res.tempFilePath
		        //console.log('临时文件地址是:' + tempFilePath)
		        uni.saveFile({
		          tempFilePath: tempFilePath,
		          success: function (res) {
		            console.log(res)
		            var saveFilePath = res.savedFilePath;
					that.posterimg=res.savedFilePath
		            
		
		            console.log('123456855555555', that.posterimg)
		
		          }, //可以将saveFilePath写入到页面数据中
		          fail: function (res) { },
		          complete: function (res) {
		            console.log('complete后的res数据:')
		          },
		        }) //,
		      },
		      // fail: function (res) {
		      //   wx.showModal({
		      //     title: '下载失败',
		      //     content: '请联系管理员',
		      //   })
		      // },
		      complete: function (res) { },
		    })
		  },
		//关闭海报
		
		cancel(){
			let that=this;
			this.isCanvas=false  
			setTimeout(function(){
				uni.redirectTo({
					url:"/pages/course/courseDetail?id="+that.customs_id+'&courseid='+that.course_id
				})
			},100)
		},
		
		// 关闭弹窗
		closeDialog() {
			this.isDialog = false;
			this.isContent = false;
			this.isCanvas = false;
		},
		
	},
	onLoad(options) {
		console.log('999',options)
		this.customs_id=options.custom_id;
		this.course_id=options.courseid;
		if(options.changetype!=undefined){
			this.changetype=options.changetype
		}
		
		if(options.change==1){
			console.log(8888)
			// var item=JSON.parse(options.item)
			// console.log(item)
			this.clock_log_id=options.clock_log_id;
			
			this.getcordtail()
		}
		
		
		this.getfenshu()	
	},
	// 分享
	onShareAppMessage() {
		if (res.from === 'button') {
			// 来自页面内分享按钮
		}
		return {
			title: '打卡',
			path: '/pages/course/submitClock'
		};
	}
};
</script>

<style lang="scss">
	.register{
		z-index:9999;
		
	}
	.canvas_dialog{
		z-index:99999;
	}
	.clockimg{
		width:32rpx;
		height:32rpx;
		font-size: 0;
	}
	.dakaganwu{
		width:353rpx;
	}
	.imagebox{
		flex-wrap: wrap;
	}
	.topimg{
		width:100%;
		height:905rpx;
	}
	.addimg{
		position: relative;
		margin-right:32rpx;
	}
	.closeimg{
		width:36rpx;
		height:36rpx;
		font-size: 0;
		position: absolute;
		right:-20rpx;
		top:0
	}
.submit_clock {
	border-top: 24upx solid #fafbfd;
	padding: 50upx 32upx;
	// 标题
	.clock_title {
		margin-bottom: 76upx;
		image {
			width: 32upx;
			margin-right: 10upx;
		}
		.title_l {
			color: #595959;
			font-size: 36upx;
		}
		.title_r {
			color: #8c9198;
			font-size: 24upx;
		}
		.juse{
			color:#EE8B27;
		}
	}
	// 打卡
	.clock_single {
		color: #06121e;
		font-size: 32upx;
		margin-bottom: 32upx;
		textarea {
			padding: 12upx 24upx;
			width: 516upx;
			box-sizing: border-box;
			background-color: #f9f9f9;
			font-size: 28upx;
		}
		.add_img {
			width: 140upx;
			height: 140upx;
			margin-top: 26upx;
		}
	}
	// 自我打分
	.self_mark {
		.mark_title {
			margin-bottom: 36upx;
		}
		.no_icon_single {
			font-size: 28upx;
			color: #06121e;
			margin-bottom: 14upx;
			// 选择框
			.score_picker {
				width: 156upx;
				height: 46upx;
				background: rgba(249, 249, 249, 1);
				border-radius: 8upx;
				padding: 0 12upx 0 46upx;
				color: #bdc4ce;
				font-size: 24upx;
				image {
					width: 20upx;
				}
			}
		}
	}
	// 按钮
	.submit_btn {
		height: 96upx;
		line-height: 96upx;
		width: 100%;
		text-align: center;
		color: #fff;
		font-size: 28upx;
		box-shadow: 0px 6upx 6upx rgba(238, 139, 39, 0.16);
		border-radius: 48upx;
		background-color: #ee8b27;
		margin-top: 100upx;
	}
	// 提示弹窗
	.content_tips {
		margin: 80upx 0 100upx;
		color: #06121e;
		font-size: 28upx;
		text-align: center;
	}
	.content_btn {
		width: 252upx;
		height: 60upx;
		background: rgba(238, 139, 39, 1);
		border-radius: 8upx;
		font-size: 28upx;
		line-height: 60upx;
		text-align: center;
		margin: 0 auto;
		color: #fff;
		margin-bottom: 66upx;
	}
	// 分享按钮
	.share_group_btn {
		margin-top:25rpx;
		.share_btn {
			width: 192upx;
			height: 62upx;
			border: 1px solid #fff;
			border-radius: 8upx;
			color: #fff;
			position: relative;
			image {
				width: 32upx;
			}
			button{
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				z-index: 101;
				opacity: 0;
			}
		}
	}
}
</style>