Преглед изворни кода

Merge branch 'dev-5.0' of http://192.168.32.253:3000/Software/android-cloud-H5 into dev-5.0

huangxiaojing пре 3 година
родитељ
комит
e2165e8ce0

+ 577 - 0
microserviceUserH5/static/css/replacementActivities.css

@@ -0,0 +1,577 @@
+@media screen and (max-width: 1280px) {
+  html {
+    font-size: calc(100vw / 7.5);
+  }
+}
+
+@media screen and (min-width: 1280px) {
+  html {
+    font-size: calc(1280px / 7.5);
+  }
+}
+
+html, body, div, ul, li, p {
+  padding: 0;
+  margin: 0;
+}
+
+ul, li {
+  list-style: none;
+}
+.container {
+  width: 7.5rem;
+  margin: 0 auto;
+  min-height: 37.69rem;
+  background: url(../img/replacementActivities/bj.png) no-repeat;
+  background-size: cover;
+  overflow: hidden;
+}
+.share-node{
+  width: 0.7rem;
+  height: 1.8rem;
+  position: fixed;
+  background: #084558;
+  border-radius: 0.15rem 0 0 0.15rem;
+  top: 8.17rem;
+  right: 0;
+  overflow: hidden;
+}
+.share{ 
+  width: 0.45rem;
+  height: 0.46rem;
+  margin: 0.23rem auto 0;
+  display: block;
+}
+.qq{ 
+  width: 0.44rem;
+  height: 0.46rem;
+  margin: 0.17rem auto 0;
+  display: block;
+}
+.line {
+  width: 0.4rem;
+  height: 1px;
+  background: #53A3B7;
+  opacity: 0.4;
+  margin: 0.18rem auto 0;
+}
+.cs{ 
+  width: 0.44rem;
+  height: 0.45rem;
+  margin: 0.15rem auto 0;
+  display: block;
+}
+.date {
+  width: 5.93rem;
+  height: 0.7rem;
+  line-height: 0.7rem;
+  background: rgba(255, 255, 255, 0.18);
+  border-radius: 0.35rem;
+  text-align: center;
+  font-size: 0.32rem;
+  color: #FFFFFE;
+  text-shadow: 0px 3px 0px rgba(0, 0, 0, 0.22);
+  margin: 6.89rem auto 0;
+}
+.header{
+  width: 6.64rem;
+  height: 6.53rem;
+  margin: 0.17rem auto 0;
+  overflow: hidden;
+  border: 1px solid #62767B;
+  border-radius: 0.2rem;
+  background-color: #04222C;
+}
+.mt55 {
+  margin-top: 0.55rem;
+}
+.mt50 {
+  margin-top: 0.5rem;
+}
+.w666h874 {
+  width: 6.66rem;
+  height: 8.74rem;
+  display: block;
+  margin: 0 auto;
+}
+.w666h864 {
+  width: 6.66rem;
+  height: 8.64rem;
+  display: block;
+  margin: 0 auto;
+}
+.w670h476 {
+  width: 6.7rem;
+  height: 4.76rem;
+  display: block;
+  margin: 0 auto;
+}
+.input-container {
+  margin: 0.3rem 0.2rem;
+  border-radius: 0.2rem;
+  height: 4.9rem;
+  background-color: #193B45;
+  overflow: hidden;
+  position: relative;
+}
+.login-container{
+  margin: 0.02rem;
+  height: calc(100% - 0.04rem);
+  border: 1px solid #B58E6D;
+  border-radius: 0.2rem;
+  box-sizing: border-box;
+  overflow: hidden;
+}
+.login-bar{
+  width: 6.54rem;
+  height: 0.96rem;
+  background: url(../img/replacementActivities/bar.png) no-repeat;
+  background-size: 100% 100%;
+  font-size: 0.48rem;
+  text-align: center;
+  line-height: 0.81rem;
+  font-weight: bold;
+  color: #2A7A81;
+}
+.login-row-select{
+  overflow: hidden;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  position: relative;
+  margin-top: 0.4rem;
+}
+.options{
+  width: 4.14rem;
+  height: 1.36rem;
+  position: absolute;
+  top: 0.9rem;
+  left: 1.36rem;
+  z-index: 9999;
+  background-color: #1F3F47;
+  display: none;
+  border-radius: 0.1rem;
+  -webkit-box-shadow:0 0 0.2rem #4A636A inset;
+  -moz-box-shadow:0 0 0.2rem #4A636A inset;
+  box-shadow:0 0 0.2rem #4A636A inset;
+}
+.show{
+  display: block;
+}
+.icon-down-first, .icon-down-second, .icon-down-third {
+  width: 100%;
+  height: 0.45rem;
+  line-height: 0.45rem;
+  text-align: center;
+  font-size: 0.24rem;
+  color: #63A1B0;
+}
+.icon-down-first:hover, .icon-down-second:hover, .icon-down-third:hover {
+  background-color: #20444D;
+}
+input:disabled, input[disabled] {
+  border: 1px solid #325C75;
+  color:#63A1B0;
+  -webkit-text-fill-color:#63A1B0;
+}
+.login-row-account{
+  overflow: hidden;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  margin-top: 0.3rem;
+}
+.login-row-password{
+  overflow: hidden;
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+}
+.login-row-title{
+  margin-left: 0.3rem;
+  font-size: 0.3rem;
+  font-weight: 400;
+  color: #63A1B0;
+}
+.login-row-plc{
+  position: absolute;
+  top: 0.1rem;
+  left: 1.14rem;
+  font-size: 0.28rem;
+}
+.br {
+  border: 1px solid #e72f2f !important;
+}
+.login-row-ipt{
+  width: 4.14rem;
+  height: 0.59rem;
+  border-radius: 0.08rem;
+  outline: none;
+  background: #1A3A43;
+  border: 1px solid #325C75;
+  padding-left: 0.24rem;
+  box-sizing: border-box;
+  font-size: 0.24rem;
+  color: #63A1B0;
+  line-height: 0.05rem;
+  margin-right: 0.3rem;
+}
+.tip-text1, .tip-text2, .tip-text3 {
+  font-size: 0.24rem;
+  color: #e72f2f;
+  height: 0.3rem;
+  line-height: 0.3rem;
+  padding-left: 1.7rem;
+}
+input:-ms-input-placeholder {
+  color: #63A1B0;
+  opacity: 0.2;
+}
+input::-webkit-input-placeholder {
+  color: #63A1B0;
+  opacity: 0.2;
+}
+input::-moz-placeholder {
+  color: #63A1B0;
+  opacity: 0.2;
+}
+input:-moz-placeholder {
+  color: #63A1B0;
+  opacity: 0.2;
+}
+.form-btn {
+  width: 5.6rem;
+  height: 0.82rem;
+  margin: 0 auto;
+  background-image: url('../img/replacementActivities/btn.png');
+  background-size: 100% 100%;
+}
+
+.icon-down-img{
+  width: 0.18rem;
+  height: 0.1rem;
+  position: absolute;
+  top: 0.21rem;
+  right: 0.57rem;
+}
+.login-btn{
+  width: 2.75rem;
+  height: 0.75rem;
+  position: absolute;
+  bottom: 0.22rem;
+  left: 1.76rem;
+}
+.login-btn-text{
+  width: 1.81rem;
+  height: 0.48rem;
+  position: absolute;
+  bottom: 0.39rem;
+  left: 2.21rem;
+}
+.read-rule{
+  position: absolute;
+  top: 11.58rem;
+  left: 2.02rem;
+}
+.selected{
+  width: 0.14rem;
+  height: 0.14rem;
+  position: absolute;
+  top: 0.84rem;
+  left: 0.15rem;
+}
+.no-selected{
+  width: 0.2rem;
+  height: 0.2rem;
+  position: absolute;
+  top: 0.82rem;
+  left: 0.12rem;
+}
+.rule-text{
+  width: 3.11rem;
+  height: 0.23rem;
+  position: absolute;
+  top: 0.8rem;
+  left: 0.42rem;
+}
+.entry-QQ{
+  width: 5.84rem;
+  height: 0.6rem;
+  position: absolute;
+  bottom: -0.2rem;
+  left: 0.83rem;
+  z-index: 9;
+}
+.entry-QQ-btn{
+  width: 5.84rem;
+  height: 0.6rem;
+  position: absolute;
+  bottom: 0;
+  left: 0;
+}
+.middle{
+  width: 7.5rem;
+  height: 13.34rem;
+  margin: 0 auto;
+  position: relative;
+  top: -0.02rem;
+}
+.middle_bg_img{
+  width: 100%;
+  height: 100%;
+}
+.activity-rule{
+  width: 5.36rem;
+  height: 0.97rem;
+  position: absolute;
+  top: 0.42rem;
+  left: 1.07rem;
+}
+.activity-rule-btn{
+  width: 5.36rem;
+  height: 0.97rem;
+  position: absolute;
+  top: 0.04rem;
+  left: 0;
+}
+.activity-rule-text{
+  width: 1.56rem;
+  height: 0.37rem;
+  position: absolute;
+  top: 0.3rem;
+  left: 1.9rem;
+}
+.rule1{
+  width: 6.2rem;
+  height: 3.27rem;
+  position: absolute;
+  top: 1.75rem;
+  left: 0.65rem;
+}
+.rule6{
+  width: 5.28rem;
+  height: 0.9rem;
+  position: absolute;
+  top: 5.62rem;
+  left: 1.11rem;
+}
+.rule2{
+  width: 6.2rem;
+  height: 4.25rem;
+  position: absolute;
+  top: 6.9rem;
+  left: 0.65rem;
+}
+.rule3{
+  width: 6.2rem;
+  height: 4.2rem;
+  position: absolute;
+  top: 11.56rem;
+  left: 0.65rem;
+  z-index: 999;
+}
+.footer{
+  width: 7.5rem;
+  height: 13.34rem;
+  margin: 0 auto;
+  position: relative;
+  top: -0.05rem;
+}
+.footer_bg_img{
+  width: 100%;
+  height: 106%;
+}
+.rule4{
+  width: 6.2rem;
+  height: 5rem;
+  position: absolute;
+  top: 2.81rem;
+  left: 0.65rem;
+}
+
+.rule5{
+  width: 6.2rem;
+  height: 5.38rem;
+  position: absolute;
+  top: 8.17rem;
+  left: 0.65rem;
+}
+
+#toast-container>.toast-error {
+  background-image: none !important;
+}
+
+.toast-error {
+  background-color: rgba(0, 0, 0, 0.8);
+}
+
+#toast-container>div {
+  font-size: 14px;
+  min-width: 80px !important;
+  padding: 12px !important;
+  box-shadow: none;
+}
+
+.toast-center-center {
+  min-width: 100px;
+  top: 50%;
+  left: 50%;
+  text-align: center;
+  transform: translateX(-50%);
+}
+
+@media (max-width: 480px) and (min-width: 241px) {
+  #toast-container>div {
+    min-width: 80px !important;
+    width: auto;
+  }
+}
+
+.mask1 {
+  width: 100%;
+  height: 100vh;
+  position: fixed;
+  top: 0;
+  left: 0;
+  z-index: 9999;
+  background: rgba(0, 0, 0, 0.24);
+  display: none;
+}
+
+.dialog1 {
+  width: 6.42rem;
+  height: 5.76rem;
+  position: absolute;
+  left: 0.7rem;
+  transform: translate(0, -50%);
+  top: -6.96rem;
+  z-index: 999;
+  position: relative;
+}
+.dialog1 .title1, .tip .title1, .tip1 .title1 {
+  font-size: 0.36rem;
+  font-weight: bold;
+  color: #FFFFFF;
+  position: absolute;
+  top: 2.32rem;
+  left: 1.57rem;
+
+}
+.dialog-bg{
+  width: 6.42rem;
+  height: 5.76rem;
+}
+
+.title{
+  width: 2.75rem;
+  height: 0.38rem;
+  position: absolute;
+  top: 1.22rem;
+  left: 1.1rem;
+}
+.content{
+  width: 3.55rem;
+  height: 1.11rem;
+  position: absolute;
+  top: 2.01rem;
+  left: 0.72rem;
+}
+
+.register-btn{
+  width: 3.06rem;
+  height: 0.96rem;
+  position: absolute;
+  bottom: 1.53rem;
+  left: 1.53rem;
+}
+.register-text{
+  position: absolute;
+  bottom: 1.2rem;
+  left: 1rem;
+  font-size: 0.24rem;
+  font-weight: 300;
+  color: #333333;
+  opacity: 0.8;
+}
+.dialog1 .close {
+  width: 0.71rem;
+  height: 0.71rem;
+  position: absolute;
+  bottom: -0.26rem;
+  left: 2.7rem;
+}
+.tip {
+  width: 6.43rem;
+  height: 5.32rem;
+  position: absolute;
+  left: 0.69rem;
+  transform: translate(0, -50%);
+  top: -6.96rem;
+  z-index: 999;
+}
+.tip1 {
+  width: 6.43rem;
+  height: 5.72rem;
+  position: absolute;
+  left: 0.69rem;
+  transform: translate(0, -50%);
+  top: -6.96rem;
+  z-index: 999;
+}
+.dialog2-bg {
+  width: 6.43rem;
+  height: 5.32rem;
+}
+.dialog3-bg {
+  width: 6.43rem;
+  height: 5.72rem;
+}
+.tip .close {
+  width: 0.71rem;
+  height: 0.71rem;
+  position: absolute;
+  bottom: -0.71rem;
+  left: 2.7rem;
+}
+.tip1 .close {
+  width: 0.71rem;
+  height: 0.71rem;
+  position: absolute;
+  bottom: 0.2rem;
+  left: 2.71rem;
+}
+.tip-bg{
+  width: 4.88rem;
+  height: 2.8rem;
+}
+
+.tip-title{
+  width: 4.08rem;
+  text-align: center;
+  font-size: 14px;
+  margin-left: 0.4rem;
+  position: absolute;
+  bottom: 1.38rem;
+}
+
+.sure-btn{
+  width: 1.43rem;
+  height: 0.66rem;
+  position: absolute;
+  bottom: 0.53rem;
+  left: 1.76rem;
+}
+.sure-text{
+  width: 0.78rem;
+  height: 0.34rem;
+  position: absolute;
+  bottom: 0.73rem;
+  left: 2.05rem;
+}
+
+.hidden{
+  display: none;
+}
+.show{
+  display: block;
+}

