|
@@ -15,8 +15,8 @@
|
|
|
<link rel="stylesheet" href="/vipsubscribe/css/trial_info.css?v=111">
|
|
|
</head>
|
|
|
|
|
|
-<body style="height: 100vh">
|
|
|
- <div class="trial_info">
|
|
|
+<body>
|
|
|
+ <div class="trial_info" style="height: 100vh">
|
|
|
<form class="form" id="formInfo">
|
|
|
<div class="trial_body">
|
|
|
<div class="banner">
|
|
@@ -49,9 +49,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form_bottom">
|
|
|
- <div class="form-item-textarea">
|
|
|
- <textarea name="" id="" rows="1" placeholder="输入公司名称" class="company"
|
|
|
- onchange="check_company($(this))"></textarea>
|
|
|
+ <div class="form_item">
|
|
|
+ <input type="text" id="" placeholder="输入公司名称" class="company"
|
|
|
+ onchange="check_company($(this))"></input>
|
|
|
</div>
|
|
|
<div class="form_item">
|
|
|
<input type="text" placeholder="职位(非必填)" class="job">
|
|
@@ -85,6 +85,7 @@
|
|
|
initShare({{.T.signature}});
|
|
|
{{if not .T.trialSign }}
|
|
|
$(function () {
|
|
|
+ initScroll()
|
|
|
$(".btn").text("申请免费试用").attr("disabled","disabled");
|
|
|
//获取用户信息
|
|
|
$DoPost("/subscribepay/trial/GetUserPhone",{},function(r){
|
|
@@ -117,11 +118,11 @@
|
|
|
});
|
|
|
|
|
|
// textarea自适应高度
|
|
|
- $(".form-item-textarea textarea")[0].style.height = $(".form-item-textarea textarea")[0].scrollHeight + 'px';
|
|
|
+ /*$(".form-item-textarea textarea")[0].style.height = $(".form-item-textarea textarea")[0].scrollHeight + 'px';
|
|
|
$(".form-item-textarea textarea").on("input", function () {
|
|
|
this.style.height = 'auto';
|
|
|
this.style.height = this.scrollHeight + "px";
|
|
|
- })
|
|
|
+ })*/
|
|
|
// 倒计时
|
|
|
$('.code_btn').click(function (e) {
|
|
|
e.stopPropagation();
|
|
@@ -165,6 +166,12 @@
|
|
|
return false;
|
|
|
});
|
|
|
});
|
|
|
+ function initScroll() {
|
|
|
+ (/iphone|ipod|ipad/i.test(navigator.appVersion)) && document.addEventListener('blur', function(e) {
|
|
|
+ // 这里加了个类型判断,因为a等元素也会触发blur事件
|
|
|
+ ['input', 'textarea'].includes(e.target.localName) && document.body.scrollIntoView(true)
|
|
|
+ }, true)
|
|
|
+ }
|
|
|
{{else}}
|
|
|
$('#formInfo').submit(function(e) {
|
|
|
window.location.replace("/weixin/pay/vipsubscribe_trial");
|