MrShi
2026-05-12 47d56a8b0f22fb15a46b69dfd46fac23560ad2cd
mini-program/pages/settings/settings.vue
@@ -2,7 +2,7 @@
   <view class="box">
      <view class="box-tx">
         <view class="box-tx-image">
            <image :src="form.imgFullUrl" mode="widthFix"></image>
            <image :src="form.imgFullUrl || '/static/icon/default.png'" mode="widthFix"></image>
         </view>
         <button open-type="chooseAvatar" @chooseavatar="getAvatar">更换头像</button>
      </view>
@@ -85,6 +85,10 @@
         this.form.phone1 = this.returnPhone(this.userInfo.phone)
         this.form.imgFullUrl = this.userInfo.imgFullUrl
         this.form.imgurl = this.userInfo.imgurl
         uni.$on('phone', () => {
            this.form.phone = this.userInfo.phone
            this.form.phone1 = this.returnPhone(this.userInfo.phone)
         })
      },
      methods: {
         jumpxy() {
@@ -96,6 +100,7 @@
            return formatPhoneStar(phone)
         },
         jumpPhone() {
            this.show = false
            uni.navigateTo({
               url: '/pages/change-binding/change-binding'
            })
@@ -146,6 +151,7 @@
               .then(res => {
                  if (res.code === 200) {
                     this.$store.commit('clear')
                     uni.$emit('loginOut')
                     uni.switchTab({
                        url: '/pages/index/index'
                     })