Commit f12cdea4 authored by 赵杰's avatar 赵杰

新模板图片问题

parent 87525fa0
...@@ -942,11 +942,11 @@ ...@@ -942,11 +942,11 @@
</div> </div>
<div class="dcell"> <div class="dcell">
<div class="cover_text"> <div class="cover_text">
{{brand_name}} <!-- {{brand_name}}-->
</div> </div>
</div> </div>
</div> </div>
<img src={{cover_back}} alt="" class="cover_back fr"> <img src={{sh}} alt="" class="cover_back fr">
<div class="cover_title dtable"> <div class="cover_title dtable">
<div class="cover_people"> <div class="cover_people">
<span class="cover_pre"> <span class="cover_pre">
...@@ -956,10 +956,10 @@ ...@@ -956,10 +956,10 @@
{{customer_name}} {{customer_name}}
</span> </span>
<span class="cover_sir"> <span class="cover_sir">
客户
</span> </span>
</div> </div>
<img class="cover_img" src="./img/red-rect.png" > <img class="cover_img" src={{red_rect}} >
<div class="cover_title_text dcell"> <div class="cover_title_text dcell">
资产<br> 资产<br>
存续报告 存续报告
...@@ -1068,13 +1068,6 @@ ...@@ -1068,13 +1068,6 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>
{%if (now_yield|float)>=0%}
成立以来累计收益率:<span class="red">{{now_yield}}%</span>
{%else%}
成立以来累计收益率:<span class="green">{{now_yield}}%</span>
{%endif%}
</td>
<td> <td>
{%if (now_annualised_return|float)>=0%} {%if (now_annualised_return|float)>=0%}
年化收益率:<span class="red">{{now_annualised_return}}%</span> 年化收益率:<span class="red">{{now_annualised_return}}%</span>
...@@ -1089,7 +1082,12 @@ ...@@ -1089,7 +1082,12 @@
最大回撤:<span class="green">{{now_withdrawal}}%</span> 最大回撤:<span class="green">{{now_withdrawal}}%</span>
{%endif%} {%endif%}
</td> </td>
<td> <td colspan="2">
{%if (now_yield|float)>=0%}
成立以来累计收益率:<span class="red">{{now_yield}}%</span>
{%else%}
成立以来累计收益率:<span class="green">{{now_yield}}%</span>
{%endif%}
</td> </td>
</tr> </tr>
</table> </table>
......
...@@ -246,9 +246,11 @@ class DataIntegrate: ...@@ -246,9 +246,11 @@ class DataIntegrate:
'logo': template_folder + '/v2/img/logo.png', 'logo': template_folder + '/v2/img/logo.png',
'scene': template_folder + '/v2/img/scene.png', 'scene': template_folder + '/v2/img/scene.png',
'team': template_folder + '/v2/img/default-user.png', 'team': template_folder + '/v2/img/default-user.png',
'red_rect': template_folder + '/v2/img/red-rect.png',
'sh': template_folder + '/v2/img/sh.png',
# 全局数据 # 全局数据
'customer_name': self.customer_name, 'customer_name': self.customer_name,
'year_month': self.user_customer.month_start_date.strftime("%Y{}%m{}").format("年", "月"), 'year_month': self.user_customer.month_start_date.strftime("%Y-%m"),
'month': self.user_customer.month_start_date.strftime("%m"), 'month': self.user_customer.month_start_date.strftime("%m"),
'start_date': self.user_customer.start_date.strftime("%Y-%m-%d"), 'start_date': self.user_customer.start_date.strftime("%Y-%m-%d"),
'latest_worth_day': self.user_customer.last_nav_date, 'latest_worth_day': self.user_customer.last_nav_date,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment