Commit 3d2fed1f authored by XieZhiXiong's avatar XieZhiXiong

chore: 替换查询商品列表接口

parent d3577472
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-06-24 14:03:34 * @Date: 2021-06-24 14:03:34
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-03 11:26:22 * @LastEditTime: 2021-10-16 16:06:07
* @Description: * @Description:
*/ */
import { FormPath, FormEffectHooks } from '@formily/antd'; import { FormPath, FormEffectHooks } from '@formily/antd';
import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect'; import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { GlobalConfig } from '@/global/config';
import { useBusinessEffects } from './useBusinessEffects'; import { useBusinessEffects } from './useBusinessEffects';
import { ResponseType } from '../../../../../components/MemberCheckboxGroup'; import { ResponseType } from '../../../../../components/MemberCheckboxGroup';
...@@ -150,7 +151,7 @@ export const createEffects = (context, actions) => { ...@@ -150,7 +151,7 @@ export const createEffects = (context, actions) => {
// 初始化 适用商城数据 // 初始化 适用商城数据
onFieldMount$('suitableMallTypes').subscribe(() => { onFieldMount$('suitableMallTypes').subscribe(() => {
PublicApi.getManageShopFindByMemberType().then((res) => { PublicApi.postManageWebShopWebAll({ siteId: GlobalConfig.global.siteInfo.id, hasMemberType: 1 }).then((res) => {
if (res.code === 1000) { if (res.code === 1000) {
const { data = [] } = res; const { data = [] } = res;
setFieldState('suitableMallTypes', state => { setFieldState('suitableMallTypes', state => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment