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 @@