diff --git a/app.json b/app.json index a833c47..8a61954 100644 --- a/app.json +++ b/app.json @@ -57,7 +57,7 @@ }, { "pagePath": "pages/topics/index", - "text": "议事厅", + "text": "赋能中心", "iconPath": "/images/tab/topics.png", "selectedIconPath": "/images/tab/topics_highlight.png" }, diff --git a/models/topic.js b/models/topic.js index 2258ad4..1a68393 100644 --- a/models/topic.js +++ b/models/topic.js @@ -16,7 +16,7 @@ const TopicBaseUrl = { topic_streets_url:'/api/whistle/getStreetList',//街道列表 topic_talents_url:'/api/whistle/save',//添加人才吹哨 topic_center_url:'/api/content/getListByCode', //赋能中心列表 - resource_type_url:'/api/resources/typelist ', + resource_type_url:'/api/resources/typelist', resource_list_url:'/api/resources/list', resource_detail_url:'/api/resources/queryById', resource_collect_url:'/api/resources/collectResources/', diff --git a/pages/article/index.json b/pages/article/index.json index d8b13cb..ce7a4b2 100644 --- a/pages/article/index.json +++ b/pages/article/index.json @@ -1,5 +1,4 @@ { - "navigationBarTitleText": "赋能中心", "usingComponents": { "e-ibutton": "/components/image-button/index" } diff --git a/pages/resource/detail/index.js b/pages/resource/detail/index.js index 9908240..07865bc 100644 --- a/pages/resource/detail/index.js +++ b/pages/resource/detail/index.js @@ -110,6 +110,11 @@ Page({ title: '收藏成功', icon: 'none' }) + }else{ + wx.showToast({ + title: '取消收藏', + icon: 'none' + }) } }) diff --git a/pages/resource/list/index.wxml b/pages/resource/list/index.wxml index e0b9ca3..59a76fb 100644 --- a/pages/resource/list/index.wxml +++ b/pages/resource/list/index.wxml @@ -25,4 +25,5 @@ - \ No newline at end of file + +暂无数据 \ No newline at end of file diff --git a/pages/resource/list/index.wxss b/pages/resource/list/index.wxss index cd3b8e6..fbd7470 100644 --- a/pages/resource/list/index.wxss +++ b/pages/resource/list/index.wxss @@ -73,4 +73,13 @@ .tips-con{ width: 90%; height: 90; +} + +.page_empty { + width: 100%; + height: 100px; + margin-top: 20px; + font-size: 14px; + color: #aaa; + text-align: center; } \ No newline at end of file diff --git a/pages/topics/interactive/topicArticle/index.js b/pages/topics/interactive/topicArticle/index.js index 70543b6..33a6643 100644 --- a/pages/topics/interactive/topicArticle/index.js +++ b/pages/topics/interactive/topicArticle/index.js @@ -247,22 +247,21 @@ Page({ // 弹出框 确认 confirm: function () { if(this.data.confirmTag){ - this.setData({ - confirmTag:false, - hiddenmodalput:true, - }) if (!this.data.currentComment){ wx.showToast({ title: '请输入评论', icon: 'none' }) this.setData({ - hiddenmodalput: true, confirmTag:true, currentComment: '' }) return } + this.setData({ + confirmTag:false, + hiddenmodalput:true, + }) topicModel.topicAddComment(this.data.currentComment, this.data.topicId,res=>{ if(res.code === 200){ this.setData({ diff --git a/pages/topics/loan/index.js b/pages/topics/loan/index.js index d1d0220..8186b48 100644 --- a/pages/topics/loan/index.js +++ b/pages/topics/loan/index.js @@ -14,7 +14,8 @@ Component({ * 组件的初始数据 */ data: { - url:'https://m.qdjqt.com/#/enterpriseLoan?xihaian=&VNK=e92927fe' + // url:'https://m.qdjqt.com/#/enterpriseLoan?xihaian=&VNK=e92927fe' + url:'https://m.qdjqt.com/#/enterpriseLoan?location=ShiBei®source=ShiBeiOrg' }, /** diff --git a/pages/topics/rent/detail/index.js b/pages/topics/rent/detail/index.js index d82fcf5..57c8277 100644 --- a/pages/topics/rent/detail/index.js +++ b/pages/topics/rent/detail/index.js @@ -97,6 +97,11 @@ Page({ title: '收藏成功', icon: 'none' }) + }else{ + wx.showToast({ + title: '取消收藏', + icon: 'none' + }) } }) diff --git a/pages/topics/rent/room/index.js b/pages/topics/rent/room/index.js index 0af8e5b..7a41d0c 100644 --- a/pages/topics/rent/room/index.js +++ b/pages/topics/rent/room/index.js @@ -72,7 +72,7 @@ Page({ onReachBottom: function () { var th = this; var next = th.data.next; - var typeCode = th.data.typeCode; + var apartmentId = th.data.apartmentId; if(!next){ return; } @@ -80,7 +80,7 @@ Page({ var nextPage = page + 1; var list = th.data.list; - topicModel.getRoomList(typeCode,nextPage,res=>{ + topicModel.getRoomList(apartmentId,nextPage,res=>{ if(res.result.records.length > 0){ list = list.concat(res.result.records); diff --git a/pages/topics/talents/index.js b/pages/topics/talents/index.js index 8df21ff..73f7305 100644 --- a/pages/topics/talents/index.js +++ b/pages/topics/talents/index.js @@ -31,7 +31,8 @@ Component({ //选择后获取的街道的I, streetID:'', typeCode:'', - textareaValue:'' + textareaValue:'', + error:'' }, // lifetimes: { // attached: function () { @@ -82,7 +83,6 @@ Component({ }) //把streett添加第一项设为空 typeList.unshift('') - console.log(111111111) console.log(typeList) this.setData({ @@ -96,23 +96,34 @@ Component({ }, methods: { bindPickerStreetsChange: function(e) { - // console.log("1"+e.detail.value) this.setData({ streetsIndex: e.detail.value }) - // console.log("2"+this.data.streetsIndex) - this.setData({ - streetID: this.data.results[this.data.streetsIndex-1].id - }) - // console.log(this.data.streetID) + if(e.detail.value == '0'){ + this.setData({ + streetID: '' + }) + }else{ + this.setData({ + streetID: this.data.results[this.data.streetsIndex-1].id + }) + } + }, bindPickerTypeChange:function(e){ this.setData({ typeListIndex: e.detail.value }) - this.setData({ - typeCode: this.data.list[this.data.typeListIndex-1].typeCode - }) + if(e.detail.value == '0'){ + this.setData({ + typeCode: '' + }) + }else{ + this.setData({ + typeCode: this.data.list[this.data.typeListIndex-1].typeCode + }) + } + }, bindTextInput(e) { this.setData({ @@ -124,11 +135,15 @@ Component({ this.setData({ messageDetail: e.detail.value, }) - if(e.detail.value.length>200){ - wx.showToast({ - title: '超过字数', - duration: 2000, - icon: 'none' + console.log(e.detail.value.length) + if(e.detail.value.length >= 200){ + // wx.showToast({ + // title: '超过字数', + // duration: 2000, + // icon: 'none' + // }) + this.setData({ + error: '已达最大字数' }) } }, @@ -203,7 +218,7 @@ Component({ if (this.data.typeCode === ''){ wx.showModal({ title: '提示', - content: '请选择赋能类型', + content: '请选择需求类型', showCancel:false }) return diff --git a/pages/topics/talents/index.json b/pages/topics/talents/index.json index 719cee5..fa5dc8a 100644 --- a/pages/topics/talents/index.json +++ b/pages/topics/talents/index.json @@ -4,6 +4,7 @@ "e-ibutton": "/components/image-button/index", "mp-cells": "/components/weui/cells/cells", "mp-cell": "/components/weui/cell/cell", - "mp-uploader": "/components/weui/uploader/uploader" + "mp-uploader": "/components/weui/uploader/uploader", + "mp-toptips": "/components/weui/toptips/toptips" } } \ No newline at end of file diff --git a/pages/topics/talents/index.wxml b/pages/topics/talents/index.wxml index 9945326..bac0d62 100644 --- a/pages/topics/talents/index.wxml +++ b/pages/topics/talents/index.wxml @@ -6,7 +6,7 @@ -