heyang 3 vuotta sitten
vanhempi
commit
09dd838fc3

+ 49 - 0
microserviceUserH5/static/css/experience2.css

@@ -0,0 +1,49 @@
+@media screen and (max-width: 750px) {
+    html {
+        font-size: calc(100vw / 7.5);
+    }
+}
+
+@media screen and (min-width: 750px) {
+    html {
+        font-size: calc(450px / 7.5);
+    }
+}
+.free-code-con {
+    width: 7.5rem;
+    margin: 0 auto;
+}
+
+.bottom-img {
+    width: 100%;
+    min-height: 100vh;
+    background: url('../img/experienceBg1.png') no-repeat;
+    background-size: contain;
+}
+
+.center-pic {
+    position: absolute;
+    top: 10.6rem;
+    left: 0.31rem;
+}
+.recv-btn {
+    margin: 0 auto;
+    width: 6.88rem;
+    height: 1.21rem;
+}
+.btn-bg-style {
+    width: 100%;
+    height: 1.21rem;
+    text-align: center;
+    line-height: 1.21rem;
+    position: absolute;
+    top: 0;
+    left: 0;
+    letter-spacing: 2px;
+    font-size: 0.28rem;
+    color: #fff;
+}
+.btn-bg-style img {
+    width: 0.3rem;
+    height: 0.3rem;
+}

+ 447 - 0
microserviceUserH5/static/css/normalize2.css

