Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
lilejia-f2mb-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ad8ddc13
authored
2019-09-02 16:16:52 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
5e304d4f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
21 deletions
src/components/biz-model/biz-model.vue
src/pages/list/components/MemberWorksView.vue
src/pages/sign/components/EditModel.vue
src/pages/sign/index.vue
src/components/biz-model/biz-model.vue
View file @
ad8ddc1
...
...
@@ -103,7 +103,7 @@
</div>
<div
class=
"rule-line"
>
<div>
5.
</div>
<div>
报名截止时间9月19日23:59,投票截止时间9月20日23:59,最终入围名单将在9月21
日在立乐家微信公众号公布
</div>
<div>
投票截止时间9月27日中午12:00,最终入围名单将在9月30
日在立乐家微信公众号公布
</div>
</div>
<div
class=
"rule-line"
>
<div>
6.
</div>
...
...
src/pages/list/components/MemberWorksView.vue
View file @
ad8ddc1
...
...
@@ -112,24 +112,32 @@ export default {
mask
:
true
,
message
:
"请稍等..."
});
httpGet
({
url
:
urls
.
index
}).
then
(
res
=>
{
if
(
res
.
isSubcribe
==
1
)
{
let
data
=
{
worksCode
:
this
.
formData
.
worksCode
};
request
.
post
(
urls
.
praise
,
data
).
then
(
res
=>
{
httpGet
({
url
:
urls
.
index
})
.
then
(
res
=>
{
if
(
res
.
isSubcribe
==
1
)
{
let
data
=
{
worksCode
:
this
.
formData
.
worksCode
};
request
.
post
(
urls
.
praise
,
data
).
then
(
res
=>
{
Toast
.
clear
();
this
.
$emit
(
"praiseSuccess"
);
});
}
else
{
Toast
.
clear
();
this
.
$emit
(
"praiseSuccess"
);
});
}
else
{
httpGet
({
url
:
urls
.
cache
,
data
:
{
worksCode
:
this
.
formData
.
worksCode
}
}).
then
(
res
=>
{});
this
.
model
.
show
=
true
;
}
})
.
catch
(
res
=>
{
console
.
log
(
res
);
this
.
loading
=
false
;
Toast
.
clear
();
httpGet
({
url
:
urls
.
cache
,
data
:
{
worksCode
:
this
.
formData
.
worksCode
}
}).
then
(
res
=>
{});
this
.
model
.
show
=
true
;
}
});
let
msg
=
res
.
data
&&
res
.
data
.
errMsg
?
res
.
data
.
errMsg
:
"点赞失败"
;
Toast
(
msg
);
});
},
showShareHandler
()
{
// 出现分享层
...
...
@@ -143,7 +151,7 @@ export default {
BizModel
},
created
()
{
console
.
log
(
"created"
)
console
.
log
(
"created"
)
;
let
code
=
this
.
formData
.
worksCode
;
let
link
=
location
.
origin
+
location
.
pathname
;
link
+=
"?worksCode="
+
code
;
...
...
src/pages/sign/components/EditModel.vue
View file @
ad8ddc1
...
...
@@ -222,9 +222,10 @@ export default {
this
.
$emit
(
"submit"
,
data
);
})
.
catch
(
res
=>
{
console
.
log
(
res
);
this
.
loading
=
false
;
Toast
.
clear
();
let
msg
=
res
.
errMsg
?
res
.
errMsg
:
"作品提交失败"
;
let
msg
=
res
.
data
&&
res
.
data
.
errMsg
?
res
.
data
.
errMsg
:
"作品提交失败"
;
Toast
(
msg
);
});
}
...
...
src/pages/sign/index.vue
View file @
ad8ddc1
...
...
@@ -97,9 +97,8 @@ export default {
httpGet
({
url
:
urls
.
myWork
}).
then
(
res
=>
{
// this.model.index = "submit";
// this.model.show = true;
this
.
init
=
true
;
Toast
.
clear
();
Toast
.
clear
(
true
);
this
.
formData
=
res
.
data
||
{};
if
(
!
res
.
data
)
{
this
.
formEdit
=
true
;
...
...
Please
register
or
sign in
to post a comment