diff --git a/api/store.js b/api/store.js index 27052f8..9d6cd40 100644 --- a/api/store.js +++ b/api/store.js @@ -49,16 +49,16 @@ export function getBrandList() { //文章分类 export function getCategoryList(data) { let {type} = data - let url = type ? 'help/category' : 'article/category' - delete data.type - return request.get(url) + let url = type==1 ? 'help/category' : 'article/category' + return request.get(url, { + params: data + }) } //文章列表 export function getArticleList(data) { let {type} = data - let url = type ? 'help/lists' : 'article/lists' - delete data.type + let url = type == 1 ? 'help/lists' : 'article/lists' return request.get(url, { params: data }) @@ -73,7 +73,13 @@ export function getArticleDetail(data) { params: { id: data.id } }) } - +// 文章详情 +export function getHelpDetail(data) { + let url = 'help/detail2' + return request.get(url, { + params: { id: data.id } + }) +} //购物车 export function getCartList() { return request.get('cart/lists') diff --git a/api/user.js b/api/user.js index 8502491..4c0e49c 100644 --- a/api/user.js +++ b/api/user.js @@ -330,3 +330,21 @@ export function complainDetail(id) { return request.get('user/complainDetail', {params:{id}}) } + + +// 投诉驻 +export function organ(data) { + return request.post('user/organ', data) +} + + +// 投诉记录 +export function organRecord(params) { + return request.get('user/organRecord', {params}) +} + +// 投诉记录详情 +export function organDetail(id) { + return request.get('user/organDetail', {params:{id}}) +} + diff --git a/bundle/pages/address_edit/address_edit.vue b/bundle/pages/address_edit/address_edit.vue index c935e27..e6cb7bc 100644 --- a/bundle/pages/address_edit/address_edit.vue +++ b/bundle/pages/address_edit/address_edit.vue @@ -63,8 +63,8 @@ }, region: '', addressId: '', - defaultRegion: ['广东省', '广州市', '番禺区'], - defaultRegionCode: '440113', + defaultRegion: ['安徽省', '合肥市', '蜀山区'], + defaultRegionCode: '340100', showRegion: false, lists: [] }; diff --git a/bundle/pages/help/detail.vue b/bundle/pages/help/detail.vue new file mode 100644 index 0000000..0a33b1c --- /dev/null +++ b/bundle/pages/help/detail.vue @@ -0,0 +1,198 @@ + + + + diff --git a/bundle/pages/resource_details/resource_details.vue b/bundle/pages/resource_details/resource_details.vue index 86ec026..0dc4ff1 100644 --- a/bundle/pages/resource_details/resource_details.vue +++ b/bundle/pages/resource_details/resource_details.vue @@ -510,7 +510,8 @@ team_min_price .group { height: 100rpx; width: 100%; - background-image: url(../../../static/images/pintuan_bg.png); + // background-image: url(../../../static/images/pintuan_bg.png); + background-image: url("https://cdn.ahbcqz.com/uploads/images/20230705160002a981d0842.png"); background-size: 100%; .group-num { diff --git a/bundle/pages/user/organ.vue b/bundle/pages/user/organ.vue new file mode 100644 index 0000000..211a26a --- /dev/null +++ b/bundle/pages/user/organ.vue @@ -0,0 +1,344 @@ + + + + + diff --git a/bundle/pages/user/organ_recode.vue b/bundle/pages/user/organ_recode.vue new file mode 100644 index 0000000..eba5e97 --- /dev/null +++ b/bundle/pages/user/organ_recode.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/bundle/pages/user/organ_result.vue b/bundle/pages/user/organ_result.vue new file mode 100644 index 0000000..3246ec3 --- /dev/null +++ b/bundle/pages/user/organ_result.vue @@ -0,0 +1,191 @@ + + + + diff --git a/bundle_b/pages/community_detail/community_detail.vue b/bundle_b/pages/community_detail/community_detail.vue index 81ade2e..9d4dd88 100644 --- a/bundle_b/pages/community_detail/community_detail.vue +++ b/bundle_b/pages/community_detail/community_detail.vue @@ -95,6 +95,10 @@ + 区域:{{communityInfo.address}} + + + 联系人:{{communityInfo.contact_name}} diff --git a/bundle_b/pages/community_search/community_search.vue b/bundle_b/pages/community_search/community_search.vue index 164318a..1167527 100644 --- a/bundle_b/pages/community_search/community_search.vue +++ b/bundle_b/pages/community_search/community_search.vue @@ -79,7 +79,7 @@ auto: false, empty: { icon: '/static/images/news_null.png', - tip: "暂无种草文章", + tip: "暂无需求/服务", } }, keyword: '', @@ -204,7 +204,7 @@ }) } else { uni.setNavigationBarTitle({ - title: '种草搜索' + title: '任务大厅搜索' }); this.showHistory = true diff --git a/bundle_b/pages/published_works/published_works.vue b/bundle_b/pages/published_works/published_works.vue index 1c4a75b..b25f081 100644 --- a/bundle_b/pages/published_works/published_works.vue +++ b/bundle_b/pages/published_works/published_works.vue @@ -28,6 +28,13 @@ + + + + + + + @@ -111,11 +118,13 @@ @confirm="confirmSelect"> --> + + diff --git a/components/components/explore.vue b/components/components/explore.vue index bac3da0..9a0a985 100644 --- a/components/components/explore.vue +++ b/components/components/explore.vue @@ -12,7 +12,7 @@ - + @@ -41,7 +41,10 @@ props: { active: { type: Number - } + }, + cid:{ + type: Number + }, }, data() { return { @@ -49,12 +52,21 @@ name: '全部', id: '' }], + tabList1: [{ + name: '全部', + id: '' + }], current: 0., type:this.active == 2?0:1, + cate_id : 0, } }, watch: { + cid(){ + + }, active() { + if(this.active == 1){ this.type =1; }else if(this.active == 2){ @@ -66,11 +78,23 @@ this.initRecommendTopic() // this.mescroll.resetUpScroll() } + } }, + created() { this.initRecommendTopic() }, + onShow() { + console.log(1111) + let cid = uni.getStorageSync("cid") + uni.removeStorageSync("cid") + + if(cid!=undefined){ + this.cate_id = parseInt(cid) + } + + }, methods: { initMescroll(event) { this.isInit = true; // 标记为true @@ -84,15 +108,30 @@ changeTabs(event) { this.current = event; this.type =this.type; + this.cid = 0; }, // 初始化获取话题 initRecommendTopic() { + getCommunityCate2({'type':this.type}).then(res => { if( res.code === 1 ) { - this.tabList = [{ - name: '全部', - id: '' - }, ...res.data] + if(this.type == 1){ + this.tabList1 = [{ + name: '全部', + id: '' + }, ...res.data] + }else{ + this.tabList = [{ + name: '全部', + id: '' + }, ...res.data] + } + console.log("cate数据:",this.cid) + this.tabList1.forEach((item, index) => { + if(this.cid>0 && item.id == this.cid){ + this.current = index + } + }) } else { this.$toast({ title: res.msg }) } diff --git a/components/components/like-header.vue b/components/components/like-header.vue index 0532eb6..be21f41 100644 --- a/components/components/like-header.vue +++ b/components/components/like-header.vue @@ -16,13 +16,13 @@ 需求 - + @@ -37,16 +37,21 @@