@@ -0,0 +1,447 @@
+/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
+
+/* Document
+   ========================================================================== */
+
+/**
+ * 1. Correct the line height in all browsers.
+ * 2. Prevent adjustments of font size after orientation changes in
+ *    IE on Windows Phone and in iOS.
+ */
+
+html {
+  line-height: 1.15; /* 1 */
+  -ms-text-size-adjust: 100%; /* 2 */
+  -webkit-text-size-adjust: 100%; /* 2 */
+}
+
+/* Sections
+   ========================================================================== */
+
+/**
+ * Remove the margin in all browsers (opinionated).
+ */
+
+body {
+  margin: 0;
+}
+
+/**
+ * Add the correct display in IE 9-.
+ */
+
+article,
+aside,
+footer,
+header,
+nav,
+section {
+  display: block;
+}
+
+/**
+ * Correct the font size and margin on `h1` elements within `section` and
+ * `article` contexts in Chrome, Firefox, and Safari.
+ */
+
+h1 {
+  font-size: 2em;
+  margin: 0.67em 0;
+}
+
+/* Grouping content
+   ========================================================================== */
+
+/**
+ * Add the correct display in IE 9-.
+ * 1. Add the correct display in IE.
+ */
+
+figcaption,
+figure,
+main { /* 1 */
+  display: block;
+}
+
+/**
+ * Add the correct margin in IE 8.
+ */
+
+figure {
+  margin: 1em 40px;
+}
+
+/**
+ * 1. Add the correct box sizing in Firefox.
+ * 2. Show the overflow in Edge and IE.
+ */
+
+hr {
+  box-sizing: content-box; /* 1 */
+  height: 0; /* 1 */
+  overflow: visible; /* 2 */
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+pre {
+  font-family: monospace, monospace; /* 1 */
+  font-size: 1em; /* 2 */
+}
+
+/* Text-level semantics
+   ========================================================================== */
+
+/**
+ * 1. Remove the gray background on active links in IE 10.
+ * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
+ */
+
+a {
+  background-color: transparent; /* 1 */
+  -webkit-text-decoration-skip: objects; /* 2 */
+}
+
+/**
+ * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
+ */
+
+abbr[title] {
+  border-bottom: none; /* 1 */
+  text-decoration: underline; /* 2 */
+  text-decoration: underline dotted; /* 2 */
+}
+
+/**
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
+ */
+
+b,
+strong {
+  font-weight: inherit;
+}
+
+/**
+ * Add the correct font weight in Chrome, Edge, and Safari.
+ */
+
+b,
+strong {
+  font-weight: bolder;
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+code,
+kbd,
+samp {
+  font-family: monospace, monospace; /* 1 */
+  font-size: 1em; /* 2 */
+}
+
+/**
+ * Add the correct font style in Android 4.3-.
+ */
+
+dfn {
+  font-style: italic;
+}
+
+/**
+ * Add the correct background and color in IE 9-.
+ */
+
+mark {
+  background-color: #ff0;
+  color: #000;
+}
+
+/**
+ * Add the correct font size in all browsers.
+ */
+
+small {
+  font-size: 80%;
+}
+
+/**
+ * Prevent `sub` and `sup` elements from affecting the line height in
+ * all browsers.
+ */
+
+sub,
+sup {
+  font-size: 75%;
+  line-height: 0;
+  position: relative;
+  vertical-align: baseline;
+}
+
+sub {
+  bottom: -0.25em;
+}
+
+sup {
+  top: -0.5em;
+}
+
+/* Embedded content
+   ========================================================================== */
+
+/**
+ * Add the correct display in IE 9-.
+ */
+
+audio,
+video {
+  display: inline-block;
+}
+
+/**
+ * Add the correct display in iOS 4-7.
+ */
+
+audio:not([controls]) {
+  display: none;
+  height: 0;
+}
+
+/**
+ * Remove the border on images inside links in IE 10-.
+ */
+
+img {
+  border-style: none;
+}
+
+/**
+ * Hide the overflow in IE.
+ */
+
+svg:not(:root) {
+  overflow: hidden;
+}
+
+/* Forms
+   ========================================================================== */
+
+/**
+ * 1. Change the font styles in all browsers (opinionated).
+ * 2. Remove the margin in Firefox and Safari.
+ */
+
+button,
+input,
+optgroup,
+select,
+textarea {
+  font-family: sans-serif; /* 1 */
+  font-size: 100%; /* 1 */
+  line-height: 1.15; /* 1 */
+  margin: 0; /* 2 */
+}
+
+/**
+ * Show the overflow in IE.
+ * 1. Show the overflow in Edge.
+ */
+
+button,
+input { /* 1 */
+  overflow: visible;
+}
+
+/**
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
+ * 1. Remove the inheritance of text transform in Firefox.
+ */
+
+button,
+select { /* 1 */
+  text-transform: none;
+}
+
+/**
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
+ *    controls in Android 4.
+ * 2. Correct the inability to style clickable types in iOS and Safari.
+ */
+
+button,
+html [type="button"], /* 1 */
+[type="reset"],
+[type="submit"] {
+  -webkit-appearance: button; /* 2 */
+}
+
+/**
+ * Remove the inner border and padding in Firefox.
+ */
+
+button::-moz-focus-inner,
+[type="button"]::-moz-focus-inner,
+[type="reset"]::-moz-focus-inner,
+[type="submit"]::-moz-focus-inner {
+  border-style: none;
+  padding: 0;
+}
+
+/**
+ * Restore the focus styles unset by the previous rule.
+ */
+
+button:-moz-focusring,
+[type="button"]:-moz-focusring,
+[type="reset"]:-moz-focusring,
+[type="submit"]:-moz-focusring {
+  outline: 1px dotted ButtonText;
+}
+
+/**
+ * Correct the padding in Firefox.
+ */
+
+fieldset {
+  padding: 0.35em 0.75em 0.625em;
+}
+
+/**
+ * 1. Correct the text wrapping in Edge and IE.
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
+ * 3. Remove the padding so developers are not caught out when they zero out
+ *    `fieldset` elements in all browsers.
+ */
+
+legend {
+  box-sizing: border-box; /* 1 */
+  color: inherit; /* 2 */
+  display: table; /* 1 */
+  max-width: 100%; /* 1 */
+  padding: 0; /* 3 */
+  white-space: normal; /* 1 */
+}
+
+/**
+ * 1. Add the correct display in IE 9-.
+ * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
+ */
+
+progress {
+  display: inline-block; /* 1 */
+  vertical-align: baseline; /* 2 */
+}
+
+/**
+ * Remove the default vertical scrollbar in IE.
+ */
+
+textarea {
+  overflow: auto;
+}
+
+/**
+ * 1. Add the correct box sizing in IE 10-.
+ * 2. Remove the padding in IE 10-.
+ */
+
+[type="checkbox"],
+[type="radio"] {
+  box-sizing: border-box; /* 1 */
+  padding: 0; /* 2 */
+}
+
+/**
+ * Correct the cursor style of increment and decrement buttons in Chrome.
+ */
+
+[type="number"]::-webkit-inner-spin-button,
+[type="number"]::-webkit-outer-spin-button {
+  height: auto;
+}
+
+/**
+ * 1. Correct the odd appearance in Chrome and Safari.
+ * 2. Correct the outline style in Safari.
+ */
+
+[type="search"] {
+  -webkit-appearance: textfield; /* 1 */
+  outline-offset: -2px; /* 2 */
+}
+
+/**
+ * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
+ */
+
+[type="search"]::-webkit-search-cancel-button,
+[type="search"]::-webkit-search-decoration {
+  -webkit-appearance: none;
+}
+
+/**
+ * 1. Correct the inability to style clickable types in iOS and Safari.
+ * 2. Change font properties to `inherit` in Safari.
+ */
+
+::-webkit-file-upload-button {
+  -webkit-appearance: button; /* 1 */
+  font: inherit; /* 2 */
+}
+
+/* Interactive
+   ========================================================================== */
+
+/*
+ * Add the correct display in IE 9-.
+ * 1. Add the correct display in Edge, IE, and Firefox.
+ */
+
+details, /* 1 */
+menu {
+  display: block;
+}
+
+/*
+ * Add the correct display in all browsers.
+ */
+
+summary {
+  display: list-item;
+}
+
+/* Scripting
+   ========================================================================== */
+
+/**
+ * Add the correct display in IE 9-.
+ */
+
+canvas {
+  display: inline-block;
+}
+
+/**
+ * Add the correct display in IE.
+ */
+
+template {
+  display: none;
+}
+
+/* Hidden
+   ========================================================================== */
+
+/**
+ * Add the correct display in IE 10-.
+ */
+
+[hidden] {
+  display: none;
+}

+ 245 - 0
microserviceUserH5/vcloud/channel.html

@@ -0,0 +1,245 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
+
+<head>
+	<meta charset="UTF-8">
+	<title>双子星</title>
+	<meta name="viewport" content="width=device-width, initial-scale=1">
+
+	<link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
+
+	<link rel="stylesheet" href="../static/js/vender/bootstrap/css/bootstrap.min.css">
+	<link rel="stylesheet" href="../static/css/normalize2.css">
+	<link rel="stylesheet" href="../static/css/experience2.css">
+	<link rel="stylesheet" href="../static/js/vender/toastr/toastr.min.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>
+		toastr.options.positionClass = 'toast-center-center';
+	</script>
+</head>
+<div class="top free-code-con" style="position:relative;background: #169af2;">
+	<!-- <p th:text="${fileCenterDownloadIp}" id="fileCenterDownloadIp" hidden="hidden">test</p>
+	<p th:text="${code}" id="code" hidden="hidden">test</p>
+	<p th:text="${platform}" id="platform" hidden="hidden">test</p>
+	<p th:text="${version}" id="version" hidden="hidden">test</p>
+	<p th:text="${downloadId}" id="downloadId" hidden="hidden">test</p> -->
+	<div class="bottom-img">
+		<div class="center-pic">
+			<div class="recv-cont" id="recv_cont">
+				<div onclick="handleClick2()" style="position: relative">
+					<div class="recv-btn" id="recv_btn">
+						<img src="../static/img/experienceBtn.png" alt="" style="width: 100%">
+						<div class="btn-bg-style">
+							<span>领取体验时长并下载</span>
+							<img src="../static/img/xing_icon.png" alt="">
+						</div>
+					</div>
+				</div>
+			</div>
+		</div>
+	</div>
+
+</div>
+<script type="text/javascript" th:inline="javascript">
+	var baseUrl = 'http://14.18.190.141:24380'
+	goAppDownload();
+	$("#recv_ipt").bind('input propertychange', function (e) {
+		var ipt_phones = $('#recv_ipt').val();
+		var c = $(this);
+		if (/[^\d]/.test(c.val())) { //替换非数字字符
+			var temp_amount = c.val().replace(/[^\d]/g, '');
+			$(this).val(temp_amount);
+			toastr.error('请填写正确的手机号')
+		}
+		if (ipt_phones.length >= 12) {
+			toastr.error('请填写正确的手机号')
+			var recvstr = ipt_phones.substring(0, 11)
+			$("#recv_ipt").val(recvstr);
+		}
+	});
+	function goAppDownload() {
+		const data = {
+			code: GetRequest().code,
+			platform: GetRequest().platform
+		}
+		$.ajax({
+			url: baseUrl + `/goAppDownload?code=${data.code}&platform=${data.platform}`,
+			type: 'get',
+			contentType: "application/json",
+			dataType: 'json',
+			cache: false,
+			success: function (res) {
+				console.log("res==", res);
+				if (res.status === 0) {
+					console.log("res==", res);
+				} else {
+					toastr.error(res.msg)
+				}
+			}
+		})
+	}
+
+	function handleClick2() {
+		$(window).attr('location', $('#fileCenterDownloadIp').text() + $('#downloadId').text());
+		const data = {
+			"code": $('#code').text(),
+			"platform": $('#platform').text(),
+			"version": $('#version').text(),
+			"type": 5
+		}
+		$.ajax({
+			url: baseUrl + '/api/channelRecord/addChannelAppDownload',
+			data: JSON.stringify(data),
+			type: 'post',
+			contentType: "application/json",
+			dataType: 'json',
+			cache: false,
+			success: function (res) {
+				if (res.status === 0) {
+					console.log("res==", res);
+				} else {
+					toastr.error(res.msg)
+				}
+			}
+		})
+	}
+
+	function handleClick() {
+		var query = window.location.search.substring(1);
+		console.log(query)
+		var vars = query.split("&");
+		var data = {}
+		var username = vars.find(e => {
+			return e.startsWith('username')
+		})
+		var type = vars.find(e => {
+			return e.startsWith('type')
+		})
+		data.userName = username.substring(9, username.length)
+		data.type = type.substring(5, username.length)
+		toastr.options = {
+			positionClass: "toast-center-center"
+		};
+		var ipt_phone = $('#recv_ipt').val();
+		var validator = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/
+		var res = validator.test(ipt_phone)
+		if (!ipt_phone) {
+			toastr.error('请填写正确的手机号')
+		} else if (!res) {
+			toastr.error('请填写正确的手机号')
+		} else {
+			data.newPhone = ipt_phone
+			$.ajax({
+				url: baseUrl + '/api/user/v1/promote',
+				data: JSON.stringify(data),
+				type: 'post',
+				contentType: "application/json",
+				dataType: 'json',
+				cache: false,
+				success: function (res) {
+					if (res.status === 0) {
+						//$('#myModal').modal('show');
+						toastr.error('领取成功')
+						$(window).attr('location', res.data);
+					} else {
+						toastr.error(res.msg)
+					}
+				}
+			})
+		}
+	}
+	/*
+	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',
+			type: 'get',
+			cache: false,
+			dataType: 'text',
+			success: function () { }
+		})
+	}
+	visit()
+</script>
+</body>
+<style>
+	#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;
+	}
+
+	@media (max-width: 480px) and (min-width: 241px) {
+		#toast-container>div {
+			min-width: 80px !important;
+			width: auto;
+		}
+	}
+
+	@media only screen and (min-width: 640px) {
+		.toast-center-center {
+			top: 50%;
+			left: 50%;
+			transform: translate(-50%, -50%);
+		}
+	}
+
+	@media only screen and (max-width: 640px) {
+		.toast-center-center {
+			top: 50%;
+			left: 50%;
+			transform: translate(-50%, -50%);
+		}
+	}
+
+	input::-webkit-input-placeholder {
+		color: #BBBBBB;
+	}
+
+	input::-moz-placeholder {
+		/* Mozilla Firefox 19+ */
+		color: #BBBBBB;
+	}
+
+	input:-moz-placeholder {
+		/* Mozilla Firefox 4 to 18 */
+		color: #BBBBBB;
+	}
+
+	input:-ms-input-placeholder {
+		/* Internet Explorer 10-11 */
+		color: #BBBBBB;
+	}
+</style>
+
+</html>

+ 42 - 0
microserviceUserH5/vcloud/downCodeApp.html

@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>双子星</title>
+</head>
+<body>
+<div class="overdue-con">
+    <img src="/static/offImg/errorIcon.png" alt="">
+    <div>渠道停用状态,暂停下载</div>
+
+</div>
+</body>
+<style>
+    body {
+        background-color: #FAFAFA;
+    }
+    .overdue-con {
+        font-size: 30px;
+        color: #666666;
+        text-align: center;
+        letter-spacing: 2px;
+        width: 600px;
+        height: 600px;
+        margin: 0 auto; /*水平居中*/
+        position: relative;
+        /*top: 50%; !*偏移*!*/
+        top: 35%; /*偏移*/
+        margin-top: -150px;
+        line-height: 50px;
+    }
+    html,body {
+        width: 100%;
+        height: 100%;
+        margin: 0;
+        padding: 0;
+    }
+    .overdue-con {
+
+    }
+</style>
+</html>