Browse Source

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

# Conflicts:
#	config.js
#	manifest.json
#	pages/login/index.vue
#	pages/user/index.vue
master
前端-胡立永 2 days ago
parent
commit
551f5b2b5c
8 changed files with 43 additions and 34 deletions
  1. +0
    -2
      common/config.js
  2. +12
    -11
      config.js
  3. +9
    -4
      pages/auth/index.vue
  4. +5
    -7
      pages/login/index.vue
  5. +1
    -1
      pages/tourGuide/tourGuide.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

@ -4,6 +4,4 @@ export default {
baseUrl:'https://houserent-admin.hhlm1688.com', baseUrl:'https://houserent-admin.hhlm1688.com',
// baseUrl:'http://augcl.natapp1.cc', // baseUrl:'http://augcl.natapp1.cc',
// baseUrl:'http://h5.xzaiyp.top' // baseUrl:'http://h5.xzaiyp.top'
// baseUrl:'https://houserent-admin.hhlm1688.com'
// baseUrl:'http://h5.xzaiyp.top'
} }

+ 12
- 11
config.js View File

@ -1,9 +1,11 @@
import Vue from 'vue' import Vue from 'vue'
import utils from './utils/utils.js' import utils from './utils/utils.js'
// 移除重复的 uvUI 导入和初始化,已在 main.js 中处理
import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境 // 当前环境
const type = 'dev'
const type = 'prod'
// 环境配置 // 环境配置
@ -15,8 +17,7 @@ const config = {
baseUrl : 'http://augcl.natapp1.cc/employ-api', baseUrl : 'http://augcl.natapp1.cc/employ-api',
}, },
prod : { prod : {
baseUrl : 'https://houserent-admin.hhlm1688.com/employ-api',
// baseUrl : 'https://employadmin.augcl.com/employ-api',
baseUrl : 'https://employadmin.augcl.com/employ-api',
} }
} }
@ -24,18 +25,18 @@ const config = {
// 默认配置 // 默认配置
const defaultConfig = { const defaultConfig = {
mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU', mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
aliOss: {
url: 'https://image.hhlm1688.com/',
config: {
aliOss : {
url : 'https://image.hhlm1688.com',
config : {
//桶的地址 //桶的地址
region: 'oss-cn-guangzhou',
region: 'oss-cn-shenzhen',
//id //id
accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9',
accessKeyId:'LTAI5tQSs47izVy8DLVdwUU9',
//密钥 //密钥
accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
accessKeySecret:'qHI7C3PaXYZySr84HTToviC71AYlFq',
//桶的名字 //桶的名字
bucket: 'hanhaiimage', bucket: 'hanhaiimage',
endpoint: 'oss-cn-shenzhen.aliyuncs.com',
endpoint:'oss-cn-shenzhen.aliyuncs.com',
} }
}, },
} }


+ 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> <image class="se-w-45 se-h-35" src="@/static/image/wechat.png" mode=""></image>
<text class="se-ml-10">微信登录</text> <text class="se-ml-10">微信登录</text>
</button> </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"> 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> <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"> <!-- <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> <text>手机验证码登录</text>
</view> --> </view> -->
@ -75,6 +75,11 @@
this.userYsObj = this.$utils.getkeyContent('user_ys') this.userYsObj = this.$utils.getkeyContent('user_ys')
}, },
methods: { methods: {
onJump(){
uni.switchTab({
url:"/pages/home/index"
})
},
open(){ open(){
this.$refs.popup.open(); this.$refs.popup.open();
}, },
@ -128,7 +133,7 @@
let userInfo =response.result.userInfo let userInfo =response.result.userInfo
if(!userInfo.nickName if(!userInfo.nickName
|| !userInfo.phone){
|| !userInfo.phone || !userInfo.headImage){
uni.navigateTo({ uni.navigateTo({
url:"/pages/login/index" url:"/pages/login/index"
}) })


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

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


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

@ -237,7 +237,7 @@ export default {
this.$refs.dropDown.init(); this.$refs.dropDown.init();
} }
}, },
created() {
mounted() {
this.getCurrentLocation() this.getCurrentLocation()
this.onHouseType() // this.onHouseType() //
//this.getUserInfo() // //this.getUserInfo() //


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

@ -13,8 +13,6 @@
</view> </view>
</view> </view>
<view class="se-pr-30 se-flex se-flex-v-c"> <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"> <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> <uv-icon name="share" color="#fff"></uv-icon>
<text class="se-fs-20 se-pl-5">分享</text> <text class="se-fs-20 se-pl-5">分享</text>


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

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


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

@ -21,9 +21,18 @@ export const responseInterceptors = (vm) => {
return Promise.reject(data) 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