diff --git a/config.js b/config.js
index 8280d52..d3ad51e 100644
--- a/config.js
+++ b/config.js
@@ -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.17:48080',
// baseUrl: "http://localhost:48080",
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
baseImageUrl: 'https://www.nuoyunr.com/minio/',
diff --git a/pages-order/orderList/orderList.vue b/pages-order/orderList/orderList.vue
index afea9ac..6347830 100644
--- a/pages-order/orderList/orderList.vue
+++ b/pages-order/orderList/orderList.vue
@@ -26,7 +26,7 @@
- {{ item.tenantName | 蓝安-中鑫之宝 }}
+ {{ item.tenantName || "蓝安-中鑫之宝" }}
diff --git a/pages.json b/pages.json
index f3614ce..564bad6 100644
--- a/pages.json
+++ b/pages.json
@@ -34,6 +34,12 @@
"navigationBarTitleText": ""
}
},
+ {
+ "path": "pages/myCar/scan-frame",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
{
"path": "pages/my/myInfo",
"style": {
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 68be44b..6090873 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -28,7 +28,7 @@
@@ -48,30 +119,30 @@
.container {
height: 100%;
background-color: #fff;
-
+
.body {
-
+
}
-
+
.formItem {
box-sizing: border-box;
width: 686rpx;
margin: 0 auto;
padding: 40rpx;
-
+
display: flex;
align-items: center;
justify-content: space-between;
column-gap: 20rpx;
-
+
border-bottom: 1rpx solid #DDDDDD;
}
-
+
.formLabel {
font-size: 32rpx;
color: #333333;
}
-
+
.formValue {
flex: 1;
width: 0;
@@ -79,15 +150,14 @@
font-size: 32rpx;
color: #999999;
}
-
+
.formBtn {
width: 24rpx;
height: 24rpx;
}
-
- .avatar {
- width: 108rpx;
- height: 108rpx;
+
+ .dl-avatar-box {
+ text-align: right;
}
}
-
\ No newline at end of file
+
diff --git a/pages/myCar/carDetail.vue b/pages/myCar/carDetail.vue
index d7efb0d..10349aa 100644
--- a/pages/myCar/carDetail.vue
+++ b/pages/myCar/carDetail.vue
@@ -3,9 +3,27 @@
+
- 车牌号
-
+ 是否车主
+
+
+ 是
+ 否
+
+
+
+
+ 车牌号
+
+
+
+ 车架号
+
+
+
+ 发动机号码
+
品牌
@@ -15,13 +33,7 @@
型号
-
-
-
- 车辆类别
-
- {{ categoryNamesComputed[categoryIndex] }}
-
+
车辆性质
@@ -29,6 +41,12 @@
{{ natureNamesComputed[natureIndex] }}
+
+ 车辆类别
+
+ {{ categoryNamesComputed[categoryIndex] }}
+
+
注册日期
-
-
+
+ 行驶证
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
保存
@@ -80,7 +97,10 @@
@@ -345,6 +454,11 @@ export default {
&:last-child {
border: none;
}
+
+ .require {
+ content: "*";
+ color: red;
+ }
}
.labelVal {
diff --git a/pages/myCar/myCar.vue b/pages/myCar/myCar.vue
index c3eee48..58f7a04 100644
--- a/pages/myCar/myCar.vue
+++ b/pages/myCar/myCar.vue
@@ -9,9 +9,12 @@
{{ item.licenseNumber}}
品牌:{{ item.brandName }}
- 型号:{{ item.carModelInput }}
+ 型号:{{ item.carModel || "" }}
+
+
+
@@ -27,7 +30,7 @@ import VNavigationBar from '@/components/VNavigationBar.vue';
import request from "../../utils/request";
import config from "config";
import {getUserInfoRequest} from "@/utils/common.js";
-import {getToken,setUserInfo} from '@/utils/auth.js'
+import {getToken,setJSONData} from '@/utils/auth.js'
export default {
computed: {
@@ -41,12 +44,12 @@ export default {
data() {
return {
carList: [
- {
- carNum: '鲁A 781NB',
- name: '魏书豪',
- phone: '15726786903',
- image: ''
- }
+ // {
+ // carNum: '鲁A 781NB',
+ // name: '魏书豪',
+ // phone: '15726786903',
+ // image: ''
+ // }
]
};
},
@@ -60,34 +63,27 @@ export default {
uni.reLaunch({
url: '/pages/login/login'
})
- }else{
- console.log("已登录")
- this.getUserInfos()
}
// 页面显示时执行初始化操作
this.getList();
},
methods: {
- //获取当前登录用户信息
- async getUserInfos() {
- console.log("获取用户信息")
- getUserInfoRequest()
- },
getList(){
request({
- url: '/userClient/base/myCar/get',
+ url: '/app-api/base/user-car/getMyCar',
method: 'GET',
+ tenantIdFlag: false
}).then(res => {
console.log(res);
this.carList = res.data;
console.log('图片路径', config.baseImageUrl+this.carList[0].logoImg)
})
},
-
gotoDetail(item) {
if (item){
+ setJSONData("carInfo",item)
uni.navigateTo({
- url: `/pages/myCar/carDetail?car=${encodeURIComponent(JSON.stringify(item))}`
+ url: `/pages/myCar/carDetail?id=`+item.id
});
}
else {
@@ -120,6 +116,9 @@ export default {
flex-direction: column;
}
+ .no-data{
+ text-align: center;
+ }
.carItem {
box-sizing: border-box;
width: 686rpx;
diff --git a/pages/myCar/scan-frame.vue b/pages/myCar/scan-frame.vue
new file mode 100644
index 0000000..0a19b4a
--- /dev/null
+++ b/pages/myCar/scan-frame.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+ 请将行驶证放置白色框内
+
+
+
+
+
+
+
+
+
diff --git a/static/images/nothing.png b/static/images/nothing.png
new file mode 100644
index 0000000..85907e6
Binary files /dev/null and b/static/images/nothing.png differ
diff --git a/static/images/scan-img.png b/static/images/scan-img.png
new file mode 100644
index 0000000..8d4f302
Binary files /dev/null and b/static/images/scan-img.png differ
diff --git a/utils/auth.js b/utils/auth.js
index 0a35c4a..98af2f2 100644
--- a/utils/auth.js
+++ b/utils/auth.js
@@ -38,3 +38,15 @@ export function getUserInfo() {
export function setUserInfo(userInfo) {
return uni.setStorageSync(UserInfo, userInfo)
}
+
+export function getJSONData(keyStr) {
+ if(uni.getStorageSync(keyStr)){
+ return JSON.parse(uni.getStorageSync(keyStr))
+ }else{
+ return "";
+ }
+}
+
+export function setJSONData(keyStr,dataObj) {
+ return uni.setStorageSync(keyStr, JSON.stringify(dataObj))
+}
diff --git a/utils/request.js b/utils/request.js
index 810ec77..c63a03a 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -23,7 +23,7 @@ const request = config => {
// 设置租户
const isTanantId = (config.headers || {}).isTanantId === false
config.header = config.header || {}
- if(!config.hasOwnProperty("noTenantId")){
+ if(!config.hasOwnProperty("tenantIdFlag")){
//请求设置了不需要租户,不拼接,,走进这里的是没设置不需要租户的
if(getTenantId() && !isTanantId){
config.header['tenant-id'] = getTenantId()
diff --git a/utils/upload.js b/utils/upload.js
index 740387e..e1ee5bf 100644
--- a/utils/upload.js
+++ b/utils/upload.js
@@ -20,6 +20,7 @@ const upload = config => {
url = url.slice(0, -1)
config.url = url
}
+ console.log("参数",config)
return new Promise((resolve, reject) => {
uni.uploadFile({
timeout: config.timeout || timeout,