/* * @Author: Pengjiantian * @Date: 2020-06-10 16:49:52 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-07-03 18:00:07 */ /** * 获取城市列表 */ import ApiModel from '@/utils/core/apiModel' import { getEnvInfo } from '@/utils/utils' const { ctsApiPrefix } = getEnvInfo() export default options => { // 接口地址: required const api = 'server/getAllCityAreaList' return new ApiModel({ baseConf: { // 调用贷前接口 apiPrefix: ctsApiPrefix }, api, request(body) { return this.post(body) }, computedItem(item) { let { itemno, itemname, ...other } = item return { ...other, label: itemname, value: itemno } } }) }