Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
a9e6b80b533938828941969abb859cc63ad7cb5d
1 parent
1f8bfb75
gulp ge
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
11 deletions
web-static/dist/yohobuy/5.2.0/index-debug.js
web-static/dist/yohobuy/5.2.0/index.css
web-static/dist/yohobuy/5.2.0/index.js
web-static/dist/yohobuy/5.2.0/index-debug.js
View file @
a9e6b80
...
...
@@ -11901,7 +11901,9 @@ var $goodsTable = $('#goods-table'),
$refundType
=
$
(
'input[name="refund-type"]'
),
$province
=
$
(
'#province'
),
$city
=
$
(
'#city'
),
$areaCode
=
$
(
'#area'
);
$areaCode
=
$
(
'#area'
),
$bankNameSpan
=
$
(
'#bank-name-span'
),
$bankId
=
$
(
'#bank-id'
);
var
$refundInfo
=
$
(
'#refund-pay-info'
),
$payYoho
=
$refundInfo
.
find
(
'.type-yoho'
),
...
...
@@ -11922,8 +11924,8 @@ var pageType = 0, // 0-换货 1-退货
disPhone
=
''
,
verifyTip
=
''
,
colorSize
=
{},
timer
;
timer
,
needSubbranch
=
''
;
require
(
"plugin/jquery.qupload"
);
if
(
defaultPhone
)
{
...
...
@@ -11974,6 +11976,7 @@ function setBackInput(type) {
$payYoho
.
hide
();
if
(
type
===
2
)
{
$payBank
.
show
();
switchSubBank
();
$payAli
.
hide
();
$payYoho
.
hide
();
}
else
if
(
type
===
3
)
{
...
...
@@ -12025,6 +12028,22 @@ $reasons.change(function() {
}
});
// 选择退款银行
$bankId
.
change
(
function
()
{
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
();
...
...
@@ -12201,16 +12220,15 @@ function packRefundInfo() {
}
if
(
res
.
payment
.
return_amount_mode
===
2
)
{
res
.
payment
.
province
=
$province
.
val
();
res
.
payment
.
city
=
$city
.
val
();
res
.
payment
.
area_code
=
$areaCode
.
val
();
if
(
!
verifyTip
&&
!
res
.
payment
.
area_code
*
1
)
{
verifyTip
=
'请选择银行所在地'
;
}
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
=
'请选择银行'
;
}
res
.
payment
.
bank_name
=
$
.
trim
(
$refundInfo
.
find
(
'input[name="bank-name"]'
).
val
());
if
(
!
verifyTip
&&
!
res
.
payment
.
bank_name
)
{
verifyTip
=
'请填写银行名称'
;
if
(
!
verifyTip
&&
!
res
.
payment
.
bank_name
&&
needSubbranch
===
'Y'
)
{
verifyTip
=
'请填写支行行名称'
;
}
res
.
payment
.
payee_name
=
$
.
trim
(
$refundInfo
.
find
(
'input[name="payee-name"]'
).
val
());
...
...
web-static/dist/yohobuy/5.2.0/index.css
View file @
a9e6b80
This diff could not be displayed because it is too large.
web-static/dist/yohobuy/5.2.0/index.js
View file @
a9e6b80
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment