Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3ab1ed70
authored
Oct 01, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员:积分配置改为会员配置
parent
0066d798
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/api/member/config/index.ts
+2
-2
src/views/member/config/index.vue
+3
-3
No files found.
src/api/member/
point/
config/index.ts
→
src/api/member/config/index.ts
View file @
3ab1ed70
...
...
@@ -10,10 +10,10 @@ export interface ConfigVO {
// 查询积分设置详情
export
const
getConfig
=
async
()
=>
{
return
await
request
.
get
({
url
:
`/member/
point/
config/get`
})
return
await
request
.
get
({
url
:
`/member/config/get`
})
}
// 新增修改积分设置
export
const
saveConfig
=
async
(
data
:
ConfigVO
)
=>
{
return
await
request
.
put
({
url
:
`/member/
point/
config/save`
,
data
})
return
await
request
.
put
({
url
:
`/member/config/save`
,
data
})
}
src/views/member/
point/
config/index.vue
→
src/views/member/config/index.vue
View file @
3ab1ed70
...
...
@@ -55,9 +55,9 @@
</ContentWrap>
</
template
>
<
script
lang=
"ts"
setup
>
import
*
as
ConfigApi
from
'@/api/member/
point/
config'
import
*
as
ConfigApi
from
'@/api/member/config'
defineOptions
({
name
:
'Member
Point
Config'
})
defineOptions
({
name
:
'MemberConfig'
})
const
{
t
}
=
useI18n
()
// 国际化
const
message
=
useMessage
()
// 消息弹窗
...
...
@@ -75,7 +75,7 @@ const formData = ref({
// 创建一个计算属性,用于将 tradeDeductUnitPrice 显示为带两位小数的形式
const
computedTradeDeductUnitPrice
=
computed
({
get
:
()
=>
(
formData
.
value
.
tradeDeductUnitPrice
/
100
).
toFixed
(
2
),
set
:
(
newValue
)
=>
{
set
:
(
newValue
:
number
)
=>
{
formData
.
value
.
tradeDeductUnitPrice
=
Math
.
round
(
newValue
*
100
)
}
})
...
...
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