Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
25fb6660
Commit
25fb6660
authored
Feb 25, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增了意见反馈页面
parent
97c43c70
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
292 additions
and
34 deletions
+292
-34
index.js
api/user/index.js
+10
-1
pages.json
pages.json
+9
-0
my.vue
pages/tab/my.vue
+52
-32
addMessage.vue
pagesUser/addMessage.vue
+1
-1
publishFeedBack.vue
pagesme/feedBack/publishFeedBack.vue
+220
-0
No files found.
api/user/index.js
View file @
25fb6660
...
...
@@ -232,4 +232,13 @@ export function getWeChatTask(data) {
method
:
'get'
,
data
:
data
})
}
\ No newline at end of file
}
// 意见反馈
export
function
addFeedBack
(
data
)
{
return
request
({
url
:
'/app/memFeedBack/add'
,
data
:
data
,
method
:
'POST'
,
})
}
pages.json
View file @
25fb6660
...
...
@@ -183,6 +183,15 @@
{
"root"
:
"pagesme"
,
"pages"
:
[
{
"path"
:
"feedBack/publishFeedBack"
,
"style"
:
{
"navigationBarTitleText"
:
"意见反馈"
,
"backgroundColor"
:
"#F4F5F9"
,
"backgroundColorTop"
:
"#F4F5F9"
,
"navigationBarBackgroundColor"
:
"#F4F5F9"
}
},
{
"path"
:
"goldCoin/consumeRecord"
,
"style"
:
{
...
...
pages/tab/my.vue
View file @
25fb6660
...
...
@@ -192,32 +192,42 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
noReadMessageAllCount
:
''
,
info
:{},
button
:
[
{
name
:
"金币"
,
num
:
0
,
desc
:
"立即充值"
,
img
:
this
.
$IMG_URL
+
"/user/mymoney.png"
,
},
{
name
:
"个人资料"
,
num
:
''
,
desc
:
""
,
img
:
this
.
$IMG_URL
+
"/user/myren.png"
,
},
{
{
name
:
"金币"
,
num
:
0
,
desc
:
"立即充值"
,
img
:
this
.
$IMG_URL
+
"/user/mymoney.png"
,
},
{
name
:
"个人资料"
,
num
:
''
,
desc
:
""
,
img
:
this
.
$IMG_URL
+
"/user/myren.png"
,
},
{
name
:
"我的留言"
,
num
:
''
,
desc
:
""
,
img
:
this
.
$IMG_URL
+
'/user/mymessage.png'
,
},
{
name
:
"推荐给好友"
,
num
:
''
,
desc
:
""
,
img
:
this
.
$IMG_URL
+
"/user/myshare.png"
,
},
{
name
:
"设置"
,
num
:
''
,
desc
:
""
,
img
:
this
.
$IMG_URL
+
'/user/myset.png'
,
}
},
{
name
:
"推荐给好友"
,
num
:
''
,
desc
:
""
,
img
:
this
.
$IMG_URL
+
"/user/myshare.png"
,
},
{
name
:
"意见反馈"
,
num
:
''
,
desc
:
""
,
img
:
this
.
$IMG_URL
+
"/user/fankui.png"
,
},
{
name
:
"设置"
,
num
:
''
,
desc
:
""
,
img
:
this
.
$IMG_URL
+
'/user/myset.png'
,
}
],
numtwo
:
0
,
tipMsg
:
""
...
...
@@ -404,22 +414,32 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
//操作项跳转
whether
(
i
)
{
if
(
i
==
0
)
{
//金币充值
uni
.
navigateTo
({
url
:
"/pagesme/goldCoin/recharge"
})
}
else
if
(
i
==
1
)
{
//个人资料
this
.
updateInformation
();
}
else
if
(
i
==
4
)
{
uni
.
navigateTo
({
url
:
"/pagesme/set/set"
})
}
else
if
(
i
==
3
)
{
}
else
if
(
i
==
2
){
//我的留言
uni
.
navigateTo
({
url
:
"/pagesme/message/message"
})
}
else
if
(
i
==
3
)
{
//推荐给好友
}
else
if
(
i
==
2
)
{
uni
.
navigateTo
({
url
:
"/pagesme/message/message"
})
}
else
if
(
i
==
5
)
{}
}
else
if
(
i
==
4
)
{
//意见反馈
uni
.
navigateTo
({
url
:
"/pagesme/feedBack/publishFeedBack"
})
}
else
if
(
i
==
5
)
{
//设置
uni
.
navigateTo
({
url
:
"/pagesme/set/set"
})
}
},
getnoReadMessageAllCount
(){
noReadMessageAllCount
().
then
(
res
=>
{
...
...
pagesUser/addMessage.vue
View file @
25fb6660
...
...
@@ -127,7 +127,7 @@
}
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
scoped
>
page {
background-color: #F4F5F9;
...
...
pagesme/feedBack/publishFeedBack.vue
0 → 100644
View file @
25fb6660
<
template
>
<view
class=
"content"
>
<u--form
labelPosition=
"left"
:model=
"addParams"
:rules=
"rules"
ref=
"uForm"
>
<u-form-item
label=
"标题"
prop=
"title"
borderBottom
labelWidth=
"80"
>
<u--input
v-model=
"addParams.title"
border=
"none"
placeholder=
"请输入标题"
></u--input>
</u-form-item>
<u-form-item
label=
"反馈类型"
prop=
"addParams.feedbackType"
borderBottom
@
click=
"show = true; hideKeyboard()"
labelWidth=
"80"
ref=
"feedbackType"
>
<u--input
v-model=
"addParams.feedbackType"
disabled
disabledColor=
"#ffffff"
placeholder=
"请选择反馈类型"
border=
"none"
></u--input>
<u-icon
slot=
"right"
name=
"arrow-right"
></u-icon>
</u-form-item>
<u-form-item
label=
"反馈内容"
prop=
"title"
borderBottom
labelWidth=
"80"
>
<u-textarea
v-model=
"addParams.content"
:cursorSpacing=
"100"
:height=
"165"
:show-confirm-bar=
"false"
:maxlength=
"200"
placeholder=
"请输入内容"
count
></u-textarea>
</u-form-item>
</u--form>
<view
class=
"adding"
@
click=
"submit"
>
发送
</view>
<u-action-sheet
:show=
"show"
:actions=
"actions"
title=
"请选择反馈类型"
@
close=
"show = false"
@
select=
"selectType"
>
</u-action-sheet>
</view>
</
template
>
<
script
>
import
{
addFeedBack
,
updateUser
}
from
"../../api/user"
;
export
default
{
data
()
{
return
{
//校验规则
rules
:
{
feedbackType
:
[
{
type
:
'string'
,
required
:
true
,
message
:
'请选择反馈类型'
,
trigger
:
[
'blur'
,
'change'
]
}
],
title
:
[
{
type
:
'string'
,
required
:
true
,
message
:
'请输入标题'
,
trigger
:
[
'blur'
,
'change'
]
}
],
content
:
[
{
type
:
'string'
,
required
:
true
,
message
:
'请输入内容'
,
trigger
:
[
'blur'
,
'change'
]
}
],
},
//参数
addParams
:
{
feedbackType
:
''
,
title
:
''
,
content
:
''
},
//反馈类型
actions
:
[
{
name
:
'首页'
,
},
{
name
:
'活动'
,
},
{
name
:
'动态'
,
},
{
name
:
'排行榜'
,
},
{
name
:
'我的'
,
},
],
show
:
false
,
//标题
title
:
''
,
//内容
content
:
''
,
}
},
onLoad
(
option
)
{
},
onReady
()
{
//如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则。
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
)
},
methods
:
{
//阻止键盘弹出
hideKeyboard
()
{
uni
.
hideKeyboard
()
},
//选择反馈类型
selectType
(
e
)
{
this
.
addParams
.
feedbackType
=
e
.
name
},
//发送
submit
(){
this
.
$refs
.
uForm
.
validate
().
then
(
res
=>
{
const
params
=
{
feedbackType
:
this
.
addParams
.
feedbackType
,
content
:
this
.
addParams
.
content
,
title
:
this
.
addParams
.
title
}
addFeedBack
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
){
uni
.
showToast
({
title
:
'提交成功'
,
icon
:
'success'
})
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
'info'
})
}
//延迟1s
setTimeout
(()
=>
{
uni
.
navigateBack
({
delta
:
1
})
},
1000
)
})
})
},
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.content {
width: 100%;
height: 100vh;
background-color: #F4F5F9;
}
.text {
width: 100%;
height: 365rpx;
background: #ffffff;
border-top: 1rpx solid #eee;
}
.adding {
width: 614rpx;
height: 84rpx;
background: linear-gradient(86deg, #C2D2F9 0%, #C5C2F3 100%);
border-radius: 42rpx 42rpx 42rpx 42rpx;
font-size: 28rpx;
font-family: 'PingFang SC-Regular, PingFang SC';
font-weight: 400;
color: #415C9E;
line-height: 84rpx;
position: fixed;
bottom: 54rpx;
left: 68rpx;
text-align: center;
}
.u-page__tag-item {
display: flex;
flex-wrap: wrap;
margin-left: 120rpx;
}
::v-deep .u-tag--medium{
margin-left: 50rpx;
margin-bottom: 20rpx;
}
::v-deep .u-form{
padding-right: 20rpx;
padding-left: 20rpx;
background-color: white;
}
</
style
>
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