Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
cb859661
Commit
cb859661
authored
Apr 30, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:会员详情bugfix
parent
b3788910
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
src/views/sale/itemList.vue
src/views/sale/itemList.vue
+1
-2
src/views/user/userDetail.vue
src/views/user/userDetail.vue
+17
-1
No files found.
src/views/sale/itemList.vue
View file @
cb859661
...
...
@@ -157,11 +157,10 @@ export default {
updateOnSale
(
params
)
.
then
(
response
=>
{
this
.
$notify
.
success
({
message
:
e
?
'
上架成功
'
:
'
下架
成功
'
message
:
'
操作
成功
'
}
)
}
)
.
catch
(
response
=>
{
item
.
isOnSale
=
!
e
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
type
:
'
error
'
...
...
src/views/user/userDetail.vue
View file @
cb859661
...
...
@@ -173,8 +173,9 @@
<
script
>
import
Pagination
from
'
@/components/Pagination
'
import
{
fansList
,
requestUserDetail
,
updateCollectorPermission
,
updateAccountState
}
from
'
@/api/business/user
'
import
{
getSaleList
,
irregularOff
}
from
'
@/api/business/sale
'
import
{
getSaleList
,
irregularOff
,
updateOnSale
}
from
'
@/api/business/sale
'
import
Line2Hidden
from
'
@/components/line2Hidden
'
import
{
MessageBox
}
from
'
element-ui
'
export
default
{
name
:
'
UserDetail
'
,
components
:
{
...
...
@@ -397,6 +398,21 @@ export default {
this
.
$message
.
error
(
e
.
data
&&
e
.
data
.
errmsg
||
'
请求失败, 请重试
'
)
}
)
}
)
}
,
handleSaleSwitch
(
e
,
item
)
{
const
params
=
{
id
:
item
.
id
,
isOnSale
:
e
}
updateOnSale
(
params
)
.
then
(
response
=>
{
this
.
$notify
.
success
({
message
:
'
操作成功
'
}
)
}
)
.
catch
(
response
=>
{
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
type
:
'
error
'
}
)
}
)
}
}
}
...
...
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