12345678910111213141516171819202122232425262728293031323334 |
- export default {
- data() {
- return {
- user:{},
- pic:'/static/img/user.png',
- show:true,
- }
- },
- onLoad() {
-
- },
- methods: {
- showphone(phone){
- if(!phone){
- return "";
- }
- if(phone.length!=11){
- return "";
- }
- return phone.substring(0,3)+'****'+phone.substring(8);
- },
- signOut(){
- this.carhelp.signOut()
- uni.reLaunch({
- url: '/pages/car/login'
- })
- }
- },onReady(){
- this.user=this.carhelp.getPersonInfo();
- if(this.user.faceImage){
- this.pic=this.user.faceImage;
- }
- }
- }
|