diff --git a/common/api/feedback.js b/common/api/feedback.js new file mode 100644 index 0000000..690da58 --- /dev/null +++ b/common/api/feedback.js @@ -0,0 +1,76 @@ +import request from '../js/request'; +import config from '../js/config'; +/** + * 添加反馈 + * @param {*} params {description: '', files: '', title: 1,type: 1,user_id:12} + * @returns + */ +export function addFeedBack(params) { + return request({ + url: '/feedback/addFeedBack', + method: 'post', + data: params, + }); +} + +/** + * 问题详情 + * @param {*} id + * @returns + */ +export function queryFeedBackDetail(id) { + return request({ + url: '/feedback/queryFeedBackDetail', + method: 'post', + data: { + id, + }, + }); +} + + +// 问题列表 +export function queryFeedBackPage(params) { + return request({ + url: '/feedback/queryFeedBackPage', + method: 'post', + data: { + currentPage: 1, + pageSize: 20, + status: '', + type: '', + userId: uni.getStorageSync('userInfo').id, + }, + }); +} + +/** + * 添加反馈聊天 + * + * @param {*} params {chatContent: '', id: 12, user_id: 1} + * @returns + */ +export function AddFeedbackChat(params) { + return request({ + url: '/feedbackChat/AddFeedbackChat', + method: 'post', + data: params, + }); +} + + +/** + * 更新反馈聊天状态 + * @param {*} params { + "id": "2e47078c0f59a4a612655bb3bbaed617", + "userId": "12" +} + * @returns + */ +export function updateChatStatus(params) { + return request({ + url: '/feedbackChat/updateChatStatus', + method: 'post', + data: params, + }); +} diff --git a/package.json b/package.json index a72bd79..2778257 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "dependencies": { "html2canvas": "^1.4.1", - "mqtt": "3.0.0" + "mqtt": "3.0.0", + "pinyin-pro": "^3.13.2" } } diff --git a/pages/index/comp/indexGongCheng.vue b/pages/index/comp/indexGongCheng.vue index 34dee41..b8561b1 100644 --- a/pages/index/comp/indexGongCheng.vue +++ b/pages/index/comp/indexGongCheng.vue @@ -22,6 +22,8 @@ + {{ + select.projectName || '工程' }} {{ select.projectName || '项目' }} @@ -38,11 +40,16 @@ + + + + + diff --git a/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue b/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue new file mode 100644 index 0000000..fab85a7 --- /dev/null +++ b/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue @@ -0,0 +1,367 @@ + + + diff --git a/uni_modules/uni-indexed-list/package.json b/uni_modules/uni-indexed-list/package.json new file mode 100644 index 0000000..a000b6d --- /dev/null +++ b/uni_modules/uni-indexed-list/package.json @@ -0,0 +1,89 @@ +{ + "id": "uni-indexed-list", + "displayName": "uni-indexed-list 索引列表", + "version": "1.2.1", + "description": "索引列表组件,右侧带索引的列表,方便快速定位到具体内容,通常用于城市/机场选择等场景", + "keywords": [ + "uni-ui", + "索引列表", + "索引", + "列表" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": [ + "uni-scss", + "uni-icons" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-indexed-list/readme.md b/uni_modules/uni-indexed-list/readme.md new file mode 100644 index 0000000..44ad84b --- /dev/null +++ b/uni_modules/uni-indexed-list/readme.md @@ -0,0 +1,11 @@ + + +## IndexedList 索引列表 +> **组件名:uni-indexed-list** +> 代码块: `uIndexedList` + + +用于展示索引列表。 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-indexed-list) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839