订阅事件选项修改为接口获取
This commit is contained in:
parent
8275a00958
commit
da3498ab70
|
@ -959,6 +959,11 @@ export const deleteOrderDownload = (data) => {
|
||||||
return req("get", baseurl + `/order/export/delete`, data)
|
return req("get", baseurl + `/order/export/delete`, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询营销事件
|
||||||
|
export const querySubscribe = (data) => {
|
||||||
|
return req("get", baseurl + `/plan/marketEvent`, data)
|
||||||
|
}
|
||||||
|
|
||||||
// //订单下载列表-数据下载
|
// //订单下载列表-数据下载
|
||||||
// export const exportDownload = (md5) => {
|
// export const exportDownload = (md5) => {
|
||||||
// return derive("get", download_url + `/export/excel/marketOrder/download/${md5}`)
|
// return derive("get", download_url + `/export/excel/marketOrder/download/${md5}`)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { generateRsaKey, setResellMerchant, getApiMode } from "@/assets/api"
|
import { generateRsaKey, setResellMerchant, getApiMode,querySubscribe } from "@/assets/api"
|
||||||
import FormItem from "@/components/form-item/main"
|
import FormItem from "@/components/form-item/main"
|
||||||
import Form from "@/components/form/main"
|
import Form from "@/components/form/main"
|
||||||
import Ipt from "@/components/input/main"
|
import Ipt from "@/components/input/main"
|
||||||
|
@ -21,9 +21,10 @@ export default function Merchant() {
|
||||||
merchant_public_key: "", //商户公钥 *
|
merchant_public_key: "", //商户公钥 *
|
||||||
secret_key: "", //api mode 为1时不传 为2时必传* 偏移量
|
secret_key: "", //api mode 为1时不传 为2时必传* 偏移量
|
||||||
notify_url: "", //事件通知地址 *
|
notify_url: "", //事件通知地址 *
|
||||||
subscribe_event: [], //事件类型 数组
|
|
||||||
status: 1, //状态 1正常 2禁用 *
|
status: 1, //状态 1正常 2禁用 *
|
||||||
api_mode: 2 //对接类型 1-RSA+标准接口返回 【默认】2-兴业银行模式 *
|
api_mode: 2, //对接类型 1-RSA+标准接口返回 【默认】2-兴业银行模式 *
|
||||||
|
subscribe_event: [], //事件类型 数组
|
||||||
|
marketEvent:[]
|
||||||
})
|
})
|
||||||
const fromRef = useRef()
|
const fromRef = useRef()
|
||||||
const rules = {
|
const rules = {
|
||||||
|
@ -51,6 +52,9 @@ export default function Merchant() {
|
||||||
getApiMode().then(({ data }) => {
|
getApiMode().then(({ data }) => {
|
||||||
setState({ apiMode: data, reseller_id: id, ...merchant })
|
setState({ apiMode: data, reseller_id: id, ...merchant })
|
||||||
})
|
})
|
||||||
|
querySubscribe().then(({data}) => {
|
||||||
|
setState({ marketEvent:data })
|
||||||
|
})
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
/* 获取密钥 */
|
/* 获取密钥 */
|
||||||
|
@ -258,8 +262,13 @@ export default function Merchant() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Checkbox value={"KEY.USED"}>key码核销通知</Checkbox>
|
{
|
||||||
<Checkbox value={"VOUCHER.USED"}>立减金核销通知</Checkbox>
|
state.marketEvent?.map((item) => (
|
||||||
|
<Checkbox value={item.event}>{item.name}</Checkbox>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
{/* <Checkbox value={"KEY.USED"}>key码核销通知</Checkbox>
|
||||||
|
<Checkbox value={"VOUCHER.USED"}>立减金核销通知</Checkbox> */}
|
||||||
</Checkbox.Group>
|
</Checkbox.Group>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
Loading…
Reference in New Issue