From 02e950130dfabcb5a09333dfc53e3d9097c2cb69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E4=B9=88=E4=BA=86?= Date: Wed, 22 Mar 2023 14:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=A8=A1=E5=9D=97=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AF=B9=E6=8E=A5=E5=AE=8C=E6=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/user.js | 26 ++++++++++++++++++++++++++ pages.json | 2 +- pages/device/APF/comp/xieBo.vue | 15 +++++++-------- pages/user/changePhone.vue | 32 +++++++++++++++++++++++++++----- 4 files changed, 61 insertions(+), 14 deletions(-) diff --git a/common/api/user.js b/common/api/user.js index 962ea88..273021a 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -77,4 +77,30 @@ export function apiReSetPsd(params) { }, method: 'POST' }) +} + +// 更换手机号第一步 +export function apiComfirmCode (params) { + return request({ + url: '/shiningCloud/user/comfirmCode', + data: { + devCode: uni.getStorageSync('cidAES'), + phone: params.phone, + code: params.code.trim() + }, + method: 'POST' + }) +} +// 重新绑定手机号 +export function apiRebindPhone (params) { + return request({ + url: '/shiningCloud/user/rebindPhone', + data: { + devCode: uni.getStorageSync('cidAES'), + userId: uni.getStorageSync('userInfo').userId, + phoneNew: params.phone, + code: params.code.trim() + }, + method: 'POST' + }) } \ No newline at end of file diff --git a/pages.json b/pages.json index 9eb66c3..c6319b4 100644 --- a/pages.json +++ b/pages.json @@ -421,7 +421,7 @@ "list": [ { "name": "login", //模式名称 - "path": "pages/user/changePhone", //启动页面,必选 + "path": "pages/device/APF/detail", //启动页面,必选 "query": "" //启动参数,在页面的onLoad函数里面得到。 } ] diff --git a/pages/device/APF/comp/xieBo.vue b/pages/device/APF/comp/xieBo.vue index 1926ba5..91b0d79 100644 --- a/pages/device/APF/comp/xieBo.vue +++ b/pages/device/APF/comp/xieBo.vue @@ -2,7 +2,7 @@ - + @@ -27,12 +27,12 @@ export default { opts: { enableScroll: true, color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"], - padding: [15, 15, 0, 5], + padding: [10,0,10,0], legend: {}, xAxis: { disableGrid: true, itemCount: 8, - scrollShow: true, + // scrollShow: true, }, yAxis: { data: [ @@ -49,7 +49,7 @@ export default { activeBgOpacity: 0.08 } }, - } + 啥} }; }, mounted () { @@ -65,11 +65,11 @@ export default { series: [ { name: "电网侧", - data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30] + data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 7] }, { name: "负载册", - data: [30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] + data: [5, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] } ] }; @@ -83,7 +83,6 @@ export default { \ No newline at end of file diff --git a/pages/user/changePhone.vue b/pages/user/changePhone.vue index 084ac99..1bd1861 100644 --- a/pages/user/changePhone.vue +++ b/pages/user/changePhone.vue @@ -26,7 +26,7 @@