diff --git a/App.vue b/App.vue index 4eb4fb0..acaca70 100644 --- a/App.vue +++ b/App.vue @@ -1,26 +1,32 @@ \ No newline at end of file + @import "./app.css"; + + /* #ifdef H5 */ + uni-page-head { + display: none; + } + + /* #endif */ + diff --git a/api/index/indexApi.js b/api/index/indexApi.js index baa9ef9..57c01bf 100644 --- a/api/index/indexApi.js +++ b/api/index/indexApi.js @@ -109,6 +109,11 @@ export function getCategoryList() { name: "合同费用", src: "/static/images/index_property.png", href: "/pages/contractFeeList/contractFeeList" + }, + { + name: "投票问卷", + src: "/static/images/index_property.png", + href: "/pages/questionAnswer/questionAnswer" } ] diff --git a/api/question/questionApi.js b/api/question/questionApi.js new file mode 100644 index 0000000..8add50f --- /dev/null +++ b/api/question/questionApi.js @@ -0,0 +1,64 @@ +import { + request +} from '../java110Request.js' +import +url +from '../../constant/url.js' + +import +mapping +from '../../constant/MappingConstant.js' + +/** + * 投票问卷 + * @param {Object} _data 评价内容 + */ +export function queryQuestionAnswer(_data) { + return new Promise((resolve, reject) => { + let moreRooms = []; + request({ + url: url.queryQuestionAnswer, + method: "GET", + data: _data, //动态数据 + success: function(res) { + let _data = res.data; + if (_data.code == 0) { + resolve(_data); + return ; + } + reject(_data.msg); + }, + fail: function(e) { + reject(e); + } + }); + }) +} + +/** + * 投票问卷 + * @param {Object} _data 评价内容 + */ +export function queryQuestionAnswerTitle(_data) { + return new Promise((resolve, reject) => { + let moreRooms = []; + request({ + url: url.queryQuestionAnswerTitle, + method: "GET", + data: _data, //动态数据 + success: function(res) { + let _data = res.data; + if (_data.code == 0) { + resolve(_data); + return ; + } + reject(_data.msg); + }, + fail: function(e) { + reject(e); + } + }); + }) +} + + diff --git a/constant/url.js b/constant/url.js index cfba566..b848b96 100644 --- a/constant/url.js +++ b/constant/url.js @@ -114,6 +114,8 @@ export default { queryRoomRenovationRecord: baseUrl + "app/roomRenovation/queryRoomRenovationRecord", queryRoomRenovationRecordDetail: baseUrl + "app/roomRenovation/queryRoomRenovationRecordDetail", queryContract:baseUrl + "app/contract/queryContract", + queryQuestionAnswer:baseUrl + "app/questionAnswer/queryQuestionAnswer", + queryQuestionAnswerTitle:baseUrl + "app/questionAnswer/queryQuestionAnswerTitle", NEED_NOT_LOGIN_PAGE: [ '/pages/login/login', diff --git a/pages.json b/pages.json index 56c3b7b..04767ef 100644 --- a/pages.json +++ b/pages.json @@ -523,6 +523,24 @@ } } + ,{ + "path" : "pages/questionAnswer/questionAnswer", + "style" : + { + "navigationBarTitleText": "投票问卷", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/questionAnswerDetail/questionAnswerDetail", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } ], "tabBar": { "color": "#272636", diff --git a/pages/questionAnswer/questionAnswer.vue b/pages/questionAnswer/questionAnswer.vue new file mode 100644 index 0000000..db50ab3 --- /dev/null +++ b/pages/questionAnswer/questionAnswer.vue @@ -0,0 +1,97 @@ + + + + diff --git a/pages/questionAnswerDetail/questionAnswerDetail.vue b/pages/questionAnswerDetail/questionAnswerDetail.vue new file mode 100644 index 0000000..e0d3ba1 --- /dev/null +++ b/pages/questionAnswerDetail/questionAnswerDetail.vue @@ -0,0 +1,148 @@ + + + +