diff --git a/api/login.js b/api/login.js
index f6d0917..beb3bd7 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({
diff --git a/config.js b/config.js
index ad9bd5c..6059c44 100644
--- a/config.js
+++ b/config.js
@@ -1,7 +1,7 @@
// 应用全局配置
module.exports = {
//baseUrl: 'https://www.nuoyunr.com/admin-api',
- baseUrl: 'http://192.168.1.4:48080/userClient',
+ baseUrl: 'https://3w823u8516.vicp.fun',
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
baseImageUrl: 'https://www.nuoyunr.com/minio',
//wsUrl: 'wss://www.nuoyunr.com/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..6372db6 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -1,449 +1,510 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 忘记密码
-
-
-
- 登 录
-
-
-
-
-
-
-
- 请仔细阅读
- 《用户协议》
- 和
- 《隐私政策》
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 忘记密码
+
+
+
+ 登 录
+
+
+
+
+
+
+
+ 请仔细阅读
+ 《用户协议》
+ 和
+ 《隐私政策》
+
+
\ 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/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/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) {