From 86ae6037be3283bf64299ed405d8da3a75450760 Mon Sep 17 00:00:00 2001
From: Tuzki <1720599558@qq.com>
Date: Sun, 13 Oct 2024 10:34:37 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8A=95=E8=AF=89=E5=BB=BA?=
=?UTF-8?q?=E8=AE=AE=E8=AF=A6=E6=83=85=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
在投诉建议模块中添加了获取投诉建议详情的功能,包括投诉对象、原因、证据、位置等信息,并支持查看回复内容和图片。优化了数据处理逻辑,能够正确处理图片数组和回复信息。
---
common/config.js | 5 +-
pages.json | 20 ++--
subPageB/suggest/jianyiDetail.vue | 192 ++++++++++++++++++++++++++++++
subPageB/suggest/sug_list.vue | 14 ++-
4 files changed, 212 insertions(+), 19 deletions(-)
create mode 100644 subPageB/suggest/jianyiDetail.vue
diff --git a/common/config.js b/common/config.js
index 94f9838..842471c 100644
--- a/common/config.js
+++ b/common/config.js
@@ -141,11 +141,12 @@ module.exports = {
registerUserApp:REAUEST_ROOTPATH + "/mobile/weixin/registerUserApp" ,//app注册
getScenicListByGuids:REAUEST_ROOTPATH + "/mobile/scenic/getScenicListByGuids" ,//获取热门景点列表
deleteUserApp:REAUEST_ROOTPATH + "/mobile/weixin/deleteUserApp" ,//注销账号
-
-
+
+
//票务这边的
pageComplaintinfo:PWPATH+"/app-api/wechatshop/complaintinfo/pageComplaintinfo",//获得投诉建议分页
createComplaintinfo: PWPATH +"/app-api/wechatshop/complaintinfo/createComplaintinfo",//创建投诉建议
+ getComplaintinfo: PWPATH +"/app-api/wechatshop/complaintinfo/getComplaintinfo",//投诉建议详情
getTicketSortList: PWPATH + "/app-api/wechatshop/ticket/getTicketSortList",//获取门票分类
getTicketList: PWPATH + "/app-api/wechatshop/ticket/getTicketList",//获取门票列表分页
isQuota: PWPATH + "/app-api/wechatshop/ticket/isQuota",//查询是否限购
diff --git a/pages.json b/pages.json
index 1200fbf..49001e7 100644
--- a/pages.json
+++ b/pages.json
@@ -32,7 +32,6 @@
{
"root": "subPageA",
"pages": [
-
{
"path": "scenic/sceniclist/sceniclist",
"style": {
@@ -91,7 +90,6 @@
}
}
},
-
{
"path": "method/methodlist/methodlist",
"style": {
@@ -127,8 +125,6 @@
}
}
},
-
-
{
"path": "scenic/scenicdetial/scenicdetial",
"style": {
@@ -146,7 +142,6 @@
"navigationBarTitleText": "攻略简介"
}
},
-
{
"path": "search/search",
"style": {
@@ -159,8 +154,6 @@
"navigationBarTitleText": "720全景"
}
},
-
-
{
"path": "scenic/scenicdetial/ticket/ticket",
"style": {
@@ -170,15 +163,12 @@
}
}
},
-
-
{
"path": "personcenter/middlePage",
"style": {
"navigationBarTitleText": "加载中"
}
},
-
{
"path": "personcenter/aboutus",
"style": {
@@ -192,7 +182,6 @@
"navigationBarTitleText": "系统更新"
}
},
-
{
"path": "personcenter/scanCodeRecord/scanCodeRecord",
"style": {
@@ -298,7 +287,6 @@
"navigationBarTitleText": "娱乐场所"
}
},
-
{
"path": "cate/index",
"style": {
@@ -412,6 +400,12 @@
"navigationBarTitleText": ""
}
},
+ {
+ "path": "suggest/jianyiDetail",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
{
"path": "tousu/tousulist/tousulist",
"style": {
@@ -520,4 +514,4 @@
}
]
}
-}
+}
\ No newline at end of file
diff --git a/subPageB/suggest/jianyiDetail.vue b/subPageB/suggest/jianyiDetail.vue
new file mode 100644
index 0000000..9b50342
--- /dev/null
+++ b/subPageB/suggest/jianyiDetail.vue
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+ {{ type == "1" ? '投诉' : '建议' }}对象:
+ {{ complaintInfo.ctype || '-' }}
+
+
+ {{ type == "1" ? '投诉' : '建议' }}原因:
+ {{ complaintInfo.creason || '-' }}
+
+
+ {{ type == "1" ? '投诉' : '建议' }}证据:
+
+
+
+
+
+ {{ type == "1" ? '投诉' : '建议' }}位置:
+ {{ complaintInfo.address || '-' }}
+
+
+
+
+
+
+
+ 回复内容:
+
+
+
+
+
+ 回复图集:
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/subPageB/suggest/sug_list.vue b/subPageB/suggest/sug_list.vue
index f3cfc5d..33f7b37 100644
--- a/subPageB/suggest/sug_list.vue
+++ b/subPageB/suggest/sug_list.vue
@@ -23,8 +23,8 @@
-
-
+
+
{{ item.ctype }}
@@ -45,7 +45,7 @@
{{ item.creason }}
-
+
@@ -145,6 +145,12 @@ export default {
// this.getUserMsg();
},
methods: {
+ getComplaintinfo(val){
+ console.log(val, '投诉详情')
+ uni.navigateTo({
+ url: '/subPageB/suggest/jianyiDetail?type=' + this.type + '&id=' + val.guid,
+ })
+ },
onReachScroll: function (t) {
if (this.loadType) {
this.page++;
@@ -217,7 +223,7 @@ export default {
"creason": data[i].creason,
"address": data[i].address,
"ctype": data[i].ctype,
- "imgList": data[i].cimages,
+ "imgList": data[i].cimages==""?[]:data[i].cimages,
"showHideType": "zhed_gao",
"upDownType": "down_touj"
}