diff --git a/common/api.js b/common/api.js index f261296..7c3a8a7 100644 --- a/common/api.js +++ b/common/api.js @@ -10,6 +10,8 @@ export const fetchMenu = (params, config = {}) => http.get('/applet/index/getRec // 微信登录接口 export const wxLogin = (params) => http.get('/api/login/login', {params:params}) +export const bindPhone = (params) => http.get('/houserent-admin/login_common/bindPhone', {params:params}) + // 微信登录接口 export const appletLogin = (params) => http.get('/houserent-admin/login_common/appletLogin', {params:params}) @@ -58,3 +60,20 @@ export const MyHousePageList = (params) => http.get('/houserent-admin/common_ind export const MyVipPageList = (params) => http.get('/houserent-admin/common_index/getMyVipPageList', {params,params}) // 删除 export const deleteHouse = (params) => http.get('/houserent-admin/common_index/deleteHouse', {params,params}) + +// 发表评论 +export const saveComment = (data) => http.post('/houserent-admin/comment/saveComment', data) +// 发表评论列表 +export const commentPageList = (params) => http.get('/houserent-admin/comment/getCommentPageList', {params,params}) + +// 房源搜索条件-区域 +export const houseArea = (params) => http.get('/houserent-admin/comment/getHouseArea', {params,params}) +// 房源搜索条件-类型 +export const houseIconClass = (params) => http.get('/houserent-admin/comment/getHouseIconClass', {params,params}) +// 房源搜索条件-价格 +export const housePrice = (params) => http.get('/houserent-admin/comment/getHousePrice', {params,params}) +// 房源搜索条件-年限 +export const houseYear = (params) => http.get('/houserent-admin/comment/getHouseYear', {params,params}) +// 经济人获取账号密码以及邀请码 +export const accountCode = (params) => http.get('/houserent-admin/comment/getAccountCode', {params,params}) + diff --git a/common/config.js b/common/config.js index 40e9a67..909021e 100644 --- a/common/config.js +++ b/common/config.js @@ -1,5 +1,5 @@ export default { // baseUrl: 'https://api.book118.com', - baseUrl:'https://houserent-admin.hhlm1688.com' - // baseUrl:'http://h5.xzaiyp.top' + // baseUrl:'https://houserent-admin.hhlm1688.com' + baseUrl:'http://h5.xzaiyp.top' } \ No newline at end of file diff --git a/main.js b/main.js index 3a14cfb..90979dd 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,7 @@ import App from './App' import uvUI from '@/uni_modules/uv-ui-tools' import { Request } from '@/util/request/index' + import Vue from 'vue' diff --git a/pages.json b/pages.json index 9e0b1ba..88b6283 100644 --- a/pages.json +++ b/pages.json @@ -68,6 +68,12 @@ "navigationBarTitleText": "分类" } }, + { + "path": "broker-account/index", + "style": { + "navigationBarTitleText": "经纪人账号" + } + }, { "path": "detail/index", "style": { diff --git a/pages/auth/index.vue b/pages/auth/index.vue index b34d51b..233ba47 100644 --- a/pages/auth/index.vue +++ b/pages/auth/index.vue @@ -110,13 +110,14 @@ iv:event.detail.iv, nickName:event.detail.userInfo.nickName, session_key:"", - shareId:"", + shareId:uni.getStorageSync('userId'), vid:"" } appletLogin(params).then((response) => { console.info(`response`,response) uni.hideLoading() uni.setStorageSync('token', response.result.token) + uni.setStorageSync('sessionKey', response.result.userInfo.sessionKey) uni.setStorageSync('userInfo', response.result.userInfo) // that.commit('setUserInfo',{userInfo:response.result.userInfo,token:response.result.token}) getInfo({}).then(result=>{ diff --git a/pages/discover/index.vue b/pages/discover/index.vue index 397478f..aa2e9df 100644 --- a/pages/discover/index.vue +++ b/pages/discover/index.vue @@ -2,12 +2,12 @@ - + {{items.title}} - 450万 - 罗湖 莲塘 + {{items.price}}元 + {{items.address}} diff --git a/pages/home/index.vue b/pages/home/index.vue index 10cfe89..aa792b3 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -6,10 +6,9 @@ {{city?city:'未知'}} - - + + - @@ -133,7 +132,30 @@ list:[] } }, - mounted() { + onShareAppMessage() { + let share = { + title:"首页分享", + path:"/pages/home/index?userId="+uni.getStorageSync('userInfo').id, + success:(res) => { + console.info(res) + }, + fail:(err)=>{ + console.info(err) + } + } + console.info(share) + return share + }, + onLoad(options) { + //#ifdef MP-WEIXIN + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }); + //#endif + if(options.userId){ + uni.setStorageSync('userId',options.userId) + } uni.chooseAddress({ success(res) { console.info(res) @@ -147,6 +169,7 @@ // this.onGetConfig() this.$store.commit('initConfig') }, + onPullDownRefresh() { let that = this that.pageNo = 1 @@ -194,6 +217,11 @@ }) }, + onSearch(){ + uni.navigateTo({ + url:"/pages_subpack/category/index" + }) + }, onLogin(){ console.info("onLogin") uni.navigateTo({ diff --git a/pages/login/index.vue b/pages/login/index.vue index 8383669..7f15fd5 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -23,6 +23,15 @@ + + 手机号 + + + + @@ -33,13 +42,14 @@ diff --git a/pages/user/index.vue b/pages/user/index.vue index 9cfdc93..5bf2e60 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -46,6 +46,15 @@ --> + + + + 经纪人账号 + + + + + @@ -103,6 +112,7 @@ methods: { onInfo(){ let that = this + that.user = uni.getStorageSync('userInfo') getInfo({}).then(response=>{ that.user = response.result console.info('response',response) @@ -125,6 +135,11 @@ url:"/pages_subpack/version/index" }) }, + onBrokerAccount(){ + uni.navigateTo({ + url:"/pages_subpack/broker-account/index" + }) + }, onCustomerService(){ let that = this let obj = that.$utils.getkeyContent('phone') diff --git a/pages_subpack/broker-account/index.vue b/pages_subpack/broker-account/index.vue new file mode 100644 index 0000000..82f9f1d --- /dev/null +++ b/pages_subpack/broker-account/index.vue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/pages_subpack/broker-center/index.vue b/pages_subpack/broker-center/index.vue index 0da4e53..5bb8deb 100644 --- a/pages_subpack/broker-center/index.vue +++ b/pages_subpack/broker-center/index.vue @@ -38,7 +38,7 @@ - 编辑 + 编辑 删除 @@ -117,6 +117,11 @@ url:"/pages_subpack/detail/index?id="+event.id }) }, + onEdit(event){ + uni.navigateTo({ + url:"/pages_subpack/house/index?id="+event.id + }) + }, onDelete(event){ let that = this; uni.showModal({ diff --git a/pages_subpack/category/component/search.vue b/pages_subpack/category/component/search.vue index de3c9a6..60e804c 100644 --- a/pages_subpack/category/component/search.vue +++ b/pages_subpack/category/component/search.vue @@ -27,6 +27,7 @@ \ No newline at end of file diff --git a/pages_subpack/house/index.vue b/pages_subpack/house/index.vue index 5e136d7..c0d0ebc 100644 --- a/pages_subpack/house/index.vue +++ b/pages_subpack/house/index.vue @@ -7,11 +7,23 @@ + + + - - + + + + + + + + + + + @@ -20,55 +32,88 @@ + + + + + + + + + + + + + + + + + + + + + - + - + - + - + + + + + + + + + - + - + - + - + @@ -84,6 +129,12 @@ + + + + + + @@ -91,12 +142,12 @@ - + - @@ -108,11 +159,14 @@ + + +