diff --git a/components/activity/activity.wxml b/components/activity/activity.wxml index 0f529da..87902be 100644 --- a/components/activity/activity.wxml +++ b/components/activity/activity.wxml @@ -1,4 +1,4 @@ - + 活动地点:{{item.actAddress}} - + 不限名额 活动名额 {{item.actQuota}}人 diff --git a/images/home/signin.png b/images/home/signin.png new file mode 100644 index 0000000..dc4b961 Binary files /dev/null and b/images/home/signin.png differ diff --git a/images/home/signined.png b/images/home/signined.png new file mode 100644 index 0000000..2d5c436 Binary files /dev/null and b/images/home/signined.png differ diff --git a/images/mine/topic-nodata.png b/images/mine/topic-nodata.png index 34b8937..0a5543d 100644 Binary files a/images/mine/topic-nodata.png and b/images/mine/topic-nodata.png differ diff --git a/images/search.png b/images/search.png new file mode 100644 index 0000000..c6e6a6c Binary files /dev/null and b/images/search.png differ diff --git a/pages/discussion/components/issueList/issueList.js b/pages/discussion/components/issueList/issueList.js index 5ff987d..fe74bcc 100644 --- a/pages/discussion/components/issueList/issueList.js +++ b/pages/discussion/components/issueList/issueList.js @@ -170,6 +170,11 @@ Component({ this.data.selectedIssueId = "" }) } + }, + + //跳转项目列表 + goProjectComponent () { + this.triggerEvent('goProjectComponent') } } }) \ No newline at end of file diff --git a/pages/discussion/components/issueList/issueList.wxml b/pages/discussion/components/issueList/issueList.wxml index 43aeaf5..7196f2e 100644 --- a/pages/discussion/components/issueList/issueList.wxml +++ b/pages/discussion/components/issueList/issueList.wxml @@ -28,7 +28,7 @@ wx:for="{{[1]}}" wx:for-index="index" wx:for-item="item" - wx:key="{{index}}"> + 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..0a0cf07 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: '' }, /** @@ -91,6 +92,7 @@ Page({ let parms = { pageIndex: this.data.indexPage, pageSize: this.data.pageSize, + nickname: this.data.searchName } this.volunteerlist(parms) } @@ -130,11 +132,13 @@ Page({ dingdan: true, jingcai: true, volunteerlist:[],//列表置空 - listLength:0 + listLength:0, + searchName: '' }) let parms = { pageIndex: this.data.indexPage, pageSize: this.data.pageSize, + nickname: this.data.searchName } this.volunteerlist(parms) } else if (e.currentTarget.dataset.tab == "tab2") { @@ -204,7 +208,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 +246,33 @@ 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; + } + this.setData({ + volunteerlist: [], + indexPage: 1 + }) + let parms = { + pageIndex: this.data.indexPage, + pageSize: this.data.pageSize, + nickname: this.data.searchName + } + this.volunteerlist(parms) + }, /** * 生命周期函数--监听页面隐藏 */ @@ -318,6 +348,7 @@ Page({ let parms = { pageIndex: this.data.indexPage, pageSize: this.data.pageSize, + nickname: this.data.searchName } this.volunteerlist(parms) } else if (this.data.selectedTab == "tab2") { 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/indexNew/indexNew.js b/pages/indexNew/indexNew.js index 3d891c5..82b9c6b 100644 --- a/pages/indexNew/indexNew.js +++ b/pages/indexNew/indexNew.js @@ -75,11 +75,16 @@ Page({ workGridId:'', //工作网格7.08 completeInfoDialogVisible: false, //完善信息 homePagePhone: {}, - fromprogram: '' //来自工作端=work 或者 数据分析端=leader 的跳转 + fromprogram: '', //来自工作端=work 或者 数据分析端=leader 的跳转, + visible: false, + signMsg: '', + signCode: 0, + isSignUp: 0 }, onShow: function () { if (wx.getStorageSync("token") != "" && wx.getStorageSync("token") != undefined && wx.getStorageSync("token") != null) { if (!this.data.first) { + this.getUserInfo() this.loadGridList() this.getBannerList() this.getFirstInfo() @@ -99,6 +104,7 @@ Page({ const para = { shareType: options.shareType, id: options.id, + detailId: options.detailId, type: options.type ? options.type : "", defaultGridId: options.defaultGridId ? options.defaultGridId : "", } @@ -351,11 +357,16 @@ Page({ wx.navigateTo({ url: `/subpages/heart/pages/heartDetail/heartDetail?id=${para.id}` }) - } + } else if (para.shareType === 'newsDetail') { + wx.navigateTo({ + url: `/subpages/home/pages/newsDetail/newsDetail?id=${para.detailId}` + }) + } wx.removeStorageSync("shareObj") } that.getResidentConfig() that.getHomePhone() + that.getUserInfo() that.loadGridList() that.getBannerList() that.getFirstInfo() @@ -625,5 +636,49 @@ Page({ } else { return false } + }, + // 获取用户信息 + getUserInfo () { + api.getUserInfo().then(res => { + console.log("用户信息", res) + this.setData({ + isSignUp: res.data.isSignUp + }) + }).catch(err => { + this.setData({ + isSignUp: 0 + }) + console.log(err) + }) + }, + //签到 2020.07.31 + toSignIn () { + if (this.data.isSignUp == 1) { + return + } + api.userInfoSignUp().then(res => { + console.log(res.data) + if (res.code === 0) { + // 显示提醒 + this.setData({ + signCode: res.code, + signMsg: res.data, + visible: true + }); + } else { + this.setData({ + signCode: res.code, + signMsg: res.msg, + visible: true + }); + } + }) + }, + // 关闭签到提醒 + onClose() { + this.getUserInfo() + this.setData({ + visible: false + }); } }) \ No newline at end of file diff --git a/pages/indexNew/indexNew.json b/pages/indexNew/indexNew.json index 0b63bd2..49f2c18 100644 --- a/pages/indexNew/indexNew.json +++ b/pages/indexNew/indexNew.json @@ -5,6 +5,7 @@ "usingComponents": { "nav-bar": "/components/navbar/index", "load-more": "../../components/loadMore/loadMore", - "complete-info-dialog": "../../components/completeInfoDialog/completeInfoDialog" + "complete-info-dialog": "../../components/completeInfoDialog/completeInfoDialog", + "wux-popup": "../../dist/popup/index" } } \ No newline at end of file diff --git a/pages/indexNew/indexNew.wxml b/pages/indexNew/indexNew.wxml index 27124e0..e95deae 100644 --- a/pages/indexNew/indexNew.wxml +++ b/pages/indexNew/indexNew.wxml @@ -15,6 +15,10 @@ {{departmentName}} + + + + @@ -169,4 +173,9 @@ - \ No newline at end of file + + + + + 确定 + \ No newline at end of file diff --git a/pages/indexNew/indexNew.wxss b/pages/indexNew/indexNew.wxss index ac9a988..4000388 100644 --- a/pages/indexNew/indexNew.wxss +++ b/pages/indexNew/indexNew.wxss @@ -60,9 +60,22 @@ page { z-index: 10; } +.belong-grid .newbelong-grid .signin-btn { + width: 140rpx; + height: 44rpx; + position: absolute; + z-index: 99; + right: 80rpx; +} + +.belong-grid .newbelong-grid .signin-btn image { + width: 100%; + height: 100%; +} + .belong-grid .newbelong-grid .grid { /* width: 90%; */ - width: calc(100% - 129rpx); + width: calc(100% - 240rpx); height: 34rpx; position: relative; z-index: 100; @@ -89,7 +102,7 @@ page { } .belong-grid .newbelong-grid .my-and-news { - width: 129rpx; + width: 80rpx; height: 34rpx; position: relative; z-index: 100; @@ -631,3 +644,10 @@ page { height: 100%; width: 100%; } + +.popup__button { + width: 100%; + text-align: center; + font-size: 36rpx; + color: #04BCA0; +} \ 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 5395c43..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) { @@ -335,34 +336,34 @@ Page({ }) }, - //签到 2020.07.24 - toSignUp () { - if (this.data.userInfo.isSignUp == 1) { - return - } - api.userInfoSignUp().then(res => { - console.log(res.data) - if (res.code === 0) { - // 显示提醒 - this.setData({ - signCode: res.code, - signMsg: res.data, - visible: true - }); - } else { - this.setData({ - signCode: res.code, - signMsg: res.msg, - visible: true - }); - } - }) - }, - // 关闭签到提醒 - onClose() { - this.getUserInfo() - this.setData({ - visible: false - }); - } + // 签到 2020.07.24 + // toSignUp () { + // if (this.data.userInfo.isSignUp == 1) { + // return + // } + // api.userInfoSignUp().then(res => { + // console.log(res.data) + // if (res.code === 0) { + // // 显示提醒 + // this.setData({ + // signCode: res.code, + // signMsg: res.data, + // visible: true + // }); + // } else { + // this.setData({ + // signCode: res.code, + // signMsg: res.msg, + // visible: true + // }); + // } + // }) + // }, + // // 关闭签到提醒 + // onClose() { + // this.getUserInfo() + // this.setData({ + // visible: false + // }); + // } }) \ No newline at end of file diff --git a/pages/mine/mine.wxml b/pages/mine/mine.wxml index c0f0554..3b0f0f7 100644 --- a/pages/mine/mine.wxml +++ b/pages/mine/mine.wxml @@ -26,14 +26,14 @@ - + @@ -110,10 +110,10 @@ - + - + diff --git a/pages/toRegister/toRegister.js b/pages/toRegister/toRegister.js index 36d710e..3e20967 100644 --- a/pages/toRegister/toRegister.js +++ b/pages/toRegister/toRegister.js @@ -21,7 +21,7 @@ Page({ // } // }) let that = this - const versionNum = "1.4.19" + const versionNum = "1.4.32" api.getScanSwitch(versionNum).then(function (res) { console.log(res.data) let state = res.data.scanFlag diff --git a/project.config.json b/project.config.json index 6d80207..0e8739b 100644 --- a/project.config.json +++ b/project.config.json @@ -1,136 +1,144 @@ { - "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, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "useIsolateContext": true, - "useCompilerModule": false, - "userConfirmedUseCompilerModuleSwitch": false - }, - "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": "带参数二维码", - "pathName": "pages/index/index", - "query": "scene=1277169327606366209&inviteUserId=12345", - "scene": 1011 - }, - { - "id": 1, - "name": "pages/indexNew/indexNew", - "pathName": "pages/indexNew/indexNew", - "query": "gid=1175270967490244609", - "scene": 1011 - }, - { - "id": 2, - "name": "网格长注册", - "pathName": "pages/index/index", - "query": "scene=gridLeader", - "scene": 1011 - }, - { - "id": -1, - "name": "subpages/home/pages/newsDetail/newsDetail", - "pathName": "subpages/home/pages/newsDetail/newsDetail", - "query": "id=7c8bc749ff4b6380bf1d902c0bde0ba1", - "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", - "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, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "useIsolateContext": true, + "useCompilerModule": false, + "userConfirmedUseCompilerModuleSwitch": false + }, + "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": 7, + "name": "我有事说", + "pathName": "subpages/discussion/pages/addIssue/addIssue", + "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 + } + ] + } + } } \ 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}} + + + @@ -128,7 +128,7 @@ - + diff --git a/subpages/home/pages/newsDetail/newsDetail.js b/subpages/home/pages/newsDetail/newsDetail.js index a114cb8..adfad9b 100644 --- a/subpages/home/pages/newsDetail/newsDetail.js +++ b/subpages/home/pages/newsDetail/newsDetail.js @@ -11,6 +11,7 @@ Page({ infoCompleted: 0, noticeObjContent: "", residentValue:0,//配置时间 + defaultGridId: '' //默认网格id }, onLoad (options) { this.setData({ @@ -162,7 +163,7 @@ Page({ // }) } }, - // 获取默认配置 阅读时间 + // 获取默认配置, 阅读时间, 获取默认网格 getResidentConfig (){ let that = this api_getResidentConfig.getResidentConfig().then(res => { @@ -172,6 +173,10 @@ Page({ that.setData({ residentValue:parseInt(item.residentValue) }) + } else if (item.residentCode === "default_grid" && item.residentType === "default_grid") { + that.setData({ + defaultGridId: item.residentValue + }) } }) that.countDown() @@ -213,4 +218,11 @@ Page({ onUnload: function () { clearInterval(this.data.timer) }, + //2020.7.29 新闻转发-没注册过的人进入默认网格 + onShareAppMessage(res) { + return { + title: '新闻资讯-新闻详情', + path: `/pages/indexNew/indexNew?shareType=newsDetail&detailId=${this.data.detailId}&defaultGridId=${this.data.defaultGridId}` + } + }, }) \ No newline at end of file diff --git a/subpages/oneKeyService/pages/index/index.js b/subpages/oneKeyService/pages/index/index.js index e3e88f3..be2b1eb 100644 --- a/subpages/oneKeyService/pages/index/index.js +++ b/subpages/oneKeyService/pages/index/index.js @@ -59,6 +59,18 @@ Page({ wx.navigateTo({ url: `../directTo/directTo?modulecode=${e.currentTarget.dataset.modulecode}` }) + } else if (e.currentTarget.dataset.modulecode == 'notice_zcwsc') { + wx.navigateTo({ + url: `../warning/warning?modulecode=${e.currentTarget.dataset.modulecode}` + }) + } else if (e.currentTarget.dataset.modulecode == 'notice_aq') { + wx.navigateTo({ + url: `../warning/warning?modulecode=${e.currentTarget.dataset.modulecode}` + }) + } else if (e.currentTarget.dataset.modulecode == 'notice_cgjj') { + wx.navigateTo({ + url: `../warning/warning?modulecode=${e.currentTarget.dataset.modulecode}` + }) } } }) \ No newline at end of file diff --git a/subpages/oneKeyService/pages/noticeDetail/noticeDetail.js b/subpages/oneKeyService/pages/noticeDetail/noticeDetail.js index e557b32..8746f45 100644 --- a/subpages/oneKeyService/pages/noticeDetail/noticeDetail.js +++ b/subpages/oneKeyService/pages/noticeDetail/noticeDetail.js @@ -26,6 +26,21 @@ Page({ title: '锦水警事' }) this.noticeDetail(options.id) + } else if(options.modulecode == 'notice_zcwsc'){ + wx.setNavigationBarTitle({ + title: '众创卫生城' + }) + this.noticeDetail(options.id) + } else if(options.modulecode == 'notice_aq'){ + wx.setNavigationBarTitle({ + title: '安全365' + }) + this.noticeDetail(options.id) + } else if(options.modulecode == 'notice_cgjj'){ + wx.setNavigationBarTitle({ + title: '城管聚焦' + }) + this.noticeDetail(options.id) } }, diff --git a/subpages/oneKeyService/pages/noticeDetail/noticeDetail.json b/subpages/oneKeyService/pages/noticeDetail/noticeDetail.json index b86ff26..d8bbc60 100644 --- a/subpages/oneKeyService/pages/noticeDetail/noticeDetail.json +++ b/subpages/oneKeyService/pages/noticeDetail/noticeDetail.json @@ -1,4 +1,4 @@ { "usingComponents": {}, - "navigationBarTitleText": "锦水" + "navigationBarTitleText": "" } \ No newline at end of file diff --git a/subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxml b/subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxml index 9c43ce3..632d7db 100644 --- a/subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxml +++ b/subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxml @@ -5,7 +5,7 @@ {{noticeObj.deptName}} - {{filter.formatTime(noticeObj.newsStartTime, 'yyyy-MM-dd')}} + {{filter.formatTime(noticeObj.noticeTime, 'yyyy-MM-dd')}} diff --git a/subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxss b/subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxss index 82e108b..0ea7945 100644 --- a/subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxss +++ b/subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxss @@ -14,7 +14,7 @@ page{ } .selfContent { width: 100%; - display: table; + /* display: table; */ background: #ffffff; border-radius: 16rpx; box-sizing: border-box; diff --git a/subpages/oneKeyService/pages/warning/warning.js b/subpages/oneKeyService/pages/warning/warning.js index d09c359..b5890d0 100644 --- a/subpages/oneKeyService/pages/warning/warning.js +++ b/subpages/oneKeyService/pages/warning/warning.js @@ -18,7 +18,7 @@ Page({ indicatorDots: false, //指示点 autoplay: true, //true,//自动播放 circular: true, //衔接滑动 - interval: 3000, //自动播放间隔时长(ms) + interval: 5000, //自动播放间隔时长(ms) duration: 500, //幻灯片切换时长(ms) currentSwiper: 0, }, @@ -34,14 +34,29 @@ Page({ wx.setNavigationBarTitle({ title: '锦水印象' }) + }else if(options.modulecode == 'notice_zcwsc'){ + this.getBannerList('4') + wx.setNavigationBarTitle({ + title: '众创卫生城' + }) + }else if(options.modulecode == 'notice_aq'){ + this.getBannerList('5') + wx.setNavigationBarTitle({ + title: '安全365' + }) + }else if(options.modulecode == 'notice_cgjj'){ + this.getBannerList('6') + wx.setNavigationBarTitle({ + title: '城管聚焦' + }) }else{ + this.getBannerList('2') wx.setNavigationBarTitle({ title: '锦水警事' }) } this.noticelist() - this.getBannerList() }, /** @@ -105,9 +120,9 @@ Page({ }) }, - getBannerList: function() { + getBannerList: function(bannerNum) { let that = this - api.bannerList('2').then(function(res) { + api.bannerList(bannerNum).then(function(res) { // console.log('res==', res.data) that.setData({ swiperBannerList: res.data @@ -115,10 +130,34 @@ Page({ }) }, swiperChange: function(e) { + wx.createVideoContext('video'+this.data.currentSwiper).pause() this.setData({ - currentSwiper: e.detail.current + currentSwiper: e.detail.current, + autoplay: true }) }, + bindplay() { + this.setData({ + autoplay: false + }) + wx.getNetworkType({ + success (res) { + const networkType = res.networkType + if (res.networkType != 'wifi') { + wx.showToast({ + title: '当前为非WI-FI环境,请注意流量消耗', + icon: 'none', + duration: 3000 + }) + } + } + }) + }, + bindended() { + this.setData({ + autoplay: true + }) + }, // swiperChange2: function(e) { // this.setData({ // 'options2.currentSwiper': e.detail.current, diff --git a/subpages/oneKeyService/pages/warning/warning.json b/subpages/oneKeyService/pages/warning/warning.json index 25bf808..8db8a6b 100644 --- a/subpages/oneKeyService/pages/warning/warning.json +++ b/subpages/oneKeyService/pages/warning/warning.json @@ -1,5 +1,5 @@ { - "navigationBarTitleText": "锦水警事", + "navigationBarTitleText": "", "usingComponents": { "load-more": "../../../../components/loadMore/loadMore", "no-data":"../../../../components/nodata/nodata" diff --git a/subpages/oneKeyService/pages/warning/warning.wxml b/subpages/oneKeyService/pages/warning/warning.wxml index 090b059..7cae75d 100644 --- a/subpages/oneKeyService/pages/warning/warning.wxml +++ b/subpages/oneKeyService/pages/warning/warning.wxml @@ -1,5 +1,5 @@ - @@ -41,4 +43,9 @@ - \ No newline at end of file + + + module.exports.getStr = function(content) { + return content.replace(getRegExp('<\/?.+?\/?>|[ ]','g'),'') + } + \ No newline at end of file diff --git a/subpages/oneKeyService/pages/warning/warning.wxss b/subpages/oneKeyService/pages/warning/warning.wxss index ca7e46b..bfa09c4 100644 --- a/subpages/oneKeyService/pages/warning/warning.wxss +++ b/subpages/oneKeyService/pages/warning/warning.wxss @@ -51,6 +51,16 @@ page { -webkit-box-orient: vertical; } +.list-item .info text { + line-height: 46rpx; + overflow: hidden; + text-overflow: ellipsis; + word-wrap: break-word; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + font-size: 30rpx; +} /* 轮播图start */ .altitle { @@ -164,6 +174,10 @@ page { swiper { height: 300rpx; box-shadow: 0px 4px 29px 0px rgba(63, 63, 63, 0.1); + border-radius: 16rpx; + overflow: hidden; + -webkit-backface-visibility: hidden; + -webkit-transform: translate3d(0, 0, 0); } /* 轮播图end */ \ No newline at end of file diff --git a/subpages/understandJs/pages/noticeDetail/noticeDetail.js b/subpages/understandJs/pages/noticeDetail/noticeDetail.js index 2077daa..684cd29 100644 --- a/subpages/understandJs/pages/noticeDetail/noticeDetail.js +++ b/subpages/understandJs/pages/noticeDetail/noticeDetail.js @@ -65,8 +65,10 @@ Page({ }, swiperChange: function(e) { + wx.createVideoContext('video'+this.data.currentSwiper).pause() this.setData({ - currentSwiper: e.detail.current + currentSwiper: e.detail.current, + autoplay: true }) }, bindplay() { @@ -91,16 +93,6 @@ Page({ autoplay: true }) }, - bindVideoEnterPictureInPicture() { - console.log('进入小窗模式') - }, - bindVideoLeavePictureInPicture() { - console.log('退出小窗模式') - }, - videoErrorCallback(e) { - console.log('视频错误信息:') - console.log(e.detail.errMsg) - }, videoBannerList () { api.videoBannerList('3').then( res => { this.setData({ diff --git a/subpages/understandJs/pages/noticeDetail/noticeDetail.wxml b/subpages/understandJs/pages/noticeDetail/noticeDetail.wxml index 47a8177..8afa456 100644 --- a/subpages/understandJs/pages/noticeDetail/noticeDetail.wxml +++ b/subpages/understandJs/pages/noticeDetail/noticeDetail.wxml @@ -9,20 +9,9 @@ - + --> + + @@ -41,7 +30,7 @@ {{noticeObj.deptName}} - {{filter.formatTime(noticeObj.newsStartTime, 'yyyy-MM-dd')}} + {{filter.formatTime(noticeObj.noticeTime, 'yyyy-MM-dd')}} diff --git a/subpages/understandJs/pages/noticeDetail/noticeDetail.wxss b/subpages/understandJs/pages/noticeDetail/noticeDetail.wxss index 6d664ca..c889c9b 100644 --- a/subpages/understandJs/pages/noticeDetail/noticeDetail.wxss +++ b/subpages/understandJs/pages/noticeDetail/noticeDetail.wxss @@ -14,7 +14,7 @@ page{ } .selfContent { width: 100%; - display: table; + /* display: table; */ background: #ffffff; border-radius: 16rpx; box-sizing: border-box; diff --git a/subpages/understandJs/pages/sclerotia/sclerotia.wxml b/subpages/understandJs/pages/sclerotia/sclerotia.wxml index 6d7e767..a44cd86 100644 --- a/subpages/understandJs/pages/sclerotia/sclerotia.wxml +++ b/subpages/understandJs/pages/sclerotia/sclerotia.wxml @@ -2,6 +2,7 @@ + {{item.noticeTitle}} @@ -10,7 +11,6 @@ {{filter.formatTime(item.noticeTime, 'yyyy-MM-dd')}} - diff --git a/subpages/understandJs/pages/sclerotia/sclerotia.wxss b/subpages/understandJs/pages/sclerotia/sclerotia.wxss index 55527f3..84488fe 100644 --- a/subpages/understandJs/pages/sclerotia/sclerotia.wxss +++ b/subpages/understandJs/pages/sclerotia/sclerotia.wxss @@ -44,6 +44,7 @@ page { -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; + margin: 0 auto; } .list-all .list-item .item-info .item-info-time { @@ -54,6 +55,7 @@ page { display: flex; flex-direction: row; justify-content: space-between; + left: 22rpx; } .list-all .list-item .item-info .item-info-time text { diff --git a/utils/api.js b/utils/api.js index a7e143c..620c78e 100644 --- a/utils/api.js +++ b/utils/api.js @@ -323,8 +323,11 @@ function leaderboard () { /** * 活动详情 */ -function detail (id) { - return fly.get(`heart/act/detail/${id}`) +function detail ({id,actType}) { + return fly.get(`heart/act/detail`,{ + id: id, + actType: actType + }) } /** diff --git a/utils/config.js b/utils/config.js index 5986183..58acdf1 100644 --- a/utils/config.js +++ b/utils/config.js @@ -8,12 +8,12 @@ module.exports = { function BASEURL() { // return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' // 锦水测试环境 // return 'https://eug-test.elinkit.com.cn/epdc-api/api/' // 测试环境 接口地址 - // return "http://219.146.91.110:9094/epdc-api/api/" // 测试环境 ip接口地址 + // return "http://192.168.43.19:9094/epdc-api/api/" // 测试环境 ip接口地址 // return "https://epdc.elinkservice.cn/epdc-api/api/" // 正式环境 接口地址 // return 'https://epdc-app.qingdaoshibei.cn/epdc-api/api/' // 电政办 正式环境 接口地址 // return 'https://epdc-shibei.elinkservice.cn/epdc-api/api/' // 电政办 正式环境 接口地址 return 'https://epdc-jinshui.elinkservice.cn/epdc-api/api/' // 锦水正式环境接口地址 - // return 'http://192.168.43.19:9094/epdc-api/api/' + // return 'http://10.10.10.63:9094/epdc-api/api/' } function WEBROOT() { diff --git a/utils/request.js b/utils/request.js index d527ad5..67ff2ec 100644 --- a/utils/request.js +++ b/utils/request.js @@ -15,7 +15,7 @@ const request = function (url, options) { }, success (response) { if (response.statusCode === 200) { - if(response.data.code===0){ + if(response.data.code===0 || response.data.code===533){ resolve(response.data) }else{ let errmsg = response.data.msg