From 34251b7b000d79934d88a1baa922697dc4a2dfba Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Sun, 27 Oct 2024 17:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 + api/api.js | 24 +++- components/base/tabbar.vue | 22 +++- components/list/dynamic/dynamicItem.vue | 57 +++++--- components/user/certificationPopup.vue | 3 +- components/user/createDetailPopup.vue | 12 +- components/user/customerServicePopup.vue | 142 ++++++++++++++++++++ components/user/sharePopup.vue | 46 +++++++ dict/dict.js | 14 ++ mixins/sex.js | 30 +++++ pages.json | 6 + pages/index/center.vue | 86 +++++++++--- pages/index/index.vue | 114 ++++++++++++++-- pages/index/message.vue | 1 + .../auth/loginAndRegisterAndForgetPassword.vue | 2 +- pages_order/auth/wxUserInfo.vue | 89 ++++++++----- .../components/list/gourmet/gourmetItem.vue | 90 ++++++++----- .../components/list/scenicSpot/scenicSpotItem.vue | 77 +++++++++++ pages_order/components/list/workList/index.vue | 4 +- pages_order/gourmet/gourmetList.vue | 22 +++- pages_order/post/addPost.vue | 146 ++++++++++++++------- pages_order/renting/rentingList.vue | 14 +- pages_order/scenicSpot/scenicSpotList.vue | 57 ++++++++ pages_order/work/workList.vue | 24 +++- static/image/cart/1.png | Bin 1933 -> 0 bytes static/image/center/1.png | Bin 1215 -> 0 bytes static/image/center/11.svg | 1 - static/image/center/2.png | Bin 6235 -> 0 bytes static/image/center/3.png | Bin 6082 -> 0 bytes static/image/center/4.png | Bin 1783 -> 0 bytes static/image/center/5.png | Bin 2887 -> 0 bytes static/image/center/6.png | Bin 2123 -> 0 bytes static/image/center/7.png | Bin 2439 -> 0 bytes static/image/center/8.png | Bin 2576 -> 0 bytes static/image/center/9.png | Bin 2167 -> 0 bytes static/image/home/0.png | Bin 14285 -> 0 bytes static/image/home/1.png | Bin 13719 -> 0 bytes static/image/home/2.png | Bin 12604 -> 0 bytes static/image/home/3.png | Bin 11689 -> 0 bytes static/image/home/address-icon.png | Bin 1407 -> 0 bytes static/image/home/arrow-icon.png | Bin 296 -> 0 bytes static/image/home/cart.png | Bin 0 -> 10995 bytes static/image/home/photo.png | Bin 0 -> 7719 bytes static/image/home/search-icon.png | Bin 1873 -> 0 bytes static/image/tabbar/cart-a.png | Bin 958 -> 0 bytes static/image/tabbar/cart.png | Bin 953 -> 0 bytes static/image/tabbar/category-a.png | Bin 1139 -> 0 bytes static/image/tabbar/category.png | Bin 1183 -> 0 bytes static/image/tabbar/center-a.png | Bin 915 -> 0 bytes static/image/tabbar/center.png | Bin 937 -> 0 bytes static/image/tabbar/home-a.png | Bin 2280 -> 0 bytes static/image/tabbar/home.png | Bin 2208 -> 0 bytes static/image/tabbar/order-a.png | Bin 691 -> 0 bytes static/image/tabbar/order.png | Bin 736 -> 0 bytes uni.scss | 1 + utils/index.js | 10 +- 56 files changed, 901 insertions(+), 199 deletions(-) create mode 100644 components/user/customerServicePopup.vue create mode 100644 components/user/sharePopup.vue create mode 100644 dict/dict.js create mode 100644 mixins/sex.js create mode 100644 pages_order/components/list/scenicSpot/scenicSpotItem.vue create mode 100644 pages_order/scenicSpot/scenicSpotList.vue delete mode 100644 static/image/cart/1.png delete mode 100644 static/image/center/1.png delete mode 100644 static/image/center/11.svg delete mode 100644 static/image/center/2.png delete mode 100644 static/image/center/3.png delete mode 100644 static/image/center/4.png delete mode 100644 static/image/center/5.png delete mode 100644 static/image/center/6.png delete mode 100644 static/image/center/7.png delete mode 100644 static/image/center/8.png delete mode 100644 static/image/center/9.png delete mode 100644 static/image/home/0.png delete mode 100644 static/image/home/1.png delete mode 100644 static/image/home/2.png delete mode 100644 static/image/home/3.png delete mode 100644 static/image/home/address-icon.png delete mode 100644 static/image/home/arrow-icon.png create mode 100644 static/image/home/cart.png create mode 100644 static/image/home/photo.png delete mode 100644 static/image/home/search-icon.png delete mode 100644 static/image/tabbar/cart-a.png delete mode 100644 static/image/tabbar/cart.png delete mode 100644 static/image/tabbar/category-a.png delete mode 100644 static/image/tabbar/category.png delete mode 100644 static/image/tabbar/center-a.png delete mode 100644 static/image/tabbar/center.png delete mode 100644 static/image/tabbar/home-a.png delete mode 100644 static/image/tabbar/home.png delete mode 100644 static/image/tabbar/order-a.png delete mode 100644 static/image/tabbar/order.png diff --git a/App.vue b/App.vue index a99d304..cfedc98 100644 --- a/App.vue +++ b/App.vue @@ -21,5 +21,11 @@ } .page{ padding-top: var(--window-top); + + } + .pageList{ + /deep/ .uv-search__content__input{ + padding: 10rpx !important; + } } diff --git a/api/api.js b/api/api.js index 00af5ed..e510310 100644 --- a/api/api.js +++ b/api/api.js @@ -91,11 +91,16 @@ const config = { url: '/city/getRentDetail', method: 'GET', }, - //根据分类获取动态帖子列表带分页 + //获取动态帖子列表 getPostPage: { url: '/city/getPostPage', method: 'GET', }, + //获取帖子详情 + getPostDetail: { + url: '/city/getPostDetail', + method: 'GET', + }, //获取活动列表信息 getActivityPage: { url: '/city/getActivityPage', @@ -121,6 +126,11 @@ const config = { url: '/city/getCityList', method: 'GET', }, + //获取景点列表带分页 + getScenicPage: { + url: '/city/getScenicPage', + method: 'GET', + }, @@ -134,6 +144,18 @@ const config = { limit : 1000, auth : true, }, + //查询自己发布的动态 + getMyPostPage: { + url: '/token/getMyPostPage', + method: 'GET', + auth : true, + }, + //删除自己发布的动态 + deletePost: { + url: '/token/deletePost', + method: 'POST', + auth : true, + }, //店铺认证 companyAuthentication: { url: '/token/companyAuthentication', diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue index 444ba15..fbb0adf 100644 --- a/components/base/tabbar.vue +++ b/components/base/tabbar.vue @@ -9,9 +9,13 @@ v-if="!item.isNotShop || !userShop" @click="toPath(item, index)"> - + item.iconPath" class="icon-image" mode=""> --> + {{ item.title }} @@ -36,25 +40,29 @@ "selectedIconPath": "/static/image/tabbar/home-a.png", "iconPath": "/static/image/tabbar/home.png", "pagePath": "/pages/index/index", - "title": "首页" + "title": "首页", + icon : 'home', }, { "selectedIconPath": "/static/image/tabbar/order-a.png", "iconPath": "/static/image/tabbar/order.png", "pagePath": "/pages/index/activity", - "title": "活动" + "title": "活动", + icon : 'gift', }, { "selectedIconPath": "/static/image/tabbar/cart-a.png", "iconPath": "/static/image/tabbar/cart.png", "pagePath": "/pages/index/message", "title": "消息", + icon : 'chat', }, { "selectedIconPath": "/static/image/tabbar/center-a.png", "iconPath": "/static/image/tabbar/center.png", "pagePath": "/pages/index/center", - "title": "我的" + "title": "我的", + icon : 'account', } ] }; @@ -100,6 +108,10 @@ .icon{ width: 54rpx; height: 54rpx; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; .icon-image{ width: 54rpx; height: 54rpx; diff --git a/components/list/dynamic/dynamicItem.vue b/components/list/dynamic/dynamicItem.vue index 048651b..ba45c81 100644 --- a/components/list/dynamic/dynamicItem.vue +++ b/components/list/dynamic/dynamicItem.vue @@ -1,25 +1,34 @@ \ No newline at end of file diff --git a/components/user/sharePopup.vue b/components/user/sharePopup.vue new file mode 100644 index 0000000..084cc99 --- /dev/null +++ b/components/user/sharePopup.vue @@ -0,0 +1,46 @@ + + + + + \ No newline at end of file diff --git a/dict/dict.js b/dict/dict.js new file mode 100644 index 0000000..3a2664f --- /dev/null +++ b/dict/dict.js @@ -0,0 +1,14 @@ + + +export default { + sex : { + 男 : { + name : 'man', + color : '#5baaff', + }, + 女 : { + name : 'woman', + color : '#ff50b3', + }, + }, +} \ No newline at end of file diff --git a/mixins/sex.js b/mixins/sex.js new file mode 100644 index 0000000..94bf59e --- /dev/null +++ b/mixins/sex.js @@ -0,0 +1,30 @@ + + +export default { + data() { + return { + sex : { + 男 : { + name : 'man', + color : '#5baaff', + }, + 女 : { + name : 'woman', + color : '#ff50b3', + }, + }, + sexList : [ + { + value : '男', + icon : 'man', + actColor : '#5baaff', + }, + { + value : '女', + icon : 'woman', + actColor : '#ff50b3', + }, + ], + } + }, +} \ No newline at end of file diff --git a/pages.json b/pages.json index 8ea147b..430e449 100644 --- a/pages.json +++ b/pages.json @@ -127,6 +127,12 @@ "style": { "enablePullDownRefresh" : true } + }, + { + "path": "scenicSpot/scenicSpotList", + "style": { + "enablePullDownRefresh" : true + } } ] }], diff --git a/pages/index/center.vue b/pages/index/center.vue index b615e26..6f339b3 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -8,43 +8,45 @@ + :src="userInfo.headImage" + mode="aspectFill"> - + 设置 - 狐友1712378974678376 + {{ userInfo.nickName || '墙友1712378974678376' }} - + - 未认证 + {{ auth[userInfo.idCardOpen] || '未认证' }} - 你已经成为狐友133天啦~ + - 2 + 0 关注 - - | @@ -62,12 +64,22 @@ - - + + + + @@ -76,18 +88,31 @@ \ No newline at end of file diff --git a/pages_order/components/list/workList/index.vue b/pages_order/components/list/workList/index.vue index 40d5b59..779552a 100644 --- a/pages_order/components/list/workList/index.vue +++ b/pages_order/components/list/workList/index.vue @@ -39,8 +39,10 @@ } }, methods: { - getData(){ + getData(title){ + this.queryParams.title = title this.$api(this.api, this.queryParams, res => { + uni.stopPullDownRefresh() if(res.code == 200){ this.list = res.result.records || res.result this.total = res.result.total || res.result.length diff --git a/pages_order/gourmet/gourmetList.vue b/pages_order/gourmet/gourmetList.vue index 821cb0b..8f13990 100644 --- a/pages_order/gourmet/gourmetList.vue +++ b/pages_order/gourmet/gourmetList.vue @@ -1,7 +1,18 @@