Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
logoove committed Apr 25, 2021
1 parent fcb1da4 commit aabac81
Show file tree
Hide file tree
Showing 8 changed files with 1,440 additions and 111 deletions.
1 change: 1 addition & 0 deletions weui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ php.js所有方法在插件js方法中都有简单介绍,会不断增加;很多
新版本将后台服务由php改为go语言提供!
### 更新日志
![](https://img.shields.io/badge/Date-%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97-1)
- 2021-4-22 v6.03 重写fn.js,新增一些函数,全部使用export导出函数,里面函数使用必须import {md5,dump} from 'js/fn.js'这样导入,需要哪个导入哪个;新增js表格排序,支持string,int,float,date四种类型能排序常见数据类型
- 2021-3-26 V6.02 删除js函数setcookie,因为此函数存在设置过期时间不生效,使用ls.setCookie替代,修复md5函数错误,新增统计站点pv,uv,此接口(/pvuv)可以用来统计任何静态页面,包括跨域名,原理是传递每个页面的url生成的md5值,类型1是uv,0是pv.
- 2021-3-21 v6.01 修复底部自动加载在安卓部分手机下不能加载.
- 2021-3-20 v6.0 发布最新6.0版本,所有后台都由原来php改为golang提供,包括静态页面,端口:8885,可以自己修改后编译,默认提供x6|4位编译后win10,linux可执行文件,你本地可以不安装任何环境就能运行动态的页面展示效果,数据库采用sqlite3,不管是哪个系统编译都需要gcc支持.
Expand Down
5 changes: 4 additions & 1 deletion weui/demo/form5.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ <h1 class="page-hd-title">
title: "喜欢的美女",
items: ['柳岩','赵丽颖','杨颖','苍井空'],
onChange: function(d) {
console.log(this, d);
$.post("/ver",{value:d.values},function(res){
//console.log(res)
$("#mobile").select("update", { items: [{title:'语文',value:57},{title:'数学',value:17}]})
},'json');
},
onClose: function() {
console.log("close");
Expand Down
2 changes: 1 addition & 1 deletion weui/demo/js102.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
.menu-right h5:first-child{margin-top:0;}

.menu-right ul{overflow: hidden;}
.menu-right ul li{text-align: center;}
.menu-right ul li{text-align: center;list-style: none;}
.menu-right ul li a{display:block; position: absolute; left:3px; top:7px; bottom:7px; right:3px;}
.menu-right ul li:nth-child(3n+1) a{left:0; right:7px;}
.menu-right ul li:nth-child(3n) a{right:0; left:7px;}
Expand Down
74 changes: 74 additions & 0 deletions weui/demo/js103.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<link rel="stylesheet" href="../css/weui.css"/>
<link rel="stylesheet" href="../css/weuix.css"/>
<script src="../js/zepto.min.js"></script>
<style>
table {
width: 100%;
height: auto;
border-bottom: 1px solid #e6e7f1;
float: left
}

table tr:nth-child(2n) td {
background: #f6f7fa
}

table tr td {
line-height: 25px;
padding: 15px;
border-top: 1px solid #e6e7f1;
text-align: center;
background: #fff;
color: #505050;
font-size: 12px
}

table tr .dark {
border-left: 1px solid #e7e7e7;
border-right: 1px solid #e7e7e7
}
table td,table th{
border: none; white-space: nowrap;word-break: keep-all;width:1px;word-wrap: break-word;padding:0 5px;
font-size: 16px;
}
table tr th {
font-weight: 500;
line-height:40px;

text-align: center;
color: #edeef1;
background: #798299;
font-size: 14px
}

table tr .noborder {
border-left: none !important;
border-right: none !important
}

table tr td font {
color: #e13b6d;
font-size: 12px
}
th .iconx{display:inline-flex;flex-direction:column;align-items:center;width:20px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative;font-size: 9px;}
.f11{font-size: 9px;}
</style>
</head>

<body ontouchstart class="page-bg">暂无
</tbody>
</table>
<div class="weui-footer weui-footer_fixed-bottom">
<p class="weui-footer__links">
<a href="../index.html" class="weui-footer__link">WeUI首页</a>
</p>
<p class="weui-footer__text">Copyright &copy; Yoby</p>
</div>
</body>
</html>
7 changes: 7 additions & 0 deletions weui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="icon" href="favicon.png"> <link rel="icon" href="favicon.ico">
<script src="js/zepto.min.js"></script>
<script src="js/php.js"></script>
<script src="js/eruda.js"></script>
<script>

$(function(){
Expand Down Expand Up @@ -529,6 +530,12 @@ <h1 class="page-hd-title">
</div>
<div class="weui-cell__ft"></div>
</a>
<a class="weui-cell weui-cell_access" href="demo/js103.html">
<div class="weui-cell__bd">
<p>表格排序</p>
</div>
<div class="weui-cell__ft"></div>
</a>
</div>

</div>
Expand Down
1,456 changes: 1,350 additions & 106 deletions weui/js/fn.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions weui/js/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ var SidebarJS = (function () {
document.addEventListener('touchend', this.onSwipeOpenEnd.bind(this));
};
SidebarJS.prototype.onTouchStart = function (e) {
this.initialTouch = (isTouch ? e.touches[0].pageX : e.pageX);
this.initialTouch = (isTouch ? e.touches.pageX : e.pageX);
};
SidebarJS.prototype.onTouchMove = function (e) {
var documentSwiped = this.initialTouch - (isTouch ? e.touches[0].clientX : e.clientX);;
var documentSwiped = this.initialTouch - (isTouch ? e.touches.clientX : e.clientX);;
var sidebarMovement = this.getSidebarPosition(documentSwiped);
this.touchMoveSidebar = -documentSwiped;
if (sidebarMovement <= this.container.clientWidth) {
Expand Down
2 changes: 1 addition & 1 deletion weui/php/ver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0|2021-03-20
6.03|2021-04-22

0 comments on commit aabac81

Please sign in to comment.