wangyuan пре 2 година
родитељ
комит
38084b61cf
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      pages/appointment/appointment.js
  2. 1 1
      pages/buy/buy.js

+ 1 - 1
pages/appointment/appointment.js

@@ -42,7 +42,7 @@ Page({
   onShow() {
     this.getAccountNmberFn()
     this.setData({
-      appusername: app.globalData.userInfo.userName.length > 4 ? app.globalData.userInfo.userName.substring(0,4) : app.globalData.userInfo.userName,
+      appusername: app.globalData.userInfo.userName.length > 8 ? app.globalData.userInfo.userName.substring(0,4) : app.globalData.userInfo.userName,
       appuserheadimg: app.globalData.userInfo.headImg
     })
     if (app.globalData.navigateBackParams.address) {

+ 1 - 1
pages/buy/buy.js

@@ -30,7 +30,7 @@ Page({
     this.getAccountNmberFn()
     this.setData({
       from: options.from,
-      appusername: app.globalData.userInfo.userName.length > 4 ? app.globalData.userInfo.userName.substring(0,4) : app.globalData.userInfo.userName,
+      appusername: app.globalData.userInfo.userName.length > 8 ? app.globalData.userInfo.userName.substring(0,4) : app.globalData.userInfo.userName,
       appuserheadimg: app.globalData.userInfo.headImg
     })
   },