diff --git a/app.json b/app.json
index 0025148..419a7a7 100644
--- a/app.json
+++ b/app.json
@@ -138,7 +138,10 @@
"pages/search/search",
"pages/laobingzaixian/laobingzaixian",
"pages/laobingzaixianDict/laobingzaixianDict",
- "pages/moduleList/moduleList"
+ "pages/moduleList/moduleList",
+ "pages/reportIssue/reportIssue",
+ "pages/reportIssueList/reportIssueList",
+ "pages/reportIssueDetail/reportIssueDetail"
]
}
],
diff --git a/project.config.json b/project.config.json
index 9831e1c..4af217b 100644
--- a/project.config.json
+++ b/project.config.json
@@ -25,11 +25,14 @@
"disablePlugins": [],
"outputPath": ""
},
+ "bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
+ "userConfirmedBundleSwitch": false,
"packNpmManually": false,
- "packNpmRelationList": []
+ "packNpmRelationList": [],
+ "minifyWXSS": true
},
"compileType": "miniprogram",
"libVersion": "2.8.2",
@@ -119,6 +122,12 @@
"pathName": "subpages/heart/pages/leaderboardNew/leaderboardNew",
"query": "",
"scene": null
+ },
+ {
+ "name": "subpages/oneKeyService/pages/reportIssue/reportIssue",
+ "pathName": "subpages/oneKeyService/pages/reportIssue/reportIssue",
+ "query": "",
+ "scene": null
}
]
}
diff --git a/subpages/oneKeyService/compontents/notice/notice.js b/subpages/oneKeyService/compontents/notice/notice.js
new file mode 100644
index 0000000..90d0c31
--- /dev/null
+++ b/subpages/oneKeyService/compontents/notice/notice.js
@@ -0,0 +1,65 @@
+Component({
+ data: {
+ visible: false
+ },
+ properties: {
+ dialogVisible: {
+ type: Boolean,
+ value: false,
+ observer: function () {
+ this.setData({
+ visible: !this.data.visible
+ })
+ }
+ },
+ title: {
+ type: String,
+ value: ""
+ },
+ content: {
+ type: Array,
+ value: []
+ },
+ confirmText: {
+ type: String,
+ value: ""
+ },
+ cancelText: {
+ type: String,
+ value: ""
+ }
+ },
+ pageLifetimes: {
+ show () {
+
+ },
+ hide () {
+
+ }
+ },
+ lifetimes: {
+ attached () {
+
+ },
+ detached () {
+
+ }
+ },
+ methods: {
+ close () {
+ this.triggerEvent("close")
+ this.setData({
+ visible: false
+ })
+ },
+ confirm () {
+ this.triggerEvent("confirm")
+ this.setData({
+ visible: false
+ })
+ },
+ catchmove () {
+
+ }
+ }
+})
\ No newline at end of file
diff --git a/subpages/oneKeyService/compontents/notice/notice.json b/subpages/oneKeyService/compontents/notice/notice.json
new file mode 100644
index 0000000..d3738ed
--- /dev/null
+++ b/subpages/oneKeyService/compontents/notice/notice.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "wux-icon": "../../../../dist/icon/index"
+ }
+}
\ No newline at end of file
diff --git a/subpages/oneKeyService/compontents/notice/notice.wxml b/subpages/oneKeyService/compontents/notice/notice.wxml
new file mode 100644
index 0000000..4ea9a43
--- /dev/null
+++ b/subpages/oneKeyService/compontents/notice/notice.wxml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ {{title}}
+
+ {{item}}
+
+
+
+ {{cancelText}}
+ {{confirmText}}
+
+
+
\ No newline at end of file
diff --git a/subpages/oneKeyService/compontents/notice/notice.wxss b/subpages/oneKeyService/compontents/notice/notice.wxss
new file mode 100644
index 0000000..1e34473
--- /dev/null
+++ b/subpages/oneKeyService/compontents/notice/notice.wxss
@@ -0,0 +1,84 @@
+.notice {
+ width: 100%;
+ height: 100vh;
+ position: fixed;
+ z-index: 100;
+ left: 0;
+ top: 0;
+ background: rgba(0,0,0, 0.4);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.notice .box {
+ width: 490rpx;
+ background: #fff;
+ border-radius: 16rpx;
+ overflow: hidden;
+ padding: 0 20rpx;
+ position: relative;
+}
+.notice .box .close {
+ width:100%;
+ height: 60rpx;
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+}
+.notice .box .close cover-image {
+ width: 40rpx;
+ height: 40rpx;
+ object-fit: cover;
+}
+.notice .box .title {
+ height: 60rpx;
+ line-height: 60rpx;
+ width: 100%;
+ text-align:center;
+ font-size: 36rpx;
+ color: #333;
+ margin-bottom: 23rpx;
+}
+.notice .box .content {
+ height: auto;
+ width: 100%;
+ padding-bottom: 35rpx;
+}
+.notice .box .content cover-view {
+ font-size: 30rpx;
+ line-height: 50rpx;
+ height: 50rpx;
+ width: 100%;
+ text-align: center;
+ color: #666;
+}
+.notice .box .border {
+ width: 100%;
+ height: 0;
+ border: 0.5rpx solid #eaeaea;
+ border-bottom: 1rpx solid transparent;
+ position: absolute;
+ left:0;
+ bottom: 105rpx;
+}
+.notice .box .operation {
+ width: calc(100% - 40rpx);
+ height: 75rpx;
+ padding: 15rpx 0;
+ display: flex;
+ justify-content: space-around;
+ align-items: center;
+ margin-left: 20rpx
+}
+.notice .box .operation cover-view {
+ flex: 1;
+ color: #999;
+ font-size: 36rpx;
+ width: 49%;
+ height: 100%;
+ line-height: 75rpx;
+ text-align:center;
+}
+.notice .box .operation .confirm{
+ color: #04BCA0;
+}
diff --git a/subpages/oneKeyService/images/jubaojilu.png b/subpages/oneKeyService/images/jubaojilu.png
new file mode 100644
index 0000000..075572f
Binary files /dev/null and b/subpages/oneKeyService/images/jubaojilu.png differ
diff --git a/subpages/oneKeyService/images/radio.png b/subpages/oneKeyService/images/radio.png
new file mode 100644
index 0000000..4f35b99
Binary files /dev/null and b/subpages/oneKeyService/images/radio.png differ
diff --git a/subpages/oneKeyService/images/radiochecked.png b/subpages/oneKeyService/images/radiochecked.png
new file mode 100644
index 0000000..826bbaf
Binary files /dev/null and b/subpages/oneKeyService/images/radiochecked.png differ
diff --git a/subpages/oneKeyService/images/reportissue.png b/subpages/oneKeyService/images/reportissue.png
new file mode 100644
index 0000000..f63b2ab
Binary files /dev/null and b/subpages/oneKeyService/images/reportissue.png differ
diff --git a/subpages/oneKeyService/images/submitbk.png b/subpages/oneKeyService/images/submitbk.png
new file mode 100644
index 0000000..c081477
Binary files /dev/null and b/subpages/oneKeyService/images/submitbk.png differ
diff --git a/subpages/oneKeyService/pages/index/index.js b/subpages/oneKeyService/pages/index/index.js
index 73e3f56..59773d0 100644
--- a/subpages/oneKeyService/pages/index/index.js
+++ b/subpages/oneKeyService/pages/index/index.js
@@ -103,7 +103,7 @@ Page({
wx.navigateTo({
url: `../moduleList/moduleList?pid=${e.currentTarget.dataset.pid}&bannerflag=${e.currentTarget.dataset.bannerflag}&categorycode=${e.currentTarget.dataset.categorycode}&modulestyle=${e.currentTarget.dataset.modulestyle}&categoryname=${e.currentTarget.dataset.categoryname}`
})
- }
+ }
}
// if (e.currentTarget.dataset.modulecode == 'notice_navigation_hot') {
diff --git a/subpages/oneKeyService/pages/moduleList/moduleList.js b/subpages/oneKeyService/pages/moduleList/moduleList.js
index 295bb23..808283f 100644
--- a/subpages/oneKeyService/pages/moduleList/moduleList.js
+++ b/subpages/oneKeyService/pages/moduleList/moduleList.js
@@ -1,5 +1,5 @@
-// subpages/understandJs/pages/archives/archives.js
const api = require('../../../../utils/understandJs')
+const app = getApp()
Page({
/**
@@ -26,6 +26,7 @@ Page({
moduleInfo: {}, //pid, bannerflag, categorycode, modulestyle, categoryname
preloadVisible: true, //type-8 预加载
lastPlayVideo: '', //正在播放的视频
+ completeInfoDialogVisible: false, //完善信息
},
/**
@@ -310,5 +311,27 @@ Page({
nodata: false
})
this.getNoticelist(e.detail.newsCategoryId)
- }
+ },
+
+ //type-2 锦水清风-我要举报
+ toReportIssue (e) {
+ if (this.verifyCompleteInfo()) {
+ return false
+ }
+ wx.navigateTo({
+ url: "/subpages/oneKeyService/pages/reportIssue/reportIssue"
+ })
+ },
+
+ // 检查 是否完善信息
+ verifyCompleteInfo () {
+ if (app.globalData.infoCompleted == 0) {
+ this.setData({
+ completeInfoDialogVisible: !this.data.completeInfoDialogVisible
+ })
+ return true
+ } else {
+ return false
+ }
+ },
})
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/moduleList/moduleList.json b/subpages/oneKeyService/pages/moduleList/moduleList.json
index 0963602..48f0796 100644
--- a/subpages/oneKeyService/pages/moduleList/moduleList.json
+++ b/subpages/oneKeyService/pages/moduleList/moduleList.json
@@ -3,6 +3,7 @@
"usingComponents": {
"load-more": "../../../../components/loadMore/loadMore",
"no-data":"../../../../components/nodata/nodata",
+ "complete-info-dialog": "../../../../components/completeInfoDialog/completeInfoDialog",
"news-list": "./components/newsList/newsList"
}
}
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/moduleList/moduleList.wxml b/subpages/oneKeyService/pages/moduleList/moduleList.wxml
index 00ee35b..c9008a5 100644
--- a/subpages/oneKeyService/pages/moduleList/moduleList.wxml
+++ b/subpages/oneKeyService/pages/moduleList/moduleList.wxml
@@ -53,7 +53,14 @@
{{item.categoryName}}
-
+
+
+
+
+
+
+
+
@@ -116,6 +123,8 @@
+
+
diff --git a/subpages/oneKeyService/pages/moduleList/moduleList.wxss b/subpages/oneKeyService/pages/moduleList/moduleList.wxss
index 7c12caa..12ce6ab 100644
--- a/subpages/oneKeyService/pages/moduleList/moduleList.wxss
+++ b/subpages/oneKeyService/pages/moduleList/moduleList.wxss
@@ -244,6 +244,39 @@ swiper {
height: 106rpx;
margin-right: 14rpx;
}
+.movable-area{
+ pointer-events:none;
+ z-index: 100;
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+}
+.movable-view{
+ pointer-events:auto;
+ width: 178rpx;
+ height: 178rpx;
+ transform: translateX(560rpx) translateY(680rpx) translateZ(0rpx) scale(1);
+ transform-origin: center center;
+ will-change: auto;
+ position: absolute;
+ top: 650rpx;
+ left: 560rpx;
+}
+
+.report-issue {
+ width: 178rpx;
+ height: 178rpx;
+}
+
+.report-issue image {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
/* type-2 end */
/* type-3 start */
diff --git a/subpages/oneKeyService/pages/reportIssue/reportIssue.js b/subpages/oneKeyService/pages/reportIssue/reportIssue.js
new file mode 100644
index 0000000..289b4b1
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssue/reportIssue.js
@@ -0,0 +1,174 @@
+// subpages/heart/pages/myApply/myApply.js
+const api = require("../../../../utils/api")
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ showPicker: false, //是否显示底部时间选择器插件
+ dataForm: {
+ content: '',
+ anonymousFlag: '1', //0-不匿名 1-匿名
+ reportUser: '',
+ reportUserMobile: '',
+ images: [] //当前未要求
+ },
+ dialogVisible: false, //提示框
+ dialogTitle: '提交成功', //提交提示,成功还是失败
+ errMsg: [], //提交失败msg
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ // onShareAppMessage: function () {
+
+ // }
+
+ //是否匿名
+ onChangeRadio (e) {
+ this.setData({
+ 'dataForm.anonymousFlag': e.currentTarget.dataset.flag
+ })
+ },
+
+ onInputContent (e) {
+ this.setData({
+ 'dataForm.content': e.detail.value
+ })
+ },
+ onInputUser (e) {
+ this.setData({
+ 'dataForm.reportUser': e.detail.value
+ })
+ },
+ onInputMobile (e) {
+ this.setData({
+ 'dataForm.reportUserMobile': e.detail.value
+ })
+ },
+
+ //提交申请
+ submitIssue () {
+ if (!this.data.dataForm.content) {
+ this.showToast("请填写举报的问题")
+ return false
+ }
+ if ( this.data.dataForm.anonymousFlag == '0') {
+ if (!this.data.dataForm.reportUser) {
+ this.showToast("请填写举报人姓名")
+ return false
+ }
+ if (this.data.dataForm.reportUser.length > 50) {
+ this.showToast("姓名超过字符限制(50字以内)")
+ return false
+ }
+ if (!this.data.dataForm.reportUserMobile) {
+ this.showToast("请填写举报人电话")
+ return false
+ }
+ if (this.data.dataForm.reportUserMobile.length > 20) {
+ this.showToast("电话号码超过字符限制(20位)")
+ return false
+ }
+ }
+
+ const para = { ...this.data.dataForm }
+ console.log('submit issue', para)
+ api.reportIssue(para).then(res => {
+ if (res.code == 0 && res.msg == 'success') {
+ this.data.errMsg = []
+ this.setData({
+ dialogTitle: '提交成功',
+ errMsg: this.data.errMsg,
+ dialogVisible: !this.data.dialogVisible
+ })
+ // wx.navigateBack()
+ } else {
+ this.data.errMsg[0] = res.msg
+ this.setData({
+ dialogTitle: '提交失败',
+ errMsg: this.data.errMsg,
+ dialogVisible: !this.data.dialogVisible
+ })
+ }
+ })
+ },
+
+ //简化提示
+ showToast (title) {
+ wx.showToast({
+ title: title,
+ icon: "none",
+ duration: 2000
+ })
+ },
+ //跳转到我的举报列表
+ toIssueList () {
+ wx.navigateTo({
+ url: "/subpages/oneKeyService/pages/reportIssueList/reportIssueList"
+ })
+ },
+
+ //关闭弹框
+ // closeDialog () {
+ // wx.navigateBack()
+ // },
+ //弹框确定按钮
+ confirmDialog () {
+ if (this.data.errMsg.length == 0) {
+ wx.navigateBack()
+ }
+ }
+})
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/reportIssue/reportIssue.json b/subpages/oneKeyService/pages/reportIssue/reportIssue.json
new file mode 100644
index 0000000..0c1f258
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssue/reportIssue.json
@@ -0,0 +1,6 @@
+{
+ "navigationBarTitleText": "我要举报",
+ "usingComponents": {
+ "notice": "../../compontents/notice/notice"
+ }
+}
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/reportIssue/reportIssue.wxml b/subpages/oneKeyService/pages/reportIssue/reportIssue.wxml
new file mode 100644
index 0000000..c63a4bf
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssue/reportIssue.wxml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+ 举报的问题
+
+
+
+ 举报方式
+
+
+
+
+ 匿名举报
+
+
+
+
+
+ 实名举报
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
diff --git a/subpages/oneKeyService/pages/reportIssue/reportIssue.wxss b/subpages/oneKeyService/pages/reportIssue/reportIssue.wxss
new file mode 100644
index 0000000..b97c8ca
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssue/reportIssue.wxss
@@ -0,0 +1,119 @@
+/* subpages/heart/pages/myApply/myApply.wxss */
+page {
+ width: 100%;
+ overflow-y: auto;
+ background: #f7f7f7;
+}
+.issue-list {
+ position: relative;
+ overflow: hidden;
+}
+.issue-list .report-issue-img {
+ position: absolute;
+ right: -10rpx;
+ top: 16rpx;
+}
+.issue-list .report-issue-img image {
+ width: 164rpx;
+ height: 76rpx;
+}
+.issue-list .issue-item {
+ width: 100%;
+ background-color: white;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ justify-content: center;
+ padding: 0rpx 30rpx;
+ margin-top: 16rpx;
+ box-sizing: border-box;
+}
+.issue-list .text-item {
+ height: 450rpx;
+}
+.line {
+ width: 690rpx;
+ height: 1px;
+ background: #DCDCDC;
+ border-radius: 1px;
+}
+.line2 {
+ width: 625rpx;
+ height: 1px;
+ background: #DCDCDC;
+ border-radius: 1px;
+}
+.issue-list .issue-item .item-title {
+ height: 50rpx;
+ line-height: 50rpx;
+ font-size: 32rpx;
+ font-family: PingFang SC;
+ font-weight: bold;
+ color: #333333;
+ margin: 28rpx 0rpx 12rpx 0rpx;
+}
+.issue-list .issue-item .item-content {
+ width: 100%;
+ height: 44rpx;
+ line-height: 44rpx;
+ font-size: 32rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #666666;
+}
+.issue-list .issue-item .text-content {
+ font-weight: 400;
+ height: 350rpx;
+}
+.submit {
+ width: 592rpx;
+ height: 116rpx;
+ position: relative;
+ margin: 78rpx auto 0rpx;
+}
+.submit .submit-bk {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ z-index: -1;
+}
+.submit .submit-text {
+ font-size: 34rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #FFFFFF;
+ height: 100rpx;
+ line-height: 100rpx;
+ text-align: center;
+}
+
+.radio-group {
+ width: 100%;
+}
+.radio-group .radio-item:first-child {
+ margin-top: 0rpx;
+}
+.radio-group .radio-item {
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ margin: 30rpx 0rpx;
+}
+.radio-group .radio-item .radio-img {
+ width: 34rpx;
+ height: 34rpx;
+}
+.radio-group .radio-item .radio-text {
+ margin-left: 32rpx;
+ font-size: 32rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #666666;
+}
+.radio-group .radio-info {
+ margin-left: 66rpx;
+}
+.radio-group .radio-info .info {
+ margin: 30rpx 0rpx;
+}
+
diff --git a/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.js b/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.js
new file mode 100644
index 0000000..d7929dd
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.js
@@ -0,0 +1,80 @@
+const api = require("../../../../utils/api")
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ issueId: '',
+ issueDetails: {}
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.setData({
+ issueId: options.id
+ })
+ this.getIssueDetail()
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ // onShareAppMessage: function () {
+
+ // },
+
+ getIssueDetail () {
+ api.reportIssueDetail(this.data.issueId).then(res => {
+ // console.log(res.data)
+ this.setData({
+ issueDetails: res.data
+ })
+ })
+ },
+})
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.json b/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.json
new file mode 100644
index 0000000..cc27d82
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "举报详情",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.wxml b/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.wxml
new file mode 100644
index 0000000..622d9ed
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.wxml
@@ -0,0 +1,28 @@
+
+
+
+ 举报内容
+ {{issueDetails.content}}
+
+
+ 是否匿名举报
+
+ {{issueDetails.anonymousFlag=='1'?'是':'否'}}
+
+
+
+
+ 举报人姓名
+ {{issueDetails.reportUser}}
+
+
+ 举报人电话
+ {{issueDetails.reportUserMobile}}
+
+
+
+ 举报时间
+ {{issueDetails.createdTime}}
+
+
+
diff --git a/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.wxss b/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.wxss
new file mode 100644
index 0000000..7de8526
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail.wxss
@@ -0,0 +1,41 @@
+/* subpages/heart/pages/myApplyDetail/myApplyDetail.wxss */
+page {
+ width: 100%;
+ height: auto;
+ overflow-y: auto;
+ background: #f7f7f7;
+}
+.issue-detail {
+ margin-bottom: 60rpx;
+}
+.issue-detail .issue-item {
+ width: 100%;
+ background-color: white;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ justify-content: center;
+ padding: 40rpx 30rpx;
+ margin-top: 16rpx;
+ box-sizing: border-box;
+}
+.issue-detail .issue-item .item-title {
+ font-size: 32rpx;
+ font-family: PingFang SC;
+ font-weight: bold;
+ color: #333333;
+}
+.issue-detail .issue-item .item-content {
+ font-size: 32rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #666666;
+ margin-top: 28rpx;
+}
+.issue-detail .issue-item .line {
+ width: 100%;
+ height: 1px;
+ background: #F2F2F2;
+ border-radius: 1px;
+ margin: 28rpx 0rpx;
+}
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/reportIssueList/reportIssueList.js b/subpages/oneKeyService/pages/reportIssueList/reportIssueList.js
new file mode 100644
index 0000000..446279f
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssueList/reportIssueList.js
@@ -0,0 +1,116 @@
+const api = require("../../../../utils/api")
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ pageIndex: 1,
+ pageSize: 10,
+ nodata: false,
+ loadMoreType: 'none',
+ loadMoreVisible: false,
+ issuelist: []
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.getIssueList()
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+ this.setData({
+ loadMoreVisible: true
+ })
+ if (this.data.loadMoreType === "loading") {
+ this.setData({
+ pageIndex: this.data.pageIndex + 1
+ })
+ this.getIssueList()
+ }
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ // onShareAppMessage: function () {
+
+ // }
+ getIssueList () {
+ const para = {
+ pageIndex: this.data.pageIndex,
+ pageSize: this.data.pageSize
+ }
+ api.reportIssueList(para).then(res => {
+ console.log(res)
+ this.setData({
+ issuelist: [...this.data.issuelist,...res.data],
+ loadMoreType: res.data.length === this.data.pageSize ? 'loading' : 'none',
+ loadMoreVisible: res.data.length === this.data.pageSize ? false : true
+ })
+ if (this.data.issuelist.length == 0) {
+ this.setData({
+ nodata: true,
+ loadMoreType: 'none',
+ loadMoreVisible: false,
+ })
+ }
+ }).catch(err => {
+ this.setData({
+ issuelist: [],
+ nodata: true,
+ loadMoreType: 'none',
+ loadMoreVisible: false,
+ })
+ console.log(err)
+ })
+ },
+ //跳转到申请信息详情
+ toIssueDetail (e) {
+ console.log('跳转举报详情', e.currentTarget.dataset.id)
+ wx.navigateTo({
+ url: `/subpages/oneKeyService/pages/reportIssueDetail/reportIssueDetail?id=${e.currentTarget.dataset.id}`
+ })
+ }
+})
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/reportIssueList/reportIssueList.json b/subpages/oneKeyService/pages/reportIssueList/reportIssueList.json
new file mode 100644
index 0000000..155a893
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssueList/reportIssueList.json
@@ -0,0 +1,7 @@
+{
+ "navigationBarTitleText": "举报记录",
+ "usingComponents": {
+ "load-more": "/components/loadMore/loadMore",
+ "no-data": "/components/nodata/nodata"
+ }
+}
\ No newline at end of file
diff --git a/subpages/oneKeyService/pages/reportIssueList/reportIssueList.wxml b/subpages/oneKeyService/pages/reportIssueList/reportIssueList.wxml
new file mode 100644
index 0000000..3a8a850
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssueList/reportIssueList.wxml
@@ -0,0 +1,13 @@
+
+
+
+ {{item.content}}
+
+ 提交时间:{{item.createdTime}}
+
+
+
+
+
+
+
diff --git a/subpages/oneKeyService/pages/reportIssueList/reportIssueList.wxss b/subpages/oneKeyService/pages/reportIssueList/reportIssueList.wxss
new file mode 100644
index 0000000..c02e423
--- /dev/null
+++ b/subpages/oneKeyService/pages/reportIssueList/reportIssueList.wxss
@@ -0,0 +1,84 @@
+/* subpages/heart/pages/myApplyList/myApplyList.wxss */
+page {
+ width: 100%;
+ height: auto;
+ overflow-y: auto;
+ background: #f7f7f7;
+}
+.issue-list {
+
+}
+.issue-list .my-apply-img {
+ position: absolute;
+ right: -10rpx;
+}
+.issue-list .my-apply-img image {
+ width: 208rpx;
+ height: 76rpx;
+}
+.issue-list .issue-item {
+ width: 100%;
+ background-color: white;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ justify-content: center;
+ padding: 0rpx 30rpx 30rpx;
+ margin-top: 16rpx;
+ box-sizing: border-box;
+}
+.issue-list .issue-item .item-title {
+ font-size: 32rpx;
+ font-family: PingFang SC;
+ font-weight: bold;
+ color: #333333;
+ margin: 32rpx 0rpx;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: box;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+.issue-list .issue-item .item-content {
+ width: 100%;
+ height: 44rpx;
+ line-height: 44rpx;
+ font-size: 32rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #999999;
+}
+.issue-list .issue-item .text-content {
+ height: 88rpx;
+ color: #666666;
+}
+.issue-list .issue-item .line {
+ width: 100%;
+ height: 1px;
+ background: #F2F2F2;
+ border-radius: 1px;
+ margin: 28rpx 0rpx;
+}
+.issue-list .issue-item .item-time {
+ font-size: 30rpx;
+ font-family: PingFang SC;
+ font-weight: 400;
+ color: #666666;
+}
+.issue-list .issue-item .item-state {
+ margin: 26rpx 0rpx 28rpx;
+ font-size: 30rpx;
+ font-family: PingFang SC;
+ font-weight: 400;
+ color: #666666;
+}
+.issue-list .issue-item .item-state .state-0 {
+ color: #FB9F00;
+}
+.issue-list .issue-item .item-state .state-1 {
+ color: #28C896;
+}
+.issue-list .issue-item .item-state .state-2 {
+ color: #D80000;
+}
\ No newline at end of file
diff --git a/utils/api.js b/utils/api.js
index 9d80d89..e92610d 100644
--- a/utils/api.js
+++ b/utils/api.js
@@ -57,7 +57,10 @@ module.exports = {
getHomePhone:getHomePhone,
gradeRankinglist:gradeRankinglist,
userInfoSignUp:userInfoSignUp,
- moduleCategory: moduleCategory
+ moduleCategory: moduleCategory,
+ reportIssue: reportIssue,
+ reportIssueList: reportIssueList,
+ reportIssueDetail: reportIssueDetail
}
function getToken (wxCode) {
@@ -535,4 +538,17 @@ function userInfoSignUp () {
// 一键服务/解码锦水 改版模块类别接口
function moduleCategory(params) {
return fly.get('news/module/moduleCategory', params)
+}
+
+// 锦水清风-我要举报
+function reportIssue (para) {
+ return fly.post("custom/reportissue/submit", para)
+}
+// 一键服务-锦水清风-举报问题列表接口
+function reportIssueList(para) {
+ return fly.get('custom/reportissue/list', para)
+}
+//一键服务-锦水清风-举报问题详情接口
+function reportIssueDetail (id) {
+ return fly.get(`custom/reportissue/detail/${id}`)
}
\ No newline at end of file