|
@@ -7,7 +7,7 @@ $(function () {
|
|
|
} else if ($('.content_text').text() == "增值税专用发票") {
|
|
|
$('.identity').show()
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 发票类型弹窗
|
|
|
$('.type_inside').on("click", function () {
|
|
|
weui.picker([{}], {
|
|
@@ -160,7 +160,7 @@ $(function () {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
weui.picker(provinces, {
|
|
|
className: 'custom-classname',
|
|
|
container: 'body',
|
|
@@ -193,7 +193,7 @@ $(function () {
|
|
|
//只能是中文
|
|
|
chinaReg: /^[a-zA-Z\u4e00-\u9fa5]+$/,
|
|
|
//手机号
|
|
|
- telReg: /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/,
|
|
|
+ telReg: /^(0|86|17951)?(1[3-9])\d{9}$/,
|
|
|
// 手机号或者固话
|
|
|
// telOrfixedReg: /^1\d{10}$|^(0\d{2,3}-?|\(0\d{2,3}\))?[1-9]\d{4,7}(-\d{1,8})?$/,
|
|
|
// telOrfixedReg: /(^(/d{11})|(^(/d{7,8})|(/d{4}|/d{3})-(/d{7,8})|(^(/d{4}|/d{3})-(/d{7,8})-(/d{4})|/d{3}|/d{2}|/d{1})|(/d{7,8})-(/d{4}|/d{3}|/d{2}|/d{1}))$/,
|
|
@@ -201,7 +201,7 @@ $(function () {
|
|
|
//银行账号
|
|
|
bankreg: /^(\d{16}|\d{19})$/,
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$('.company_ipt').on('blur',function(){
|
|
|
var companyabill = $('.company_ipt').val()//开票单位
|
|
|
var result = pattern.reg.test(companyabill);
|
|
@@ -311,7 +311,7 @@ $(function () {
|
|
|
}
|
|
|
invalidate()
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
// 收件人验证
|
|
|
$('.addressee_ipt').on('blur',function(){
|
|
|
var addresseeperson = $('.addressee_ipt').val()//收件人
|
|
@@ -344,7 +344,7 @@ $(function () {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
// 是否为邮寄
|
|
|
var receptionPass = true
|
|
|
if (!$('.reception').is(':hidden')) {
|
|
@@ -375,7 +375,7 @@ $(function () {
|
|
|
isAllPass = true
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
// 是否解锁button
|
|
|
if(isInvoicePass && receptionPass && isAllPass) {
|
|
|
$('.bottom_btn .confirm').prop('disabled', false)
|
|
@@ -444,7 +444,7 @@ $(function () {
|
|
|
$('.icon-close').css('color','#C0C4CC')
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 我已阅读并了解xxx前面的 图标的选中与取消
|
|
|
$('.submit-container .statement .iconfont').on('click', function () {
|
|
|
if($(this).hasClass("checked")){
|
|
@@ -455,7 +455,7 @@ $(function () {
|
|
|
$(this).toggleClass('checked');
|
|
|
invalidate();
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
if(sessionStorage.getItem("course_checkA_")==="true"){
|
|
|
$(".i-agree").addClass("checked");
|
|
|
invalidate();
|
|
@@ -463,7 +463,7 @@ $(function () {
|
|
|
$(".i-agree").removeClass("checked");
|
|
|
invalidate();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$(".state a").on("click", function(){
|
|
|
var invoiceType = $(".content_text").text();//发票类型
|
|
|
var invoiceRise = $(".company_text").text();//发票抬头
|
|
@@ -474,7 +474,7 @@ $(function () {
|
|
|
sessionStorage.course_invoice_rcWay = rcWay;
|
|
|
sessionStorage.course_invoice_address = address;
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
if(sessionStorage.course_invoice_type!==undefined){
|
|
|
$(".content_text").text(sessionStorage.course_invoice_type);
|
|
|
if ($('.content_text').text() == "增值税普通发票") {
|
|
@@ -548,7 +548,7 @@ $(function () {
|
|
|
// // 进入页面绑定,触发一次就解绑
|
|
|
// focusOnce()
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
// $('.' + obj).on('blur', function (e) {
|
|
|
// setTimeout(function() {
|
|
|
// var dom = document.activeElement;
|
|
@@ -582,5 +582,5 @@ $(function () {
|
|
|
}
|
|
|
}
|
|
|
return arr
|
|
|
- }
|
|
|
-})
|
|
|
+ }
|
|
|
+})
|