Authored by yyq

退货优化

... ... @@ -19,7 +19,7 @@ var $applyBtn = $('#apply-btn');
var orderCode = $('#order-code').val() || 0,
specialReason = $refundTable.data() || {},
payInfo = { // 退款信息
type: $refundType.find('.type-item.cur').data('id'), // 1--原卡返回 2--银行卡 3--支付宝 4--yoho币
type: $refundType.find('.type-item.cur').data('id') // 1--原卡返回 2--银行卡 3--支付宝 4--yoho币
};
var tpl = '<div class="img-wrap" data-img="{{data}}">' +
... ... @@ -38,15 +38,15 @@ require('../plugins/check');
lazyload($('img.lazy'));
function setUnionList(list) {
var i, html = '';
var i, html = '';
if (list && list.length) {
for (i = 0; i < list.length; i++) {
html += '<option>' + list[i].title + '</option>';
html += '<option>' + list[i].title + '</option>';
}
$bankSelect.html(html);
}
};
}
function getUnionList() {
var that = this;
... ... @@ -68,12 +68,13 @@ function getUnionList() {
function changePayMode(id) {
payInfo.type = id;
// 切换退款信息输入容器
payInfo.dom = $refundType.children('.mode' + payInfo.type);
$typeInfo.addClass('hide');
payInfo.dom.removeClass('hide');
getUnionList();
};
}
changePayMode(payInfo.type);
... ... @@ -205,7 +206,7 @@ $refundTable.on('change', '.refund-reason', function() {
callback: function(result) {
if (result && result.code === 200) {
$this.before(imgFn(result));
$this.siblings('.img-up-tip').text(++num + '/4')
$this.siblings('.img-up-tip').text(++num + '/4');
$this.data('num', num);
}
}
... ...