Skip to content

Commit

Permalink
Merge pull request #922 from Tencent/develop
Browse files Browse the repository at this point in the history
feat: weui v2.5.12
  • Loading branch information
chen-zeyu committed Sep 6, 2022
2 parents 01a2697 + 971f495 commit 01f3e28
Show file tree
Hide file tree
Showing 14 changed files with 95 additions and 34 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### v2.5.12 (2022-09-06)

#### Features
* fix: 加入公安备案信息

#### Bugfixes
* fix: toast、toptips层级调整至5500



### v2.5.11 (2022-08-16)

#### Features
Expand Down
2 changes: 1 addition & 1 deletion dist/example/example.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ $(() => {
window.home = function () {
location.hash = '';
};

var year = new Date().getFullYear();
document.getElementById('js_copyright_year').innerHTML = year;
}
init();
});
Binary file added dist/example/images/pic_gongan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 12 additions & 3 deletions dist/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4278,9 +4278,18 @@ <h1 class="page__title">TopTips</h1>
<div class="page_logo_wrp">
<a href="javascript:home()"><img src="images/icon_footer_link.png" /></a>
</div>
<a href="//beian.miit.gov.cn/" class="page_copyright">
备案号:粤B2-20090059
</a>
<div class="weui-footer">
<div class="weui-footer__text">
<a class="weui-footer__text__meta" href="//beian.miit.gov.cn/">备案号:粤B2-20090059</a>
<a class="weui-footer__text__meta gongan_meta" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030502009285"><img src="./images/pic_gongan.png">粤公网安备 44030502009285号</a>

<span class="weui-footer__text__meta">公司地址:深圳市南山区粤海街道麻岭社区科技中一路腾讯大厦35层</span>
<span class="weui-footer__text__meta">联系电话:4006 700 700</span>
</div>
<div class="weui-footer__text">
Copyright © 1998 - <span id="js_copyright_year"></span> Tencent All Rights Reserved.
</div>
</div>
</div>
</script>
<script src="./zepto.min.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions dist/style/weui.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/style/weui.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weui",
"version": "2.5.11",
"version": "2.5.12",
"description": "A UI library by WeChat official design team, includes the most useful widgets/modules in mobile web applications.",
"keywords": [
"weui",
Expand Down
3 changes: 3 additions & 0 deletions src/example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ $(() => {
window.home = function () {
location.hash = '';
};

var year = new Date().getFullYear();
document.getElementById('js_copyright_year').innerHTML = year;
}
init();
});
63 changes: 45 additions & 18 deletions src/example/example.less
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ body,

.page__ft {
padding-top: 40px;
padding-bottom: 10px;
padding-bottom: calc(10px ~"+ constant(safe-area-inset-bottom)");
padding-bottom: calc(10px ~"+ env(safe-area-inset-bottom)");
padding-bottom: 32px;
padding-bottom: calc(32px ~"+ constant(safe-area-inset-bottom)");
padding-bottom: calc(32px ~"+ env(safe-area-inset-bottom)");
text-align: center;
img {
height: 19px;
Expand All @@ -107,6 +107,39 @@ body,
left: 0;
right: 0;
}
.weui-footer{
display:none;
padding:16px 0 0;
}
.weui-footer__text{
margin-bottom:8px;
&:last-child{
margin-bottom:0;
}
}
.weui-footer__text__meta{
margin:0 6px;
}
a.weui-footer__text__meta{
color:rgba(0,0,0,.2);
.dark({
color:rgba(255,255,255,.2);
});
&:active{
opacity:.5;
}
}
.gongan_meta{
display:inline-flex;
vertical-align:bottom;
align-items:center;

img{
margin-right:2px;
width:18px;
height:18px;
}
}
}

.page__title {
Expand Down Expand Up @@ -605,21 +638,6 @@ body,
vertical-align:bottom;
}
}
.page_copyright{
&&{
margin-top:12px;
line-height:1.4;
color:rgba(0,0,0,.2);
font-size:12px;
text-align:center;
.dark({
color:rgba(255,255,255,.2);
});
&:active{
opacity:.5;
}
}
}


// iphone x
Expand Down Expand Up @@ -652,3 +670,12 @@ body,
}
}
}

@media (min-device-width: 768px) {
.page__ft{
padding-bottom:48px;
.weui-footer{
display:block;
}
}
}
Binary file added src/example/images/pic_gongan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 12 additions & 3 deletions src/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,18 @@
<div class="page_logo_wrp">
<a href="javascript:home()"><img src="images/icon_footer_link.png" /></a>
</div>
<a href="//beian.miit.gov.cn/" class="page_copyright">
备案号:粤B2-20090059
</a>
<div class="weui-footer">
<div class="weui-footer__text">
<a class="weui-footer__text__meta" href="//beian.miit.gov.cn/">备案号:粤B2-20090059</a>
<a class="weui-footer__text__meta gongan_meta" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030502009285"><img src="./images/pic_gongan.png">粤公网安备 44030502009285号</a>

<span class="weui-footer__text__meta">公司地址:深圳市南山区粤海街道麻岭社区科技中一路腾讯大厦35层</span>
<span class="weui-footer__text__meta">联系电话:4006 700 700</span>
</div>
<div class="weui-footer__text">
Copyright © 1998 - <span id="js_copyright_year"></span> Tencent All Rights Reserved.
</div>
</div>
</div>
</script>
<script src="./zepto.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/style/widget/weui-tips/weui-toast.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

.weui-toast {
position: fixed;
z-index: 5000;
z-index: 5500;
font-size: 10px;
width: 13.6em;
height: 13.6em;
Expand Down
2 changes: 1 addition & 1 deletion src/style/widget/weui-tips/weui-toptips.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
font-size: 14px;
text-align: center;
color: #fff; // 固定色值
z-index: 5000;
z-index: 5500;
.text_wrap();
}
.weui-toptips_warn {
Expand Down

0 comments on commit 01f3e28

Please sign in to comment.