diff --git a/api/login.js b/api/login.js
index 6388ca1..4cecc91 100644
--- a/api/login.js
+++ b/api/login.js
@@ -3,10 +3,12 @@ import request from '@/utils/request';
// 登录方法
export function login(data) {
return request({
- url: '/login/appUserLogin', // login - ruoyi
+ url: '/auth/login', // login - ruoyi
+ // url: '/login/appUserLogin', // login - ruoyi
headers: {
isToken: false,
- 'Content-Type': 'application/x-www-form-urlencoded'
+ isForm: false,
+ // 'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'post',
data
diff --git a/api/system/user.js b/api/system/user.js
index 46aec05..00ff7ab 100644
--- a/api/system/user.js
+++ b/api/system/user.js
@@ -2,14 +2,13 @@ import upload from '@/utils/upload'
import request from '@/utils/request'
// 用户密码重置
-export function updateUserPwd(oldPassword, newPassword) {
+export function updateUserPwd(password) {
const data = {
- oldPassword,
- newPassword
+ password
}
return request({
- url: '/system/user/profile/updatePwd',
- method: 'put',
+ url: '/system/user/confirmPassword',
+ method: 'post',
params: data
})
}
@@ -17,7 +16,7 @@ export function updateUserPwd(oldPassword, newPassword) {
// 查询用户个人信息
export function getUserProfile() {
return request({
- url: '/system/user/profile',
+ url: '/system/user/getInfo',
method: 'get'
})
}
@@ -25,8 +24,8 @@ export function getUserProfile() {
// 修改用户个人信息
export function updateUserProfile(data) {
return request({
- url: '/system/user/profile',
- method: 'put',
+ url: '/system/user/edit',
+ method: 'post',
data: data
})
}
diff --git a/config.js b/config.js
index 1b0b658..a08859c 100644
--- a/config.js
+++ b/config.js
@@ -2,11 +2,16 @@
module.exports = {
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
// baseUrl: 'http://192.168.0.39:21995',
- baseUrl: 'http://192.168.0.14:21520',
+ // #ifdef H5
+ baseUrl: '/dev-api',
+ // #endif
+ // #ifdef APP-PLUS
+ baseUrl: 'http://192.168.2.47:58080',
+ // #endif
// baseUrl: 'http://localhost:8080',
uploadFileUrl: '/app/common/appUploadFile',
// fileUrl: 'http://192.168.0.39:21995/statics', // 图片预览
- fileUrl: 'http://192.168.0.14:21520/statics', // 图片预览
+ fileUrl: 'http://192.168.2.47:58080/statics', // 图片预览
// 应用信息
appInfo: {
// 应用名称
diff --git a/manifest.json b/manifest.json
index 9bf4449..2d896c8 100644
--- a/manifest.json
+++ b/manifest.json
@@ -71,8 +71,19 @@
"h5" : {
"template" : "static/index.html",
"devServer" : {
+ "https" : false,
+ "disableHostCheck" : true,
"port" : 9090,
- "https" : false
+ "proxy" : {
+ "/dev-api" : {
+ "target" : "http://192.168.2.47:58080",
+ "changeOrigin" : true,
+ "secure" : false,
+ "pathRewrite" : {
+ "^/dev-api" : ""
+ }
+ }
+ }
},
"title" : "贵州安全工机具",
"router" : {
diff --git a/pages.json b/pages.json
index a49c3fe..3a68033 100644
--- a/pages.json
+++ b/pages.json
@@ -32,7 +32,7 @@
{
"path": "pages/mine/index",
"style": {
- "navigationBarTitleText": ""
+ "navigationBarTitleText": "我的"
}
},
{
@@ -227,6 +227,13 @@
"style": {
"navigationBarTitleText": "订单结算"
}
+ },
+ {
+ "path" : "pages/mine/me/changePassword",
+ "style" :
+ {
+ "navigationBarTitleText" : "修改密码"
+ }
}
],
"tabBar": {
diff --git a/pages/login.vue b/pages/login.vue
index e8bb60c..a46d08a 100644
--- a/pages/login.vue
+++ b/pages/login.vue
@@ -67,10 +67,8 @@ export default {
register: false,
globalConfig: getApp().globalData.config,
loginForm: {
- username: uni.getStorageSync('remember') ? uni.getStorageSync('remember').username : 'bns', // 账号
- password: uni.getStorageSync('remember')
- ? uni.getStorageSync('remember').password
- : '1769fb2837e10e9d22c1c25add76355a', // 密码 1769fb2837e10e9d22c1c25add76355a', // bns - 1769fb2837e10e9d22c1c25add76355a
+ username: uni.getStorageSync('remember') ? uni.getStorageSync('remember').username : 'admin', // 账号
+ password: uni.getStorageSync('remember') ? uni.getStorageSync('remember').password : 'Bonus$2026', // 密码 1769fb2837e10e9d22c1c25add76355a', // bns - 1769fb2837e10e9d22c1c25add76355a
code: '',
uuid: ''
},
@@ -115,8 +113,8 @@ export default {
// this.$modal.msgError("请输入验证码")
} else {
// this.$modal.loading('登录中,请耐心等待...')
- this.$tab.reLaunch('/pages/system')
- // this.pwdLogin()
+ // this.$tab.reLaunch('/pages/system')
+ this.pwdLogin()
}
},
// 密码登录
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index 0a6d536..eb51bbb 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -1,181 +1,286 @@
-
-
-
+ .icon-wrapper {
+ width: 48px;
+ height: 48px;
+ //border-radius: 24px;
+ //background: #f5f5f5;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-bottom: 3px;
+ }
+ .icon-text {
+ font-size: 14px;
+ color: #666;
+ }
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/mine/me/basicInfo.vue b/pages/mine/me/basicInfo.vue
index b6685f5..89ea802 100644
--- a/pages/mine/me/basicInfo.vue
+++ b/pages/mine/me/basicInfo.vue
@@ -1,175 +1,295 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
- 姓名
-
- 冯武鹏
-
-
-
+
+
+
+
+ 姓名
+
+ {{userInfo.nickName}}
+
+
+
-
-
- 手机号
-
- 18407028572
-
-
-
+
+
+ 手机号
+
+ {{userInfo.phonenumber}}
+
+
+
-
-
- 生日
-
- 填写生日完善信息
-
-
-
-
-
-
+
+
+ 生日
+
+ {{userInfo.birthDay || '填写生日完善信息'}}
+
+
+
+
+
+
+
+
+
+ &.placeholder {
+ color: #999;
+ }
+ }
+ .arrow-icon {
+ width: 32rpx;
+ height: 32rpx;
+ }
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/mine/me/bindingPhone.vue b/pages/mine/me/bindingPhone.vue
index dc5e009..9ed5d95 100644
--- a/pages/mine/me/bindingPhone.vue
+++ b/pages/mine/me/bindingPhone.vue
@@ -19,7 +19,7 @@
已绑定手机号
- 184****8572
+ {{currentPhone}}
@@ -41,13 +41,24 @@
+
+
\ No newline at end of file
diff --git a/pages/mine/me/faceUpload.vue b/pages/mine/me/faceUpload.vue
index 6d51999..9ae6c67 100644
--- a/pages/mine/me/faceUpload.vue
+++ b/pages/mine/me/faceUpload.vue
@@ -1,270 +1,315 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
- 点击上传照片
-
-
-
+
+
+
+
+
+
+
+
+ 点击上传照片
+
+
+
-
-
- ·五官端正,面部无遮挡(请使用人脸照片)
- ·不要带视频(如墨镜等)
- ·请在光线明亮的纯色背景下拍照(建议背景颜色为白色)
- ·上传照片后需保存,保存失败照片将被清除
-
+
+
+ ·五官端正,面部无遮挡(请使用人脸照片)
+ ·不要带视频(如墨镜等)
+ ·请在光线明亮的纯色背景下拍照(建议背景颜色为白色)
+ ·上传照片后需保存,保存失败照片将被清除
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ &:active {
+ opacity: 0.9;
+ }
+ }
+ .cancel-btn {
+ width: 100%;
+ height: 88rpx;
+ background: #fff;
+ color: #333;
+ font-size: 32rpx;
+ font-weight: 500;
+ border-radius: 44rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border: 2rpx solid #CCCCCC;
+
+ &:active {
+ background: #f5f5f5;
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/mine/me/index.vue b/pages/mine/me/index.vue
index 1c85729..91a7528 100644
--- a/pages/mine/me/index.vue
+++ b/pages/mine/me/index.vue
@@ -59,7 +59,7 @@ export default {
},
{
title: '修改密码',
- path: '/pages/change-password/index'
+ path: '/pages/mine/me/changePassword'
},
{
title: '挂失解绑',
diff --git a/pages/mine/me/updatePhone.vue b/pages/mine/me/updatePhone.vue
index 814698f..6c725a1 100644
--- a/pages/mine/me/updatePhone.vue
+++ b/pages/mine/me/updatePhone.vue
@@ -16,36 +16,31 @@
-
+
-
+
+
+