wenhongquan 2 maanden geleden
bovenliggende
commit
1c8bb9e2d7
2 gewijzigde bestanden met toevoegingen van 13 en 5 verwijderingen
  1. 1 1
      upsystem/overrides/user_send_mail.py
  2. 12 4
      upsystem/templates/emails/new_user.html

+ 1 - 1
upsystem/overrides/user_send_mail.py

@@ -23,5 +23,5 @@ def custom_send_welcome_mail_to_user(doc, method=None):
             "email": doc.email,
             "link": link,
         },
-        header=["账户激活", "green"],
+        # header=["账户激活", "green"],
     )

+ 12 - 4
upsystem/templates/emails/new_user.html

@@ -12,7 +12,7 @@
           <tr>
             <td style="padding:32px 0 8px 0;text-align:center;">
               <!-- LOGO -->
-              <img src="https://unicornpack.oss-ap-southeast-1.aliyuncs.com/logo.png" alt="Unicorn Pack" width="180" height="48" style="display:block;margin:0 auto 24px auto;">
+              <img src="https://unicornpack.oss-ap-southeast-1.aliyuncs.com/logo.png" alt="Unicorn Pack" width="200" height="40" style="display:block;margin:0 auto 24px auto;">
             </td>
           </tr>
           <tr>
@@ -57,14 +57,18 @@
             </td>
           </tr>
         </table>
-        <!-- Footer with yellow pattern -->
-        <table width="600" cellpadding="0" cellspacing="0" border="0" style="background:#FBE56D url('https://unicornpack.oss-ap-southeast-1.aliyuncs.com/img_2.png') repeat left bottom; border-radius:0 0 16px 16px;">
+		<div style="background: #FFE21B;width:600px;height: 194px;display: flex;flex-direction: row;justify-content: space-between;">
+			<div style="background: url('https://unicornpack.oss-ap-southeast-1.aliyuncs.com/1754447096085.png') repeat;width: 242px;height: 100%;">
+                <div style="background: url('https://unicornpack.oss-ap-southeast-1.aliyuncs.com/1754446971240.png') no-repeat;width:100%;height: 100%;background-size: 100% 100%;"></div>
+			</div>
+			<!-- Footer with yellow pattern -->
+         <table width="356" cellpadding="0" cellspacing="0" border="0" style=" border-radius:0 0 16px 16px;">
           <tr>
             <td style="padding:24px 36px 14px 36px;">
               <table width="100%" border="0" cellpadding="0" cellspacing="0">
                 <tr>
                   <td align="left" valign="middle">
-                    <img src="https://unicornpack.oss-ap-southeast-1.aliyuncs.com/logo.png" alt="Unicorn Pack" width="140" height="36" style="display:block;margin:0">
+                    <img src="https://unicornpack.oss-ap-southeast-1.aliyuncs.com/logo.png" alt="Unicorn Pack" width="200" height="40" style="display:block;margin:0">
                   </td>
                   <td align="right" valign="middle">
                     <!-- Social icons, you can replace URLs below -->
@@ -88,6 +92,10 @@
             </td>
           </tr>
         </table>
+
+
+		</div>
+
       </td>
     </tr>
   </table>