Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
7 years ago
Commit
596754100a9fde0938c70d8fe945743017ee762f
1 parent
45a3d434
修改dialog 插件
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
apps/home/controllers/installment.js
public/js/plugin/dialog.js
utils/resources-process.js
apps/home/controllers/installment.js
View file @
5967541
...
...
@@ -74,7 +74,7 @@ const index = (req, res, next) => {
content
:
data
[
0
],
notice
:
data
[
1
],
notOpen
:
true
,
goHomePath
:
req
.
yoho
.
isApp
?
`
yohobuy
:
//yohobuy.com/goapp?openby:yohobuy={"action":"go.home","params":{"channel":"1"}}`
: '//m.yohobuy.com/boys'
goHomePath
:
req
.
yoho
.
isApp
?
'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.home","params":{"channel":"1"}}'
:
'//m.yohobuy.com/boys'
};
});
}
else
if
(
openStatus
===
'2'
)
{
...
...
public/js/plugin/dialog.js
View file @
5967541
...
...
@@ -71,6 +71,12 @@ exports.showDialog = function(data, callback, callbackForLeft, fullWithBtn) {
$dialogWrapper
.
fadeOut
();
}
else
if
(
$
(
event
.
target
).
hasClass
(
'dialog-right-btn'
))
{
return
callback
();
}
else
if
(
$
(
event
.
target
).
hasClass
(
'dialog-center-btn'
))
{
$
(
'.dialog-wrapper'
).
remove
();
$
(
'body'
).
css
({
overflow
:
''
,
position
:
''
,
});
}
else
if
(
$
(
event
.
target
).
closest
(
'.dialog-box'
).
length
)
{
return
true
;
}
else
{
...
...
utils/resources-process.js
View file @
5967541
...
...
@@ -82,7 +82,7 @@ module.exports = (list) => {
imageHeight
:
floor
.
data
.
imageHeight
,
src
:
floor
.
data
.
list
[
0
].
src
,
url
:
floor
.
data
.
list
[
0
].
url
}
}
;
}
// 处理价格两位小数
...
...
Please
register
or
login
to post a comment