From bce7e75a4d47410360a8d35842f96f7a17f349ec Mon Sep 17 00:00:00 2001
From: xiaohei <1494046114@qq.com>
Date: Wed, 8 Nov 2023 12:58:23 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E8=A7=A3=E5=86=B3=E6=89=8B=E6=9C=BA?=
=?UTF-8?q?=E5=8F=B7=E7=99=BB=E5=BD=95=E3=80=81=E6=B7=BB=E5=8A=A0=E8=8E=B7?=
=?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/myApi.js | 15 +-
src/config/env.js | 2 +-
src/pages/my/my.vue | 28 +-
src/pages/phone/index.vue | 540 +++++++++++++++++++++-----------------
4 files changed, 322 insertions(+), 263 deletions(-)
diff --git a/src/api/myApi.js b/src/api/myApi.js
index c57c6cd..463fd8b 100644
--- a/src/api/myApi.js
+++ b/src/api/myApi.js
@@ -30,6 +30,14 @@ const getUserInfoApi = function (data) {
});
};
+const getProfileUserInfoApi = function (data) {
+ return request({
+ url: '/admin-api/system/user/profile/get',
+ method: 'get',
+ data: data
+ });
+};
+
/**
* 获得用户积分规则分页
* @param {*} data
@@ -142,7 +150,7 @@ const replyGoodPageApi = function (data) {
const sendSmSCodeApi = function (data) {
return request({
url: '/admin-api/system/auth/send-sms-code',
- method: 'get',
+ method: 'post',
data: data
});
};
@@ -150,7 +158,7 @@ const sendSmSCodeApi = function (data) {
const systemAuthSmsLogin = function (data) {
return request({
url: '/admin-api/system/auth/sms-login',
- method: 'get',
+ method: 'post',
data: data
});
};
@@ -167,5 +175,6 @@ export {
replyCreatUpdateApi,
replyGoodPageApi,
sendSmSCodeApi,
- systemAuthSmsLogin
+ systemAuthSmsLogin,
+ getProfileUserInfoApi
};
diff --git a/src/config/env.js b/src/config/env.js
index 830e569..80b3931 100644
--- a/src/config/env.js
+++ b/src/config/env.js
@@ -2,7 +2,7 @@
* @name 小程序环境
* @description 多环境配置
*/
-const envName = 'production';
+const envName = 'development';
const envs = [{
envName: 'production',
appID: 'wx736395182f05a1b7',
diff --git a/src/pages/my/my.vue b/src/pages/my/my.vue
index 0d06cc4..a9b4a56 100644
--- a/src/pages/my/my.vue
+++ b/src/pages/my/my.vue
@@ -13,7 +13,7 @@
- {{ userInfo.nickName }}
+ {{ userInfo.nickname }}
请登录
@@ -135,22 +135,20 @@
};
},
async onLoad() {
- // const { code } = await uni.pro.login();
- // this.setData({
- // code
- // });
this.recursionApi();
},
onShow() {
// 设置判断,限制不同权限渲染不同数据
this.setMune();
this.getInitData();
- // this.getUserInfoApi();
+ this.getUserInfoApi();
+ this.getUserInfo();
},
methods: {
async getUserInfoApi() {
const res = await myApi.getUserInfoApi();
if (res.data) {
+ this.myInfo = res.data
uni.setStorageSync('userInfoCount', res.data);
}
},
@@ -310,16 +308,14 @@
}
},
- // // 获取我的信息
- // async getUserInfo() {
- // const res = await myApi.getUserInfoApi();
- // if (res.data) {
- // this.setData({
- // myInfo: res.data,
- // });
- // wx.setStorageSync('userInfoCount', res.data);
- // }
- // },
+ // 获取我的信息
+ async getUserInfo() {
+ const res = await myApi.getProfileUserInfoApi();
+ if (res.data) {
+ this.userInfo = res.data
+ uni.setStorageSync("userInfoData", res.data);
+ }
+ },
async recursionApi() {
const {
data = []
diff --git a/src/pages/phone/index.vue b/src/pages/phone/index.vue
index 755b0e6..51bcc42 100644
--- a/src/pages/phone/index.vue
+++ b/src/pages/phone/index.vue
@@ -1,35 +1,70 @@
-
+
介休网格通
+ src="https://jiexiu.xuqidata.com:8083/jiexiujumin/5064115c2e62589da9486151d5bced709ccef7a11063c0f17eddc9654a816d80.png"
+ />
-
+
-
-
+
+
- {{codeTitle}}
- {{codeTitle}}秒
+ {{ codeTitle }}
+ {{ codeTitle }}秒
-
-
+
+
提交
-
+
已阅读并同意《
用户服务协议
@@ -41,271 +76,290 @@
\ No newline at end of file
+.number-alert-icon {
+ width: 144rpx;
+ height: 144rpx;
+ display: inline-block;
+ border: none;
+ border-radius: 50%;
+}
+
+.number-alert-title {
+ font-size: 32rpx;
+ font-weight: 500;
+ color: #293341;
+ line-height: 32rpx;
+ margin-top: 38rpx;
+ margin-bottom: 92rpx;
+}
+
+.number-alert-btn {
+ background: #19ba50;
+ border-radius: 42px;
+ color: #fff;
+}
+
+.phone-popup {
+ padding-bottom: 108rpx;
+}
+