bug修改
This commit is contained in:
parent
8c7965638e
commit
65e5c884fa
@ -1,7 +1,7 @@
|
||||
// 应用全局配置
|
||||
module.exports = {
|
||||
// baseUrl: 'https://www.nuoyunr.com',
|
||||
baseUrl: 'http://192.168.1.4:48080',
|
||||
baseUrl: 'https://www.nuoyunr.com',
|
||||
// baseUrl: 'http://192.168.1.4:48080',
|
||||
// baseUrl: "http://localhost:48080",
|
||||
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
|
||||
baseImageUrl: 'https://www.nuoyunr.com/minio/',
|
||||
|
@ -112,8 +112,20 @@
|
||||
},
|
||||
//获取当前登录用户信息
|
||||
async getServer() {
|
||||
await getUserInfoRequest()
|
||||
this.customInfo = JSON.parse(getUserInfo())
|
||||
request({
|
||||
url: "/userClient/customer/getUserCustomer",
|
||||
method: 'get',
|
||||
params:{}
|
||||
}).then(res=>{
|
||||
if(!res.data){
|
||||
uni.reLaunch({
|
||||
url: '/pages/my/register'
|
||||
})
|
||||
}else{
|
||||
setUserInfo(JSON.stringify(res.data))
|
||||
this.customInfo = res.data
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
<view class="card">
|
||||
<view class="formItem">
|
||||
<text class="formLabel">车牌号</text>
|
||||
<input type="text" placeholder="请输入文本" v-model="car.licenseNumber"/>
|
||||
<input type="text" style="text-align: right" placeholder="请输入文本" v-model="car.licenseNumber"/>
|
||||
</view>
|
||||
<view class="formItem">
|
||||
<text class="formLabel">品牌</text>
|
||||
@ -15,7 +15,7 @@
|
||||
</view>
|
||||
<view class="formItem">
|
||||
<text class="formLabel">型号</text>
|
||||
<input type="text" placeholder="请输入文本" v-model="car.carModelInput"/>
|
||||
<input type="text" style="text-align: right" placeholder="请输入文本" v-model="car.carModelInput"/>
|
||||
</view>
|
||||
<view class="formItem">
|
||||
<text class="formLabel">车辆类别</text>
|
||||
|
@ -133,7 +133,6 @@ export default {
|
||||
}
|
||||
|
||||
.carImage {
|
||||
background-color: #eee;
|
||||
width: 240rpx;
|
||||
height: 150rpx;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
|
@ -23,10 +23,13 @@ const request = config => {
|
||||
// 设置租户
|
||||
const isTanantId = (config.headers || {}).isTanantId === false
|
||||
config.header = config.header || {}
|
||||
if(getTenantId() && !isTanantId){
|
||||
config.header['tenant-id'] = getTenantId()
|
||||
if(!config.hasOwnProperty("noTenantId")){
|
||||
//请求设置了不需要租户,不拼接,,走进这里的是没设置不需要租户的
|
||||
if(getTenantId() && !isTanantId){
|
||||
config.header['tenant-id'] = getTenantId()
|
||||
}
|
||||
config.header['tenant-id'] = 180
|
||||
}
|
||||
config.header['tenant-id'] = 180
|
||||
console.log(config.header,424242);
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
|
Loading…
Reference in New Issue
Block a user