Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
9 years ago
Commit
9f7cea96dd4abfd749791858e3878a874359805d
1 parent
28df9373
me
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
18 deletions
apps/me/controllers/address.js
apps/me/controllers/currency.js
apps/me/controllers/returns.js
apps/me/controllers/setting.js
public/js/me/exchange.page.js
public/js/me/refund-detail.page.js
public/js/me/refund.page.js
apps/me/controllers/address.js
View file @
9f7cea9
/**
* [个人中心]收货地址
/**
* @author: jiangmin
* @date: 2016/07/05
*/
...
...
@@ -24,8 +23,8 @@ const index = (req, res, next) => {
let
uid
=
req
.
user
.
uid
;
Promise
.
all
([
addressModel
.
getAddressDataAsync
(
uid
,
20
),
mcHandler
.
getMeThumb
()]).
then
(
result
=>
{
let
resultData
=
result
[
0
].
data
?
result
[
0
].
data
:
result
[
0
];
let
length
=
resultData
.
length
?
(
resultData
.
length
>
7
?
7
:
resultData
.
length
)
:
0
;
let
resultData
=
result
[
0
].
data
?
result
[
0
].
data
:
[];
let
length
=
resultData
.
length
>
7
?
7
:
resultData
.
length
;
let
reg
=
/
(\d{3})\d{4}(\d{4})
/
;
let
thumb
=
result
[
1
];
...
...
@@ -49,7 +48,7 @@ const index = (req, res, next) => {
data
:
resultData
}
});
});
})
.
catch
(
next
)
;
};
const
getAddressList
=
(
req
,
res
,
next
)
=>
{
...
...
apps/me/controllers/currency.js
View file @
9f7cea9
...
...
@@ -81,7 +81,7 @@ const index = (req, res, next) => {
total
:
result
[
0
].
list
.
total
?
result
[
0
].
list
.
total
:
0
}
});
});
})
.
catch
(
next
)
;
};
...
...
apps/me/controllers/returns.js
View file @
9f7cea9
...
...
@@ -53,7 +53,7 @@ const refund = (req, res, next) => {
Promise
.
all
([
returns
.
getRefundGoodsData
(
code
,
uid
),
mcHandler
.
getMeThumb
()]).
then
(
result
=>
{
let
refundGoods
=
result
[
0
];
let
thumb
=
result
[
1
];
res
.
display
(
'index'
,
{
page
:
'refund'
,
content
:
Object
.
assign
({
...
...
@@ -100,7 +100,7 @@ const refundDetail = (req, res, next) => {
}
Promise
.
all
([
returns
.
getRefundDetailData
(
applyId
,
uid
),
mcHandler
.
getMeThumb
()]).
then
(
result
=>
{
let
refundDetail
=
result
[
0
];
let
refundDetail
Data
=
result
[
0
];
let
thumb
=
result
[
1
];
res
.
display
(
'index'
,
{
...
...
@@ -109,7 +109,7 @@ const refundDetail = (req, res, next) => {
nav
:
mcHandler
.
getMeCrumb
(
'我的退/换货'
),
navigation
:
mcHandler
.
getSideMenu
(
'我的退/换货'
),
banner
:
thumb
},
refundDetail
)
},
refundDetail
Data
)
});
}).
catch
(
next
);
};
...
...
@@ -122,7 +122,7 @@ const exchange = (req, res, next) => {
const
uid
=
req
.
user
.
uid
;
Promise
.
all
([
returns
.
getChangeGoodsList
(
code
,
uid
),
mcHandler
.
getMeThumb
()]).
then
(
result
=>
{
let
exchange
=
result
[
0
];
let
exchange
Data
=
result
[
0
];
let
thumb
=
result
[
1
];
res
.
display
(
'index'
,
{
...
...
@@ -132,7 +132,7 @@ const exchange = (req, res, next) => {
nav
:
mcHandler
.
getMeCrumb
(
'我的退/换货'
),
navigation
:
mcHandler
.
getSideMenu
(
'我的退/换货'
),
banner
:
thumb
},
exchange
)
},
exchange
Data
)
});
}).
catch
(
next
);
};
...
...
apps/me/controllers/setting.js
View file @
9f7cea9
...
...
@@ -105,7 +105,7 @@ const index = (req, res, next) => {
x
.
isSelected
=
'selected'
;
}
});
}
}
res
.
display
(
'index'
,
{
module
:
'me'
,
...
...
@@ -120,7 +120,7 @@ const index = (req, res, next) => {
userInfo
:
result
[
0
]
}
});
});
})
.
catch
(
next
)
;
};
/**
...
...
public/js/me/exchange.page.js
View file @
9f7cea9
...
...
@@ -17,8 +17,6 @@ var validate = require('./order/validation');
var
imgBoxTpl
=
require
(
'../../tpl/me/thumbnail.hbs'
);
var
changeTypeTpl
=
require
(
'../../tpl/me/change-type.hbs'
);
lazyLoad
(
$
(
'.banner-img'
));
var
validateMap
=
{
user
:
{
sl
:
'#user'
,
...
...
@@ -45,6 +43,8 @@ var validateMap = {
}
};
lazyLoad
(
$
(
'.banner-img'
));
// 添加.check方法
require
(
'../plugins/check'
);
...
...
public/js/me/refund-detail.page.js
View file @
9f7cea9
...
...
@@ -25,13 +25,13 @@ require('yoho-jquery-dotdotdot');
require
(
'../common/header'
);
// header
require
(
'../common/return-top'
);
// return-top
lazyload
(
$
(
'.banner-img'
));
// dot
$
(
'.goods-item .title'
).
dotdotdot
({
wrap
:
'letter'
});
lazyLoad
(
$
(
'img.banner-img'
));
function
cancelRefundApply
()
{
$
.
ajax
({
type
:
'POST'
,
...
...
public/js/me/refund.page.js
View file @
9f7cea9
...
...
@@ -26,7 +26,7 @@ var imgBoxTpl = require('../../tpl/me/thumbnail.hbs');
var
checked
;
lazy
L
oad
(
$
(
'.banner-img'
));
lazy
l
oad
(
$
(
'.banner-img'
));
$
(
'.blk-footer .return-top'
).
remove
();
// 移除通用的返回顶部组件
...
...
Please
register
or
login
to post a comment