会员:积分配置改为会员配置

This commit is contained in:
owen 2023-10-01 10:25:18 +08:00
parent 0066d79876
commit 3ab1ed707f
2 changed files with 5 additions and 5 deletions

View File

@ -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 })
}

View File

@ -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: 'MemberPointConfig' })
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)
}
})