Authored by 张丽霞

fix电子发票手机号修改没有更新bug

... ... @@ -2,6 +2,7 @@
<div class="order-ensure-page yoho-page clearfix">
{{# orderEnsure}}
<div class="order-edit">
<input type="hidden" id="recordMobileNumb" value="{{receiverMobile}}">
<div class="order-title">
<ul>
<li class="first">查看购物车</li>
... ...
... ... @@ -194,6 +194,7 @@ exports.getUserAddressList = function() {
isHide = 'active address_select';
hasDefault++;
addressText = '默认地址';
$('#recordMobileNumb').val(addressData[i].completeMobile);
} else {
isChecked = '';
... ... @@ -208,6 +209,7 @@ exports.getUserAddressList = function() {
'" data-areaCode="' + addressData[i].areaCode +
'" data-addressDesc="' + addressData[i].addressDesc +
'" data-mobile="' + addressData[i].mobile +
'" data-completeMobile="' + addressData[i].completeMobile +
'" data-phoneNum="' + addressData[i].phoneNum +
'" data-phoneCode="' + addressData[i].phoneCode +
'" data-zipCode="' + addressData[i].zipCode +
... ... @@ -448,7 +450,6 @@ exports.saveAddress = function() {
var telCodeReg = /^[0-9]{3,5}$/;
var telReg = /^[0-9]{5,10}$/;
function hasText(val) {
if (val === telCode) {
... ... @@ -479,7 +480,7 @@ exports.saveAddress = function() {
.find('input[name="address"]').attr('checked', 'checked');
$('.address-list span').removeAttr('expand');
$('#recordMobileNumb').val($('.exist-address-list li.active input').attr('data-completemobile'));
refreshAddressStatus();
}
... ... @@ -521,6 +522,7 @@ exports.saveAddress = function() {
if (!!$saveBtn.attr('data-id')) {
postData.id = $saveBtn.attr('data-id');
}
$('#recordMobileNumb').val(phone);
$.ajax({
type: 'post',
... ... @@ -649,7 +651,6 @@ exports.saveAddress = function() {
};
// 支付及送货时间选择
$('.pay-time-modify .pay-btn').click(function() {
... ...
... ... @@ -14,7 +14,7 @@ var $ = require('yoho.jquery'),
var address = require('./address'),
receiptTitle = "个人",
receiptMobile = $('#input-mobile').val(),
receiptMobile = $('#recordMobileNumb').val(),
receiptMobileStar;
var dialog = require('../common/dialog');
... ... @@ -865,6 +865,11 @@ $('.bag').find('ul').each(function() {
$invoiceCheck.click(function(){
receiptMobile = $('#recordMobileNumb').val(),
(function receiptMobileToStarString(numb) {
receiptMobileStar = numb.substr(0, 3) + '****' + numb.substr(7);
$('#input-mobile').val(receiptMobileStar);
}(receiptMobile));
if ($invoiceCheck.hasClass('active')) {
$invoiceCheck.removeAttr('checked');
$invoiceCheck.removeClass('active');
... ... @@ -879,12 +884,8 @@ $invoiceCheck.click(function(){
}
});
//电子发票
(function receiptMobileToStarString(numb) {
receiptMobileStar = numb.substr(0, 3) + '****' + numb.substr(7);
$('#input-mobile').val(receiptMobileStar);
}(receiptMobile));
//电子发票
function saveReceiptInfo() {
var passInfoVerify = true,
... ...