diff --git a/api/login.js b/api/login.js
index f6d0917..ad6984e 100644
--- a/api/login.js
+++ b/api/login.js
@@ -18,6 +18,14 @@ export function login(username, password, code, uuid) {
})
}
+// 微信登录
+export function wechatLogin(data) {
+ return request({
+ 'url': '/weChat/wechatLogin',
+ 'method': 'post',
+ 'data':data
+ })
+}
// 获取用户详细信息
export function getInfo() {
return request({
@@ -59,6 +67,17 @@ export function loginApp(data) {
data
})
}
+export function loginAppuserName(data) {
+ return request({
+ 'url': '/userClient/weChat/login',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ timeout: 20000,
+ data
+ })
+}
// 使用租户域名(标识),获得租户编号
export function getTenantIdByWebsite(website) {
diff --git a/config.js b/config.js
index 573ec5c..25c6b22 100644
--- a/config.js
+++ b/config.js
@@ -1,10 +1,11 @@
// 应用全局配置
module.exports = {
//baseUrl: 'https://www.nuoyunr.com/admin-api',
+ baseUrl: 'https://3w823u8516.vicp.fun',
// baseUrl: 'http://192.168.1.4:48080',
- baseUrl: 'http://localhost:48080',
+ // baseUrl: 'http://localhost:48080',
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
- baseImageUrl: 'https://www.nuoyunr.com/minio',
+ baseImageUrl: 'http://122.51.230.86:9000/',
//wsUrl: 'wss://www.nuoyunr.com/admin-api',
wsUrl: 'ws://192.168.1.4:48080/admin-api',
// 应用信息
diff --git a/manifest.json b/manifest.json
index be63f00..fb9f408 100644
--- a/manifest.json
+++ b/manifest.json
@@ -69,5 +69,15 @@
"uniStatistics" : {
"enable" : false
},
+ "h5" : {
+ "router" : {
+ "base" : "/lanan-repair"
+ },
+ "devServer" : {
+ "port" : 8080,
+ "disableHostCheck" : true,
+ "https" : false
+ }
+ },
"vueVersion" : "2"
}
diff --git a/pages.json b/pages.json
index 9853ba5..72b487d 100644
--- a/pages.json
+++ b/pages.json
@@ -6,12 +6,12 @@
// "navigationBarTitleText": "uni-app"
// }
// },
- // {
- // "path": "pages/login/login",
- // "style": {
- // "navigationBarTitleText": "uni-app"
- // }
- // },
+ {
+ "path": "pages/login/login",
+ "style": {
+ "navigationBarTitleText": "uni-app"
+ }
+ },
{
"path" : "pages/home/home",
"style" :
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 31dd0d4..3b29d10 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -1,449 +1,544 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 忘记密码
-
-
-
- 登 录
-
-
-
-
-
-
-
- 请仔细阅读
- 《用户协议》
- 和
- 《隐私政策》
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 忘记密码
+
+
+
+ 登 录
+
+
+
+
+
+
+
+ 请仔细阅读
+ 《用户协议》
+ 和
+ 《隐私政策》
+
+
\ No newline at end of file
+.d-qian-lan {
+ width: 14px;
+ height: 14px;
+ margin-right: 5px;
+ overflow: hidden;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #0078FF;
+ border: 1px solid #0078FF;
+ color: white;
+}
+
diff --git a/pages/my/cardRoll.vue b/pages/my/cardRoll.vue
index 6c0b2b6..4345bc3 100644
--- a/pages/my/cardRoll.vue
+++ b/pages/my/cardRoll.vue
@@ -13,7 +13,11 @@
-
+
+
+ 车辆保养卡
+
+
车辆保养卡
2024-09-20
@@ -98,6 +102,28 @@
width: 136rpx;
height: 100rpx;
background-color: #efefef;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ position: relative;
+
+ .cardImgText {
+ color: #fff;
+ font-size: 24rpx;
+ position: relative;
+ z-index: 2;
+ }
+
+ .cardImgBg {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ left: 0;
+ z-index: 1;
+ }
}
.cardInfo {
diff --git a/pages/my/my.vue b/pages/my/my.vue
index c485e22..4a88b3d 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -74,13 +74,13 @@
return {
menuCard1: [
{ title: '我的资料', icon: require('@/static/icons/my-menu-icon1.png'), path: '/pages/my/myInfo' },
- { title: '消息中心', icon: require('@/static/icons/my-menu-icon2.png'), path: '/pages/my/message' },
+ { title: '我的卡券', icon: require('@/static/icons/my-menu-icon5.png'), path: "/pages/my/cardRoll" },
{ title: '我的评价', icon: require('@/static/icons/my-menu-icon3.png'), path: '/pages/my/evaluate' },
],
menuCard2: [
+ { title: '消息中心', icon: require('@/static/icons/my-menu-icon2.png'), path: '/pages/my/message' },
{ title: '客服中心', icon: require('@/static/icons/my-menu-icon4.png') },
{ title: '操作指南', icon: require('@/static/icons/my-menu-icon5.png'), path: "/pages/guideList/guideList" },
- { title: '我的卡卷', icon: require('@/static/icons/my-menu-icon5.png'), path: "/pages/my/cardRoll" },
]
}
},
diff --git a/pages/my/register.vue b/pages/my/register.vue
index 847ffde..a26e569 100644
--- a/pages/my/register.vue
+++ b/pages/my/register.vue
@@ -1,189 +1,305 @@
-
-
-
-
- 姓名
-
-
-
-
-
- 性别
-
-
-
-
-
-
-
-
- 省份
-
-
-
-
-
-
-
-
-
-
-
- 详细地址
-
-
-
-
-
-
-
-
-
-
-
- 上传图片
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 姓名
+
+
+
+
+
+ 性别
+
+
+
+
+
+
+
+ 身份证号
+
+
+
+
+
+
+
+
+
+
+
+
+ 手机号
+
+
+
+
+
+ 联系地址
+
+
+
+
+
+ 注册
+
+
+
-
\ No newline at end of file
+ .formPickerBtn {
+ width: 28rpx;
+ height: 28rpx;
+ }
+}
+.dl {
+ width: 90%;
+ height: 44px;
+ background: linear-gradient(-46deg, #0853C4 0%, #4282D8 80%);
+ border-radius: 5px;
+ margin: 0 auto;
+ font-size: 16px;
+ color: #FFFFFF;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin-top: 22px;
+}
+
diff --git a/pages/myCar/carDetail.vue b/pages/myCar/carDetail.vue
index 5ffe17d..8d175f1 100644
--- a/pages/myCar/carDetail.vue
+++ b/pages/myCar/carDetail.vue
@@ -1,186 +1,419 @@
-
-
-
-
-
- 车辆照片
-
-
-
- 车牌号
- 鲁A 781NB
-
-
- 车辆持有人
- 魏书豪
-
-
- 持有人电话
- 15726576890
-
-
-
-
-
- 车辆年检时间
- 2024年
-
-
-
-
-
- 车辆保险时间
- 2024年
-
-
-
-
-
-
-
+
+
+
+
+
+ 车牌号
+
+
+
+ 品牌
+
+ {{ brandNamesComputed[brandIndex] }}
+
+
+
+ 型号
+
+
+
+ 车辆类别
+
+ {{ categoryNamesComputed[categoryIndex] }}
+
+
+
+ 车辆性质
+
+ {{ natureNamesComputed[natureIndex] }}
+
+
+
+ 注册日期
+
+
+ {{ car.carRegisterDate}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+ .footer {
+ background: #ffffff;
+ display: flex;
+ align-items: center;
+
+ .line {
+ width: 2rpx;
+ background-color: #dddddd;
+ }
+
+ .btnItem {
+ flex: 1;
+ width: 0;
+ padding: 34rpx 0;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ font-size: 32rpx;
+
+ &.delete {
+ color: #f92c2c;
+ }
+
+ &.edit {
+ color: #0174f6;
+ }
+ }
+ }
+}
+
diff --git a/pages/myCar/myCar.vue b/pages/myCar/myCar.vue
index 7c7105a..7882622 100644
--- a/pages/myCar/myCar.vue
+++ b/pages/myCar/myCar.vue
@@ -1,118 +1,157 @@
-
-
-
-
-
-
-
-
-
- {{ item.carNum }}
- 车辆持有人:{{ item.name }}
- 持有人电话:{{ item.phone }}
-
-
-
-
-
-
-
- 添加车辆
-
-
+
+
+
+
+
+
+
+
+ {{ item.licenseNumber}}
+ 品牌:{{ item.brandName }}
+ 型号:{{ item.carModelInput }}
+
+
+
+
+
+
+
+ 添加车辆
+
+
\ No newline at end of file
+ font-weight: 500;
+ font-size: 32rpx;
+ color: #0174f6;
+ }
+}
+
diff --git a/static/images/cardRollBg.png b/static/images/cardRollBg.png
new file mode 100644
index 0000000..cbc0746
Binary files /dev/null and b/static/images/cardRollBg.png differ
diff --git a/utils/request.js b/utils/request.js
index 15856cd..aacf440 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -26,9 +26,9 @@ const request = config => {
const isTanantId = (config.headers || {}).isTanantId === false
config.header = config.header || {}
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);
return new Promise((resolve, reject) => {
uni.request({
@@ -41,7 +41,7 @@ console.log(config.header,424242);
}).then(response => {
// debugger
let res = response
-
+
const code = res.data.code || 200
const msg = errorCode[code] || res.data.msg || errorCode['default']
if (code === 401) {
diff --git a/utils/tebBarSocket.js b/utils/tebBarSocket.js
index 0102ae1..9f09425 100644
--- a/utils/tebBarSocket.js
+++ b/utils/tebBarSocket.js
@@ -10,7 +10,6 @@ export function tabBarconnect(userId) {
},
fail(err) {
-
}
}