| | |
| | | } |
| | | |
| | | /** 获取开通城市列表 */ |
| | | export function getCityList() { |
| | | return request.Get<Service.ResponseResult<any>>('/operation/api/v1/openCity/list') |
| | | export function getCityList(params: any) { |
| | | return request.Get<Service.ResponseResult<any>>(`/operation/api/v1/openCity/list?type=${params.type}`) |
| | | } |
| | | |
| | | // 交易策略 |
| | |
| | | const cityList = ref<any[]>([]) |
| | | |
| | | const getCityListData = () => { |
| | | getCityList().then((res) => { |
| | | getCityList({ type: 1}).then((res) => { |
| | | if (res.code === 200) { |
| | | cityList.value = res.data || [] |
| | | cityList.value.forEach((item) => { |
| | |
| | | |
| | | async function getCityListData(type: ModalType, id: string) { |
| | | try { |
| | | const res = await getCityList() |
| | | const res = await getCityList({ type: 2 }) |
| | | if (res.code === 200) { |
| | | cityList.value = res.data || [] |
| | | cityList.value.forEach((item) => { |