Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a51a58f6
authored
May 29, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
00c05b7d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
App.vue
pages/mine/download.vue
App.vue
View file @
a51a58f6
...
...
@@ -22,6 +22,9 @@ uni-page-head {
body
{
background
:
#f5f5f5
;
}
::v-deep
uni-toast
{
z-index
:
9999
;
}
::v-deep
uni-modal
.uni-modal
{
border-radius
:
10
rpx
;
}
...
...
pages/mine/download.vue
View file @
a51a58f6
...
...
@@ -105,8 +105,8 @@
</view>
<view
class=
"right row"
><text
class=
"iconfont icon-xxx"
@
click=
"close()"
></text></view>
</view>
<view
class=
"textarea-box row bothSide verCenter"
><textarea
placeholder=
"输入你的留言内容"
class=
"uni-textarea"
></textarea></view>
<view
class=
"save row rowCenter verCenter"
>
留言
</view>
<view
class=
"textarea-box row bothSide verCenter"
><textarea
placeholder=
"输入你的留言内容"
class=
"uni-textarea"
v-model=
"content"
></textarea></view>
<view
class=
"save row rowCenter verCenter"
@
click=
"createArticleMessage()"
>
留言
</view>
</view>
</uni-popup>
</view>
...
...
@@ -133,6 +133,7 @@ export default {
daily_download_count
:
''
,
//每日下载次数
remain_download_count
:
''
,
//当前剩下下载数量
message
:
[],
//留言列表
content
:
''
,
//留言内容
searchParams
:
{
title
:
''
,
class_id
:
''
,
...
...
@@ -184,6 +185,9 @@ export default {
}
});
},
/**
* 获取下载数据
*/
getShowData
()
{
this
.
request
(
Api_Url
+
'/article/showData'
,
'POST'
,
this
.
searchParams
,
true
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
...
...
@@ -207,7 +211,26 @@ export default {
/**
* 提交留言
*/
createArticleMessage
()
{}
createArticleMessage
()
{
this
.
request
(
Api_Url
+
'/article/createArticleMessage'
,
'GET'
,
{
content
:
this
.
content
,
user_id
:
getCookie
(
'Yo4teW_uid'
)
},
true
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
showToast
({
title
:
'留言成功'
,
icon
:
'success'
,
duration
:
10000000
});
setTimeout
(()
=>
{
// this.getShowData();
// this.close();
},
2000
);
}
else
{
uni
.
showToast
({
title
:
res
.
err_msg
,
icon
:
'none'
});
}
});
}
}
};
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment