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 @@