From 84ea1f40b1f466ca3f6166ba3ebe4e4cb20f0b49 Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Sat, 26 Oct 2024 17:04:12 +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 | 1 +
api/api.js | 69 +++-
components/config/PrivacyAgreementPoup.vue | 4 +-
components/list/activityList.vue | 11 +-
components/list/dynamic/dynamicItem.vue | 207 +++++++++++
components/user/createDetailPopup.vue | 103 ++++++
config.js | 6 +-
mixins/list.js | 6 +
pages.json | 12 +-
pages/index/activity.vue | 18 +-
pages/index/index.vue | 404 +++------------------
pages_order/activity/activityDetail.vue | 137 +++++++
pages_order/auth/wxLogin.vue | 2 +-
pages_order/auth/wxUserInfo.vue | 2 +-
.../components/list/gourmet/gourmetItem.vue | 84 +++++
pages_order/components/list/workList/index.vue | 2 +-
pages_order/components/list/workList/workItem.vue | 19 +-
pages_order/gourmet/gourmetList.vue | 41 +++
pages_order/post/addPost.vue | 99 +++--
pages_order/renting/rentingDetail.vue | 89 +++--
pages_order/renting/rentingList.vue | 46 +--
.../{recruit/addRecruit.vue => work/addWork.vue} | 0
.../recruitDetail.vue => work/workDetail.vue} | 27 +-
.../{recruit/recruitList.vue => work/workList.vue} | 8 +-
store/store.js | 31 +-
25 files changed, 919 insertions(+), 509 deletions(-)
create mode 100644 components/list/dynamic/dynamicItem.vue
create mode 100644 components/user/createDetailPopup.vue
create mode 100644 pages_order/activity/activityDetail.vue
create mode 100644 pages_order/components/list/gourmet/gourmetItem.vue
create mode 100644 pages_order/gourmet/gourmetList.vue
rename pages_order/{recruit/addRecruit.vue => work/addWork.vue} (100%)
rename pages_order/{recruit/recruitDetail.vue => work/workDetail.vue} (89%)
rename pages_order/{recruit/recruitList.vue => work/workList.vue} (64%)
diff --git a/App.vue b/App.vue
index 8a83342..a99d304 100644
--- a/App.vue
+++ b/App.vue
@@ -4,6 +4,7 @@
},
onShow: function() {
// this.$store.commit('initConfig')
+ this.$store.commit('getCityList')
},
onHide: function() {
}
diff --git a/api/api.js b/api/api.js
index 0d1810e..1a6fd0b 100644
--- a/api/api.js
+++ b/api/api.js
@@ -17,7 +17,7 @@ const config = {
// 微信登录接口
wxLogin: {
url: '/login/login',
- method: 'POST',
+ method: 'GET',
limit : 500,
showLoading : true,
},
@@ -46,29 +46,86 @@ const config = {
//获取分类
getClassInfo: {
- url: '/api/city/getClassInfo',
+ url: '/city/getClassInfo',
method: 'GET',
},
//获取首页头部信息
getIndexHeaderInfo: {
- url: '/api/city/getIndexHeaderInfo',
+ url: '/city/getIndexHeaderInfo',
+ method: 'GET',
+ },
+ //获取banner列表
+ getBannerList: {
+ url: '/city/getBannerList',
+ method: 'GET',
+ },
+ //获取分类类型列表
+ getClassifyList: {
+ url: '/city/getClassifyList',
method: 'GET',
},
//获取工作信息列表
getJobPage: {
- url: '/api/city/getJobPage',
+ url: '/city/getJobPage',
+ method: 'GET',
+ },
+ //获取工作详情
+ getJobDetail: {
+ url: '/city/getJobDetail',
method: 'GET',
},
//根据分类获取租房信息列表
getRentPage: {
- url: '/api/city/getRentPage',
+ url: '/city/getRentPage',
+ method: 'GET',
+ },
+ //获取租房详情
+ getRentDetail: {
+ url: '/city/getRentDetail',
method: 'GET',
},
//根据分类获取动态帖子列表带分页
getPostPage: {
- url: '/api/city/getPostPage',
+ url: '/city/getPostPage',
+ method: 'GET',
+ },
+ //获取活动列表信息
+ getActivityPage: {
+ url: '/city/getActivityPage',
+ method: 'GET',
+ },
+ //获取活动详情
+ getActivityDetail: {
+ url: '/city/getActivityDetail',
+ method: 'GET',
+ },
+ //根据分类获取门店信息列表(美食)
+ getStorePage: {
+ url: '/city/getStorePage',
+ method: 'GET',
+ },
+ //发布按钮列表
+ getPublishList: {
+ url: '/city/getPublishList',
method: 'GET',
},
+ //获取城市列表服务区域
+ getCityList: {
+ url: '/city/getCityList',
+ method: 'GET',
+ },
+
+
+
+
+
+
+ //发布帖子\动态
+ publishPost: {
+ url: '/token/publishPost',
+ method: 'POST',
+ limit : 1000,
+ },
}
diff --git a/components/config/PrivacyAgreementPoup.vue b/components/config/PrivacyAgreementPoup.vue
index 6eda2c6..4367b5c 100644
--- a/components/config/PrivacyAgreementPoup.vue
+++ b/components/config/PrivacyAgreementPoup.vue
@@ -10,7 +10,7 @@
- 欢迎来到酒店布草!我们根据最新的法律法规、监管政策要求,更新了《用户协议》和《隐私政策》,请您认真阅读。
+ 欢迎来到瑶都万能墙!我们根据最新的法律法规、监管政策要求,更新了《用户协议》和《隐私政策》,请您认真阅读。
@@ -18,7 +18,7 @@
- 同意《酒店布草隐私政策》
+ 同意《瑶都万能墙隐私政策》
以及《用户协议》
diff --git a/components/list/activityList.vue b/components/list/activityList.vue
index a7fe7c9..ebbdf74 100644
--- a/components/list/activityList.vue
+++ b/components/list/activityList.vue
@@ -1,7 +1,7 @@
- 发布人:{{ item.userId }}
+ 发布人:{{ item.userName }}
-
- {{ item.dropNum?item.dropNum:0 }}
+ name="thumb-up"> -->
+ 浏览
+ {{ item.browseNum }}
diff --git a/components/list/dynamic/dynamicItem.vue b/components/list/dynamic/dynamicItem.vue
new file mode 100644
index 0000000..1e95743
--- /dev/null
+++ b/components/list/dynamic/dynamicItem.vue
@@ -0,0 +1,207 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 男性
+
+
+ 99年
+
+
+ 大路铺镇
+
+
+ 官方认证
+
+
+
+
+
+
+ {{ item.createTime }}发布
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.isBrowse }}浏览
+
+
+ {{ item.isComment }}条评论
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/user/createDetailPopup.vue b/components/user/createDetailPopup.vue
new file mode 100644
index 0000000..6e46a75
--- /dev/null
+++ b/components/user/createDetailPopup.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/config.js b/config.js
index d5dad7d..a08eef5 100644
--- a/config.js
+++ b/config.js
@@ -7,16 +7,16 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
-const type = 'prod'
+const type = 'dev'
// 环境配置
const config = {
dev : {
- baseUrl : 'http://h5.xzaiyp.top',
+ baseUrl : 'http://h5.xzaiyp.top/api',
},
prod : {
- baseUrl : 'https://admin.hhlm1688.com',
+ baseUrl : 'https://admin.hhlm1688.com/api',
}
}
diff --git a/mixins/list.js b/mixins/list.js
index 4962057..4f072f9 100644
--- a/mixins/list.js
+++ b/mixins/list.js
@@ -28,9 +28,15 @@ export default {
list : [],
}
},
+ onPullDownRefresh() {
+ this.getData()
+ },
onReachBottom() {
this.loadMoreData()
},
+ onShow() {
+ this.getData()
+ },
methods: {
getData(queryParams){
return new Promise((success, error) => {
diff --git a/pages.json b/pages.json
index dfb90ba..3cc84a8 100644
--- a/pages.json
+++ b/pages.json
@@ -87,19 +87,25 @@
"path": "renting/addRenting"
},
{
- "path": "recruit/recruitList"
+ "path": "work/workList"
},
{
- "path": "recruit/addRecruit"
+ "path": "work/addWork"
},
{
- "path": "recruit/recruitDetail"
+ "path": "work/workDetail"
},
{
"path": "post/postDetail"
},
{
"path": "post/addPost"
+ },
+ {
+ "path": "gourmet/gourmetList"
+ },
+ {
+ "path": "activity/activityDetail"
}
]
}],
diff --git a/pages/index/activity.vue b/pages/index/activity.vue
index ff97fd6..0706801 100644
--- a/pages/index/activity.vue
+++ b/pages/index/activity.vue
@@ -1,9 +1,11 @@
-
+
-
+
+
+
@@ -21,11 +23,7 @@
},
data() {
return {
- list : [
- {
- title : '这是一条活动',
- }
- ]
+ mixinsListApi : 'getActivityPage',
}
},
methods: {
@@ -35,5 +33,9 @@
diff --git a/pages/index/index.vue b/pages/index/index.vue
index ce1ba8c..dcc0942 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -3,6 +3,13 @@
+
+
+ 长沙
+
@@ -24,22 +31,22 @@
-
- {{ item.name }}
+ {{ item.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- 男性
-
-
- 99年
-
-
- 大路铺镇
-
-
- 官方认证
-
-
-
-
-
-
- {{ item.createTime }}发布
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.isBrowse }}浏览
-
-
- {{ item.isComment }}条评论
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -150,97 +71,49 @@
@@ -271,11 +140,20 @@
height: 100%;
}
.Headbackground {
- padding-top: 200rpx;
- display: flex;
- align-items: center;
+ padding-top: 150rpx;
background: linear-gradient(to bottom, rgb(85, 94, 123), rgb(45, 51, 73));
-
+ .Toggle{
+ margin: 10rpx 30rpx;
+ padding: 20rpx;
+ background-color: #00000022;
+ color: #fff;
+ border-radius: 40rpx;
+ width: fit-content;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 28rpx;
+ }
.top {
display: flex;
color: white;
@@ -346,173 +224,7 @@
}
}
- .works {
- margin: 40rpx 24rpx;
- background-color: #fff;
- padding: 40rpx;
- border-radius: 20rpx;
- box-shadow: 0 0 6rpx 6rpx #00000011;
-
- .box {
- display: flex;
- align-items: center;
-
- .headPortraitimg {
- width: 100rpx;
- height: 100rpx;
- background-color: greenyellow;
- border-radius: 15rpx;
- overflow: hidden;
- }
-
- .YaoduUniversalWall {
- padding: 0rpx 10rpx;
- .username{
- max-width: 200rpx;
- }
-
- .heide {
- display: flex;
- justify-content: center;
- align-items: center;
- }
-
- .inde {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 0rpx 10rpx;
- margin: 0rpx 5rpx;
- font-size: 20rpx;
- height: 30rpx;
- color: white;
- background-color: rgb(124, 136, 242);
- border-radius: 7rpx;
- flex-shrink: 0;
- }
-
- .authentication {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 0rpx 10rpx;
- margin: 0rpx 5rpx;
- font-size: 20rpx;
- height: 34rpx;
- padding: 0rpx 10rpx;
- color: white;
- background-color: #ffd036;
- border-radius: 7rpx;
- flex-shrink: 0;
- }
-
- .Times {
- display: flex;
- padding: 5rpx 0rpx;
- font-size: 20rpx;
- margin-top: 10rpx;
-
- .Month {
- margin: 0rpx 15rpx;
- }
- }
-
- }
- }
-
- .personalInformation {
- display: flex;
-
- .inde {
- font-size: 25rpx;
- padding: 0rpx 8rpx;
- }
-
- .authentication {
- font-size: 25rpx;
- }
- }
-
- .dynamics {
- margin-top: 20rpx;
- font-size: 28rpx;
- // font-weight: bold;
- // line-height: 35rpx;
- letter-spacing: 3rpx;
- }
-
- .Artworkimages {
- display: flex;
- flex-wrap: wrap;
-
- .wrokimg {
- margin: 10rpx;
-
- image {
- height: 190rpx;
- width: 190rpx;
- border-radius: 20rpx;
- }
- }
- }
-
- .bottom {
- display: flex;
-
- font-size: 20rpx;
-
- .browse {
- margin: 0rpx 30rpx;
- color: rgb(132, 132, 132);
- }
-
- .Leavingamessage {
- height: 20rpx;
- width: 20rpx;
- margin-left: auto;
- }
- }
- }
- .createDetail{
- position: fixed;
- top: 50vh;
- right: 50rpx;
- width: 100rpx;
- height: 100rpx;
- background-color: $uni-color-primary;
- border-radius: 50rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- box-shadow: 0 0 10rpx 10rpx rgba(#000, 0.1);
- }
- .createDetailPopup{
- padding: 20rpx;
- background-color: #ffffff;
- &>view{
- display: flex;
- align-items: center;
- padding: 24rpx;
- background-color: #f7f7f7;
- margin: 20rpx;
- border-radius: 20rpx;
- image{
- width: 100rpx;
- height: 100rpx;
- margin-right: 20rpx;
- }
- .info{
- .title{
- font-size: 30rpx;
- }
- .desc{
- font-size: 24rpx;
- }
- }
- .icon{
- margin-left: auto;
- }
- }
- }
+
+
\ No newline at end of file
diff --git a/pages_order/activity/activityDetail.vue b/pages_order/activity/activityDetail.vue
new file mode 100644
index 0000000..86329e9
--- /dev/null
+++ b/pages_order/activity/activityDetail.vue
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+ 发布人:{{ item.userName }}
+
+
+ 发布时间:{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue
index ec000ad..0fe75d8 100644
--- a/pages_order/auth/wxLogin.vue
+++ b/pages_order/auth/wxLogin.vue
@@ -4,7 +4,7 @@
- 欢迎使用酒店桌布租赁平台
+ 欢迎使用瑶都万能墙
diff --git a/pages_order/auth/wxUserInfo.vue b/pages_order/auth/wxUserInfo.vue
index f72f89c..bda1afb 100644
--- a/pages_order/auth/wxUserInfo.vue
+++ b/pages_order/auth/wxUserInfo.vue
@@ -1,7 +1,7 @@
- 酒店桌布租赁平台
+ 瑶都万能墙
申请获取你的头像、昵称
diff --git a/pages_order/components/list/gourmet/gourmetItem.vue b/pages_order/components/list/gourmet/gourmetItem.vue
new file mode 100644
index 0000000..6400cfd
--- /dev/null
+++ b/pages_order/components/list/gourmet/gourmetItem.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+ {{ item.title }}
+
+
+ {{ item.titleSub }}
+
+
+ 工作时间:
+ {{ item.workTime }}
+
+
+ {{ item.address }}
+
+
+
+
+
+
+
+
+
\ 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 c1444b3..40d5b59 100644
--- a/pages_order/components/list/workList/index.vue
+++ b/pages_order/components/list/workList/index.vue
@@ -5,7 +5,7 @@
@scrolltolower="loadMoreData">
diff --git a/pages_order/components/list/workList/workItem.vue b/pages_order/components/list/workList/workItem.vue
index b0e2c7d..041bcaa 100644
--- a/pages_order/components/list/workList/workItem.vue
+++ b/pages_order/components/list/workList/workItem.vue
@@ -5,25 +5,28 @@
{{ item.title }}
+ v-if="item.minPrice >= 1000">
- {{ (item.salaryLow / 1000).toFixed(0) }}
+ {{ (item.minPrice / 1000).toFixed(0) }}
- -{{ (item.salaryUp / 1000).toFixed(0) }}
+ v-if="item.maxPrice">
+ -{{ (item.maxPrice / 1000).toFixed(0) }}
K
- {{ item.salaryLow }}
+ {{ item.minPrice }}
-{{ item.salaryUp }}
+ v-if="item.maxPrice">-{{ item.maxPrice }}
+
+ {{ item.school }}
+
{{ t }}
@@ -31,7 +34,7 @@
- {{ item.userId }}
+ {{ item.address }}
diff --git a/pages_order/gourmet/gourmetList.vue b/pages_order/gourmet/gourmetList.vue
new file mode 100644
index 0000000..821cb0b
--- /dev/null
+++ b/pages_order/gourmet/gourmetList.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages_order/post/addPost.vue b/pages_order/post/addPost.vue
index 0caf007..28fd42e 100644
--- a/pages_order/post/addPost.vue
+++ b/pages_order/post/addPost.vue
@@ -7,34 +7,21 @@
-
+
-
-
- 选择分区
-
-
-
- {{ t.name }}
-
-
-
+
+
+
+ 选择分区
+
+
+
+ {{ t.title }}
+
+
+
+
+
- 2400元/月
- 整租·康卓新城 1室1卫
- 房源编号:HC42012205JC33V
- 今天10:33更新·浏览 168
+ {{ detail.money }}元/月
+ {{ detail.title }} {{ detail.home }}
+
+ {{ detail.titleSub }}
+ {{ detail.createTime }}更新 · 浏览 {{ detail.num }}
- 南
+ {{ detail.face }}
朝向
- 60
+ {{ detail.crm }}
面积
- 32层/32层
+ {{ detail.floor }}
楼层
- 精装
+ {{ detail.decoration }}
装修
@@ -44,21 +57,21 @@
付款:
- 季付
+ {{ detail.payment }}
电梯:
- 有
+ {{ detail.lift }}
交付:
- 即时交付
+ {{ detail.deliver }}
看房:
- 随时可看
+ {{ detail.showings }}
@@ -66,7 +79,7 @@
投诉:
- 199 1888 8888
+ {{ detail.phone }}
@@ -75,7 +88,7 @@
小区:
- 长岸江边新民小区
+ {{ detail.address }}
@@ -87,9 +100,10 @@
-
- 廖吃翔
- 新城国际花都
+
+ {{ detail.userId }}
+
@@ -106,12 +120,15 @@
export default {
data() {
return {
-
+ id : 0,
+ detail : {},
}
},
+ onLoad({id}) {
+ this.id = id
+ },
onShow() {
-
-
+ this.getData()
},
methods: {
clickShare() {
@@ -125,15 +142,37 @@
},
clickService() {
uni.makePhoneCall({
- phoneNumber: '10086',
+ phoneNumber: this.detail.phone,
});
},
-
+ getData(){
+ let data = {
+ id : this.id
+ }
+ if(uni.getStorageSync('token')){
+ data.token = uni.getStorageSync('token')
+ }
+ this.$api('getRentDetail', data, res => {
+ if(res.code == 200){
+ this.detail = res.result
+ }
+ })
+ },
}
}