diff --git a/api/community.js b/api/community.js index f1b68f0..af54f69 100644 --- a/api/community.js +++ b/api/community.js @@ -40,6 +40,12 @@ export function getCommunityCate() { return request.get("community/cate") } +// 分类 +export function getCommunityCate2(params) { + return request.get("community/cate",{params}) +} + + // 发现页文章列表 export function getCommunityArticleLists(params) { return request.get("community/articleLists", {params}) @@ -128,4 +134,21 @@ export function getCommunitySearchHistory() { // 清空搜索记录 export function apiCommunityClearSearchHistory() { return request.post("community_search/clear") -} \ No newline at end of file +} + + +// 发现页文章列表 +export function getOrganLists(params) { + return request.get("community/organLists", {params}) +} + +// 发现页文章列表 +export function getTeamLists(params) { + return request.get("community/teamLists", {params}) +} + + +// 发现页文章列表 +export function getTeamOrganDetail(params) { + return request.get("community/organTeamDetail", {params}) +} diff --git a/bundle/pages/address_edit/address_edit.vue b/bundle/pages/address_edit/address_edit.vue index d2540d7..c935e27 100644 --- a/bundle/pages/address_edit/address_edit.vue +++ b/bundle/pages/address_edit/address_edit.vue @@ -139,6 +139,7 @@ } }, regionChange(region) { + console.log(region) this.addressObj.province_id = region[0].value; this.addressObj.city_id = region[1].value; this.addressObj.district_id = region[2].value; diff --git a/bundle_b/pages/community_detail/community_detail.vue b/bundle_b/pages/community_detail/community_detail.vue index dfcd845..9ff7c63 100644 --- a/bundle_b/pages/community_detail/community_detail.vue +++ b/bundle_b/pages/community_detail/community_detail.vue @@ -59,37 +59,52 @@ - - 查看TA提到的宝贝({{communityInfo.goods_data.length}}) + 查看TA提到的宝贝({{communityInfo.goods_data.length}}) --> - + - - 查看TA提到的店铺({{communityInfo.shop_data.length}}) + 查看TA提到的店铺({{communityInfo.shop_data.length}}) --> - + - - {{ communityInfo.content }} + + 任务类型:{{communityInfo.clabel}} + + + 联系人:{{communityInfo.contact_name}} + + + 联系方式:{{communityInfo.contact}} + + + 联系时间:{{communityInfo.contact_time}} + + + 发布时间:{{ communityInfo.create_time || '2023-05-20 05:13:14' }} + + + 内容:{{ communityInfo.content }} # {{ communityInfo.topic.name }} - - {{ communityInfo.create_time || '2022-05-20 05:13:14' }} - + + - + 加载中 - 没有更多了~ - - - @@ -162,7 +171,7 @@ {{ communityInfo.total_comment || '0' }} - + --> diff --git a/bundle_b/pages/published_works/published_works.vue b/bundle_b/pages/published_works/published_works.vue index 24b3fe2..1c4a75b 100644 --- a/bundle_b/pages/published_works/published_works.vue +++ b/bundle_b/pages/published_works/published_works.vue @@ -29,14 +29,14 @@ - - - - - - - - + + + + + + + + @@ -44,7 +44,7 @@ - + @@ -107,9 +107,10 @@ - --> + - @@ -234,17 +235,36 @@ // 初始化获取推荐话题 getCommunityCate() { getCommunityCate().then(res => { - this.CommunityCateLists = res.data; + + let catedata = [ + {"value":0,"label":"需求","children":[]}, + {"value":1,"label":"服务","children":[]}, + ] + + res.data.forEach((item) => { + let tmp = {} + tmp.value = item.id; + tmp.label = item.name; + if(item.type == 0 ) { + catedata[0]['children'].push(tmp) + }else{ + catedata[1]['children'].push(tmp) + } + }) + console.log(catedata,222) + this.CommunityCateLists = catedata; }) }, confirmSelect(e) { - const { - value, - label - } = e[0] - this.formData.cate_id = value - this.formData.clabel = label - console.log("表单:",this.formData) + // const { + // value, + // label + // } = e[0] + // this.formData.cate_id = value + // this.formData.clabel = label + // console.log("表单:",this.formData) + this.formData.cate_id = e[1].value; + this.formData.clabel = e[0].label + "-" + e[1].label }, // 上传,不管成不成功都返回数据|提示 diff --git a/components/community-recommend/community-recommend.vue b/components/community-recommend/community-recommend.vue index 2aab152..326f200 100644 --- a/components/community-recommend/community-recommend.vue +++ b/components/community-recommend/community-recommend.vue @@ -3,7 +3,7 @@ {{title}} - 发现好物 + 前往大厅 diff --git a/components/index-home/index-home.vue b/components/index-home/index-home.vue index 3f4189b..ef71dac 100644 --- a/components/index-home/index-home.vue +++ b/components/index-home/index-home.vue @@ -110,7 +110,7 @@ - + diff --git a/pages.json b/pages.json index f24de93..5b4eb23 100644 --- a/pages.json +++ b/pages.json @@ -82,7 +82,7 @@ "keepScroll": true }, "style": { - "navigationBarTitleText": "店铺街" + "navigationBarTitleText": "商铺街" } }, { @@ -93,7 +93,18 @@ "keepScroll": true }, "style": { - "navigationBarTitleText": "种草" + "navigationBarTitleText": "服务大厅" + } + }, + { + "path": "pages/community/organ_team_details", + "name": "community2", + "meta": { + "auth": false, + "keepScroll": true + }, + "style": { + "navigationBarTitleText": "专家机构详情" } }, { @@ -821,7 +832,7 @@ "auth": true }, "style": { - "navigationBarTitleText": "发布文章" + "navigationBarTitleText": "发布任务" } }, { diff --git a/pages/community/community.vue b/pages/community/community.vue index b371546..ce35560 100644 --- a/pages/community/community.vue +++ b/pages/community/community.vue @@ -4,8 +4,14 @@ - - + + + + + + + +