Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
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
刘小敏
loveisland
Commits
53d5446d
Commit
53d5446d
authored
May 19, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
反馈类型修改类型文案完成
parent
a98fe19f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
5 deletions
+31
-5
Feedback.php
application/admin/controller/shopro/Feedback.php
+2
-1
Feedback.php
application/admin/model/shopro/Feedback.php
+27
-2
detail.html
application/admin/view/shopro/feedback/detail.html
+1
-1
index.html
application/admin/view/shopro/feedback/index.html
+1
-1
No files found.
application/admin/controller/shopro/Feedback.php
View file @
53d5446d
...
...
@@ -29,6 +29,7 @@ class Feedback extends Common
$feedbacks
=
$this
->
model
->
sheepFilter
()
->
with
(
'user'
)
->
paginate
(
$this
->
request
->
param
(
'list_rows'
,
10
));
// print_r($feedbacks);
$this
->
success
(
'获取成功'
,
null
,
$feedbacks
);
}
...
...
@@ -81,7 +82,7 @@ class Feedback extends Common
/**
* 删除
优惠券
* 删除
意见反馈
*
* @param string $id 要删除的意见反馈
* @return void
...
...
application/admin/model/shopro/Feedback.php
View file @
53d5446d
...
...
@@ -4,22 +4,33 @@ namespace app\admin\model\shopro;
use
app\admin\model\shopro\Common
;
use
app\admin\model\shopro\user\User
;
use
traits\model\SoftDelete
;
class
Feedback
extends
Common
{
protected
$name
=
'shopro_feedback'
;
use
SoftDelete
;
protected
$deleteTime
=
'deletetime'
;
public
$type_text
=
[
1
=>
'咨询'
,
2
=>
'建议'
,
3
=>
'投诉'
,
];
protected
$type
=
[
'images'
=>
'json'
];
protected
$append
=
[
'status_text'
'status_text'
,
'type_text'
,
];
/**
*
类型
列表
*
状态
列表
*
* @return array
*/
...
...
@@ -28,6 +39,20 @@ class Feedback extends Common
return
[
'0'
=>
'待处理'
,
'1'
=>
'已处理'
];
}
/**
* 类型列表
*
* @return array
*/
public
function
typeList
()
{
return
[
1
=>
'咨询'
,
2
=>
'建议'
,
3
=>
'投诉'
];
}
public
function
user
()
{
return
$this
->
belongsTo
(
User
::
class
,
'user_id'
,
'id'
)
->
field
(
'id, nickname, avatar, mobile'
);
...
...
application/admin/view/shopro/feedback/detail.html
View file @
53d5446d
...
...
@@ -9,7 +9,7 @@
<sa-user-profile
:user=
"form.model.user"
:id=
"form.model.user_id"
></sa-user-profile>
</el-form-item>
<el-form-item
label=
"反馈类型"
>
{{ form.model.type }}
{{ form.model.type
_text
}}
</el-form-item>
<el-form-item
label=
"反馈内容"
>
{{ form.model.content }}
...
...
application/admin/view/shopro/feedback/index.html
View file @
53d5446d
...
...
@@ -28,7 +28,7 @@
<el-table-column
label=
"反馈类型"
min-width=
"140"
>
<template
#
default=
"scope"
>
<div
class=
"sa-table-line-1"
>
{{ scope.row.type || '-' }}
{{ scope.row.type
_text
|| '-' }}
</div>
</template>
</el-table-column>
...
...
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