@@ -54,21 +54,25 @@ | |||
</view> | |||
</view> | |||
<view class="Pinspeak" v-if="shifoinfo==0">顾问</view> | |||
<view class="chented" v-if="shifoinfo==0" @click="clickShowhid()"> | |||
<view class="title" style="border: none;"> | |||
<view class="titletext">接待顾问</view> | |||
<view class="titletext2" | |||
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;"> | |||
<!-- {{text || '请选择接待顾问'}} --> | |||
<text v-if="text" style="color: #333333;">{{text}}</text> | |||
<text v-else>请选择接待顾问</text> | |||
</view> | |||
<view class="titleimg"> | |||
<image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image> | |||
<template v-if="shifoinfo==0"> | |||
<view class="Pinspeak">顾问</view> | |||
<view class="chented" @click="clickShowhid()"> | |||
<view class="title" style="border: none;"> | |||
<view class="titletext">接待顾问</view> | |||
<view class="titletext2" | |||
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;"> | |||
<!-- {{text || '请选择接待顾问'}} --> | |||
<text v-if="text" style="color: #333333;">{{text}}</text> | |||
<text v-else>请选择接待顾问</text> | |||
</view> | |||
<view class="titleimg"> | |||
<image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image> | |||
</view> | |||
</view> | |||
</view> | |||
</view> | |||
</template> | |||
<view class="clive" @click.stop="$noMultipleClicks(save)" :style="{background:(isBand==false?'#2671E2':'#949494')}">确定</view> | |||
@@ -126,6 +130,11 @@ | |||
fdFlag:null | |||
}; | |||
}, | |||
computed: { | |||
}, | |||
onShow() { | |||
this.parames.projectId = uni.getStorageSync('buildingID').id; | |||
console.log(this.$u) | |||
@@ -1,8 +1,8 @@ | |||
// http.js使用域名 | |||
const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 | |||
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 | |||
// const baseUrl = 'http://192.168.31.211:8080/api';// 泽明 | |||
// const baseUrl = 'http://localhost:8080/autoSR/api'; // 本地 | |||
// const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 | |||
const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 | |||
// const baseUrl = 'http://192.168.31.86:9090/api'; // 盛浩 | |||
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||
@@ -1,5 +1,6 @@ | |||
import { baseUrl } from './domain.js' | |||
import { | |||
baseUrl | |||
} from './domain.js' | |||
const install = (Vue, vm) => { | |||
Vue.prototype.$u.http.setConfig({ | |||
@@ -7,44 +8,44 @@ const install = (Vue, vm) => { | |||
loadingText: '加载中~', | |||
loadingTime: 800, | |||
}); | |||
// 请求拦截,如果有token,携带token | |||
Vue.prototype.$u.http.interceptor.request = (config) => { | |||
const token = uni.getStorageSync('weapp_session_login_data'); | |||
if(token){ | |||
config.header['Access-Token'] = token.token; | |||
} | |||
return config | |||
} | |||
// 响应拦截,公共错误处理 | |||
Vue.prototype.$u.http.interceptor.response = (res) => { | |||
if(res.code == 10000) { | |||
return res.data; | |||
}else if(res.code == 10003 || res.code == 20006){ | |||
uni.hideToast(); | |||
uni.showToast({ | |||
icon:"none", | |||
title:"您的登录已失效,请重新登录", | |||
duration: 2000 | |||
}) | |||
uni.clearStorageSync(); | |||
setTimeout(function () { | |||
uni.reLaunch({ | |||
url: '/pages/login/index' | |||
}); | |||
},2000); | |||
return false; | |||
}else{ | |||
uni.hideLoading(); | |||
uni.showToast({ | |||
icon:"none", | |||
title:res.message, | |||
duration: 3000 | |||
}) | |||
return false; | |||
} | |||
} | |||
// 请求拦截,如果有token,携带token | |||
Vue.prototype.$u.http.interceptor.request = (config) => { | |||
const token = uni.getStorageSync('weapp_session_login_data'); | |||
if (token) { | |||
config.header['Access-Token'] = token.token; | |||
} | |||
return config | |||
} | |||
// 响应拦截,公共错误处理 | |||
Vue.prototype.$u.http.interceptor.response = (res) => { | |||
if (res.code == 10000) { | |||
return res.data; | |||
} else if (res.code == 10003 || res.code == 20006) { | |||
uni.hideToast(); | |||
uni.showToast({ | |||
icon: "none", | |||
title: "您的登录已失效,请重新登录", | |||
duration: 2000 | |||
}) | |||
uni.clearStorageSync(); | |||
setTimeout(function() { | |||
uni.reLaunch({ | |||
url: '/pages/login/index' | |||
}); | |||
}, 2000); | |||
return false; | |||
} else { | |||
uni.hideLoading(); | |||
uni.showToast({ | |||
icon: "none", | |||
title: res.message, | |||
duration: 3000 | |||
}) | |||
return false; | |||
} | |||
} | |||
} | |||
export default { | |||
install | |||
} | |||
} |