index.js 443 B

1234567891011121314151617181920212223242526272829303132
  1. export default {
  2. data() {
  3. return {
  4. user:{},
  5. }
  6. },
  7. methods: {
  8. gotoUrl(){
  9. uni.redirectTo({
  10. url: '/pages/my/user/updatephone/verification'
  11. })
  12. },
  13. showphone(phone){
  14. if(!phone){
  15. return "";
  16. }
  17. if(phone.length!=11){
  18. return "";
  19. }
  20. return phone.substring(0,3)+'****'+phone.substring(8);
  21. },
  22. },
  23. onLoad() {
  24. },onReady(){
  25. this.user=this.carhelp.getPersonInfo();
  26. }
  27. }