bug修改

This commit is contained in:
Vinjor 2024-09-28 10:29:20 +08:00
parent 8c7965638e
commit 65e5c884fa
5 changed files with 24 additions and 10 deletions

View File

@ -1,7 +1,7 @@
// 应用全局配置 // 应用全局配置
module.exports = { module.exports = {
// baseUrl: 'https://www.nuoyunr.com', baseUrl: 'https://www.nuoyunr.com',
baseUrl: 'http://192.168.1.4:48080', // baseUrl: 'http://192.168.1.4:48080',
// baseUrl: "http://localhost:48080", // baseUrl: "http://localhost:48080",
imagesUrl: 'http://shequ.0315e.com/static/images/pages/', imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
baseImageUrl: 'https://www.nuoyunr.com/minio/', baseImageUrl: 'https://www.nuoyunr.com/minio/',

View File

@ -112,8 +112,20 @@
}, },
// //
async getServer() { async getServer() {
await getUserInfoRequest() request({
this.customInfo = JSON.parse(getUserInfo()) 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
}
})
} }
} }
} }

View File

@ -5,7 +5,7 @@
<view class="card"> <view class="card">
<view class="formItem"> <view class="formItem">
<text class="formLabel">车牌号</text> <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>
<view class="formItem"> <view class="formItem">
<text class="formLabel">品牌</text> <text class="formLabel">品牌</text>
@ -15,7 +15,7 @@
</view> </view>
<view class="formItem"> <view class="formItem">
<text class="formLabel">型号</text> <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>
<view class="formItem"> <view class="formItem">
<text class="formLabel">车辆类别</text> <text class="formLabel">车辆类别</text>

View File

@ -133,7 +133,6 @@ export default {
} }
.carImage { .carImage {
background-color: #eee;
width: 240rpx; width: 240rpx;
height: 150rpx; height: 150rpx;
border-radius: 8rpx 8rpx 8rpx 8rpx; border-radius: 8rpx 8rpx 8rpx 8rpx;

View File

@ -23,10 +23,13 @@ const request = config => {
// 设置租户 // 设置租户
const isTanantId = (config.headers || {}).isTanantId === false const isTanantId = (config.headers || {}).isTanantId === false
config.header = config.header || {} config.header = config.header || {}
if(!config.hasOwnProperty("noTenantId")){
//请求设置了不需要租户,不拼接,,走进这里的是没设置不需要租户的
if(getTenantId() && !isTanantId){ if(getTenantId() && !isTanantId){
config.header['tenant-id'] = getTenantId() config.header['tenant-id'] = getTenantId()
} }
config.header['tenant-id'] = 180 config.header['tenant-id'] = 180
}
console.log(config.header,424242); console.log(config.header,424242);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.request({ uni.request({