...
|
...
|
@@ -38,7 +38,6 @@ var pageType = 0, // 0-换货 1-退货 |
|
|
colorSize = {},
|
|
|
timer,
|
|
|
needSubbranch = '';
|
|
|
|
|
|
require('../../plugin/jquery.qupload');
|
|
|
|
|
|
if (defaultPhone) {
|
...
|
...
|
@@ -89,6 +88,7 @@ function setBackInput(type) { |
|
|
$payYoho.hide();
|
|
|
if (type === 2) {
|
|
|
$payBank.show();
|
|
|
switchSubBank();
|
|
|
$payAli.hide();
|
|
|
$payYoho.hide();
|
|
|
} else if (type === 3) {
|
...
|
...
|
@@ -140,16 +140,21 @@ $reasons.change(function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
//选择退款银行
|
|
|
// 选择退款银行
|
|
|
$bankId.change(function() {
|
|
|
needSubbranch = $(this).children('option:selected').attr('data');
|
|
|
switchSubBank();
|
|
|
});
|
|
|
|
|
|
// 切换支行银行信息
|
|
|
function switchSubBank() {
|
|
|
needSubbranch = $bankId.children('option:selected').attr('data');
|
|
|
if (needSubbranch === 'Y') {
|
|
|
$bankNameSpan.removeClass('hide');
|
|
|
} else {
|
|
|
$bankNameSpan.addClass('hide');
|
|
|
}
|
|
|
$refundInfo.find('input[name="bank-name"]').val('');
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$checkBox.change(function() {
|
|
|
var $par = $(this).parent().parent();
|
...
|
...
|
@@ -328,6 +333,8 @@ function packRefundInfo() { |
|
|
|
|
|
if (res.payment.return_amount_mode === 2) {
|
|
|
res.payment.bank_id = $bankId.val() * 1;
|
|
|
res.payment.head_bank_name = $bankId.children('option:selected').text();;
|
|
|
|
|
|
if (!verifyTip && res.payment.bank_id === 0) {
|
|
|
verifyTip = '请选择银行';
|
|
|
}
|
...
|
...
|
@@ -358,7 +365,6 @@ function packRefundInfo() { |
|
|
}
|
|
|
|
|
|
}
|
|
|
console.log(res); return false;
|
|
|
return res;
|
|
|
}
|
|
|
|
...
|
...
|
|