Merge pull request #8 from ZL114514/main

Adding details in shop
This commit is contained in:
UnitedAirforce
2025-05-30 18:33:11 +08:00
committed by GitHub

11
7001.py
View File

@@ -881,9 +881,12 @@ def web_shop():
if i not in exclude_stage_exp: if i not in exclude_stage_exp:
# Add a button for this stage # Add a button for this stage
buttons_html += f""" buttons_html += f"""
<button style="width: 180px; height: 180px; margin: 10px; background-size: cover; background-image: url('/files/image/icon/shop/{i}.jpg');" <div style="width: 180px; height: 280px; margin: 10px; text-align: center; align-items: center; position: relative; display: block;" onclick="window.location.href='wwic://web_shop_detail?&cnt_type={cnt_type}&cnt_id={i}'">
onclick="window.location.href='wwic://web_shop_detail?&cnt_type={cnt_type}&cnt_id={i}'"> <img style="width: 180px; height: 180px; margin: 10px; background-size: 180px;" src="/files/image/icon/shop/{i}.jpg" alt={a}>
</button> </img>
<div style="font-weight: bold; font-size: 16px; word-wrap: break-word; line-height: 1.4">{n}</div>
<div style="font-size: 12px; word-wrap: break-word; line-height: 1.4">{a}</div>
</div>
""" """
inc += 1 inc += 1
if inc % 4 == 0: if inc % 4 == 0:
@@ -1835,4 +1838,4 @@ if __name__ == '__main__':
if app.config['SSL_CERT'] and app.config['SSL_KEY']: if app.config['SSL_CERT'] and app.config['SSL_KEY']:
app.run(host=app.config['HOST'], port=app.config['PORT'], debug=app.config['DEBUG'], ssl_context=(app.config['SSL_CERT'], app.config['SSL_KEY'])) app.run(host=app.config['HOST'], port=app.config['PORT'], debug=app.config['DEBUG'], ssl_context=(app.config['SSL_CERT'], app.config['SSL_KEY']))
else: else:
app.run(host=app.config['HOST'], port=app.config['PORT'], debug=app.config['DEBUG']) app.run(host=app.config['HOST'], port=app.config['PORT'], debug=app.config['DEBUG'])