Commit da210243 by tdgiang

update code

parent 27fba97b
...@@ -420,6 +420,32 @@ ...@@ -420,6 +420,32 @@
outline-offset: 2px; outline-offset: 2px;
} }
.pay-btn {
flex-shrink: 0;
height: 30px;
padding: 0 12px;
font-family: inherit;
font-size: 12px;
font-weight: 600;
color: #fff;
background: var(--color-primary);
border: 1px solid var(--color-primary);
border-radius: 6px;
cursor: pointer;
transition: background 150ms ease;
text-decoration: none;
display: inline-flex;
align-items: center;
}
.pay-btn:hover {
background: var(--color-primary-hover);
}
.pay-btn:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
.result-actions { .result-actions {
margin-top: 10px; margin-top: 10px;
} }
...@@ -832,6 +858,9 @@ ...@@ -832,6 +858,9 @@
res.data.paymentUrl + res.data.paymentUrl +
'" id="paymentUrlField">' + '" id="paymentUrlField">' +
'<button type="button" class="copy-btn" id="copyBtn">Sao chép</button>' + '<button type="button" class="copy-btn" id="copyBtn">Sao chép</button>' +
'<a href="' +
res.data.paymentUrl +
'" target="_blank" rel="noopener" class="pay-btn" id="payBtn">Thanh toán</a>' +
"</div>" + "</div>" +
'<div class="result-actions"><button type="button" class="btn-ghost" id="newTxBtn">Tạo giao dịch khác</button></div>' + '<div class="result-actions"><button type="button" class="btn-ghost" id="newTxBtn">Tạo giao dịch khác</button></div>' +
"</div></div>"; "</div></div>";
......
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