diff --git a/api/user.js b/api/user.js
index 2c2d68d..81e7b8f 100644
--- a/api/user.js
+++ b/api/user.js
@@ -55,3 +55,21 @@ export function getEmailCodeRequest(data) {
data
})
}
+
+// 登录
+export function loginRequest(data) {
+ return request({
+ url: '/wechat/mini/login',
+ method: 'POST',
+ data
+ })
+}
+
+// 注册
+export function phoneLoginRequest(data) {
+ return request({
+ url: '/wechat/mini/phone/login ',
+ method: 'POST',
+ data
+ })
+}
diff --git a/config/env.js b/config/env.js
index e30867e..d42cdfb 100644
--- a/config/env.js
+++ b/config/env.js
@@ -22,4 +22,4 @@ const PROD = {
}
// 更换环境的时候 切换导出就行
-export default PRE
+export default DEV
diff --git a/manifest.json b/manifest.json
index 35562d9..66d0780 100644
--- a/manifest.json
+++ b/manifest.json
@@ -7,7 +7,7 @@
"transformPx" : false,
/* 小程序特有相关 */
"mp-weixin" : {
- "appid" : "wx9829a39e65550757",
+ "appid" : "wx10c16cfd90808097",
"setting" : {
"urlCheck" : true,
"minified" : true
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 261ca59..47186cb 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -50,15 +50,18 @@
class="button-add" @click="toSearchDevice">
- 登录
+
+