BIN
microserviceUserH5/static/img/replacementActivities/activityReward.png


BIN
microserviceUserH5/static/img/replacementActivities/arrow.png


BIN
microserviceUserH5/static/img/replacementActivities/bar.png


BIN
microserviceUserH5/static/img/replacementActivities/bj.png


BIN
microserviceUserH5/static/img/replacementActivities/btn.png


BIN
microserviceUserH5/static/img/replacementActivities/close.png


BIN
microserviceUserH5/static/img/replacementActivities/cs.png


BIN
microserviceUserH5/static/img/replacementActivities/dialog.png


BIN
microserviceUserH5/static/img/replacementActivities/dialog2.png


BIN
microserviceUserH5/static/img/replacementActivities/dialog3.png


BIN
microserviceUserH5/static/img/replacementActivities/inviteeReward.png


BIN
microserviceUserH5/static/img/replacementActivities/mattersNeedAttention.png


BIN
microserviceUserH5/static/img/replacementActivities/qq.png


BIN
microserviceUserH5/static/img/replacementActivities/register-btn.png


BIN
microserviceUserH5/static/img/replacementActivities/share.png


+ 12 - 0
microserviceUserH5/vcloud/invite.html

@@ -326,6 +326,7 @@
 		var barHeight = html.getBoundingClientRect().width / 750 * 70 + 'px';
 		// validate(); // 生成验证码
 		function handleOnClick() {
+			console.log(595757816)
 			stopManyClick(()=>{toastr.error('活动已结束!')})
 		}
 		function validate() {
@@ -465,6 +466,17 @@
 		box-shadow: none;
 	}
 
