| 123456789101112131415161718192021 |
- // api/index.js - 集中管理API接口
- // 基础URL
- const BASE_URL = getApp().globalData.apiUrl || 'http://dev-rfid.7in6.com/index.php/api/index';
- // API接口集合
- const API = {
- // 获取栋舍列表
- getBuilding: `${BASE_URL}/get_building`,
-
- // 获取房间列表
- getRoom: `${BASE_URL}/get_room`,
-
- // 获取栏位列表
- getField: `${BASE_URL}/get_field`,
-
- // 提交数据
- postListAdd: `${BASE_URL}/post_listadd`,
- };
- export default API;
|