This commit is contained in:
2025-08-19 14:35:12 +08:00
parent 3f2fa0a8a3
commit 7a91647105
30 changed files with 2282 additions and 1085 deletions

View File

@@ -26,7 +26,7 @@
<image v-if="!item.extra" class="mine-list-arrow" src="/static/ic_arrow_gray.webp" />
</view>
</view>
<button class="logout-btn">退出登录</button>
<button class="logout-btn" @click="logout">退出登录</button>
</view>
</view>
</template>
@@ -35,10 +35,10 @@
export default {
name: 'Mine',
data() {
return {
userInfo:{
nickname: '',
phone:''
return {
userInfo:{
nickname: '',
phone:''
},
list: [{
icon: '/static/ic_mine_info.png',
@@ -76,8 +76,8 @@
]
}
},
onLoad() {
this.userInfo.nickname =this.vuex_user.nickName
onLoad() {
this.userInfo.nickname =this.vuex_user.nickName
this.userInfo.phone = this.vuex_user.phonenumber
},
methods: {
@@ -111,6 +111,14 @@
url: '/pages/sys/user/myRecord/myRecord'
});
}
},
logout() {
// 清除用户信息并返回登录页
this.$u.vuex('vuex_user', {});
this.$u.vuex('vuex_token', '');
uni.redirectTo({
url: '/pages/sys/login/login'
});
}
}
}

View File

@@ -115,7 +115,6 @@
let images = [''];
let filePath = this.header.replace('file://', '');
images[0] = filePath;
console.log("t1", images)
const result = await uploadFiles({
files: images,
url: this.vuex_config.baseUrl + '/resource/oss/upload',
@@ -125,7 +124,6 @@
if (result.code == '200') {
data = result.data.url
console.log("t1", result.data.url)
}
this.form.facePictures = result.url