This commit is contained in:
2025-08-13 14:53:35 +08:00
parent 1f5f069988
commit b2009403d8
13 changed files with 761 additions and 282 deletions

View File

@@ -33,6 +33,18 @@ export default {
}
})
},
refreshPrevPageData(reset) {
const pages = getCurrentPages(); // 当前页面栈
if (pages.length > 1) {
const prevPage = pages[pages.length - 2]; // 上一页实例
if (prevPage && typeof prevPage.refreshData === 'function') {
console.log('at line 514:', '调用刷新函数')
prevPage.refreshData(reset); // 调用刷新函数
}
}
uni.navigateBack({ delta: 1 });
},
//复制内容
handleCopy(value, title) {
uniCopy({
@@ -44,22 +56,22 @@ export default {
})
},
error: (e) => {
}
})
},
//用户协议
async getAgreement(id) {
async getAgreement(id) {
console.log('id at line 56:', id)
var data = {
id: id
}
var result = {
title:'',
content:''
title: '',
content: ''
}
await $http
await $http
.request({
url: "sys/agreement/getAgreement",
method: "POST",
@@ -111,8 +123,8 @@ export default {
}
},
});
},
// 注销账户
},
// 注销账户
logout() {
let that = this;
uni.showModal({