Browse Source

Merge branch 'master' of http://175.178.51.79:3000/Augcl/houserent-front

# Conflicts:
#	manifest.json
master
主管理员 3 weeks ago
parent
commit
aef038b2e0
8 changed files with 33 additions and 23 deletions
  1. +0
    -2
      common/config.js
  2. +9
    -4
      pages/auth/index.vue
  3. +5
    -6
      pages/login/index.vue
  4. +1
    -1
      pages/tourGuide/tourGuide.vue
  5. +2
    -1
      pages/user/index.vue
  6. +0
    -2
      pages_subpack/detail/index.vue
  7. +3
    -3
      pages_subpack/house/index.vue
  8. +13
    -4
      util/request/responseInterceptors.js

+ 0
- 2
common/config.js View File

@ -3,6 +3,4 @@ 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'
}

+ 9
- 4
pages/auth/index.vue View File

@ -12,11 +12,11 @@
<image class="se-w-45 se-h-35" src="@/static/image/wechat.png" mode=""></image>
<text class="se-ml-10">微信登录</text>
</button>
<button @getuserinfo="onLogin"
style="margin-top: 30rpx;background-color: rgba(#0f0, 0.4);color: #0f0;"
<view @click="onJump()"
style="margin-top: 30rpx;color: #666;"
class="se-mx-80 se-br-40 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-32">
<text class="se-ml-10">取消登录</text>
</button>
</view>
<!-- <view class="se-mx-80 se-br-40 se-mt-40 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-32 se-c-66 se-bgc-f5">
<text>手机验证码登录</text>
</view> -->
@ -75,6 +75,11 @@
this.userYsObj = this.$utils.getkeyContent('user_ys')
},
methods: {
onJump(){
uni.switchTab({
url:"/pages/home/index"
})
},
open(){
this.$refs.popup.open();
},
@ -128,7 +133,7 @@
let userInfo =response.result.userInfo
if(!userInfo.nickName
|| !userInfo.phone){
|| !userInfo.phone || !userInfo.headImage){
uni.navigateTo({
url:"/pages/login/index"
})


+ 5
- 6
pages/login/index.vue View File

@ -53,10 +53,10 @@
}
},
onLoad(options) {
this.imagUrl = uni.getStorageSync('userInfo').headImage
this.nameUser = uni.getStorageSync('userInfo').nickName
this.phone = uni.getStorageSync('userInfo').phone
if(options.back==1){
this.imagUrl = uni.getStorageSync('userInfo').headImage
this.nameUser = uni.getStorageSync('userInfo').nickName
this.phone = uni.getStorageSync('userInfo').phone
this.back = options.back
}
},
@ -78,12 +78,11 @@
code : detail.code,
encryptedData: detail.encryptedData,
iv:detail.iv,
sessionKey: uni.getStorageSync('sessionKey'),
openid:uni.getStorageSync('userInfo').appletOpenid
}
bindPhone(params).then((response) => {
console.info(response)
that.phone = response.result
let data = JSON.parse(response.result)
that.phone = data.phone_info.phoneNumber
}).catch(error=>{
})


+ 1
- 1
pages/tourGuide/tourGuide.vue View File

@ -123,7 +123,7 @@ export default {
return markers;
},
},
created() {
mounted() {
this.getCurrentLocation()
this.onHouseType() //
this.onHousePageList() //


+ 2
- 1
pages/user/index.vue View File

@ -15,7 +15,8 @@
font-size: 24rpx;
align-items: center;
border-radius: 20rpx;
padding: 4rpx 10rpx;">
padding: 4rpx 10rpx;
margin-left: 10rpx;">
<uv-icon
name="level"
size="40rpx"


+ 0
- 2
pages_subpack/detail/index.vue View File

@ -13,8 +13,6 @@
</view>
</view>
<view class="se-pr-30 se-flex se-flex-v-c">
<button style="justify-content: center;" class="se-w-140 se-flex se-flex-ai-c se-h-60 se-lh-60 se-fs-22 se-bgc-green se-c-white se-py-0 se-br-30 se-px-20 se-m-0" open-type="share">
<uv-icon name="share" color="#fff"></uv-icon>
<text class="se-fs-20 se-pl-5">分享</text>


+ 3
- 3
pages_subpack/house/index.vue View File

@ -867,13 +867,13 @@
image:that.form.ownershipList.map(item => item.url).join(','),//
iconImage:"",//
homeImage:that.form.houseList.map(item => item.url).join(','),//
homeMp4:that.form.mp4List.map(item => item.url).join(','),//
homeMp4:that.form.mp4List ? that.form.mp4List.map(item => item.url).join(',') : "",//
latitude:that.form.latitude,
longitude:that.form.longitude
}
console.log(that.form);
console.log(params);
// console.log(that.form);
// console.log(params);
if(this.$utils.verificationAll(params, {
image : '请上传房屋照片',


+ 13
- 4
util/request/responseInterceptors.js View File

@ -21,9 +21,18 @@ export const responseInterceptors = (vm) => {
return Promise.reject(data)
}
}, (response) => { /* 对响应错误做点什么 (statusCode !== 200)*/
console.info('interceptors.response---------',data)
return Promise.reject(response)
}, (response) => {
const data = response.data
console.info('responseresponse',data)
if(data.code === 401){
uni.removeStorageSync('token')
uni.removeStorageSync('userInfo')
uni.removeStorageSync('sessionKey')
uni.navigateTo({
url:"/pages/auth/index"
})
return;
}
return Promise.reject(response)
})
}

Loading…
Cancel
Save