From 5445b81dcf85c98cbe3974c2278cb15a9fc79cb5 Mon Sep 17 00:00:00 2001
From: shane <88386378@qq.com>
Date: Tue, 10 Aug 2021 13:41:45 +0800
Subject: [PATCH] =?UTF-8?q?=E7=96=AB=E6=83=85=E9=97=AE=E5=8D=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/reportInfo/reportInfoApi.js | 90 +++++++++
constant/url.js | 4 +-
pages.json | 8 +
pages/reportInfoBack/reportInfoBack.vue | 14 --
pages/reportInfoDetail/reportInfoDetail.vue | 191 ++++++++++++++++++++
5 files changed, 291 insertions(+), 16 deletions(-)
create mode 100644 api/reportInfo/reportInfoApi.js
create mode 100644 pages/reportInfoDetail/reportInfoDetail.vue
diff --git a/api/reportInfo/reportInfoApi.js b/api/reportInfo/reportInfoApi.js
new file mode 100644
index 0000000..806b9e1
--- /dev/null
+++ b/api/reportInfo/reportInfoApi.js
@@ -0,0 +1,90 @@
+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 querySettingTitle(_data) {
+ return new Promise((resolve, reject) => {
+ let moreRooms = [];
+ request({
+ url: url.querySettingTitle,
+ 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);
+ }
+ });
+ })
+}
+/**
+ * add by wuxw
+ * @param {Object} _data 保存 用户地址
+ */
+export function saveReportInfoAnswerValue(_data){
+
+ return new Promise((resolve, reject) => {
+ let moreRooms = [];
+ request({
+ url: url.saveReportInfoAnswerValue,
+ method: "POST",
+ 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 e10957d..c7e2529 100755
--- a/constant/url.js
+++ b/constant/url.js
@@ -122,8 +122,8 @@ export default {
generatorHcCode: baseUrl + "app/userLogin/generatorHcCode",
queryApplyRoomDiscount: baseUrl + "app/applyRoomDiscount/queryApplyRoomDiscount",
saveReportInfoBackCity: baseUrl + "app/reportInfoBackCity/saveReportInfoBackCity",
-
-
+ querySettingTitle: baseUrl + "app/reportInfoSettingTitle/querySettingTitle",
+ saveReportInfoAnswerValue: baseUrl + "app/reportInfoAnswerValue/saveReportInfoAnswerValue",
NEED_NOT_LOGIN_PAGE: [
'/pages/login/login',
diff --git a/pages.json b/pages.json
index 6574459..13c6561 100755
--- a/pages.json
+++ b/pages.json
@@ -111,6 +111,14 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "pages/reportInfoDetail/reportInfoDetail",
+ "style": {
+ "navigationBarTitleText": "疫情问卷上报",
+ "enablePullDownRefresh": false
+ }
+ },
+
{
"path": "pages/repairList/detail/detail",
"style": {}
diff --git a/pages/reportInfoBack/reportInfoBack.vue b/pages/reportInfoBack/reportInfoBack.vue
index df1b6f0..d688839 100644
--- a/pages/reportInfoBack/reportInfoBack.vue
+++ b/pages/reportInfoBack/reportInfoBack.vue
@@ -96,7 +96,6 @@
*/
onLoad: function(options) {
let _that = this;
- context.onLoad(options);
if(!options.communityId){
wx.showToast({
title: "小区信息错误",
@@ -118,19 +117,6 @@
* 生命周期函数--监听页面显示
*/
onShow: function() {
- if (this.areaCode == '' || this.areaCode == undefined) {
- let _currentLocation = context.getCurrentLocation();
-
- let _areaName = _currentLocation.city + _currentLocation.district;
-
- let _areaCode = _currentLocation.adcode;
- this.areaCode = _areaCode;
- //this.areaName = _areaName;
- // this.setData({
- // areaCode: _areaCode,
- // areaName: _areaName
- // });
- }
},
/**
diff --git a/pages/reportInfoDetail/reportInfoDetail.vue b/pages/reportInfoDetail/reportInfoDetail.vue
new file mode 100644
index 0000000..5a48e18
--- /dev/null
+++ b/pages/reportInfoDetail/reportInfoDetail.vue
@@ -0,0 +1,191 @@
+
+
+
+ {{item.qaTitle}}
+
+
+ {{valueItem.qaValue}}
+
+
+
+
+
+
+ {{valueItem.qaValue}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+