diff --git a/components/activity/activity.wxml b/components/activity/activity.wxml index 491a76e..87902be 100644 --- a/components/activity/activity.wxml +++ b/components/activity/activity.wxml @@ -1,4 +1,4 @@ - + + wx:key="index"> @@ -44,6 +44,7 @@ 暂无议题 + 请前往“项目”进行查看 diff --git a/pages/discussion/components/issueList/issueList.wxss b/pages/discussion/components/issueList/issueList.wxss index ea09f5b..ff68680 100644 --- a/pages/discussion/components/issueList/issueList.wxss +++ b/pages/discussion/components/issueList/issueList.wxss @@ -92,7 +92,7 @@ .issue-list .issue-nodata { width: 100%; - height: calc(100vh - 300rpx); + height: calc(100vh - 500rpx); background: #f7f7f7; display: flex; flex-direction: column; @@ -100,8 +100,10 @@ justify-content: center; } .issue-list .issue-nodata .nodata-image { - width: 256rpx; - height:245rpx; + /* width: 256rpx; + height:245rpx; */ + width: 320rpx; + height:480rpx; object-fit: cover; } .issue-list .issue-nodata .nodata-tip { @@ -109,4 +111,9 @@ color: #bcbcbc; height: 50rpx; line-height: 50rpx; +} + +.issue-list .issue-nodata .nodata-tip .go-project{ + font-size: 28rpx; + color: #bcbcbc; } \ No newline at end of file diff --git a/pages/discussion/components/projectList/projectList.wxml b/pages/discussion/components/projectList/projectList.wxml index 14d9015..b16cd1c 100644 --- a/pages/discussion/components/projectList/projectList.wxml +++ b/pages/discussion/components/projectList/projectList.wxml @@ -13,7 +13,7 @@ wx:for="{{[1]}}" wx:for-index="index" wx:for-item="item" - wx:key="{{index}}"> + wx:key="index"> diff --git a/pages/discussion/discussion.js b/pages/discussion/discussion.js index b3e21b2..fec8283 100644 --- a/pages/discussion/discussion.js +++ b/pages/discussion/discussion.js @@ -104,6 +104,20 @@ Page({ getIssueComponent () { this.issuelist = this.selectComponent("#issuelist") }, + goProjectComponent () { + const list = this.data.typeList + list.forEach(item => { + if (item.type == '1') { + item.select = true + } else { + item.select = false + } + }) + this.setData({ + typeList: list, + discussionType: "project" + }) + }, // 检查 是否完善信息 verifyCompleteInfo () { if (this.data.infoCompleted == 0) { diff --git a/pages/discussion/discussion.wxml b/pages/discussion/discussion.wxml index 9f5512b..2eaa322 100644 --- a/pages/discussion/discussion.wxml +++ b/pages/discussion/discussion.wxml @@ -18,7 +18,7 @@ - + diff --git a/pages/heartNew/heartNew.js b/pages/heartNew/heartNew.js index 6a46437..eaa15a0 100644 --- a/pages/heartNew/heartNew.js +++ b/pages/heartNew/heartNew.js @@ -36,7 +36,8 @@ Page({ listLength:0,//数据长度判断是否需要加载 getImgUrl:"", ifClickImage:false,//因为志友多多点击图片查看大图,会出现列表刷新的bug,所以加这个字段进行控制 - tabFixed: false + tabFixed: false, + searchName: '' }, /** @@ -130,7 +131,8 @@ Page({ dingdan: true, jingcai: true, volunteerlist:[],//列表置空 - listLength:0 + listLength:0, + searchName: '' }) let parms = { pageIndex: this.data.indexPage, @@ -204,7 +206,7 @@ Page({ }) } that.setData({ - listLength:res.data.length, + listLength:res.data.volunteerList.length, volunteerlist:that.data.volunteerlist.concat(res.data.volunteerList), volunteerCount: res.data.volunteerCount }) @@ -242,7 +244,32 @@ Page({ }) }, + bindInputValue (e) { + this.setData({ + searchName: e.detail.value + }) + }, + searchName () { + console.log(this.data.searchName) + if(!this.data.searchName) { + wx.showToast({ + title: '请输入搜索的昵称', + icon: 'none', + duration: 2000 + }) + return; + } + let parms = { + pageIndex: this.data.indexPage, + pageSize: this.data.pageSize, + nickname: this.data.searchName + } + this.setData({ + volunteerlist: [] + }) + this.volunteerlist(parms) + }, /** * 生命周期函数--监听页面隐藏 */ diff --git a/pages/heartNew/heartNew.wxml b/pages/heartNew/heartNew.wxml index 5677403..80f0191 100644 --- a/pages/heartNew/heartNew.wxml +++ b/pages/heartNew/heartNew.wxml @@ -77,9 +77,18 @@ + + + + + + + + + 志愿者注册数:{{volunteerCount}} - + diff --git a/pages/heartNew/heartNew.wxss b/pages/heartNew/heartNew.wxss index 514d3a9..662a677 100644 --- a/pages/heartNew/heartNew.wxss +++ b/pages/heartNew/heartNew.wxss @@ -392,4 +392,73 @@ button:last-child { line-height: 24rpx; font-weight: 500; color: #C5C5C5; -} \ No newline at end of file +} + +/* 搜索志愿者 start */ +.search { + /* margin-top: 17rpx; */ + height: 66rpx; + background: rgba(255, 255, 255, 1); + border-radius: 33rpx; + display: flex; + align-items: center; + justify-content: center; + margin: 10rpx 40rpx; +} + +.search .item-all { + height: 30rpx; + width: 100%; + width: calc(100% - 60rpx); + display: flex; + align-items: center; + justify-content: space-between; +} + +.search .item-all .item-left { + /* background: red; */ + width: calc(100% - 73rpx); + height: 30rpx; + border-right: 1rpx solid #BFBFBF; + display: flex; + align-items: center; + justify-content: space-between; +} + +.search .item-all .item-left image { + width: 30rpx; + height: 28rpx; +} + +.search .item-all .item-left input { + width: calc(100% - 41rpx); + height: 30rpx; + font-size: 28rpx; + color: #333; +} + +.placeholder-style { + font-size: 28rpx; + font-weight: 500; + color: rgba(168, 168, 168, 1); +} + +.search .item-all .item-right { + font-size: 28rpx; + font-weight: 500; + color: rgba(51, 51, 51, 1); + background-color: #fff; +} +.search button { + width: 100rpx; + height: 58rpx; + padding: 0; + border-radius: 0; + line-height: 58rpx; +} + +.search button::after { + border-radius: 0px; + border: none; +} +/* 搜索志愿者 end */ \ No newline at end of file diff --git a/pages/mine/components/topicItemNew/topicItemNew.wxml b/pages/mine/components/topicItemNew/topicItemNew.wxml index b886ff1..60d1785 100644 --- a/pages/mine/components/topicItemNew/topicItemNew.wxml +++ b/pages/mine/components/topicItemNew/topicItemNew.wxml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/pages/mine/components/topicItemNew/topicItemNew.wxss b/pages/mine/components/topicItemNew/topicItemNew.wxss index 7a309d8..e05cae5 100644 --- a/pages/mine/components/topicItemNew/topicItemNew.wxss +++ b/pages/mine/components/topicItemNew/topicItemNew.wxss @@ -209,4 +209,20 @@ width: 100%; height: 100%; object-fit: cover; +} + +.shield-line { + display: flex; + justify-content: flex-end; + margin-top: 10rpx; +} +.shield-line .shield-label { + width: 90rpx; + height: 34rpx; + border-radius: 17rpx; + background: #F40C0C; + color: #fff; + font-size: 22rpx; + line-height: 34rpx; + text-align:center; } \ No newline at end of file diff --git a/pages/mine/mine.js b/pages/mine/mine.js index f84b5cc..e10a963 100644 --- a/pages/mine/mine.js +++ b/pages/mine/mine.js @@ -288,14 +288,15 @@ Page({ }) }, // 话题列表 跳转详情 - // toTopicDetail(e) { - // const { - // topicId - // } = e.detail - // wx.navigateTo({ - // url: `/subpages/association/pages/topicDetail/topicDetail?detailId=${topicId}` - // }) - // }, + toTopicDetail(e) { + console.log(e.detail) + const { + topicId + } = e.detail + wx.navigateTo({ + url: `/subpages/association/pages/topicDetail/topicDetail?detailId=${topicId}` + }) + }, // 我有事说 addIssue () { if (this.data.infoCompleted == 0) { diff --git a/pages/mine/mine.wxml b/pages/mine/mine.wxml index c4d442c..3b0f0f7 100644 --- a/pages/mine/mine.wxml +++ b/pages/mine/mine.wxml @@ -110,10 +110,10 @@ - + - + diff --git a/project.config.json b/project.config.json index 97977e3..9a77d70 100644 --- a/project.config.json +++ b/project.config.json @@ -1,144 +1,155 @@ { - "description": "项目配置文件", - "packOptions": { - "ignore": [] - }, - "setting": { - "urlCheck": false, - "es6": true, - "postcss": true, - "preloadBackgroundData": false, - "minified": true, - "newFeature": true, - "coverView": true, - "autoAudits": false, - "showShadowRootInWxmlPanel": true, - "scopeDataCheck": false, - "checkInvalidKey": true, - "checkSiteMap": true, - "uploadWithSourceMap": true, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "useCompilerModule": false, - "userConfirmedUseCompilerModuleSwitch": false, - "compileHotReLoad": false, - "useIsolateContext": true - }, - "compileType": "miniprogram", - "libVersion": "2.8.2", - "appid": "wx6dcf544cdae7d4ec", - "projectname": "%E7%B2%BE%E8%87%B4%E9%94%A6%E6%B0%B4-%E5%B1%85%E6%B0%9 1%E7%AB%AF", - "debugOptions": { - "hidedInDevtools": [] - }, - "isGameTourist": false, - "simulatorType": "wechat", - "simulatorPluginLibVersion": {}, - "condition": { - "search": { - "current": -1, - "list": [] - }, - "conversation": { - "current": -1, - "list": [] - }, - "plugin": { - "current": -1, - "list": [] - }, - "game": { - "currentL": -1, - "list": [] - }, - "gamePlugin": { - "current": -1, - "list": [] - }, - "miniprogram": { - "current": -1, - "list": [ - { - "id": 0, - "name": "pages/formid/formid", - "pathName": "pages/formid/formid", - "query": "gid=1233592630168813569", - "scene": 1011 - }, - { - "id": 1, - "name": "pages/indexNew/indexNew", - "pathName": "pages/indexNew/indexNew", - "query": "scene=1233592247862198274", - "scene": 1011 - }, - { - "id": 2, - "name": "网格长注册", - "pathName": "pages/index/index", - "query": "scene=gridLeader", - "scene": 1011 - }, - { - "id": 3, - "name": "subpages/home/pages/newsDetail/newsDetail", - "pathName": "subpages/home/pages/newsDetail/newsDetail", - "query": "id=7c8bc749ff4b6380bf1d902c0bde0ba&defaultGridId=1233592630168813569", - "scene": null - }, - { - "id": -1, - "name": "社群列表", - "pathName": "subpages/associationNew/pages/associationlist/associationlist", - "query": "", - "scene": null - }, - { - "id": 5, - "name": "数据端跳转", - "pathName": "pages/indexNew/indexNew", - "query": "scene=1277169327606366209&from=analysis", - "scene": null - }, - { - "id": 6, - "name": "工作端跳转", - "pathName": "pages/indexNew/indexNew", - "query": "scene=1280737901335838721&from=work", - "scene": null - }, - { - "id": -1, - "name": "锦水档案", - "pathName": "subpages/understandJs/pages/archives/archives", - "query": "", - "scene": null - }, - { - "id": 8, - "name": "搜索页面", - "pathName": "subpages/oneKeyService/pages/search/search", - "query": "", - "scene": null - }, - { - "id": -1, - "name": "注册页面", - "pathName": "pages/toRegister/toRegister", - "query": "", - "scene": null - }, - { - "id": -1, - "name": "subpages/heart/pages/leaderboardNew/leaderboardNew", - "pathName": "subpages/heart/pages/leaderboardNew/leaderboardNew", - "query": "", - "scene": null - } - ] - } - } + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": false, + "es6": true, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": true, + "coverView": true, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "useMultiFrameRuntime": false, + "useApiHook": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "useIsolateContext": true, + "useCompilerModule": false, + "userConfirmedUseCompilerModuleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [] + }, + "compileType": "miniprogram", + "libVersion": "2.8.2", + "appid": "wx6dcf544cdae7d4ec", + "projectname": "%E7%B2%BE%E8%87%B4%E9%94%A6%E6%B0%B4-%E5%B1%85%E6%B0%9 1%E7%AB%AF", + "debugOptions": { + "hidedInDevtools": [] + }, + "isGameTourist": false, + "simulatorType": "wechat", + "simulatorPluginLibVersion": {}, + "condition": { + "search": { + "current": -1, + "list": [] + }, + "conversation": { + "current": -1, + "list": [] + }, + "plugin": { + "current": -1, + "list": [] + }, + "game": { + "currentL": -1, + "list": [] + }, + "gamePlugin": { + "current": -1, + "list": [] + }, + "miniprogram": { + "current": -1, + "list": [ + { + "id": 0, + "name": "pages/formid/formid", + "pathName": "pages/formid/formid", + "query": "gid=1233592630168813569", + "scene": 1011 + }, + { + "id": 1, + "name": "pages/indexNew/indexNew", + "pathName": "pages/indexNew/indexNew", + "query": "scene=1233592247862198274", + "scene": 1011 + }, + { + "id": 2, + "name": "网格长注册", + "pathName": "pages/index/index", + "query": "scene=gridLeader", + "scene": 1011 + }, + { + "id": 3, + "name": "subpages/home/pages/newsDetail/newsDetail", + "pathName": "subpages/home/pages/newsDetail/newsDetail", + "query": "id=7c8bc749ff4b6380bf1d902c0bde0ba&defaultGridId=1233592630168813569", + "scene": null + }, + { + "id": -1, + "name": "社群列表", + "pathName": "subpages/associationNew/pages/associationlist/associationlist", + "query": "", + "scene": null + }, + { + "id": 5, + "name": "数据端跳转", + "pathName": "pages/indexNew/indexNew", + "query": "scene=1277169327606366209&from=analysis", + "scene": null + }, + { + "id": 6, + "name": "工作端跳转", + "pathName": "pages/indexNew/indexNew", + "query": "scene=1280737901335838721&from=work", + "scene": null + }, + { + "id": -1, + "name": "锦水档案", + "pathName": "subpages/understandJs/pages/archives/archives", + "query": "", + "scene": null + }, + { + "id": 8, + "name": "搜索页面", + "pathName": "subpages/oneKeyService/pages/search/search", + "query": "", + "scene": null + }, + { + "id": -1, + "name": "注册页面", + "pathName": "pages/toRegister/toRegister", + "query": "", + "scene": null + }, + { + "id": -1, + "name": "subpages/heart/pages/leaderboardNew/leaderboardNew", + "pathName": "subpages/heart/pages/leaderboardNew/leaderboardNew", + "query": "", + "scene": null + }, + { + "id": -1, + "name": "我有事说", + "pathName": "pages/discussion/discussion", + "query": "", + "scene": null + } + ] + } + } } \ No newline at end of file diff --git a/subpages/association/pages/topicDetail/topicDetail.js b/subpages/association/pages/topicDetail/topicDetail.js index 0e4c0ad..63f2e59 100644 --- a/subpages/association/pages/topicDetail/topicDetail.js +++ b/subpages/association/pages/topicDetail/topicDetail.js @@ -1,11 +1,12 @@ import { - getTopicDetail, - getRemarkList, - closeTopic, + getTopicDetailV2, + //getRemarkList, + //closeTopic, // publishStatement, - topicComLike, - topicComUnlike, - getCloseReason } from "../../utils/api" + //topicComLike, + //topicComUnlike, + //getCloseReason +} from "../../utils/api" const app = getApp() Page({ @@ -51,31 +52,30 @@ Page({ detailId: options.detailId, infoCompleted: app.globalData.infoCompleted }) - this.getCloseReason() + // this.getCloseReason() }, onShow () { - this.setData({ - pageNo: 1, - loadMoreType: "loading", - timestamp: "" - }) - this.getTopicRemark() - + // this.setData({ + // pageNo: 1, + // loadMoreType: "loading", + // timestamp: "" + // }) + // this.getTopicRemark() }, onReachBottom () { - if (!this.data.loadMoreVisible) { - this.setData({ - loadMoreVisible: true - }) - } - if (this.data.loadMoreType === "loading") { - this.setData({ - pageNo: this.data.pageNo + 1 - }) - setTimeout(() => { - this.getTopicRemark() - },500) - } + // if (!this.data.loadMoreVisible) { + // this.setData({ + // loadMoreVisible: true + // }) + // } + // if (this.data.loadMoreType === "loading") { + // this.setData({ + // pageNo: this.data.pageNo + 1 + // }) + // setTimeout(() => { + // this.getTopicRemark() + // },500) + // } }, // 跳转 评论 inputFocus () { @@ -104,20 +104,30 @@ Page({ }, // 获取话题详情 getTopicDetail (detailId) { - getTopicDetail(detailId).then(res => { + getTopicDetailV2(detailId).then(res => { console.log("话题详情",res) - const detailInfo = {} - for(const key in this.data.detailInfo) { - detailInfo[key] = res.data[key] - } + // const detailInfo = {} + // for(const key in this.data.detailInfo) { + // detailInfo[key] = res.data[key] + // } + // this.setData({ + // lordFlag: res.data.lordFlag, + // detailInfo + // }) + this.data.detailInfo = { ...res.data } this.setData({ - lordFlag: res.data.lordFlag, - detailInfo + detailInfo: this.data.detailInfo }) }).catch(err => { console.log(err) }) }, + previewImage (e) { + wx.previewImage({ + urls: this.data.detailInfo.images, + current: e.currentTarget.dataset.src + }) + }, // 获取话题评论列表 getTopicRemark () { const para = { diff --git a/subpages/association/pages/topicDetail/topicDetail.wxml b/subpages/association/pages/topicDetail/topicDetail.wxml index 854b197..197163f 100644 --- a/subpages/association/pages/topicDetail/topicDetail.wxml +++ b/subpages/association/pages/topicDetail/topicDetail.wxml @@ -1,4 +1,4 @@ - + + + + + + {{detailInfo.topicContent}} + + + + + + 屏蔽原因 + {{detailInfo.shieldReason}} + + diff --git a/subpages/association/pages/topicDetail/topicDetail.wxss b/subpages/association/pages/topicDetail/topicDetail.wxss index dfdbdec..2306400 100644 --- a/subpages/association/pages/topicDetail/topicDetail.wxss +++ b/subpages/association/pages/topicDetail/topicDetail.wxss @@ -2,7 +2,7 @@ page { width: 100%; height: 100vh; } -.topic-detail { +/* .topic-detail { width: 100%; min-height: 101%; background: #f7f7f7; @@ -77,4 +77,102 @@ page { } .bottom-operation .hover-change { background: red; +} */ +page { + width: 100%; + min-height: 100vh; + height: auto; + overflow-y: auto; +} +.topic-detail { + width: 100%; + min-height: 100vh; + background: #f7f7f7; + box-sizing: border-box; + padding: 20rpx; +} +.topic-content { + width: 100%; + background: #fff; + box-sizing: border-box; + padding: 0 25rpx; + overflow: hidden; +} +.topic-content .user-info { + width: 100%; + height: 64rpx; + display: flex; + align-items: center; + margin-top: 50rpx; +} +.topic-content .user-info .avatar { + width: 64rpx; + height: 64rpx; + object-fit: cover; + border-radius: 50rpx; + margin-right: 13rpx; +} +.topic-content .user-info .identify { + display: flex; + flex-direction:column; + justify-content: space-between; +} +.topic-content .user-info .identify .identify-top { + display: flex; + align-items: center; +} +.topic-content .user-info .identify .identify-top .nickname { + font-size: 28rpx; + color: #444; +} +.topic-content .user-info .identify .identify-top .party-flag { + width: 27rpx; + height: 27rpx; + object-fit: cover; + margin-left: 6rpx; +} +.topic-content .user-info .identify .identify-bottom { + font-size: 20rpx; + color: #999; +} + +.topic-content .issue-content { + font-size: 38rpx; + color: #333; + line-height: 58rpx; + margin: 26rpx 0; +} + +.topic-content .image-list { + width: 100%; + margin-bottom: 76rpx; +} +.topic-content .image-list .image-item { + width: 100%; + border-radius: 16rpx; +} +.topic-content .image-list .image-item + .image-item { + margin-top: 20rpx; +} + +.handle-progress { + width: 100%; + overflow: hidden; +} +.handle-progress .title { + width: 100%; + font-size: 32rpx; + color: #333; + line-height: 86rpx; + height: 86rpx; + margin-top: 38rpx; + font-weight: bolder; +} +.handle-progress .handle-progress-content { + width: 100%; + background: #fff; + box-sizing: border-box; + padding: 30rpx 25rpx; + font-size: 32rpx; + color: #F40D0D; } \ No newline at end of file diff --git a/subpages/association/utils/api.js b/subpages/association/utils/api.js index 0be3eea..c9d87d0 100644 --- a/subpages/association/utils/api.js +++ b/subpages/association/utils/api.js @@ -149,7 +149,12 @@ export function getTopicList ({ pageIndex, pageSize, timestamp, groupId, topicId export function getTopicDetail (detailId) { return request.get(`group/topic/detail/${detailId}`) } - +/** + * 话题详情v2 + */ + export function getTopicDetailV2 (detailId) { + return request.get(`partyGroup/topic/detail/${detailId}`) +} /** * 退群 * @param groupId diff --git a/subpages/associationNew/components/noticeVerify/noticeVerify.js b/subpages/associationNew/components/noticeVerify/noticeVerify.js new file mode 100644 index 0000000..b1ff446 --- /dev/null +++ b/subpages/associationNew/components/noticeVerify/noticeVerify.js @@ -0,0 +1,91 @@ +Component({ + data: { + visible: false, + textareaValue: '' + }, + properties: { + noticeVerifyVisible: { + type: Boolean, + value: false, + observer: function (newValue) { + this.setData({ + visible: !this.data.visible + }) + } + }, + title: { + type: String, + value: '' + }, + cancelText: { + type: String, + value: '' + }, + confirmText: { + type: String, + value: '' + }, + tipVisible: { + type: Boolean, + value: false + }, + tipValue: { + type: String, + value: '*请输入屏蔽该话题的原因' + } + }, + lifetimes: { + attached () { + console.log('notice-verify') + }, + deattached () { + + } + }, + pageLifetimes: { + show () { + + }, + hide () { + + } + }, + methods: { + close () { + this.triggerEvent('close', {data: this.data.textareaValue}) + this.setData({ + // visible: !this.data.visible, + textareaValue: '' + }) + }, + confirm () { + if (this.data.textareaValue === '') { + wx.showToast({ + title: '原因不能为空', + icon: 'none', + duration: 2000 + }) + return false + } + this.triggerEvent('confirm', {data: this.data.textareaValue}) + this.setData({ + // visible: !this.data.visible, + textareaValue: '' + }) + }, + textareaInput (e) { + this.setData({ + textareaValue: e.detail.value + }) + // console.log(this.data.textareaValue) + }, + closeDialog () { + this.setData({ + visible: !this.data.visible + }) + }, + move () { + + } + } +}) \ No newline at end of file diff --git a/subpages/associationNew/components/noticeVerify/noticeVerify.json b/subpages/associationNew/components/noticeVerify/noticeVerify.json new file mode 100644 index 0000000..32640e0 --- /dev/null +++ b/subpages/associationNew/components/noticeVerify/noticeVerify.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/subpages/associationNew/components/noticeVerify/noticeVerify.wxml b/subpages/associationNew/components/noticeVerify/noticeVerify.wxml new file mode 100644 index 0000000..8697dca --- /dev/null +++ b/subpages/associationNew/components/noticeVerify/noticeVerify.wxml @@ -0,0 +1,16 @@ + + + + + + {{title}} + +