diff --git a/src/views/marketing/sign/index.vue b/src/views/marketing/sign/index.vue index ae07a27..3c78c58 100644 --- a/src/views/marketing/sign/index.vue +++ b/src/views/marketing/sign/index.vue @@ -20,13 +20,14 @@ const ok = () => { formRef.value?.validate(async (errors) => { if (!errors) { try { - const data = { - Gift: formData.value.gift, - Sign: formData.value.sign, - WeekSign: formData.value.week_sign, - MonthSign: formData.value.month_sign, - } - await api.setSignConfig(data) + // const data = { + // Gift: formData.value.gift, + // Sign: formData.value.sign, + // WeekSign: formData.value.weekSign, + // MonthSign: formData.value.monthSign, + // WarningNumber: formData.value.warningNumber, + // } + await api.setSignConfig(formData.value) $message.success('保存成功') } catch (e) { $message.error(e.msg) @@ -40,20 +41,20 @@ const ok = () => { - - + + - - + + - - + + - - + + - - + + diff --git a/src/views/system/sys/api.js b/src/views/system/sys/api.js index f3c8d3c..8b34401 100644 --- a/src/views/system/sys/api.js +++ b/src/views/system/sys/api.js @@ -1,6 +1,6 @@ import { request } from '@/utils' export default { - getConfig: (data) => request.post('/userConfig', data), - editConfig: (data) => request.post('/userConfig/edit', data), + getConfig: (data) => request.post('/edit/setting', data), + editConfig: (data) => request.post('/edit/setting/edit', data), } diff --git a/src/views/system/sys/index.vue b/src/views/system/sys/index.vue index 4f17987..092a1e7 100644 --- a/src/views/system/sys/index.vue +++ b/src/views/system/sys/index.vue @@ -2,21 +2,40 @@ - + + + + + {{ song.label }} + + + + + import api from './api' -const formValue = ref({ - reward: null, -}) +const formValue = ref({}) const formRef = ref(null) const rules = { - reward: [ + Scale: [ { required: true, type: 'number', - message: '请输入积分佣金比例', + message: '请输入提现手续费比例', + }, + ], + ScaleType: [ + { + required: true, + type: 'number', + message: '请选择提现手续费类型', }, ], } @@ -53,7 +77,7 @@ onMounted(() => { const getconfig = async () => { const res = await api.getConfig() - formValue.value = res.data.data + formValue.value = res.data.data[0] } const handleValidateClick = () => { diff --git a/src/views/user/index/api.js b/src/views/user/index/api.js index 3132095..06f82a7 100644 --- a/src/views/user/index/api.js +++ b/src/views/user/index/api.js @@ -12,7 +12,7 @@ export default { getjfJllist: (data) => request.post('/user/point', data), // 获取推广记录 gettgJllist: (data) => request.post('/user/referee/point', data), - // 积分赠送 + // 豆子赠送 addUserPulse: (data) => request.post('/gift/pulse', data), // 获取赠送记录 getgiftJllist: (data) => request.post('/user/gift/pluse', data), diff --git a/src/views/user/index/index.vue b/src/views/user/index/index.vue index 529c69b..e499664 100644 --- a/src/views/user/index/index.vue +++ b/src/views/user/index/index.vue @@ -142,13 +142,12 @@ - + - - - - - + + + + @@ -224,7 +223,7 @@ :step="100" /> - + 提交 取消