no message

Former-commit-id: 3dcc74018824d2caaf994c62f0b9c72baef018af
Former-commit-id: c719ef34b4582e4567850f547a73afe6175e88b8
Former-commit-id: 3895be9bd500ea94bfb72a2764de6f8f9492210d
This commit is contained in:
李杨
2018-02-24 19:00:32 +08:00
parent 7bb54e3de7
commit 54d0452400
2 changed files with 18 additions and 5 deletions

View File

@@ -101,8 +101,10 @@ $baidupanHeight: 30px;
border: 1px solid #dfe2e5;
padding: 10px;
float: left;
user-select: none;
cursor: pointer;
&:hover {
border: 1px solid $color-primary;
}
.icon {
float: left;
height: $baidupanHeight;
@@ -118,6 +120,12 @@ $baidupanHeight: 30px;
height: $baidupanHeight;
line-height: $baidupanHeight;
}
.pwd {
float: left;
height: $baidupanHeight;
line-height: $baidupanHeight;
margin-left: 10px;
}
}
}
</style>

View File

@@ -15,13 +15,18 @@ export default (quote) => {
const url = _quote.match(/https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+/i)
const pwd = _quote.match(/[a-z0-9]{4}$/i)
return `<div class="baidupan">
<a href="${_quote}" class="container">
<div class="container">
<div class="icon">
<img src="/static/image/baidu-pan-logo.png">
</div>
<div class="url">${url[0]}</div>
<div class="pwd">${pwd[0]}</div>
</a>
<div class="url">
<a href="${url[0]}">${url[0]}</a>
</div>
<div class="pwd">
密码
<span>${pwd[0]}</span>
</div>
</div>
</div>`
} else {
return false