Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
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
Plain Diff
Browse Files
Authored by
ccbikai
9 years ago
Commit
325e381809cdcc9ea9e4f85fc39798e254b7fec5
2 parents
838775c9
7e5e83d2
Merge branch 'develop' of git.yoho.cn:fe/yohoblk-wap into develop
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
12 deletions
apps/me/controllers/index.js
apps/me/models/index.js
apps/me/views/action/feedback.hbs
public/js/common/tip.js
public/js/me/feedback.page.js
public/scss/me/_feedback.css
public/vue/editorial/index-box.vue
public/vue/editorial/top-nav.vue
apps/me/controllers/index.js
View file @
325e381
...
...
@@ -114,12 +114,11 @@ const component = {
res
.
render
(
'feedback'
,
{
module
:
'me'
,
page
:
'feedback'
,
suggestSub
:
true
,
noLocalCSS
:
true
});
},
saveFeedback
:
(
req
,
res
,
next
)
=>
{
le
t
saveFeedbackPara
=
{
cons
t
saveFeedbackPara
=
{
uid
:
req
.
user
.
uid
,
udid
:
req
.
sessionID
,
content
:
req
.
body
.
content
,
...
...
apps/me/models/index.js
View file @
325e381
...
...
@@ -139,7 +139,7 @@ exports.getHelpDetail = (data) => {
* @param data
*/
exports
.
saveFeedback
=
(
data
)
=>
{
return
serviceAPI
.
post
(
'
/
suggest/api/v1/suggest/saveSuggest'
,
data
).
then
(
result
=>
{
return
serviceAPI
.
post
(
'suggest/api/v1/suggest/saveSuggest'
,
data
).
then
(
result
=>
{
return
{
code
:
result
.
code
,
message
:
result
.
message
...
...
apps/me/views/action/feedback.hbs
View file @
325e381
<div
class=
"yoho-suggest-sub-page yoho-page"
>
{{#
suggestSub
}}
<div
class=
"suggest-sub-form"
>
<textarea
name=
""
id=
"suggest-textarea"
placeholder=
"请写下对于BLK的意见和建议,我们将及时根据您的意见作出改进"
></textarea>
</div>
{{/
suggestSub
}}
</div>
<style>
html
,
...
...
public/js/common/tip.js
View file @
325e381
...
...
@@ -23,7 +23,9 @@ function tip(param) {
};
if
(
typeof
param
===
'string'
)
{
$
.
extend
(
viewData
,
{
txt
:
param
});
$
.
extend
(
viewData
,
{
txt
:
param
});
}
else
{
$
.
extend
(
viewData
,
param
);
}
...
...
public/js/me/feedback.page.js
View file @
325e381
...
...
@@ -19,6 +19,7 @@ $(() => {
return
;
}
$
(
'#suggest-textarea'
).
blur
();
$
.
ajax
({
type
:
'post'
,
url
:
'/me/save-feedback'
,
...
...
@@ -28,6 +29,9 @@ $(() => {
}).
then
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
tip
(
'提交成功'
);
setTimeout
(()
=>
{
yoho
.
goBack
();
},
2000
)
}
else
{
tip
(
'提交失败~'
);
}
...
...
public/scss/me/_feedback.css
View file @
325e381
...
...
@@ -19,7 +19,7 @@
max-height
:
255px
;
min-height
:
255px
;
padding
:
30px
;
font-size
:
26
px
;
font-size
:
30
px
;
line-height
:
48px
;
color
:
#000
;
display
:
block
;
...
...
public/vue/editorial/index-box.vue
View file @
325e381
...
...
@@ -15,7 +15,7 @@
<div class="bottom clearfix">
<span class="icon time-icon"></span>
<span class="time">{{editorial.publishTime}}</span>
<span class="icon icon-share share" @click="share(editorial.title, editorial.intro, editorial.src, editorial.
share.url
)"></span>
<span class="icon icon-share share" @click="share(editorial.title, editorial.intro, editorial.src, editorial.
id
)"></span>
</div>
</div>
</div>
...
...
@@ -119,12 +119,20 @@
},
/* 分享资讯 */
share(title, des, img,
url
) {
share(title, des, img,
id
) {
yoho.goShare({
title: title,
des: des,
img: img,
url: url
img: img.replace(/(\{width}|\{height}|\{mode})/g, ($0) => {
let dict = {
'{width}': 300,
'{height}': 300,
'{mode}': 2
};
return dict[$0];
}),
url: `//m.yohoblk.com/editorial/${id}.html`
});
}
},
...
...
public/vue/editorial/top-nav.vue
View file @
325e381
...
...
@@ -99,7 +99,8 @@
};
return dict[$0];
})
}),
url: `//m.yohoblk.com/editorial/${this.article.id}.html`
});
}
},
...
...
Please
register
or
login
to post a comment