From 6d1a4d1e2a36b986e464aaef635cc95a46ebf79a Mon Sep 17 00:00:00 2001 From: STDquantum <405720329@qq.com> Date: Sat, 3 Feb 2024 01:27:51 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=BD=AC=E8=B4=A6?= =?UTF-8?q?=E5=92=8C=E9=9F=B3=E8=A7=86=E9=A2=91=E9=80=9A=E8=AF=9D=E7=9A=84?= =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/resources/data/template.html | 166 +++++++++++++++++++++++++ app/ui/contact/export/export_dialog.py | 4 +- app/ui/menu/export.py | 2 +- 3 files changed, 169 insertions(+), 3 deletions(-) diff --git a/app/resources/data/template.html b/app/resources/data/template.html index 8bf2d1a..3b6b087 100644 --- a/app/resources/data/template.html +++ b/app/resources/data/template.html @@ -569,6 +569,128 @@ input { font-weight: bold; } +/* 转账 */ + +.transfer-box { + width: 200px; + height: 80px; + margin-left: 18px; + margin-right: 18px; + border-radius: 3px; + padding-left: 11px; + padding-right: 11px; + position: relative; +} + +.transfer-box[paysubtype="1"], .transfer-box[paysubtype="1"]::before { + background: #f79c46; +} + +.transfer-box[paysubtype="1"] i { + background-image: url(./icon/transfer1.png); +} + +.transfer-box:not([paysubtype="1"]), .transfer-box:not([paysubtype="1"])::before { + background: #f8e2c6; +} + +.transfer-box[paysubtype="3"] i { + background-image: url(./icon/transfer2.png); +} + +.transfer-box[paysubtype="4"] i { + background-image: url(./icon/transfer3.png); +} + +.transfer-box::before { + content: ""; + width: 8px; + height: 8px; + position: absolute; + transform: rotate(45deg); + top: 18px; +} + +.transfer-box[issend="0"]::before { + left: -3px; +} + +.transfer-box[issend="1"]::before { + left: 218px; +} + +.trans-content { + display: flex; + height: 60px; + align-items: center; + position: relative; +} + +.trans-content>i { + display: block; + width: 36px; + height: 36px; + background-repeat: no-repeat; + background-size: cover; +} + +.transfer-texts { + margin-left: 7px; + display: flex; + align-items: flex-start; + flex-direction: column; +} + +.transfer-texts>span, .transfer-texts>font, .trans-bottom>span { + color: white; + font-weight: 500; +} + +.transfer-texts>span { + font-size: 15px; +} + +.transfer-texts>font { + font-size: 12px; + padding-left: 2px; +} + +.transfer { + height: 60px; +} + +.trans-bottom { + height: 16px; + margin-top: 1px; + display: flex; + align-items: center; +} + +.trans-bottom>span { + font-size: 10px; +} + +/* 音视频通话 */ + +.call i{ + display: inline-block; + width: 18px; + height: 18px; + background-repeat: no-repeat; + background-size: cover; + vertical-align: middle; + margin-right: 4px; + margin-top: -2px; +} + +.call[calltype='1'] i { + background-image: url(./icon/phone.png); +} + +.call[calltype='0'] i { + background-image: url(./icon/video.png); +} + @media screen and (max-width: 768px) { .button-row, .jump-row, @@ -1406,6 +1528,26 @@ function renderPage(page) { } return messageMusicAudioTag; } + function messageTransfer(message) { + const transfer_box = document.createElement("div"); + transfer_box.className = "transfer-box"; + transfer_box.setAttribute("issend", message.is_send); + transfer_box.setAttribute("paysubtype", message.paysubtype); + transfer_box.innerHTML = `
3RL_9GMk(Y01pMP2jX@OE<<8* z`~bzgdZ_st*7BNQCl~O%{k~AYoVZo<#bT0>t;WGuo+>bJjvfPq4)A+5LbTkbaGn{zLk00`>x(Mv= zO)6nB8P&ohjR{gr&KN*h_nQ2Z&fi813k!DV`^Mz7g2lSq&ZIaQmOqeeK?qq!!P}OB z^&7zw_#{ycx2XLIK&}svT{n71lEf-WqIJd{AAGde{Pjv;!rH{!+~^5QL)p^$2Duzy z;SdDbWMkpRYUWAu+JQ`v-L-(s2h$*Ll)MP oydt3>E5Jsj3H1_RxAzN3pJP=y zvl8rktbvm@JGOOIlq!C1Bw Zbo@OWs{m3`@COY zr6d(`dk0$$E-g<=d=b)i7i=@=6QXlA-@ndW;$2N85+ z?Mv?TpE}n-%_Z*~yVzC@x5%jCm$E8e7e|+pG4D3>hr}51Af)u28~COs90fK$*kI#B zfEL|}w0^lM@s4HV$1n{Jb&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> Date: Sat, 3 Feb 2024 01:30:31 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ui/contact/export/export_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/contact/export/export_dialog.py b/app/ui/contact/export/export_dialog.py index 1ef56d0..603861e 100644 --- a/app/ui/contact/export/export_dialog.py +++ b/app/ui/contact/export/export_dialog.py @@ -49,7 +49,7 @@ class ExportDialog(QDialog, Ui_Dialog): if file_type == 'html': self.export_type = Output.HTML self.export_choices = {"文本": True, "图片": True, "语音": False, "视频": False, "表情包": False, - '音乐与音频': False, '分享卡片': False, '文件': False, '转账': False, '音视频通话': False, + '音乐与音频': False, '分享卡片': False, '文件': False, '转账': False, '音视频通话': False,'拍一拍等系统消息': True} # 定义导出的数据类型,默认全部选择 elif file_type == 'csv': self.export_type = Output.CSV From 596f63b70b3999da3ae4a62d4e265ae20064e86e Mon Sep 17 00:00:00 2001 From: STDquantum <405720329@qq.com> Date: Sat, 3 Feb 2024 01:40:26 +0800 Subject: [PATCH 4/4] fix --- app/resources/data/template.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/resources/data/template.html b/app/resources/data/template.html index 3b6b087..9fde241 100644 --- a/app/resources/data/template.html +++ b/app/resources/data/template.html @@ -17,7 +17,7 @@ body { align-items: center; justify-content: center; background-color: #F5F5F5; - //background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2394AB85' fill-opacity='0.4'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); + /*background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2394AB85' fill-opacity='0.4'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");*/ } ::-webkit-scrollbar { @@ -169,8 +169,6 @@ body { background: rgba(0, 0, 0, 0.3); } -.container .content { -} .bubble { white-space: pre-wrap; max-width: 400px;