1
This commit is contained in:
42
tmp/fix_flow2.py
Normal file
42
tmp/fix_flow2.py
Normal file
@@ -0,0 +1,42 @@
|
||||
path = r'c:\NeoZQYY\apps\miniprogram\miniprogram\pages\board-finance\board-finance.wxss'
|
||||
with open(path, 'r', encoding='utf-8') as f:
|
||||
lines = f.readlines()
|
||||
|
||||
# flow-detail-right: lines 1010-1014 (0-indexed: 1009-1013)
|
||||
lines[1009] = '\n'
|
||||
lines[1010] = '.flow-detail-right {\n'
|
||||
lines[1011] = ' display: flex;\n'
|
||||
lines[1012] = ' align-items: center;\n'
|
||||
lines[1013] = ' gap: 0;\n'
|
||||
# line 1014 is already '}'
|
||||
|
||||
# flow-total-right: lines 1064-1068 (0-indexed: 1063-1067)
|
||||
lines[1063] = '.flow-total-right {\n'
|
||||
lines[1064] = ' display: flex;\n'
|
||||
lines[1065] = ' align-items: center;\n'
|
||||
lines[1066] = ' gap: 0;\n'
|
||||
# line 1067 is already '}'
|
||||
|
||||
# flow-detail-val: lines 1017-1022 (0-indexed: 1016-1021)
|
||||
lines[1016] = '.flow-detail-val {\n'
|
||||
lines[1017] = ' font-size: 26rpx;\n'
|
||||
lines[1018] = ' line-height: 36rpx;\n'
|
||||
lines[1019] = ' font-weight: 500;\n'
|
||||
lines[1020] = ' color: #4b4b4b;\n'
|
||||
lines[1021] = ' min-width: 120rpx;\n'
|
||||
# Need to insert one more line - shift remaining
|
||||
lines.insert(1022, ' text-align: right;\n')
|
||||
|
||||
# After insert, flow-total-value shifts by 1
|
||||
# flow-total-value: lines 1070-1075 (0-indexed: 1069-1074) -> now 1070-1075
|
||||
lines[1070] = '.flow-total-value {\n'
|
||||
lines[1071] = ' font-size: 33rpx;\n'
|
||||
lines[1072] = ' line-height: 51rpx;\n'
|
||||
lines[1073] = ' font-weight: 600;\n'
|
||||
lines[1074] = ' color: #242424;\n'
|
||||
lines[1075] = ' min-width: 140rpx;\n'
|
||||
lines.insert(1076, ' text-align: right;\n')
|
||||
|
||||
with open(path, 'w', encoding='utf-8') as f:
|
||||
f.writelines(lines)
|
||||
print('OK')
|
||||
Reference in New Issue
Block a user