|
@@ -1,6 +1,7 @@
|
|
|
// pages/my/my.js
|
|
|
import itt from '../../utils/util'
|
|
|
import { ittLogin, bindMobile, bindBaseInfo } from '../../api/my'
|
|
|
+import { getAccountNmber } from '../../api/appointment'
|
|
|
const app = getApp()
|
|
|
Page({
|
|
|
|
|
@@ -100,6 +101,7 @@ Page({
|
|
|
app.globalData.userInfo.headImg= res.data.headImg
|
|
|
app.globalData.userInfo.userName = res.data.userName
|
|
|
app.globalData.userInfo.phoneNumber = res.data.phoneNumber
|
|
|
+ that.getAccountNmberFn()
|
|
|
if (!res.data.isNeedPhone && res.data.headImg !== '') {
|
|
|
app.globalData.userInfo.login = true
|
|
|
that.setData({
|
|
@@ -138,6 +140,14 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getAccountNmberFn () {
|
|
|
+ var that = this
|
|
|
+ getAccountNmber({}).then(res => {
|
|
|
+ that.setData({
|
|
|
+ count: res.data
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
onChooseAvatar(e) {
|
|
|
const { avatarUrl } = e.detail
|
|
|
this.setData({
|