🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# **公共接口说明** * * * * * ## **接口与接口说明** 1. 发送手机验证码。 说明:用于注册的时候发送验证码 2. 获取目前开发的区域。 说明:用于用户第一次进入APP的时候选择当前区域地区,或者却换当前区域显示的区域 3. 却换区域。 说明:用于用户选择区域后提交后台 4. 获取用户当前选择的区域 说明:APP首页显示当前用户选择的区域 5. 常用单位 说明:常用单位有“价格单位,包含费用,空间配套,地面类型,空间功能,装修类型,空调类型,特色标签” ### **发送手机验证码** +++ get:Api/OverallSituation/sentSMS *phone=手机号 # <<< success { "data": "", "info": "发送成功", "code": 1000, "state": 1 } <<< error { "data": "", "info": "20170117183824,117", "code": 1003, "state": 2 } 可能返回的错误: 代号 错误 1005 输入手机号有误 1004 需间隔一分钟 1003 短信服务商返回的错误 +++ ## 获取目前开发的区域 (暂时用不上) +++ Api/OverallSituation/getCityList <<< success [ { "id": "1", "name": "深圳", "choice": "1", "open": "1" }, { "id": "2", "name": "广州", "choice": "0", "open": "1" } ] +++ ## 却换区域 (暂时用不上) +++ Api/OverallSituation/updateCity *city_id=区域ID # <<< success { "id": "1", "name": "深圳", "choice": "1" } <<< error +++ ## 获取用户当前选择的市区 (暂时用不上) +++ Api/OverallSituation/getCity <<< success { "id": "1", "name": "深圳", "choice": "1" } +++ ## 获取用户当前选择的市区下的区域(意向区域) +++ Api/OverallSituation/getCityDistrict <<< success [ { "id": "1", "city_id": "1", "name": "南山区" }, { "id": "14", "city_id": "1", "name": "韩国区" } ] +++ ## 常用单位 +++ get:Api/OverallSituation/getCompanyAll <<< success { "matching": [ //空间配套 { "_id": { "$id": "58a3c99ea81e5a8c1f13ee8d" }, "type": "matching", "name": "办公桌" }, { "_id": { "$id": "58a3c9bca81e5aca1e13ee8e" }, "type": "matching", "name": "文件柜" } ], "price_units": [ //价格单位 { "_id": { "$id": "58a3c714a81e5af31b13ee8d" }, "type": "price_units", "name": "元/m²/天" }, { "_id": { "$id": "58a3c720a81e5a701b13ee8d" }, "type": "price_units", "name": "元/m²/月" } ], "conditioner": [ //空调类型 { "_id": { "$id": "58a3c925a81e5abb1c13ee8d" }, "type": "conditioner", "name": "中央空调" }, { "_id": { "$id": "58a3c92fa81e5a831e13ee8e" }, "type": "conditioner", "name": "无空调" } ], "ground_type": [ //地面类型 { "_id": { "$id": "58a3c941a81e5a823413ee8f" }, "type": "ground_type", "name": "地砖" }, { "_id": { "$id": "58a3c967a81e5afe1d13ee8f" }, "type": "ground_type", "name": "水泥地" } ], "renovation": [ //装修类型 { "_id": { "$id": "58a3c978a81e5a397c13ee8e" }, "type": "renovation", "name": "毛坯" }, { "_id": { "$id": "58a3c98fa81e5a511f13ee8d" }, "type": "renovation", "name": "豪装" } ], "contain_expenses": [ //包含费用 { "_id": { "$id": "58a3c9cda81e5a3e1f13ee8e" }, "type": "contain_expenses", "name": "物业费" }, { "_id": { "$id": "58a3c9e0a81e5a8c1f13ee8e" }, "type": "contain_expenses", "name": "车位费" } ], "characteristic_label": [ //特色标签 { "_id": { "$id": "58a3cc4ea81e5a212013ee8d" }, "type": "characteristic_label", "name": "产业特色" }, { "_id": { "$id": "58a3cc5aa81e5ade2013ee8d" }, "type": "characteristic_label", "name": "总部大楼" } ], "action": [ //空间功能 { "_id": { "$id": "58a3ce7da81e5af62213ee8d" }, "type": "action", "name": "办公" }, { "_id": { "$id": "58a3cea4a81e5af62213ee8e" }, "type": "action", "name": "生产" } ] } +++