+	.toast-center-center {
+		position: fixed;
+		min-width: 220px;
+		top: 50%;
+		left: 50%;
+		text-align: center;
+		transform: translateX(-50%);
+		color: #FFFFFF;
+		border-radius: 0.2rem;
+	}
+
 	@media (max-width: 480px) and (min-width: 241px) {
 		#toast-container>div {
 			min-width: 80px !important;

+ 6 - 6
microserviceUserH5/vcloud/invite2.html

@@ -103,7 +103,7 @@
 			}
 		}
 		$.ajax({
-			url: baseUrl + '/api/user/v3/invitation/client/getInvitationInfo',
+			url: baseUrl + '/api/activity/v3/invitation/getInvitationInfo',
 			type: 'get',
 			headers: {
 				'Authorization': id  //id
@@ -155,7 +155,7 @@
 			stopManyClick(() => {
 				var ipt_phones = $('#recv_ipt').val();
 				var c = $(this);
-				if (/[^\d]/.test(c.val())) {//替换非数字字符 v1/promote
+				if (/[^\d]/.test(c.val())) {//替换非数字字符
 					var temp_amount = c.val().replace(/[^\d]/g, '');
 					$(this).val(temp_amount);
 					toastr.error('请输入正确的手机号')
@@ -196,7 +196,7 @@
 			}
 			if (isiOS) {
 				$.ajax({
-					url: baseUrl + '/api/user/v1/promote',
+					url: baseUrl + '/api/activity/v1/promote',
 					type: 'get',
 					headers: {
 						'Authorization': id  //id
@@ -225,7 +225,7 @@
 				window.native.onClikWebView()
 			} else {
 				$.ajax({
-					url: baseUrl + '/api/user/v1/promote',
+					url: baseUrl + '/api/activity/v1/promote',
 					type: 'get',
 					headers: {
 						'Authorization': id  //id
@@ -254,7 +254,7 @@
 		// 查询季度排行榜
 		function getInvitationRankList() {
 			$.ajax({
-				url: baseUrl + '/api/user/v3/invitation/getInvitationRankList',
+				url: baseUrl + '/api/activity/v3/invitation/getInvitationRankList',
 				type: 'get',
 				headers: {
 					'Authorization': id  //id
@@ -306,7 +306,7 @@
 		// 查询最新获得奖励
 		function getInvitationRecently() {
 			$.ajax({
-				url: baseUrl + '/api/user/v3/invitation/getInvitationRecently',
+				url: baseUrl + '/api/activity/v3/invitation/getInvitationRecently',
 				type: 'get',
 				headers: {
 					'Authorization': id  //id

+ 14 - 3
microserviceUserH5/vcloud/promote.html

@@ -134,7 +134,7 @@
 				data.username = parameters['userName']
 				data.captchaVerification = captchaVerification
 				$.ajax({
-					url: baseUrl + '/promote/commitPhone',
+					url: baseUrl + '/api/activity/api/pro/commitPhone',
 					data: JSON.stringify(data),
 					type: 'post',
 					contentType: "application/json",
@@ -189,7 +189,7 @@
 				list.push(form)
 				// 推广页面下载埋点接口
 				$.ajax({
-					url: baseUrl + '/promote/burialSiteLog',
+					url: baseUrl + '/api/activity/user/access/burialSiteLog',
 					data: JSON.stringify(list),
 					type: 'post',
 					contentType: "application/json",
@@ -220,7 +220,7 @@
 			if (timer) { clearTimeout(timer); }
 			timer = setTimeout(() => { flag = true }, 1500);
 		}
-		visit()
+		// visit()
 	</script>
 </body>
 <style>
@@ -239,6 +239,17 @@
 		box-shadow: none;
 	}
 
+	.toast-center-center {
+		position: fixed;
+		min-width: 220px;
+		top: 50%;
+		left: 50%;
+		text-align: center;
+		transform: translateX(-50%);
+		color: #FFFFFF;
+		border-radius: 0.2rem;
+	}
+
 	@media (max-width: 480px) and (min-width: 241px) {
 		#toast-container>div {
 			min-width: 80px !important;

+ 95 - 71
microserviceUserH5/vcloud/register.html

@@ -10,18 +10,23 @@
 	<link rel="stylesheet" href="../static/css/normalize.css">
 	<link rel="stylesheet" href="../static/css/experience.css">
 	<link rel="stylesheet" href="../static/js/vender/toastr/toastr.min.css">
+	<link rel="stylesheet" href="../static/css/verify.css">
 	<script src="../static/js/vender/jquery-3.4.1.min.js"></script>
 	<script src="../static/js/vender/bootstrap/js/bootstrap.min.js"></script>
 	<script src="../static/js/vender/toastr/toastr.min.js"></script>
 	<script src="../static/js/vender/config.js"></script>
 	<script src="../static/js/vender/crypto-js.js"></script>
 	<script src="../static/js/vender/base64.js"></script>
+	<script src="../static/js/vender/verify.js"></script>
+	<script src="../static/js/vender/ase.js"></script>
 	<script>
 		toastr.options.positionClass = 'toast-center-center';
 	</script>
 </head>
 
 <body>
+	<div id="mpanel2"></div>
+    <div id="form-btn"></div>
 	<div class="top free-code-con" style="position:relative;">
 		<div>
 			<img src="../static/img/register/bg.png" alt="" class="bottom-img">
@@ -58,9 +63,12 @@
 		var parameters = GetRequest();
 		var phone = parameters["phone"];
 		var timer, flag = true;
+		var html = document.documentElement;
+		var imgWidth = html.getBoundingClientRect().width / 750 * 400 + 'px';
+		var imgHeight = html.getBoundingClientRect().width / 750 * 200 + 'px';
+		var barHeight = html.getBoundingClientRect().width / 750 * 70 + 'px';
+        // var baseUrl = 'http://14.18.190.141:24380'
 		$("#recv_ipt").val(phone ? phone : '');
-
-
 		$("#recv_ipt").bind('input propertychange', function (e) {
 			var ipt_phones = $('#recv_ipt').val();
 			var c = $(this);
@@ -80,11 +88,74 @@
 			}
 		});
 
+		function validate() {
+			$('#mpanel2').slideVerify({
+				baseUrl: baseUrl + '/api/activity',  //服务器请求地址, 默认地址为安吉服务器;
+				mode: 'pop',     //展示模式
+				containerId: 'form-btn', //pop模式 必填 被点击之后出现行为验证码的元素id
+				imgSize: { //图片的大小对象,有默认值{ width: '310px',height: '155px'},可省略
+					width: imgWidth,
+					height: imgHeight
+				},
+				barSize: {//下方滑块的大小对象,有默认值{ width: '310px',height: '50px'},可省略
+					width: imgWidth,
+					height: barHeight
+				},
+				beforeCheck: () => {
+					return true
+				},
+				ready:  () => { 
+				},  //加载完毕的回调
+				success: (params) => { //成功的回调
+					setTimeout(() => {
+						submit(params.captchaVerification);
+					},1000)
+				},
+				error: function () {}
+			});
+		}
+
+		function submit(captchaVerification){
+			var data = {}
+			data.userName = parameters['username'] ? parameters['username'] : null
+			data.type = parameters['type'] ? parameters['type'] : null
+			data.extensionType = parameters['extensionType'] ? parameters['extensionType'] : '2'
+			data.newPhone = $('#recv_ipt').val();
+			data.captchaVerification = captchaVerification;
+			$.ajax({
+				url: baseUrl + '/api/activity/v1/promote',
+				data: JSON.stringify(data),
+				type: 'post',
+				contentType: "application/json",
+				dataType: 'json',
+				cache: false,
+				success: function (res) {
+					if (res.status === 0) {
+						toastr.error('领取成功')
+						$(window).attr('location', res.data);
+					} else if (res.status === 1) {
+						toastr.error(res.msg)
+						setTimeout(function() {
+							$(window).attr('location', 'http://www.androidscloud.com/');
+						}, 1000)
+					} else if(res.status === 11){
+						$('#mpanel2').eq(0).text('');
+						validate(); // 生成验证码
+						setTimeout(() => {
+							document.getElementById('form-btn').click();
+						},500)
+					} else {
+						toastr.error(res.msg)
+					}
+				}
+			})
+		}
+
 		function getUserInfo() {
 			var userName = parameters['username'] ? parameters['username'] : null
 			userName = Base64.decode(userName)
 			$.ajax({
-				url: baseUrl + '/api/user/v3/invitation/getNickname?username=' + userName,
+				url: baseUrl + '/api/activity/v3/invitation/getNickname?username=' + userName,
 				type: 'get',
 				cache: false,
 				dataType: 'text',
@@ -109,8 +180,9 @@
 				keyType: 2,
 				security: encrypts
 			}
+			let urls = baseUrl == 'http://14.18.190.141:24380'?'http://110.53.221.195:8210':'https://wjzx.androidscloud.com:9091';
 			$.ajax({
-				url: 'https://wjzx.androidscloud.com:9091/file-center/fileOperate/getImage?id='+fileId,
+				url: `${urls}/document/newFile/download/0/3dn9b4585511476691c6?fileKey=`+fileId,
 				type: 'get',
 				headers: data,
 				xhrFields: { responseType: "blob" },
@@ -163,7 +235,7 @@
 			} else {
 				data.newPhone = ipt_phone
 				$.ajax({
-					url: baseUrl + '/api/user/v1/promote',
+					url: baseUrl + '/api/activity/v1/promote',
 					data: JSON.stringify(data),
 					type: 'post',
 					contentType: "application/json",
@@ -178,78 +250,19 @@
 							setTimeout(function() {
 								$(window).attr('location', 'http://www.androidscloud.com/');
 							}, 1000)
+						} else if(res.status === '0011'){
+							$('#mpanel2').eq(0).text('');
+							validate(); // 生成验证码
+							setTimeout(() => {
+								document.getElementById('form-btn').click();
+							},500)
 						} else {
 							toastr.error(res.msg)
 						}
 					}
 				})
-				var Sys = {};
-				var ua = navigator.userAgent.toLowerCase();
-				var s, browserType;
-				(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
-					(s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
-						(s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
-							(s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
-								(s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
-				if (Sys.ie) {
-					browserType = 'IE: ' + Sys.ie
-				}
-				if (Sys.firefox) {
-					browserType = 'Firefox: ' + Sys.firefox
-				}
-				if (Sys.chrome) {
-					browserType = 'Chrome: ' + Sys.chrome
-				}
-				if (Sys.opera) {
-					browserType = 'Opera: ' + Sys.opera
-				}
-				if (Sys.safari) {
-					browserType = 'Safari: ' + Sys.safari
-				}
-				var form = {
-					platform: 4,
-					visitType: 4,
-					time: time,
-					phoneNum: ipt_phone,
-					downLoaderCount: Number(localStorage.getItem('downLoaderCount')),
-					browserType: browserType
-				}
-				var list = []
-				list.push(form)
-				// 推广页面下载埋点接口
-				$.ajax({
-					url: baseUrl + '/api/public/v4/access/user/burialSiteLog',
-					data: JSON.stringify(list),
-					type: 'post',
-					contentType: "application/json",
-					dataType: 'json',
-					cache: false,
-					success: function (res) {
-					}
-				})
 			}
 		}
-
-		/*
-		function handleDownload() {
-				$.ajax({
-						url: baseUrl + '/api/user/promote/webUrl',
-						type: 'get',
-						cache: false,
-						dataType: 'text',
-						success: function (data) {
-								var uri;
-								if (data.startsWith('http')) {
-										uri = data
-								} else {
-										uri = 'http://' + data
-								}
-								$(window).attr('location',uri);
-						}
-				})
- 
-		}
-		 */
 		function visit() {
 			$.ajax({
 				url: baseUrl + '/api/user/v3/invitation/client/addInviteData',
@@ -261,7 +274,7 @@
 			})
 		}
 
-		visit()
+		// visit()
 		//防止提示一秒内重复显示
 		function stopManyClick(fn) {
 			if (flag) {
@@ -289,6 +302,17 @@
 		box-shadow: none;
 	}
 
+	.toast-center-center {
+		position: fixed;
+		min-width: 220px;
+		top: 50%;
+		left: 50%;
+		text-align: center;
+		transform: translateX(-50%);
+		color: #FFFFFF;
+		border-radius: 0.2rem;
+	}
+
 	@media (max-width: 480px) and (min-width: 241px) {
 		#toast-container>div {
 			min-width: 80px !important;