index.js 550 B

12345678910111213141516171819202122232425262728293031323334
  1. export default {
  2. data() {
  3. return {
  4. user:{},
  5. pic:'/static/img/user.png',
  6. show:true,
  7. }
  8. },
  9. onLoad() {
  10. },
  11. methods: {
  12. showphone(phone){
  13. if(!phone){
  14. return "";
  15. }
  16. if(phone.length!=11){
  17. return "";
  18. }
  19. return phone.substring(0,3)+'****'+phone.substring(8);
  20. },
  21. signOut(){
  22. this.carhelp.signOut()
  23. uni.reLaunch({
  24. url: '/pages/car/login'
  25. })
  26. }
  27. },onReady(){
  28. this.user=this.carhelp.getPersonInfo();
  29. if(this.user.faceImage){
  30. this.pic=this.user.faceImage;
  31. }
  32. }
  33. }