consumerm模块完成度90%,完善消费者和商家端数据库表,商品、聊天、订单数据对接好了supabase,和商家端对接了聊天功能,安卓端编译通过了css样式,剩余几个页面在处理函数规范问题
This commit is contained in:
26
fix_all_font_weights.py
Normal file
26
fix_all_font_weights.py
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
import os
|
||||
|
||||
target_dir = r'e:\companyproject\mall'
|
||||
|
||||
count = 0
|
||||
|
||||
for root, dirs, files in os.walk(target_dir):
|
||||
for file in files:
|
||||
if file.endswith('.uvue'):
|
||||
file_path = os.path.join(root, file)
|
||||
try:
|
||||
with open(file_path, 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
|
||||
# Replace font-weight: 600 with font-weight: 700
|
||||
if 'font-weight: 600' in content:
|
||||
print(f"Fixing {file_path}")
|
||||
new_content = content.replace('font-weight: 600', 'font-weight: 700')
|
||||
with open(file_path, 'w', encoding='utf-8') as f:
|
||||
f.write(new_content)
|
||||
count += 1
|
||||
except Exception as e:
|
||||
print(f"Error processing {file_path}: {e}")
|
||||
|
||||
print(f"Fixed {count} files.")
|
||||
Reference in New Issue
Block a user