Commit f81a2db0 by Chao Sun

分享

parent b1dd8f05
......@@ -17,33 +17,13 @@
<favorites_list name="consulting" />
</component>
<component name="FileEditorManager">
<leaf>
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="base.js" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/js/base.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="468">
<caret line="18" column="16" lean-forward="false" selection-start-line="18" selection-start-column="16" selection-end-line="18" selection-end-column="16" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<state relative-caret-position="361">
<caret line="461" column="26" lean-forward="true" selection-start-line="461" selection-start-column="26" selection-end-line="461" selection-end-column="26" />
<folding />
</state>
</provider>
</entry>
......@@ -54,9 +34,10 @@
<findStrings>
<find>mdev</find>
<find>pay</find>
<find>param</find>
<find>code</find>
<find>data</find>
<find>param</find>
<find>param.cus</find>
</findStrings>
</component>
<component name="IdeDocumentHistory">
......@@ -75,7 +56,7 @@
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="1912" />
<option name="x" value="-8" />
<option name="y" value="-8" />
<option name="width" value="1936" />
<option name="height" value="1056" />
......@@ -250,11 +231,12 @@
<workItem from="1557991352570" duration="22000" />
<workItem from="1558012001136" duration="57000" />
<workItem from="1559619090972" duration="4229000" />
<workItem from="1559627134151" duration="1834000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="7139000" />
<option name="totallyTimeSpent" value="8973000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
......@@ -266,18 +248,18 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="1912" y="-8" width="1936" height="1056" extended-state="6" />
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.19978914" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.174482" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
......@@ -304,27 +286,15 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/base.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
......@@ -342,27 +312,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -380,27 +330,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -418,27 +348,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4576">
<caret line="176" column="65" lean-forward="true" selection-start-line="176" selection-start-column="65" selection-end-line="176" selection-end-column="65" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -456,27 +366,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -484,27 +374,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -512,27 +382,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -550,35 +400,14 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="386">
<caret line="215" column="1" lean-forward="false" selection-start-line="215" selection-start-column="1" selection-end-line="215" selection-end-column="1" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/base.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="468">
<caret line="18" column="16" lean-forward="false" selection-start-line="18" selection-start-column="16" selection-end-line="18" selection-end-column="16" />
<folding>
<element signature="e#684#816#0" expanded="false" />
<element signature="e#1031#1069#0" expanded="false" />
<element signature="e#1170#1519#0" expanded="false" />
<element signature="e#1583#1703#0" expanded="false" />
<element signature="e#1744#1782#0" expanded="false" />
<element signature="e#1894#2173#0" expanded="false" />
<element signature="e#2208#2434#0" expanded="false" />
<element signature="e#2467#2828#0" expanded="false" />
<element signature="e#2958#5093#0" expanded="false" />
<element signature="e#5173#7343#0" expanded="false" />
<element signature="e#7434#9048#0" expanded="false" />
<element signature="e#9086#12460#0" expanded="false" />
<element signature="e#12489#12603#0" expanded="false" />
<element signature="e#12695#13841#0" expanded="false" />
<element signature="e#13883#14183#0" expanded="false" />
<element signature="e#15776#19248#0" expanded="false" />
<element signature="e#19298#21506#0" expanded="false" />
<element signature="e#19952#21488#0" expanded="false" />
<element signature="e#21542#21789#0" expanded="false" />
</folding>
<state relative-caret-position="361">
<caret line="461" column="26" lean-forward="true" selection-start-line="461" selection-start-column="26" selection-end-line="461" selection-end-column="26" />
<folding />
</state>
</provider>
</entry>
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
......@@ -9,9 +10,10 @@
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<title>獴哥保险诊所</title>
<link rel="stylesheet" href="./css/style.css" />
<!--Shortcut icon-->
<link rel="shortcut icon" href="https://www.ydinsurance.cn/wp-content/uploads/2018/04/favicon.gif" />
<!--Shortcut icon-->
<link rel="shortcut icon" href="https://www.ydinsurance.cn/wp-content/uploads/2018/04/favicon.gif" />
</head>
<body>
<div>
<img src="./images/bg.png">
......@@ -20,13 +22,13 @@
<ul class="left">
<li class="kefu_Wrapper">
<a href="http://q.url.cn/abkzV9?_type=wpa&qidian=true" target="_blank">
<img class="icon" src="./images/icon.png" alt="icon" >
<img class="icon" src="./images/icon.png" alt="icon">
<div class="kefu">客服</div>
</a>
</li>
<li class="share" style="display: none;">
<img src="./images/share1.png" alt="share" />
<div>分享产品</div>
<img src="./images/share1.png" alt="share" />
<div>分享产品</div>
</li>
<li class="peice_wrapper">
<div class="curPrice"><span></span>49</div>
......@@ -66,8 +68,8 @@
<div class="guideImgBox">
<img src="./images/tips.png" alt="提示">
<div class="tipsToast">
<p>请点击右上角菜单</p>
<p>分享给朋友</p>
<p>请点击右上角菜单</p>
<p>分享给朋友</p>
</div>
</div>
</div>
......@@ -98,16 +100,17 @@
<script src="./js/base.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
(function () {
const host = window.location.host;
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?36b1eb7eec3b5dac9f97d887092b5b27";
if(host=='www.ydinsurance.cn'){
hm.src = "https://hm.baidu.com/hm.js?36b1eb7eec3b5dac9f97d887092b5b27";
if (host == 'www.ydinsurance.cn') {
hm.src = "https://hm.baidu.com/hm.js?73a2215476525c6142927963135662e0";
}
var s = document.getElementsByTagName("script")[0];
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
\ No newline at end of file
......@@ -3,20 +3,13 @@ $(function () {
var api = 'https://mdev.zuihuibi.cn';
var gitUrlParam = window.location.search;
const shareInfo = {
shareCode: Math.random().toString(36).substr(2, 15),
destinationType: null,
destinationId: null,
destinationName: null,
adultCount: null,
childCount: null,
eldCount: null,
effectiveStartDate: null,
effectiveEndDate: null,
dayCount: null,
shareCode: null,
adultCount: 1,
dayCount: 366,
shareType: 1,
customerId: null,
planId: null,
os: null,
planId: 424,
os: checkOs(),
channel: 0,
url: window.location.href,
isOrder: 0
......@@ -35,12 +28,15 @@ $(function () {
})
var deviceType = checkDeviceType();
param.deviceType = deviceType;
function getToken() {
$.ajax({
type: "POST",
url: api + '/api/authorize/obtainToken',
contentType: "application/json",
data: JSON.stringify({ticket: 'job'}),
data: JSON.stringify({
ticket: 'job'
}),
async: false,
success: function (res) {
token = res.data.token
......@@ -65,6 +61,7 @@ $(function () {
window.localStorage.setItem('hmkw', getQueryString('hmkw'))
window.localStorage.setItem('hmci', getQueryString('hmci'))
}
function getQueryString(name) {
const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
const r = decodeURIComponent(gitUrlParam).substr(1).match(reg);
......@@ -91,21 +88,21 @@ $(function () {
param.deviceType = deviceType;
sendPhone()
//发送验证码
function sendPhone() {
function sendPhone(type) {
$("#codeBtn").click(function () {
if (!$("#phone").val()) {
layer.open({
content: '手机号不能为空!'
, skin: 'msg'
, time: 3
content: '手机号不能为空!',
skin: 'msg',
time: 3
});
return;
}
if (!REG_CODE.test($("#phone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
......@@ -113,8 +110,13 @@ $(function () {
type: "POST",
url: api + '/api/verificationCode',
contentType: "application/json",
data: JSON.stringify({type: 1, mobileNo: $("#phone").val()}),
headers: {"X-Authorization": token},
data: JSON.stringify({
type: 1,
mobileNo: $("#phone").val()
}),
headers: {
"X-Authorization": token
},
async: false,
success: function (res) {
if (res.success) {
......@@ -151,22 +153,22 @@ $(function () {
// 登陆发送验证码
sendLoginPhone()
//发送验证码
// //发送验证码
function sendLoginPhone() {
$("#loginCodeBtn").click(function () {
if (!$("#loginPhone").val()) {
layer.open({
content: '手机号不能为空!'
, skin: 'msg'
, time: 3
content: '手机号不能为空!',
skin: 'msg',
time: 3
});
return;
}
if (!REG_CODE.test($("#loginPhone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
......@@ -174,8 +176,13 @@ $(function () {
type: "POST",
url: api + '/api/verificationCode',
contentType: "application/json",
data: JSON.stringify({type: 1, mobileNo: $("#loginPhone").val()}),
headers: {"X-Authorization": token},
data: JSON.stringify({
type: 1,
mobileNo: $("#loginPhone").val()
}),
headers: {
"X-Authorization": token
},
async: false,
success: function (res) {
if (res.success) {
......@@ -222,9 +229,9 @@ $(function () {
if ($("#loginPhone").val() && $("#loginCode").val()) {
if (!REG_CODE.test($("#loginPhone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
......@@ -233,7 +240,9 @@ $(function () {
type: 'POST',
contentType: "application/json",
data: JSON.stringify(verificationCodeRequest),
headers: {"X-Authorization": token},
headers: {
"X-Authorization": token
},
success: function (res) {
param.verificationCodeValider = res.success;
if (!res.success) {
......@@ -254,13 +263,14 @@ $(function () {
}
getPay();
function getPay() {
$("#pay").click(function () {
if (!REG_CODE.test($("#phone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
} else {
......@@ -268,17 +278,17 @@ $(function () {
}
if (!param.verificationCodeValider) {
layer.open({
content: '请检查您的验证码是否正确'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请检查您的验证码是否正确',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
if (!REG_NAME.test($("#name").val())) {
layer.open({
content: '请检查您的姓名是否正确!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请检查您的姓名是否正确!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
} else {
......@@ -317,7 +327,9 @@ $(function () {
type: 'POST',
contentType: "application/json",
data: JSON.stringify(data),
headers: {"X-Authorization": token},
headers: {
"X-Authorization": token
},
success: function (res) {
if (res['commonResult']) {
if (res['content']) {
......@@ -368,37 +380,42 @@ $(function () {
}
}
hiddenContent +=
'<form action="' + action + '"method="post" accept-charset="' + charset + '" onsubmit="document.charset=\'' + charset + '\';">'
+ paramHTML
+ '<button type="submit" id="submit" hidden></button>'
+ '</form>';
'<form action="' + action + '"method="post" accept-charset="' + charset + '" onsubmit="document.charset=\'' + charset + '\';">' +
paramHTML +
'<button type="submit" id="submit" hidden></button>' +
'</form>';
d.innerHTML = hiddenContent;
document.getElementById('submit').click()
}
}
isWeiXin();
function isWeiXin() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) == '_sq_') {
$('.share').show()
$('.share').show();
return true;
} else {
$(".share").hide()
$(".share").hide();
return false;
}
}
getWxConfig();
// 获取微信分享配置
// 获取微信分享配置
function getWxConfig() {
var url = location.href.split('#')[0];
$.ajax({
type: "POST",
url: api + '/api/wxConfig',
contentType: "application/json",
data: JSON.stringify({url: url}),
headers: {"X-Authorization": token},
data: JSON.stringify({
url: url
}),
headers: {
"X-Authorization": token
},
async: false,
success: function (res) {
wx.config({
......@@ -421,9 +438,9 @@ $(function () {
}
};
wx.ready(function () {
wx.onMenuShareAppMessage(shareData); // 分享微信
wx.onMenuShareTimeline(shareData); // 分享到朋友圈
wx.onMenuShareQQ(shareData); // 分享到QQ
wx.onMenuShareAppMessage(shareData); // 分享微信
wx.onMenuShareTimeline(shareData); // 分享到朋友圈
wx.onMenuShareQQ(shareData); // 分享到QQ
});
}
})
......@@ -431,10 +448,58 @@ $(function () {
// 自定义分享
wxShare();
function wxShare() {
$('.share').click(function () {
if (!localStorage.getItem('customerInfo')) {
$('.loginInBox').show();
} else {
$('.markbox').show()
var customerInfo = localStorage.getItem('customerInfo')
customerInfo = JSON.parse(customerInfo).customerId;
shareInfo.customerId = customerInfo;
shareInfo.shareCode = Math.random().toString(36).substr(2, 15)
shareInfo.url = window.location.href + '?shareCode=' + shareInfo.shareCode
// 默认的分享信息
const shareData = {
title: '1对1家庭风险管理服务',
link: shareInfo.url,
desc: '产品太多、条款复杂、买哪个好,理不理赔? 獴哥保险诊所来帮您解决,提供1对1风险分析和保险方案定制。',
imgUrl: 'https://ajb-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/images/menggo_head.png',
success: function () {
$.ajax({
url: api + '/api/shareCallBack',
type: 'POST',
contentType: "application/json",
data: JSON.stringify(shareInfo),
headers: {
"X-Authorization": token
},
success: function (res) {
if (res['success']) {
$(".markbox").hide();
layer.open({
content: '分享成功!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
}
}
})
}
};
setTimeout(function () {
wx.ready(function () {
wx.onMenuShareAppMessage(shareData); // 分享微信
wx.onMenuShareTimeline(shareData); // 分享到朋友圈
wx.onMenuShareQQ(shareData); // 分享到QQ
});
}, 500)
}
})
}
checkVerificationCode()
//验证验证码
function checkVerificationCode() {
$("#code").keyup(function () {
......@@ -446,9 +511,9 @@ $(function () {
if ($("#phone").val() && $("#code").val()) {
if (!REG_CODE.test($("#phone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
......@@ -457,7 +522,9 @@ $(function () {
type: 'POST',
contentType: "application/json",
data: JSON.stringify(verificationCodeRequest),
headers: {"X-Authorization": token},
headers: {
"X-Authorization": token
},
success: function (res) {
param.verificationCodeValider = res.success;
if (!res.success) {
......@@ -471,8 +538,12 @@ $(function () {
url: api + '/api/login',
method: 'POST',
contentType: "application/json",
headers: {"X-Authorization": token},
data: JSON.stringify({mobileNo: $("#phone").val()}),
headers: {
"X-Authorization": token
},
data: JSON.stringify({
mobileNo: $("#phone").val()
}),
success: function (res) {
param.customerId = res.data.customerId;
var customerInfo = {
......@@ -513,9 +584,9 @@ $(function () {
$('#loginIn').click(function () {
if (!REG_CODE.test($("#loginPhone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
} else {
......@@ -523,9 +594,9 @@ $(function () {
}
if (!param.verificationCodeValider) {
layer.open({
content: '请检查您的验证码是否正确'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请检查您的验证码是否正确',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
......@@ -533,8 +604,12 @@ $(function () {
url: api + '/api/login',
type: 'POST',
contentType: "application/json",
data: JSON.stringify({mobileNo: $("#loginPhone").val()}),
headers: {"X-Authorization": token},
data: JSON.stringify({
mobileNo: $("#loginPhone").val()
}),
headers: {
"X-Authorization": token
},
success: function (res) {
if (res['success']) {
param.customerId = res.data.customerId;
......@@ -564,15 +639,34 @@ $(function () {
})
}
$('.share').click(function () {
console.log(localStorage.getItem('customerInfo'))
if (!localStorage.getItem('customerInfo')) {
console.log('要去登陆')
$('.loginInBox').show();
function checkOs() {
let os;
const isWin = (navigator.platform === 'Win32') || (navigator.platform === 'Windows');
const isMac = (navigator.platform === 'Mac68K') ||
(navigator.platform === 'MacPPC') ||
(navigator.platform === 'Macintosh') ||
(navigator.platform === 'MacIntel');
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
os = 1;
return os; // 这是iOS平台下浏览器
} else if (/android/i.test(navigator.userAgent)) {
os = 2;
return os; // 这是Android平台下浏览器
} else if (isWin) {
os = 3;
return os; // 这是Android平台下浏览器
} else if (isMac) {
os = 4;
return os; // 这是mac系统
} else if (/Linux/i.test(navigator.userAgent)) {
os = 5;
return os; // 这是Linux平台下浏览器
} else {
$('.markbox').show()
os = 6;
return os;
}
})
}
$('.markbox').click(function () {
$('.markbox').hide()
})
......
......@@ -15,11 +15,68 @@
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="base.js" pinned="false" current-in-tab="true">
<file leaf-file-name="base.js" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/js/base.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="52">
<caret line="2" column="24" lean-forward="false" selection-start-line="2" selection-start-column="24" selection-end-line="2" selection-end-column="24" />
<state relative-caret-position="260">
<caret line="10" column="19" lean-forward="false" selection-start-line="10" selection-start-column="19" selection-end-line="10" selection-end-column="19" />
<folding>
<marker date="1559635072498" expanded="true" signature="178:199" ph="{&quot;url&quot;: window.location.href...}" />
<marker date="1559635072498" expanded="true" signature="18056:18070" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18080" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18087" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18165:21829" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18204:21822" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18252:21811" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18302:18426" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18486:21713" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18547:18806" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18584:18750" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="18834:21694" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19100:19180" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="19230:21672" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19351:19613" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19396:19582" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="19649:21645" ph="{&quot;method&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19862:19958" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="20013:20112" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20171:21615" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20304:21111" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="21271:21581" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21324:21542" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="21719:21797" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21879:24159" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21921:24152" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21979:22182" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22008:22142" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="22188:22256" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22305:22509" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22334:22469" ph="{&quot;content&quot;: '请检查您的验证码是否正确'...}" />
<marker date="1559635072498" expanded="true" signature="22529:24141" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="22688:22760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22788:22852" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="22894:24127" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22936:23889" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23045:23725" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="23895:24109" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23932:24086" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="24184:25115" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24570:24639" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24687:24760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24777:24850" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24867:24932" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24978:25049" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="25055:25109" ph="{...}" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="style.css" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/css/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="442">
<caret line="336" column="1" lean-forward="false" selection-start-line="336" selection-start-column="1" selection-end-line="336" selection-end-column="1" />
<folding />
</state>
</provider>
......@@ -36,6 +93,7 @@
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/js/base.js" />
<option value="$PROJECT_DIR$/css/style.css" />
</list>
</option>
</component>
......@@ -66,8 +124,8 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scratches" />
<pane id="Scope" />
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
<PATH>
......@@ -90,7 +148,7 @@
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="js" />
<option name="myItemId" value="css" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
......@@ -123,6 +181,85 @@
</list>
</option>
</component>
<component name="RunManager" selected="JavaScript Debug.index.html">
<configuration default="false" name="index.html" type="JavascriptDebugType" factoryName="JavaScript Debug" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/consulting1/index.html">
<method />
</configuration>
<configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
<method />
</configuration>
<configuration default="true" type="DartTestRunConfigurationType" factoryName="Dart Test">
<method />
</configuration>
<configuration default="true" type="JavaScriptTestRunnerJest" factoryName="Jest">
<node-interpreter value="project" />
<working-dir value="" />
<envs />
<scope-kind value="ALL" />
<method />
</configuration>
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma">
<config-file value="" />
<node-interpreter value="project" />
<envs />
<method />
</configuration>
<configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
<config-file value="" />
<node-interpreter value="project" />
<envs />
<method />
</configuration>
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
<method />
</configuration>
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir="">
<method />
</configuration>
<configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
<option name="cucumberJsArguments" value="" />
<option name="executablePath" />
<option name="filePath" />
<method />
</configuration>
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
<node-interpreter>project</node-interpreter>
<node-options />
<gulpfile />
<tasks />
<arguments />
<envs />
<method />
</configuration>
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
<command value="run" />
<scripts />
<node-interpreter value="project" />
<envs />
<method />
</configuration>
<configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha">
<node-interpreter>project</node-interpreter>
<node-options />
<working-directory />
<pass-parent-env>true</pass-parent-env>
<envs />
<ui />
<extra-mocha-options />
<test-kind>DIRECTORY</test-kind>
<test-directory />
<recursive>false</recursive>
<method />
</configuration>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="JavaScript Debug.index.html" />
</list>
<recent_temporary>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="JavaScript Debug.index.html" />
</list>
</recent_temporary>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
......@@ -136,11 +273,13 @@
<workItem from="1557914660695" duration="32000" />
<workItem from="1557991408898" duration="13000" />
<workItem from="1558012042424" duration="15000" />
<workItem from="1559629334645" duration="169000" />
<workItem from="1559632573777" duration="597000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="60000" />
<option name="totallyTimeSpent" value="826000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
......@@ -149,12 +288,12 @@
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24986821" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
......@@ -177,9 +316,119 @@
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/js/base.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="260">
<caret line="10" column="19" lean-forward="false" selection-start-line="10" selection-start-column="19" selection-end-line="10" selection-end-column="19" />
<folding>
<marker date="1559635072498" expanded="true" signature="178:199" ph="{&quot;url&quot;: window.location.href...}" />
<marker date="1559635072498" expanded="true" signature="18056:18070" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18080" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18087" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18165:21829" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18204:21822" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18252:21811" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18302:18426" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18486:21713" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18547:18806" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18584:18750" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="18834:21694" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19100:19180" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="19230:21672" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19351:19613" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19396:19582" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="19649:21645" ph="{&quot;method&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19862:19958" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="20013:20112" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20171:21615" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20304:21111" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="21271:21581" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21324:21542" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="21719:21797" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21879:24159" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21921:24152" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21979:22182" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22008:22142" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="22188:22256" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22305:22509" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22334:22469" ph="{&quot;content&quot;: '请检查您的验证码是否正确'...}" />
<marker date="1559635072498" expanded="true" signature="22529:24141" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="22688:22760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22788:22852" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="22894:24127" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22936:23889" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23045:23725" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="23895:24109" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23932:24086" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="24184:25115" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24570:24639" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24687:24760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24777:24850" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24867:24932" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24978:25049" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="25055:25109" ph="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/css/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="8736">
<caret line="336" column="1" lean-forward="true" selection-start-line="336" selection-start-column="1" selection-end-line="336" selection-end-column="1" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/base.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<folding>
<marker date="1559635072498" expanded="true" signature="178:199" ph="{&quot;url&quot;: window.location.href...}" />
<marker date="1559635072498" expanded="true" signature="18056:18070" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18080" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18087" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18165:21829" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18204:21822" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18252:21811" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18302:18426" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18486:21713" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18547:18806" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18584:18750" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="18834:21694" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19100:19180" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="19230:21672" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19351:19613" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19396:19582" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="19649:21645" ph="{&quot;method&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19862:19958" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="20013:20112" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20171:21615" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20304:21111" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="21271:21581" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21324:21542" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="21719:21797" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21879:24159" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21921:24152" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21979:22182" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22008:22142" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="22188:22256" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22305:22509" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22334:22469" ph="{&quot;content&quot;: '请检查您的验证码是否正确'...}" />
<marker date="1559635072498" expanded="true" signature="22529:24141" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="22688:22760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22788:22852" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="22894:24127" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22936:23889" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23045:23725" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="23895:24109" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23932:24086" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="24184:25115" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24570:24639" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24687:24760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24777:24850" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24867:24932" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24978:25049" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="25055:25109" ph="{...}" />
</folding>
</state>
</provider>
</entry>
......@@ -187,14 +436,171 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<folding>
<marker date="1559635072498" expanded="true" signature="178:199" ph="{&quot;url&quot;: window.location.href...}" />
<marker date="1559635072498" expanded="true" signature="18056:18070" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18080" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18087" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18165:21829" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18204:21822" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18252:21811" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18302:18426" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18486:21713" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18547:18806" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18584:18750" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="18834:21694" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19100:19180" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="19230:21672" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19351:19613" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19396:19582" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="19649:21645" ph="{&quot;method&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19862:19958" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="20013:20112" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20171:21615" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20304:21111" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="21271:21581" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21324:21542" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="21719:21797" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21879:24159" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21921:24152" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21979:22182" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22008:22142" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="22188:22256" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22305:22509" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22334:22469" ph="{&quot;content&quot;: '请检查您的验证码是否正确'...}" />
<marker date="1559635072498" expanded="true" signature="22529:24141" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="22688:22760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22788:22852" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="22894:24127" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22936:23889" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23045:23725" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="23895:24109" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23932:24086" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="24184:25115" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24570:24639" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24687:24760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24777:24850" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24867:24932" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24978:25049" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="25055:25109" ph="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/base.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1559635072498" expanded="true" signature="178:199" ph="{&quot;url&quot;: window.location.href...}" />
<marker date="1559635072498" expanded="true" signature="18056:18070" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18080" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18087" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18165:21829" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18204:21822" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18252:21811" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18302:18426" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18486:21713" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18547:18806" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18584:18750" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="18834:21694" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19100:19180" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="19230:21672" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19351:19613" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19396:19582" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="19649:21645" ph="{&quot;method&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19862:19958" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="20013:20112" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20171:21615" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20304:21111" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="21271:21581" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21324:21542" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="21719:21797" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21879:24159" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21921:24152" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21979:22182" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22008:22142" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="22188:22256" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22305:22509" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22334:22469" ph="{&quot;content&quot;: '请检查您的验证码是否正确'...}" />
<marker date="1559635072498" expanded="true" signature="22529:24141" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="22688:22760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22788:22852" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="22894:24127" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22936:23889" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23045:23725" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="23895:24109" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23932:24086" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="24184:25115" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24570:24639" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24687:24760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24777:24850" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24867:24932" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24978:25049" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="25055:25109" ph="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/base.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="52">
<caret line="2" column="24" lean-forward="false" selection-start-line="2" selection-start-column="24" selection-end-line="2" selection-end-column="24" />
<state relative-caret-position="260">
<caret line="10" column="19" lean-forward="false" selection-start-line="10" selection-start-column="19" selection-end-line="10" selection-end-column="19" />
<folding>
<marker date="1559635072498" expanded="true" signature="178:199" ph="{&quot;url&quot;: window.location.href...}" />
<marker date="1559635072498" expanded="true" signature="18056:18070" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18080" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18056:18087" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18165:21829" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18204:21822" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18252:21811" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18302:18426" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18486:21713" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18547:18806" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="18584:18750" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="18834:21694" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19100:19180" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="19230:21672" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19351:19613" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="19396:19582" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="19649:21645" ph="{&quot;method&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="19862:19958" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="20013:20112" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20171:21615" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="20304:21111" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="21271:21581" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21324:21542" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="21719:21797" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21879:24159" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21921:24152" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="21979:22182" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22008:22142" ph="{&quot;content&quot;: '请输入正确的手机号码!'...}" />
<marker date="1559635072498" expanded="true" signature="22188:22256" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22305:22509" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22334:22469" ph="{&quot;content&quot;: '请检查您的验证码是否正确'...}" />
<marker date="1559635072498" expanded="true" signature="22529:24141" ph="{&quot;type&quot;: 'POST'...}" />
<marker date="1559635072498" expanded="true" signature="22688:22760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22788:22852" ph="{&quot;X-Authorization&quot;: token...}" />
<marker date="1559635072498" expanded="true" signature="22894:24127" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="22936:23889" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23045:23725" ph="{&quot;customerId&quot;: res.data.customerId...}" />
<marker date="1559635072498" expanded="true" signature="23895:24109" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="23932:24086" ph="{&quot;content&quot;: res.message...}" />
<marker date="1559635072498" expanded="true" signature="24184:25115" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24570:24639" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24687:24760" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24777:24850" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24867:24932" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="24978:25049" ph="{...}" />
<marker date="1559635072498" expanded="true" signature="25055:25109" ph="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/css/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="442">
<caret line="336" column="1" lean-forward="false" selection-start-line="336" selection-start-column="1" selection-end-line="336" selection-end-column="1" />
<folding />
</state>
</provider>
......
*{margin:0;padding:0;}
html,body{
width:100%;
height:auto;
* {
margin: 0;
padding: 0;
}
html, body {
width: 100%;
height: auto;
min-width: 320px;
max-width: 640px;
margin:0 auto;
margin: 0 auto;
font-family: -apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Helvetica,
"PingFang SC",
"Hiragino Sans GB",
"Microsoft YaHei",
SimSun,
sans-serif;
}
a{
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Helvetica,
"PingFang SC",
"Hiragino Sans GB",
"Microsoft YaHei",
SimSun,
sans-serif;
}
a {
text-decoration: none;
}
img{
max-width:100%;
img {
max-width: 100%;
display: block;
}
ul,ol,li{
ul, ol, li {
list-style: none;
}
input,button{
background:none;
outline:none;
border:0px;
input, button {
background: none;
outline: none;
border: 0px;
}
.footer{
.footer {
display: -webkit-flex;
display: flex;
background: #fff;
position: relative;
height:65px;
height: 65px;
}
.footer .left{
.footer .left {
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
......@@ -56,7 +65,8 @@ input,button{
padding: 0;
width: 66.66666667%;
}
.footer .right{
.footer .right {
width: 33.33333333%;
display: -webkit-box;
display: -ms-flexbox;
......@@ -70,16 +80,18 @@ input,button{
padding: 0;
color: #fff;
font-size: 22px;
background: linear-gradient(270deg,#f10000,#ff4e18);
background: linear-gradient(270deg, #f10000, #ff4e18);
}
.footer li{
.footer li {
color: #fe3400;
display: flex;
flex-direction: column;
align-items: center;
justify-content:center;
justify-content: center;
}
.footer li.kefu_Wrapper{
.footer li.kefu_Wrapper {
position: relative;
width: 80px;
height: 100%;
......@@ -100,7 +112,8 @@ input,button{
align-items: center;
border-right: 1px #dcdcdc solid;
}
.footer li.share{
.footer li.share {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
......@@ -120,9 +133,10 @@ input,button{
margin-right: 0;
border-right: 1px #dcdcdc solid;
font-size: 13px;
}
.footer li.peice_wrapper{
.footer li.peice_wrapper {
display: none;
display: -webkit-box;
display: -ms-flexbox;
......@@ -142,42 +156,49 @@ input,button{
color: #ff3500;
margin-right: 0;
}
.footer li.share img{
max-width: 45%;
.footer li.share img {
max-width: 45%;
}
.footer li .kefu{
.footer li .kefu {
font-size: 13px;
color: #fe3400;
text-align: center;
text-align: center;
}
.footer li .curPrice{
.footer li .curPrice {
font-size: 25px;
font-weight: bold;
}
.curPrice span{
.curPrice span {
font-size: 20px;
}
.price span{
font-size: 10px;
.price span {
font-size: 10px;
}
.price{
.price {
position: relative;
font-size: 13px;
padding: 0 10px;
}
.price::before{
.price::before {
position: absolute;
top: 55%;
left:0;
left: 0;
right: 0;
margin:0 auto;
margin: 0 auto;
content: '';
width: 100%;
height: 1px;
background-color: #fe3400;
}
.modalBox {
.modalBox, .loginInBox {
position: fixed;
left: 0;
top: 0;
......@@ -193,121 +214,133 @@ input,button{
max-width: 640px;
display: none;
}
.inputBox {
width: 90%;
margin: 0 auto;
position: relative;
top: 18%;
background: #fff;
padding: 10px;
}
.inputControl {
width: 90%;
height: 42px;
border: 1px solid #ada598;
border-radius: 22px;
font-size: 13px;
margin-bottom: 10%;
position: relative;
display: flex;
margin: 5% auto;
}
.inputControl input{
font-size: 18px;
color: #757575;
margin-left: 5%;
padding: 3px 0;
}
.inputControl input#phone{
width:58%;
}
.getPhoneNumber {
width: 100%;
height: 42px;
color: #000;
border-radius: 22px;
font-size: 14px;
}
.autoGet {
width: 40%;
height: 42px;
position: absolute;
right: 0px;
top: 0px;
}
.commonBtn {
/* background: linear-gradient(270deg,#f10000,#ff4e18); */
background: #ec2d37;
color: #fff;
font-size: 18px;
}
.goBuyBtn {
width: 60%;
height: 45px;
line-height: 45px;
border-radius: 22px;
border: 2px solid #ff4e18a1;
margin: 5% 20%;
font-size: 18px;
}
.closeModal {
position: absolute;
right: 5px;
top: 5px;
color: #fff;
border: 2px solid #fff;
border-radius: 50%;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
cursor: pointer;
font-size: 22px;
}
body .layui-m-layer .layui-m-layer-msg {
bottom: 0!important;
}
.markbox {
position: fixed;
left: 0;
top: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
color: #fff;
display: flex;
justify-content: flex-end;
z-index: 100000;
background: rgba(0, 0, 0, 0.8);
display: none;
}
.iconfont {
position: absolute;
right: 8%;
font-size: 40px;
top: 2px;
font-weight: bold;
}
.guideImgBox {
margin: 20px auto;
}
.guideImgBox img{
max-width: 15%;
position: relative;
left: 80%;
}
.tipsToast {
margin-top: 20%;
}
.tipsToast p {
font-size: 18px;
margin-top: 10px;
text-align: center;
letter-spacing: 1px;
}
.inputBox {
width: 90%;
margin: 0 auto;
position: relative;
top: 18%;
background: #fff;
padding: 10px;
}
.inputControl {
width: 90%;
height: 42px;
border: 1px solid #ada598;
border-radius: 22px;
font-size: 13px;
position: relative;
display: flex;
margin: 5% auto 10%;
}
.inputControl input {
font-size: 18px;
color: #757575;
margin-left: 5%;
padding: 3px 0;
}
.inputControl input#phone {
width: 58%;
}
.getPhoneNumber {
width: 100%;
height: 42px;
color: #000;
border-radius: 22px;
font-size: 14px;
}
.autoGet {
width: 40%;
height: 42px;
position: absolute;
right: 0px;
top: 0px;
}
.commonBtn {
/* background: linear-gradient(270deg,#f10000,#ff4e18); */
background: #ec2d37;
color: #fff;
font-size: 18px;
}
.goBuyBtn {
width: 60%;
height: 45px;
line-height: 45px;
border-radius: 22px;
border: 2px solid #ff4e18a1;
margin: 5% 20%;
font-size: 18px;
}
.closeModal {
position: absolute;
right: 5px;
top: 5px;
color: #fff;
border: 2px solid #fff;
border-radius: 50%;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
cursor: pointer;
font-size: 22px;
}
body .layui-m-layer .layui-m-layer-msg {
bottom: 0 !important;
}
.markbox {
position: fixed;
left: 0;
top: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
color: #fff;
display: flex;
justify-content: flex-end;
z-index: 100000;
background: rgba(0, 0, 0, 0.8);
display: none;
}
.iconfont {
position: absolute;
right: 8%;
font-size: 40px;
top: 2px;
font-weight: bold;
}
.guideImgBox {
margin: 20px auto;
}
.guideImgBox img {
max-width: 15%;
position: relative;
left: 80%;
}
.tipsToast {
margin-top: 20%;
}
.tipsToast p {
font-size: 18px;
margin-top: 10px;
text-align: center;
letter-spacing: 1px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
......@@ -9,8 +10,9 @@
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<title>獴哥保险诊所</title>
<link rel="stylesheet" href="./css/style.css" />
<link rel="shortcut icon" href="https://www.ydinsurance.cn/wp-content/uploads/2018/04/favicon.gif" />
<link rel="shortcut icon" href="https://www.ydinsurance.cn/wp-content/uploads/2018/04/favicon.gif" />
</head>
<body>
<div>
<img src="./images/bg_toutiao.png">
......@@ -19,13 +21,13 @@
<ul class="left">
<li class="kefu_Wrapper">
<a href="http://q.url.cn/abkzV9?_type=wpa&qidian=true" target="_blank">
<img class="icon" src="./images/icon.png" alt="icon" >
<img class="icon" src="./images/icon.png" alt="icon">
<div class="kefu">客服</div>
</a>
</li>
<li class="share" style="display: none;">
<img src="./images/share1.png" alt="share" />
<div>分享产品</div>
<img src="./images/share1.png" alt="share" />
<div>分享产品</div>
</li>
<li class="peice_wrapper">
<div class="curPrice"><span></span>49</div>
......@@ -65,11 +67,31 @@
<div class="guideImgBox">
<img src="./images/tips.png" alt="提示">
<div class="tipsToast">
<p>请点击右上角菜单</p>
<p>分享给朋友</p>
<p>请点击右上角菜单</p>
<p>分享给朋友</p>
</div>
</div>
</div>
<!-- 登陆弹窗-->
<div class="loginInBox">
<div class='inputBox'>
<!--获取手机号 -->
<div class="mobileNoSection inputControl">
<input id="loginPhone" type='number' maxlength="11" placeholder="手机号" />
<div class='autoGet'>
<button class='getPhoneNumber commonBtn' id="loginCodeBtn">
获取验证码
</button>
</div>
</div>
<!--获取验证码 -->
<div class="codeSection inputControl">
<input id="loginCode" type='number' maxlength="4" placeholder="短信验证码" />
</div>
<!--登陆 -->
<button class='goBuyBtn commonBtn' id="loginIn">登陆</button>
</div>
</div>
<div id="d" hidden></div>
<script src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js "></script>
<script src="./js/jquery.min.js"></script>
......@@ -77,16 +99,17 @@
<script src="./js/base.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
(function () {
const host = window.location.host;
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?36b1eb7eec3b5dac9f97d887092b5b27";
if(host=='www.ydinsurance.cn'){
hm.src = "https://hm.baidu.com/hm.js?36b1eb7eec3b5dac9f97d887092b5b27";
if (host == 'www.ydinsurance.cn') {
hm.src = "https://hm.baidu.com/hm.js?73a2215476525c6142927963135662e0";
}
var s = document.getElementsByTagName("script")[0];
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
\ No newline at end of file
$(function () {
// var api = 'https://' + window.location.host;
var api = 'https://m.zuihuibi.cn';
var api = 'https://mdev.zuihuibi.cn';
var gitUrlParam = window.location.search;
const shareInfo = {
shareCode: null,
adultCount: 1,
dayCount: 366,
shareType: 1,
customerId: null,
planId: 424,
os: checkOs(),
channel: 0,
url: window.location.href,
isOrder: 0
}
const param = {
phone: '',
deviceType: '',
......@@ -16,12 +28,15 @@ $(function () {
})
var deviceType = checkDeviceType();
param.deviceType = deviceType;
function getToken() {
$.ajax({
type: "POST",
url: api + '/api/authorize/obtainToken',
contentType: "application/json",
data: JSON.stringify({ticket: 'job'}),
data: JSON.stringify({
ticket: 'job'
}),
async: false,
success: function (res) {
token = res.data.token
......@@ -46,6 +61,7 @@ $(function () {
window.localStorage.setItem('hmkw', getQueryString('hmkw'))
window.localStorage.setItem('hmci', getQueryString('hmci'))
}
function getQueryString(name) {
const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
const r = decodeURIComponent(gitUrlParam).substr(1).match(reg);
......@@ -72,21 +88,21 @@ $(function () {
param.deviceType = deviceType;
sendPhone()
//发送验证码
function sendPhone() {
function sendPhone(type) {
$("#codeBtn").click(function () {
if (!$("#phone").val()) {
layer.open({
content: '手机号不能为空!'
, skin: 'msg'
, time: 3
content: '手机号不能为空!',
skin: 'msg',
time: 3
});
return;
}
if (!REG_CODE.test($("#phone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
......@@ -94,8 +110,13 @@ $(function () {
type: "POST",
url: api + '/api/verificationCode',
contentType: "application/json",
data: JSON.stringify({type: 1, mobileNo: $("#phone").val()}),
headers: {"X-Authorization": token},
data: JSON.stringify({
type: 1,
mobileNo: $("#phone").val()
}),
headers: {
"X-Authorization": token
},
async: false,
success: function (res) {
if (res.success) {
......@@ -130,21 +151,87 @@ $(function () {
})
}
checkVerificationCode()
//验证验证码
function checkVerificationCode() {
$("#code").keyup(function () {
if ($("#code").val().length == 4) {
// 登陆发送验证码
sendLoginPhone()
// //发送验证码
function sendLoginPhone() {
$("#loginCodeBtn").click(function () {
if (!$("#loginPhone").val()) {
layer.open({
content: '手机号不能为空!',
skin: 'msg',
time: 3
});
return;
}
if (!REG_CODE.test($("#loginPhone").val())) {
layer.open({
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
$.ajax({
type: "POST",
url: api + '/api/verificationCode',
contentType: "application/json",
data: JSON.stringify({
type: 1,
mobileNo: $("#loginPhone").val()
}),
headers: {
"X-Authorization": token
},
async: false,
success: function (res) {
if (res.success) {
layer.open({
content: '发送成功',
skin: 'msg',
time: 3 //2秒后自动关闭
});
$('#loginCodeBtn').attr('disabled', true)
var timeCount = 60;
var codeBtnHtml = '获取验证码';
var timer = setInterval(function () {
timeCount--;
codeBtnHtml = '(' + timeCount + ')s';
if (timeCount <= 0) {
codeBtnHtml = '重新获取';
clearInterval(timer);
timeCount = 60;
$('#loginCodeBtn').removeAttr('disabled')
}
$("#loginCodeBtn").html(codeBtnHtml)
}, 1000)
} else {
layer.open({
content: res.message,
skin: 'msg',
time: 3
})
}
}
})
})
}
checkLoginVerificationCode()
//验证登录验证码
function checkLoginVerificationCode() {
$("#loginCode").keyup(function () {
if ($("#loginCode").val().length == 4) {
const verificationCodeRequest = {
mobileNo: $("#phone").val(),
verificationCode: $("#code").val(),
mobileNo: $("#loginPhone").val(),
verificationCode: $("#loginCode").val(),
}
if ($("#phone").val() && $("#code").val()) {
if (!REG_CODE.test($("#phone").val())) {
if ($("#loginPhone").val() && $("#loginCode").val()) {
if (!REG_CODE.test($("#loginPhone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
......@@ -153,7 +240,9 @@ $(function () {
type: 'POST',
contentType: "application/json",
data: JSON.stringify(verificationCodeRequest),
headers: {"X-Authorization": token},
headers: {
"X-Authorization": token
},
success: function (res) {
param.verificationCodeValider = res.success;
if (!res.success) {
......@@ -163,36 +252,6 @@ $(function () {
time: 3
})
}
$.ajax({
url: api + '/api/login',
method: 'POST',
contentType: "application/json",
headers: {"X-Authorization": token},
data: JSON.stringify({mobileNo: $("#phone").val()}),
success: function (res) {
param.customerId = res.data.customerId;
var customerInfo = {
customerId: res.data.customerId,
customerName: res.data.customerName,
customerNickName: res.data.customerNickName,
headImgPath: res.data.headImgePath,
cusLevel: res.data.cusLevel,
cusLevelDesc: res.data.cusLevelDesc,
referralLevel: res.data.referralLevel,
referralLevelDesc: res.data.referralLevelDesc,
totalFortune: res.data.totalFortune,
mobileNo: $("#phone").val()
};
localStorage.setItem('customerInfo', JSON.stringify(customerInfo));
if (!res.success) {
layer.open({
content: res.message,
skin: 'msg',
time: 3
})
}
}
})
}
})
} else {
......@@ -204,13 +263,14 @@ $(function () {
}
getPay();
function getPay() {
$("#pay").click(function () {
if (!REG_CODE.test($("#phone").val())) {
layer.open({
content: '请输入正确的手机号码!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
} else {
......@@ -218,17 +278,17 @@ $(function () {
}
if (!param.verificationCodeValider) {
layer.open({
content: '请检查您的验证码是否正确'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请检查您的验证码是否正确',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
if (!REG_NAME.test($("#name").val())) {
layer.open({
content: '请检查您的姓名是否正确!'
, skin: 'msg'
, time: 3 //2秒后自动关闭
content: '请检查您的姓名是否正确!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
} else {
......@@ -267,7 +327,9 @@ $(function () {
type: 'POST',
contentType: "application/json",
data: JSON.stringify(data),
headers: {"X-Authorization": token},
headers: {
"X-Authorization": token
},
success: function (res) {
if (res['commonResult']) {
if (res['content']) {
......@@ -318,36 +380,42 @@ $(function () {
}
}
hiddenContent +=
'<form action="' + action + '"method="post" accept-charset="' + charset + '" onsubmit="document.charset=\'' + charset + '\';">'
+ paramHTML
+ '<button type="submit" id="submit" hidden></button>'
+ '</form>';
'<form action="' + action + '"method="post" accept-charset="' + charset + '" onsubmit="document.charset=\'' + charset + '\';">' +
paramHTML +
'<button type="submit" id="submit" hidden></button>' +
'</form>';
d.innerHTML = hiddenContent;
document.getElementById('submit').click()
}
}
isWeiXin()
isWeiXin();
function isWeiXin() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) == '_sq_') {
$('.share').show()
$('.share').show();
return true;
} else {
$(".share").hide()
$(".share").hide();
return false;
}
}
getWxConfig();
// 获取微信分享配置
function getWxConfig()
{
// 获取微信分享配置
function getWxConfig() {
var url = location.href.split('#')[0];
$.ajax({
type: "POST",
url: api + '/api/wxConfig',
contentType: "application/json",
data: JSON.stringify({url: url}),
headers: {"X-Authorization": token},
data: JSON.stringify({
url: url
}),
headers: {
"X-Authorization": token
},
async: false,
success: function (res) {
wx.config({
......@@ -364,20 +432,242 @@ $(function () {
title: '1对1家庭风险管理服务',
link: window.location.href,
desc: '产品太多、条款复杂、买哪个好,理不理赔? 獴哥保险诊所来帮您解决,提供1对1风险分析和保险方案定制。',
imgUrl: 'https://ajb-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/images/menggo_head.png'
imgUrl: 'https://ajb-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/images/menggo_head.png',
success: function () {
}
};
wx.ready(function () {
wx.onMenuShareAppMessage(shareData); // 分享微信
wx.onMenuShareTimeline(shareData); // 分享到朋友圈
wx.onMenuShareQQ(shareData); // 分享到QQ
wx.onMenuShareAppMessage(shareData); // 分享微信
wx.onMenuShareTimeline(shareData); // 分享到朋友圈
wx.onMenuShareQQ(shareData); // 分享到QQ
});
}
})
}
$('.share').click(function(){
$('.markbox').show()
})
$('.markbox').click(function(){
// 自定义分享
wxShare();
function wxShare() {
$('.share').click(function () {
if (!localStorage.getItem('customerInfo')) {
$('.loginInBox').show();
} else {
$('.markbox').show()
var customerInfo = localStorage.getItem('customerInfo')
customerInfo = JSON.parse(customerInfo).customerId;
shareInfo.customerId = customerInfo;
shareInfo.shareCode = Math.random().toString(36).substr(2, 15)
shareInfo.url = window.location.href + '?shareCode=' + shareInfo.shareCode
// 默认的分享信息
const shareData = {
title: '1对1家庭风险管理服务',
link: shareInfo.url,
desc: '产品太多、条款复杂、买哪个好,理不理赔? 獴哥保险诊所来帮您解决,提供1对1风险分析和保险方案定制。',
imgUrl: 'https://ajb-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/images/menggo_head.png',
success: function () {
$.ajax({
url: api + '/api/shareCallBack',
type: 'POST',
contentType: "application/json",
data: JSON.stringify(shareInfo),
headers: {
"X-Authorization": token
},
success: function (res) {
if (res['success']) {
$(".markbox").hide();
layer.open({
content: '分享成功!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
}
}
})
}
};
setTimeout(function () {
wx.ready(function () {
wx.onMenuShareAppMessage(shareData); // 分享微信
wx.onMenuShareTimeline(shareData); // 分享到朋友圈
wx.onMenuShareQQ(shareData); // 分享到QQ
});
}, 500)
}
})
}
checkVerificationCode()
//验证验证码
function checkVerificationCode() {
$("#code").keyup(function () {
if ($("#code").val().length == 4) {
const verificationCodeRequest = {
mobileNo: $("#phone").val(),
verificationCode: $("#code").val(),
}
if ($("#phone").val() && $("#code").val()) {
if (!REG_CODE.test($("#phone").val())) {
layer.open({
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
$.ajax({
url: api + '/api/checkVerificationCode',
type: 'POST',
contentType: "application/json",
data: JSON.stringify(verificationCodeRequest),
headers: {
"X-Authorization": token
},
success: function (res) {
param.verificationCodeValider = res.success;
if (!res.success) {
layer.open({
content: res.message,
skin: 'msg',
time: 3
})
}
$.ajax({
url: api + '/api/login',
method: 'POST',
contentType: "application/json",
headers: {
"X-Authorization": token
},
data: JSON.stringify({
mobileNo: $("#phone").val()
}),
success: function (res) {
param.customerId = res.data.customerId;
var customerInfo = {
customerId: res.data.customerId,
customerName: res.data.customerName,
customerNickName: res.data.customerNickName,
headImgPath: res.data.headImgePath,
cusLevel: res.data.cusLevel,
cusLevelDesc: res.data.cusLevelDesc,
referralLevel: res.data.referralLevel,
referralLevelDesc: res.data.referralLevelDesc,
totalFortune: res.data.totalFortune,
mobileNo: $("#phone").val()
};
localStorage.setItem('customerInfo', JSON.stringify(customerInfo));
if (!res.success) {
layer.open({
content: res.message,
skin: 'msg',
time: 3
})
}
}
})
}
})
} else {
param.verificationCodeValider = false;
}
}
})
}
loginIn();
// 登录
function loginIn() {
$('#loginIn').click(function () {
if (!REG_CODE.test($("#loginPhone").val())) {
layer.open({
content: '请输入正确的手机号码!',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
} else {
param.phone = $("#loginPhone").val()
}
if (!param.verificationCodeValider) {
layer.open({
content: '请检查您的验证码是否正确',
skin: 'msg',
time: 3 //2秒后自动关闭
});
return;
}
$.ajax({
url: api + '/api/login',
type: 'POST',
contentType: "application/json",
data: JSON.stringify({
mobileNo: $("#loginPhone").val()
}),
headers: {
"X-Authorization": token
},
success: function (res) {
if (res['success']) {
param.customerId = res.data.customerId;
var customerInfo = {
customerId: res.data.customerId,
customerName: res.data.customerName,
customerNickName: res.data.customerNickName,
headImgPath: res.data.headImgePath,
cusLevel: res.data.cusLevel,
cusLevelDesc: res.data.cusLevelDesc,
referralLevel: res.data.referralLevel,
referralLevelDesc: res.data.referralLevelDesc,
totalFortune: res.data.totalFortune,
mobileNo: $("#loginPhone").val()
};
localStorage.setItem('customerInfo', JSON.stringify(customerInfo));
$('.loginInBox').hide();
} else {
layer.open({
content: res.message,
skin: 'msg',
time: 3
})
}
}
})
})
}
function checkOs() {
let os;
const isWin = (navigator.platform === 'Win32') || (navigator.platform === 'Windows');
const isMac = (navigator.platform === 'Mac68K') ||
(navigator.platform === 'MacPPC') ||
(navigator.platform === 'Macintosh') ||
(navigator.platform === 'MacIntel');
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
os = 1;
return os; // 这是iOS平台下浏览器
} else if (/android/i.test(navigator.userAgent)) {
os = 2;
return os; // 这是Android平台下浏览器
} else if (isWin) {
os = 3;
return os; // 这是Android平台下浏览器
} else if (isMac) {
os = 4;
return os; // 这是mac系统
} else if (/Linux/i.test(navigator.userAgent)) {
os = 5;
return os; // 这是Linux平台下浏览器
} else {
os = 6;
return os;
}
}
$('.markbox').click(function () {
$('.markbox').hide()
})
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment