diff --git a/api/information.js b/api/information.js index 53cb95e..70d566b 100644 --- a/api/information.js +++ b/api/information.js @@ -5,6 +5,7 @@ const Submit = BASE_URL + '/visitor/apply/submit' const visitReason = BASE_URL + '/sys/dict/code/visitReason' const devicePosition = BASE_URL + '/sys/dict/code/devicePosition' +const DEL_APPLY = BASE_URL + 'visitor/delApply' /** * 提交访客记录 @@ -31,4 +32,15 @@ export function getResourceType(code) { useNetWork(); return fetch.get(devicePosition).then(res => res); -} \ No newline at end of file +} +/** + * 申请者删除申请 + * @param {Object} code + */ +export function delApply(applyId) { + useNetWork(); + const params = { + applyId: applyId + } + return fetch.get(DEL_APPLY, params).then(res => res); +} diff --git a/api/information.js b/api/information.js index 53cb95e..70d566b 100644 --- a/api/information.js +++ b/api/information.js @@ -5,6 +5,7 @@ const Submit = BASE_URL + '/visitor/apply/submit' const visitReason = BASE_URL + '/sys/dict/code/visitReason' const devicePosition = BASE_URL + '/sys/dict/code/devicePosition' +const DEL_APPLY = BASE_URL + 'visitor/delApply' /** * 提交访客记录 @@ -31,4 +32,15 @@ export function getResourceType(code) { useNetWork(); return fetch.get(devicePosition).then(res => res); -} \ No newline at end of file +} +/** + * 申请者删除申请 + * @param {Object} code + */ +export function delApply(applyId) { + useNetWork(); + const params = { + applyId: applyId + } + return fetch.get(DEL_APPLY, params).then(res => res); +} diff --git a/api/user.js b/api/user.js index f7690f0..8ed85c8 100644 --- a/api/user.js +++ b/api/user.js @@ -35,13 +35,7 @@ * 注册 * @param {*} */ -export function getUserRegister(data) { +export function getUserRegister(params) { useNetWork(); - const params = { - phone: data.phone, - account: data.account, - name: data.name, - salt: data.salt, - }; return fetch.post(UserRegister, params).then((res) => res); } diff --git a/api/information.js b/api/information.js index 53cb95e..70d566b 100644 --- a/api/information.js +++ b/api/information.js @@ -5,6 +5,7 @@ const Submit = BASE_URL + '/visitor/apply/submit' const visitReason = BASE_URL + '/sys/dict/code/visitReason' const devicePosition = BASE_URL + '/sys/dict/code/devicePosition' +const DEL_APPLY = BASE_URL + 'visitor/delApply' /** * 提交访客记录 @@ -31,4 +32,15 @@ export function getResourceType(code) { useNetWork(); return fetch.get(devicePosition).then(res => res); -} \ No newline at end of file +} +/** + * 申请者删除申请 + * @param {Object} code + */ +export function delApply(applyId) { + useNetWork(); + const params = { + applyId: applyId + } + return fetch.get(DEL_APPLY, params).then(res => res); +} diff --git a/api/user.js b/api/user.js index f7690f0..8ed85c8 100644 --- a/api/user.js +++ b/api/user.js @@ -35,13 +35,7 @@ * 注册 * @param {*} */ -export function getUserRegister(data) { +export function getUserRegister(params) { useNetWork(); - const params = { - phone: data.phone, - account: data.account, - name: data.name, - salt: data.salt, - }; return fetch.post(UserRegister, params).then((res) => res); } diff --git a/pages.json b/pages.json index 4071ebc..092484a 100644 --- a/pages.json +++ b/pages.json @@ -1,11 +1,4 @@ { - // "easycom": { - // // 下载安装的方式需要前面的"@/",npm安装的方式无需"@/" - // // 下载安装方式 - // "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" - // // npm安装方式 - // // "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" - // }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", @@ -39,14 +32,14 @@ "onReachBottomDistance": 10 } }, - { + { "path" : "pages/information/information", "style" : { "navigationBarTitleText": "访客信息提交", "enablePullDownRefresh": false } - }, + }, { "path" : "pages/list/list", "style" : @@ -111,39 +104,79 @@ "backgroundColor": "#F8F8F8" }, "tabBar": { - "custom": true, - "selectedColor": "#2483b3", + // "custom": true, + "color": "#7A7E83", + "selectedColor": "#c5000a", + "borderStyle": "black", + "backgroundColor": "#ffffff", // "color": "#ccc", "list": [ { - "pagePath": "pages/index/index" + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "static/tabBar/home.png", + "selectedIconPath": "/static/tabBar/home_selected.png" }, { - "pagePath": "pages/message/message" + "pagePath": "pages/message/message", + "text": "消息", + "iconPath": "static/tabBar/message.png", + "selectedIconPath": "static/tabBar/message_selected.png" }, { - "pagePath": "pages/list/list" + "pagePath": "pages/list/list", + "text": "列表", + "iconPath": "static/tabBar/list.png", + "selectedIconPath": "static/tabBar/list_selected.png" }, { - "pagePath": "pages/mine/mine" + "pagePath": "pages/mine/mine", + "text": "我的", + "iconPath": "static/tabBar/mine.png", + "selectedIconPath": "static/tabBar/mine_selected.png" } ] }, "subPackages":[ - //分包模块 - { - "root" : "pagesA", - "pages" : [ - { - "path" : "checkInfo/checkInfo", - "style" : + //分包模块 { - "navigationBarTitleText": "", - "enablePullDownRefresh": false + "root" : "pagesA", + "pages" : [ + { + "path" : "checkInfo/checkInfo", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path" : "submitInfo/submitInfo", + "style" : + { + "navigationBarTitleText": "访客信息提交", + "enablePullDownRefresh": false + } + }, + { + "path" : "checkListInfo/checkListInfo", + "style" : + { + "navigationBarTitleText": "信息查看", + "enablePullDownRefresh": false + } + } + ,{ + "path" : "changeListInfo/changeListInfo", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ] } - } - ] - } ], "uniIdRouter": {} } diff --git a/api/information.js b/api/information.js index 53cb95e..70d566b 100644 --- a/api/information.js +++ b/api/information.js @@ -5,6 +5,7 @@ const Submit = BASE_URL + '/visitor/apply/submit' const visitReason = BASE_URL + '/sys/dict/code/visitReason' const devicePosition = BASE_URL + '/sys/dict/code/devicePosition' +const DEL_APPLY = BASE_URL + 'visitor/delApply' /** * 提交访客记录 @@ -31,4 +32,15 @@ export function getResourceType(code) { useNetWork(); return fetch.get(devicePosition).then(res => res); -} \ No newline at end of file +} +/** + * 申请者删除申请 + * @param {Object} code + */ +export function delApply(applyId) { + useNetWork(); + const params = { + applyId: applyId + } + return fetch.get(DEL_APPLY, params).then(res => res); +} diff --git a/api/user.js b/api/user.js index f7690f0..8ed85c8 100644 --- a/api/user.js +++ b/api/user.js @@ -35,13 +35,7 @@ * 注册 * @param {*} */ -export function getUserRegister(data) { +export function getUserRegister(params) { useNetWork(); - const params = { - phone: data.phone, - account: data.account, - name: data.name, - salt: data.salt, - }; return fetch.post(UserRegister, params).then((res) => res); } diff --git a/pages.json b/pages.json index 4071ebc..092484a 100644 --- a/pages.json +++ b/pages.json @@ -1,11 +1,4 @@ { - // "easycom": { - // // 下载安装的方式需要前面的"@/",npm安装的方式无需"@/" - // // 下载安装方式 - // "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" - // // npm安装方式 - // // "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" - // }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", @@ -39,14 +32,14 @@ "onReachBottomDistance": 10 } }, - { + { "path" : "pages/information/information", "style" : { "navigationBarTitleText": "访客信息提交", "enablePullDownRefresh": false } - }, + }, { "path" : "pages/list/list", "style" : @@ -111,39 +104,79 @@ "backgroundColor": "#F8F8F8" }, "tabBar": { - "custom": true, - "selectedColor": "#2483b3", + // "custom": true, + "color": "#7A7E83", + "selectedColor": "#c5000a", + "borderStyle": "black", + "backgroundColor": "#ffffff", // "color": "#ccc", "list": [ { - "pagePath": "pages/index/index" + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "static/tabBar/home.png", + "selectedIconPath": "/static/tabBar/home_selected.png" }, { - "pagePath": "pages/message/message" + "pagePath": "pages/message/message", + "text": "消息", + "iconPath": "static/tabBar/message.png", + "selectedIconPath": "static/tabBar/message_selected.png" }, { - "pagePath": "pages/list/list" + "pagePath": "pages/list/list", + "text": "列表", + "iconPath": "static/tabBar/list.png", + "selectedIconPath": "static/tabBar/list_selected.png" }, { - "pagePath": "pages/mine/mine" + "pagePath": "pages/mine/mine", + "text": "我的", + "iconPath": "static/tabBar/mine.png", + "selectedIconPath": "static/tabBar/mine_selected.png" } ] }, "subPackages":[ - //分包模块 - { - "root" : "pagesA", - "pages" : [ - { - "path" : "checkInfo/checkInfo", - "style" : + //分包模块 { - "navigationBarTitleText": "", - "enablePullDownRefresh": false + "root" : "pagesA", + "pages" : [ + { + "path" : "checkInfo/checkInfo", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path" : "submitInfo/submitInfo", + "style" : + { + "navigationBarTitleText": "访客信息提交", + "enablePullDownRefresh": false + } + }, + { + "path" : "checkListInfo/checkListInfo", + "style" : + { + "navigationBarTitleText": "信息查看", + "enablePullDownRefresh": false + } + } + ,{ + "path" : "changeListInfo/changeListInfo", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ] } - } - ] - } ], "uniIdRouter": {} } diff --git a/pages/index/index.vue b/pages/index/index.vue index 7e9dc36..fdde26f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,7 @@ //首页