添加个人中心及按角色展示内容

This commit is contained in:
2026-03-11 16:12:00 +08:00
parent 4df88ea502
commit 2056f69c3e
45 changed files with 1108 additions and 23 deletions

9
add_toast.py Normal file
View File

@@ -0,0 +1,9 @@
import codecs
file_path = r'd:\\骅锋\\mall\\layouts\\admin\\components\\AdminHeader.uvue'
with codecs.open(file_path, 'r', 'utf-8') as f:
text = f.read()
text = text.replace('function goToUserCenter() {', 'function goToUserCenter() {\n uni.showToast({ title: "尝试打开个人中心...", icon: "none", duration: 2000 });\n console.log([AdminHeader] goToUserCenter called);')
with codecs.open(file_path, 'w', 'utf-8') as f:
f.write(text)