浏览代码

Merge remote-tracking branch 'origin/2024鹅状元' into 2024鹅状元

wangxy 5 月之前
父节点
当前提交
eb240f4f79
共有 9 个文件被更改,包括 488 次插入74 次删除
  1. 6 0
      App.vue
  2. 11 0
      api/login.js
  3. 63 0
      common/styles/global/pages.scss
  4. 53 23
      pages/login/index.vue
  5. 290 0
      pages/login/telDialog.vue
  6. 1 0
      pages/my/index.vue
  7. 12 6
      pages/my/telDialog.vue
  8. 29 33
      pages/pay/order.vue
  9. 23 12
      pages/study/index.vue

+ 6 - 0
App.vue

@@ -11,13 +11,19 @@
 		// creat by wgy 0619  生命周期 钩子  
 		onLaunch: function() {
 			//console.log('App Launch')
+			
 		},
 		onShow: function() {
+
 			// #ifdef APP-PLUS
+					
 			if (cacheManager.get('auth')) {	
 				uni.redirectTo({
 					url: `/pages/study/index`
 				})
+			}else if(!(cacheManager.get('wxLogin').bind)){
+					console.log('asdfadsfadsfasd')
+				// 微信登录且未绑定 
 			} else {
 				cacheManager.clearAll()
 				uni.redirectTo({

+ 11 - 0
api/login.js

@@ -54,4 +54,15 @@ export function telBind(data = {}) {
     data,
     timeout: 20000
   })
+}
+export function firstTelBind(data = {}) {
+  return request({
+    'url': '/common/app/bind/code',
+    headers: {
+      isToken: false
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
 }

+ 63 - 0
common/styles/global/pages.scss

@@ -1033,6 +1033,69 @@
 	}
 }
 
+// 订单
+.ezy-order-page{
+	width: 100%;height: 100vh;background-color: #00c5fe;position: relative;
+	padding-top:var(--status-bar-height);display: flex;flex-direction: column;
+	@include ezy-no-repeat-cover(bottom);background-image: url("@/static/images/common/ezy-page-bj.png");
+	.uni-list{background-color: transparent!important;}
+	.uni-list--border-top,.uni-list--border-bottom{display: none;}
+	.uni-list-item__header{display: none;}
+	.uni-list-item__container{
+		flex-direction: column!important;position: relative;
+		padding:16rpx 20rpx !important;overflow: unset;}
+	
+	.order-scroll-view{margin-top: 10rpx;overflow-y: auto;height: calc(100vh - 380rpx - var(--status-bar-height));}
+	.order-list-item{
+		width: 94%;background-color: rgba(255, 255, 255, 0.6)!important;
+		margin: 0 3% 10rpx;border-radius: 8rpx;
+		.order-item-head{
+			display: flex;justify-content: space-between;align-items: center;font-size: 24rpx;color: #333;
+			.order-name-box{
+				display: flex;align-items: center;
+				icon{
+					width: 58rpx;height: 58rpx;margin-right: 10rpx;
+					@include ezy-no-repeat-cover;background-image: url("@/static/images/pay/order-icon.png");
+				}
+			}
+			.pay-status{color:#fdae36;margin-left: 36rpx;}
+		}
+		
+		.order-content-box{
+			display: flex;margin-top: 10rpx;border-bottom: 1px dashed #fff;
+			box-sizing: border-box;padding-bottom: 32rpx;margin-bottom: 24rpx;
+			icon{width: 212rpx;height: 202rpx;margin-right: 20rpx;@include ezy-no-repeat-cover;}
+			.content-img1{background-image: url("@/static/images/pay/svip1.png");}
+			.content-body-box{display: flex;flex-direction: column;}
+			.content-name{
+				font-size: 40rpx;color: #333;margin-bottom: 12rpx;
+			}
+			.content-tag{
+				width: 160rpx;height: 40rpx;line-height: 40rpx;
+				font-size: 24rpx;color: #01c6fe;background-color: rgba(255, 255, 255, 0.6);
+				border-radius: 4rpx;text-align: center;
+			}
+			.content-yuanjia{font-size: 42rpx;color: #ff0101;margin-top: auto;}
+		}
+		
+		.order-bottom-box{
+			box-sizing: border-box;padding-bottom: 24rpx;
+			.bottom-money-box{
+				 display: flex;justify-content: space-between;align-items: center;
+				.bottom-data{font-size: 24rpx;color: #999;}
+				.bottom-money{color: #333;}
+			}
+			.bottom-btn{
+				width: 167rpx;height: 52rpx;line-height: 52rpx;text-align: center;color: #FFF;font-size: 28rpx;margin-left: auto;
+				@include ezy-no-repeat-cover;background-image: url("@/static/images/pay/order-btn-bj.png");margin-top: 24rpx;
+
+			}
+		}
+	}
+	
+	
+}
+
 // 游戏
 .ezy-game-page{
 	width: 100%;height: 100vh;background-color: #23befb;position: relative;

+ 53 - 23
pages/login/index.vue

@@ -31,12 +31,14 @@
 		<agree-content-dialog ref="agreeContentDialogRef"></agree-content-dialog>
 		<agree-dialog ref="agreeDialogRef" @confirm-btn="confirmBtn"></agree-dialog>
 		<agree-dialog ref="agreeYkDialog" @confirm-btn="ykConfirmBtn"></agree-dialog>
+		<tel-dialog ref="telDialogRef" @telClose="telClose" @bindBtn="bindBtn" v-if="telDialogFlag"></tel-dialog>
 	</view>
 </template>
 
 <script setup>
 	import {
 		ref,
+		nextTick,
 		reactive
 	} from "vue"
 	import {
@@ -52,6 +54,8 @@
 		toast,
 		getUserIdentity
 	} from "@/utils/common";
+	import telDialog from './telDialog.vue'
+	import cacheManager from "@/utils/cacheManager.js";
 	import {
 		error
 	} from "uview-plus";
@@ -65,6 +69,8 @@
 	const agreeContentDialogRef = ref(null);
 	const agreeDialogRef = ref(null);
 	const agreeYkDialog = ref(null);
+	const telDialogRef = ref(null);
+	let telDialogFlag = ref(false);
 
 	onLoad((options) => {})
 
@@ -84,7 +90,22 @@
 		indexData.isAgreed = true;
 		getYzmBtn();
 	}
-	
+	const telClose = () => {
+		telDialogFlag.value = false;
+	}
+	const bindBtn = (res) => {
+		telDialogFlag.value = false;
+		if (res.cardId == 0) {
+			uni.redirectTo({
+				url: `/pages/selectGradesTerms/index`
+			})
+		} else {
+			uni.redirectTo({
+				url: `/pages/study/index`
+			})
+		}
+	}
+
 	const ykConfirmBtn = () => {
 		uni.navigateTo({
 			url: `/pages/selectGradesTerms/index`
@@ -137,26 +158,23 @@
 		}
 	}
 
-	const wxLoginClick = () => {
-		
-		//获取服务商信息判断手机端是否安装了app
-		// uni.getProvider({
-		// 	service: 'oauth',// oauth  代表授权登录
-		// 	success: function (res) {
-		// 	  // 登录
-		// 	  uni.login({
-		// 		  // 表示授权方式  如果不设置则弹出登录列表选择界面
-		// 		  provider: 'weixin',
-		// 		 	"onlyAuthorize": true, // 微信登录仅请求授权认证
-		// 		  success: function (loginRes) {
-		// 			  		console.log('loginRes',loginRes); 
-				 
-		// 		  }
-		// 	  });
-		//    }
-		// });
-		
-		
+	const wxLoginClick = () => {
+		//获取服务商信息判断手机端是否安装了app
+		// uni.getProvider({
+		// 	service: 'oauth',// oauth  代表授权登录
+		// 	success: function (res) {
+		// 	  // 登录
+		// 	  uni.login({
+		// 		  // 表示授权方式  如果不设置则弹出登录列表选择界面
+		// 		  provider: 'weixin',
+		// 		 	"onlyAuthorize": true, // 微信登录仅请求授权认证
+		// 		  success: function (loginRes) {
+		// 			  		console.log('loginRes',loginRes); 
+
+		// 		  }
+		// 	  });
+		//    }
+		// });
 		uni.login({
 			"provider": "weixin",
 			"onlyAuthorize": true, // 微信登录仅请求授权认证
@@ -170,8 +188,20 @@
 					"apple": false,
 					"code": code
 				}
-				wxLogin(req).then(res => {
+				wxLogin(req).then(res => {
 					console.log(res);
+					if (!res.data.bind) {
+						console.log('未绑定');
+						cacheManager.set('wxLogin', { 
+							bind: res.data.bing
+						})
+						telDialogFlag.value = true;
+						nextTick(() => {
+							telDialogRef.value.getOpenId(res.data.openId);
+						})
+					} else {
+
+					}
 				}).catch((error) => {
 					console.log(error);
 				})
@@ -183,4 +213,4 @@
 			}
 		})
 	}
-</script> 
+</script>

+ 290 - 0
pages/login/telDialog.vue

@@ -0,0 +1,290 @@
+<template>
+	<view class="my-tel-dialog">
+		<view class="my-tel-content">
+			<view class="tel-close" @click="telClose(AWSC)"></view>
+			<view class="tel-row">
+				<view class="my-tel-title">绑定手机号</view>
+				<view class="my-input-box">
+					<input class="my-input" type="text" v-model="bindObj.telNumber" placeholder="请输入手机号" maxlength="11"
+						@input="changeTelInput" />
+					<view class="close-btn" v-if="bindObj.clearTelIcon" @click="clearTel"></view>
+				</view>
+				<view id="my-yzm-slider" :myflag="myflag" :change:myflag="AWSC.getReset"></view>
+				<view class="get-yzm-btn" @click="AWSC.getSliderData"
+					:class="{ 'get-yzm-disabled': bindObj.isDisabled}">{{bindObj.buttonText}}</view>
+			</view>
+			<view class="yzm-row">
+				<view class="yzm-tip" v-if="bindObj.getYzmFlag">验证码已发送至:{{bindObj.telNumber}}</view>
+				<view class="my-input-box">
+					<input class="my-input" type="text" v-model="bindObj.yzmNumber" placeholder="请输入验证码" maxlength="6"
+						@input="changeYzmInput" />
+					<view class="close-btn" v-if="bindObj.clearYzmIcon" @click="clearYzm"></view>
+				</view>
+				<view @click="bindBtn" class="my-bind-btn">绑定</view>
+			</view>
+
+		</view>
+	</view>
+</template>
+<script>
+	import cacheManager from '@/utils/cacheManager.js';
+	import {
+		firstTelBind,
+		sendCode
+	} from "@/api/login.js"
+	import {
+		toast
+	} from "../../utils/common";
+	export default {
+		data() {
+			return {
+				myflag: 0,
+				sliderObj: {
+					sessionId: '',
+					sig: '',
+					token: '',
+				},
+				bindObj: {
+					apple: false,
+					openId: '',
+					telNumber: '',
+					clearTelIcon: false,
+					yzmNumber: '',
+					clearYzmIcon: false,
+					/*** 验证码 ***/
+					yzmStatus: 'login-btn-disabled',
+					timeLeft: 60, // 初始倒计时时间(秒)
+					intervalId: null, // 定时器ID
+					isDisabled: true, // 按钮是否禁用
+					buttonText: '获取验证码', // 按钮文本
+					getYzmFlag: false, // 是否发送验证码
+				},
+			}
+		},
+		methods: {
+			receiveRenderData(data) {
+				this.sliderObj = data;
+				this.getYzmBtn();
+			},
+			telClose(AWSC) {
+				AWSC.getReset();
+				this.$emit('telClose')
+			},
+
+			// 清空手机号
+			clearTel() {
+				this.bindObj.telNumber = '';
+				this.bindObj.isDisabled = true;
+				this.bindObj.clearTelIcon = false;
+				this.bindObj.getYzmFlag = false;
+			},
+			getOpenId(data){
+				this.bindObj.openId = data
+			
+			},
+			// 判断是否输入手机号
+			changeTelInput(event) {
+				if (event.detail.value.length > 0) {
+					this.bindObj.clearTelIcon = true;
+					this.validatePhoneNumber(event.detail.value);
+				} else {
+					this.bindObj.clearTelIcon = false;
+				}
+			},
+
+			// 手机号校验规则
+			validatePhoneNumber(value) {
+				const phoneRegex = /^1[3-9]\d{9}$/;
+				if (phoneRegex.test(value)) {
+					// 通过
+					this.bindObj.isDisabled = false;
+				} else {
+					// 不通过
+					this.bindObj.isDisabled = true;
+				}
+			},
+			// 获取验证码按钮
+			getYzmBtn() {
+				// 判断手机号校验是否通过
+				if (this.bindObj.timeLeft != 60) {
+					toast('请在' + this.bindObj.timeLeft + '后重新获取验证码!')
+					return
+				} else if (this.bindObj.isDisabled === true) {
+					toast("请输入正确的手机号!")
+					return
+				} else {
+					this.startCountdown();
+					this.getMessage();
+					this.myflag++;
+					this.sliderObj = {};
+				}
+			},
+
+			getMessage() {
+				let req = {
+					appkey: "FFFF0N00000000007EC0",
+					phone: this.bindObj.telNumber,
+					scene: "nc_message_h5',",
+					sessionid: this.sliderObj.sessionId,
+					sig: this.sliderObj.sig,
+					token: this.sliderObj.token,
+				}
+				sendCode(req).then(res => {
+					this.bindObj.getYzmFlag = true;
+				}).catch(err => {
+					toast('验证码获取失败:' + err)
+				})
+			},
+
+			// 清空验证码
+			clearYzm() {
+				this.bindObj.yzmNumber = '';
+				this.bindObj.isDisabled = true;
+				this.bindObj.clearYzmIcon = false;
+			},
+
+			// 判断是否输入验证码
+			changeYzmInput(event) {
+				if (event.detail.value.length > 0) {
+					this.bindObj.clearYzmIcon = true;
+				} else {
+					this.bindObj.clearYzmIcon = false;
+				}
+			},
+
+			// 开始计时
+			startCountdown() {
+
+				if (this.bindObj.buttonText === '重新发送') {
+					this.sliderFlag = true;
+				}
+				this.bindObj.isDisabled = true;
+				this.bindObj.buttonText = `重新发送(${this.bindObj.timeLeft}S)`;
+
+				// 清除之前的定时器(如果有)
+				if (this.bindObj.intervalId) {
+					clearInterval(this.bindObj.intervalId);
+				}
+
+				// 设置新的定时器
+				this.bindObj.intervalId = setInterval(() => {
+					this.bindObj.timeLeft--;
+					if (this.bindObj.timeLeft <= 0) {
+						clearInterval(this.bindObj.intervalId);
+						this.bindObj.timeLeft = 60; // 重置倒计时
+						this.bindObj.isDisabled = false;
+						this.bindObj.buttonText = '重新发送';
+					} else {
+						this.bindObj.buttonText = `重新发送(${this.bindObj.timeLeft}S)`;
+					}
+				}, 1000);
+			},
+
+			// 绑定按钮
+			bindBtn() {
+				if (this.bindObj.telNumber === '') {
+					toast('手机号不能为空')
+					return;
+				}
+				if (this.bindObj.yzmNumber === '') {
+					toast('验证码不能为空')
+					return;
+				}
+
+				let req = {
+					tel: this.bindObj.telNumber,
+					code: this.bindObj.yzmNumber,
+					apple: this.bindObj.apple,
+					openId: this.bindObj.openId,
+				}
+				console.log(req);
+				firstTelBind(req).then(res => {
+					if (res.code == 0) {
+						console.log(res.data);
+						toast('手机号绑定成功')
+						cacheManager.set('auth',res.data)
+						this.$emit('bindBtn',res.data)
+					//	this.telClose();
+				
+					}
+				})
+			},
+		}
+	}
+</script>
+
+<script module="AWSC" lang="renderjs">
+	import {
+		toast
+	} from "../../utils/common";
+	export default {
+		mounted() {
+			const script = document.createElement('script');
+			script.src = 'https://g.alicdn.com/AWSC/AWSC/awsc.js';
+			document.body.appendChild(script);
+			script.onload = () => {
+				this.init()
+			}
+		},
+		data() {
+			return {
+				sessionId: '',
+				sig: '',
+				token: '',
+				nc: null,
+			}
+		},
+		methods: {
+			init() {
+				let that = this
+				AWSC.use("nc", function(state, module) {
+					that.nc = module.init({
+						// 应用类型标识。它和使用场景标识(scene字段)一起决定了滑动验证的业务场景与后端对应使用的策略模型。您可以在阿里云验证码控制台的配置管理页签找到对应的appkey字段值,请务必正确填写。
+						appkey: "FFFF0N00000000007EC0",
+						//使用场景标识。它和应用类型标识(appkey字段)一起决定了滑动验证的业务场景与后端对应使用的策略模型。您可以在阿里云验证码控制台的配置管理页签找到对应的scene值,请务必正确填写。
+						scene: "nc_message_h5",
+						// 声明滑动验证需要渲染的目标ID。
+						renderTo: "my-yzm-slider",
+						//前端滑动验证通过时会触发该回调参数。您可以在该回调参数中将会话ID(sessionId)、签名串(sig)、请求唯一标识(token)字段记录下来,随业务请求一同发送至您的服务端调用验签。
+						success: function(data) {
+							that.getData(data)
+						},
+						// 滑动验证失败时触发该回调参数。
+						fail: function(failCode) {
+							console.log('失败:' + failCode)
+						},
+						// 验证码加载出现异常时触发该回调参数。
+						error: function(errorCode) {
+							console.log('异常:' + errorCode)
+						}
+					});
+				})
+			},
+			getData(data) {
+				this.sessionId = data.sessionId
+				this.sig = data.sig
+				this.token = data.token
+				AWSC.getSliderData;
+			},
+			getReset() {
+				this.sessionId = '';
+				this.sig = '';
+				this.token = '';
+				this.nc && this.nc.reset();
+			},
+			getSliderData(e, ownerInstance) {
+				if (this.sessionId) {
+					ownerInstance.callMethod('receiveRenderData', {
+						sessionId: this.sessionId,
+						sig: this.sig,
+						token: this.token
+					})
+				} else {
+					toast("请先完成滑块验证!")
+				}
+
+			}
+
+		}
+	}
+</script>

+ 1 - 0
pages/my/index.vue

@@ -123,6 +123,7 @@
 	
 	// 手机号码绑定
 	function bindBtn(){
+		telDialogFlag.value = false;
 		myGetAuth()
 	}
 	

+ 12 - 6
pages/my/telDialog.vue

@@ -64,10 +64,19 @@
 				this.sliderObj = data;
 				this.getYzmBtn();
 			},
+			
+			showToast(){
+				toast("请先完成滑块验证!")
+			},
+			
 			telClose(AWSC) {
 				AWSC.getReset();
 				this.$emit('telClose')
 			},
+			
+			telReset(){
+				this.myflag++;
+			},
 
 			// 清空手机号
 			clearTel() {
@@ -110,7 +119,7 @@
 				}else{
 					this.startCountdown();
 					this.getMessage();
-					this.myflag++;
+					this.telReset();
 					this.sliderObj = {};
 				}
 			},
@@ -194,7 +203,7 @@
 					if (res.code == 0) {
 						toast('手机号绑定成功')
 						this.updataTel(this.bindObj.telNumber);
-						this.telClose();
+						this.telReset();
 						this.$emit('bindBtn')
 					}
 				})
@@ -211,9 +220,6 @@
 </script>
 
 <script module="AWSC" lang="renderjs">
-	import {
-		toast
-	} from "../../utils/common";
 	export default {
 		mounted() {
 			const script = document.createElement('script');
@@ -277,7 +283,7 @@
 						token: this.token
 					})
 				} else {
-					toast("请先完成滑块验证!")
+					ownerInstance.callMethod('showToast')
 				}
 
 			}

+ 29 - 33
pages/pay/order.vue

@@ -1,51 +1,47 @@
 <template>
-	<view class="ezy-cuoti-page">
+	<view class="ezy-order-page">
 		<view class="icon-title-navBar-box">
 			<view @click="goBack" class="nav-bar-icon"></view>
 			<text class="nav-bar-title">我的订单</text>
 		</view>
-		<view class="cuoti-border-box">
+		<view class="ezy-tab-border">
 
 			<uni-segmented-control :current="dingdanData.current" :values="dingdanData.items" active-color="#3A7FE9"
-				@clickItem="onChangeTab" class="cuo-tab-box" />
-			<view class="cuoti-content-box">
+				@clickItem="onChangeTab" class="ezy-tab-box" />
+			<view>
 				<view v-if="dingdanData.current === 0">
 					<scroll-view scroll-y="true" refresher-enabled="true"
 						:refresher-triggered="dingdanData.quanbu.loading" :refresher-threshold="50"
-						refresher-background="lightgreen" @refresherrefresh="onRefresh" class="cuoti-scroll-view">
+						refresher-background="transparent" @refresherrefresh="onRefresh" class="order-scroll-view">
 						<!--数学-->
 						<uni-list>
-							<uni-list-item v-for="item in dingdanData.quanbu.list" class="list-item-box">
+							<uni-list-item v-for="item in dingdanData.quanbu.list" class="order-list-item">
 								<template v-slot:body>
-									<view>
-										鹅状元自营 不支持退订
+									<view class="order-item-head">
+										<view class="order-name-box">
+											<icon></icon><text>鹅状元自营</text>
+										</view>
+										<view>
+											<text>不支持退订</text>
+											<text v-if="item.status ==0||item.status ==1" class="pay-status">已付款</text>
+											<text v-if="item.status ==2" class="pay-status">待付款</text>
+										</view>
 									</view>
-									<view v-if="item.status ==0||item.status ==1">
-										已付款
+									<view class="order-content-box">
+										<icon :class="'content-img'+item.cardId"></icon>
+										<view class="content-body-box">
+											<view class="content-name">SVIP终身卡</view>
+											<view class="content-tag">终身有效</view>
+											<view class="content-yuanjia">¥{{item.cardYuanjia}}</view>
+										</view>
 									</view>
-									<view v-if="item.status ==2">
-										未付款
-									</view>
-									<view>
-										图片
-									</view>
-									<view>
-										{{item.cardName}}
-
-									</view>
-									<view>
-
-										{{item.cardYuanjia}}
-									</view>
-									<view>
-										{{item.ctime}}
-
-									</view>
-									<view>
-										实付款:{{item.money}}
-									</view>
-									<view v-if="item.status ==1">
-										立即支付
+									<view class="order-bottom-box">
+										<view class="bottom-money-box">
+											<text class="bottom-data">{{item.ctime}}</text>
+											<text class="bottom-money">实付款:¥{{item.money}}</text>
+										</view>
+										<!--  v-if="item.status ==1" -->
+										<view class="bottom-btn">立即支付</view>
 									</view>
 								</template>
 							</uni-list-item>

+ 23 - 12
pages/study/index.vue

@@ -81,7 +81,7 @@
 			// 已登录
 			// 选择年级进入调用此接口
 			//options.flag == 'selectGrades'
-			if (!selectZhang.value.eggFlag) {
+			if (!selectZhang.value.firstLogin) {
 				nextTick(() => {
 					eggDialogRef.value.eggShow();
 				})
@@ -175,6 +175,7 @@
 	}
 
 	function onRight(event) {
+		console.log('');
 		const authCode = getUserIdentity();
 		if (authCode !== 'VIP') {
 			return false
@@ -187,16 +188,26 @@
 		}
 		userZhangNextInfo(req).then(res => {
 			cacheManager.set('zhangInfo', res.data)
-			infoData.jieList = res.data.jieList
-			infoData.haveFlag = res.data.haveFlag
-			infoData.nianji = res.data.nianji
-			infoData.number = res.data.number
-			infoData.numberStr = res.data.numberStr
-			infoData.cardId = res.data.cardId
-			infoData.zhangId = res.data.zhangId
-			infoData.zhangName = res.data.zhangName
-			recordZhangJie()
-			getNewData()
+			nextTick(() => {
+				// uni.redirectTo({
+				// 	url: `/pages/study/index`
+				// })
+				uni.navigateTo({
+				  url:  `/pages/study/index`
+				});
+			})
+
+			// cacheManager.set('zhangInfo', res.data)
+			// infoData.jieList = res.data.jieList
+			// infoData.haveFlag = res.data.haveFlag
+			// infoData.nianji = res.data.nianji
+			// infoData.number = res.data.number
+			// infoData.numberStr = res.data.numberStr
+			// infoData.cardId = res.data.cardId
+			// infoData.zhangId = res.data.zhangId
+			// infoData.zhangName = res.data.zhangName
+			// recordZhangJie()
+			// getNewData()
 		})
 	}
 
@@ -303,7 +314,7 @@
 	function eggBtn() {
 		console.log('点击:开启提分之旅');
 		cacheManager.updateObject('auth', {
-			eggFlag: true
+			firstLogin: true
 		})
 	}
 </script>