From 88137407996a518c9d5121294a5a5dbebab34f8e Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Fri, 10 Jun 2022 11:21:56 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E7=AD=89=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apis/modules/user.js | 8 +++-
config/product.js | 2 +-
pages/clientDetail/clientDetail.vue | 5 +-
pages/detail/detail.vue | 39 ++++++++++++++-
pages/editCourse/editCourse.vue | 2 +-
pages/index/index.vue | 28 +++++------
pages/orderDetail/orderDetail.vue | 73 ++++++++++++++++-------------
pages/password/password.vue | 39 ++++++++++++---
pages/qrcode/qrcode.vue | 18 ++++---
pages/setting/setting.vue | 6 +++
styles/common.scss | 1 +
11 files changed, 151 insertions(+), 70 deletions(-)
diff --git a/apis/modules/user.js b/apis/modules/user.js
index b212ed2..ae8f2e6 100644
--- a/apis/modules/user.js
+++ b/apis/modules/user.js
@@ -7,4 +7,10 @@ export const login = (data) => {
export const userBinding = (data) => {
return post('users/users/user/userBinding', data)
-}
\ No newline at end of file
+}
+
+export const examinePassword = (data) => {
+ return post('users/users/userAccount/examinePassword', data)
+}
+
+export const updateUserAvatars = `http://39.108.250.202:9000/users/users/userAccount/updateUserAvatars`
\ No newline at end of file
diff --git a/config/product.js b/config/product.js
index b3646e0..ea2a564 100644
--- a/config/product.js
+++ b/config/product.js
@@ -5,5 +5,5 @@
*/
export default {
- normalIcon: 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220609/png/1534733700683030528.png'
+ normalIcon: 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220609/png/1534733700683030528.png' // 通用图标
}
diff --git a/pages/clientDetail/clientDetail.vue b/pages/clientDetail/clientDetail.vue
index dbe56e9..c5ae3f1 100644
--- a/pages/clientDetail/clientDetail.vue
+++ b/pages/clientDetail/clientDetail.vue
@@ -282,7 +282,8 @@
diff --git a/pages/qrcode/qrcode.vue b/pages/qrcode/qrcode.vue
index 5ded198..10db43f 100644
--- a/pages/qrcode/qrcode.vue
+++ b/pages/qrcode/qrcode.vue
@@ -11,9 +11,7 @@
{{ team.partnerClassificationName }}
-
-
-
+
扫一扫,加入我们吧
邀请二维码失效日期:{{ expireTime }}
@@ -37,12 +35,12 @@
},
onShow() {
this.getQrcode()
-
},
methods: {
// 生成二维码
getQrcode() {
const { team } = this
+ // 生成邀请码
generateInvitationCode(uni.getStorageSync('team').accountId).then(({ expireTime }) => {
const date = new Date(Date.now() + expireTime * 1000) // 返回的秒,要*1000
this.expireTime = `${date.getFullYear()}-${this.$util.preZero(date.getMonth() + 1)}-${this.$util.preZero(date.getDate())} ${this.$util.preZero(date.getHours())}:${this.$util.preZero(date.getMinutes())}:${this.$util.preZero(date.getMinutes())}`
@@ -57,11 +55,14 @@