-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02892f4
commit f968161
Showing
24 changed files
with
432 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# mip-233-ksbm | ||
|
||
考试报名功能 | ||
|
||
标题|内容 | ||
----|---- | ||
类型|业务,广告 | ||
支持布局|N/S | ||
所需脚本|https://mipcache.bdstatic.com/static/v1/mip-233-ksbm/mip-233-ksbm.js | ||
|
||
## 示例 | ||
|
||
``` html | ||
<!--考试报名弹窗插件--> | ||
<mip-233-ksbm data-change="change-icon" data-content="ksbm"> | ||
<span class="change-icon">切换</span> | ||
</mip-233-ksbm> | ||
<!--/考试报名弹窗插件--> | ||
<!--考试报名弹窗--> | ||
<div class="body_mask hide ksbm"> | ||
<div class="popup popup2"> | ||
<div class="popup-cma clearfix"> | ||
<h3>切换地区<span class="close-btn">关闭</span></h3> | ||
<ul class="w1 clearfix"> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">天津</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">北京</a></li> | ||
<li class="btbd"><a href="#">上海</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<!--/考试报名弹窗--> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @file 倒计时功能 | ||
* @author 233 程序部 | ||
*/ | ||
define(function (require) { | ||
var $ = require('zepto'); | ||
var customElem = require('customElement').create(); | ||
// build 方法,元素插入到文档时执行,仅会执行一次 | ||
customElem.prototype.build = function () { | ||
var element = this.element; | ||
var change = $(element).attr('data-change'); | ||
var content = $(element).attr('data-content'); | ||
var flag = false; | ||
$(element).find('.' + change).click(function () { | ||
if (flag) { | ||
$('.' + content).hide(); | ||
} else { | ||
$('.' + content).removeClass('hide').show(); | ||
} | ||
}); | ||
$('.' + content).find('.close-btn').click(function () { | ||
$('.' + content).hide(); | ||
}); | ||
}; | ||
return customElem; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "mip-233-ksbm", | ||
"version": "1.0.0", | ||
"description":"考试报名功能", | ||
"author": { | ||
"name": "ksbm", | ||
"email": "[email protected]", | ||
"url": "www.233.com" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# mip-clickup | ||
|
||
mip-clickup 康网链接点击记录 | ||
|
||
标题|内容 | ||
----|---- | ||
类型|通用 | ||
支持布局|responsive,fixed-height,fill,container,fixed | ||
所需脚本|https://mipcache.bdstatic.com/extensions/platform/v1/mip-clickup/mip-clickup.js | ||
|
||
## 示例 | ||
|
||
### 康网链接点击记录 | ||
```html | ||
<mip-clickup> | ||
<div> | ||
<a class="clickup" href="http://blog.sumcool.com/m/blog_151029_01.php?aid=100" target="_blank"><span >广告</span>放荡少妇竟按住邻居疯狂抽搐连续6次高潮! | ||
<span class="canshu">1</span> | ||
</a> | ||
</div> | ||
</mip-clickup> | ||
``` | ||
```style | ||
<style mip-custom> | ||
.canshu{display:none;} | ||
</style> | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @file mip-clickup 康网链接点击记录 | ||
* @author cnkang | ||
*/ | ||
|
||
define(function (require) { | ||
var $ = require('zepto'); | ||
var util = require('util'); | ||
var platform = util.platform; | ||
var customElement = require('customElement').create(); | ||
customElement.prototype.build = function () { | ||
$('.clickup').click(function () { | ||
var canshu = $('.canshu').html(); | ||
var shuliang = parseFloat(10000000000000 * Math.random()); | ||
$.ajax({url: 'https://m.cnkang.com/api/urlview?position=' + canshu + '&' + new Date().getTime() + shuliang}); | ||
}); | ||
}; | ||
return customElement; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @file mip-clickup样式文件 | ||
*/ | ||
|
||
mip-clickup { | ||
// TODO | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "mip-clickup", | ||
"version": "1.0.0", | ||
"description": "康网链接点击记录", | ||
"contributors": [ | ||
{ | ||
"name": "sunruinian", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"engines": { | ||
"mip": ">=1.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# mip-copy | ||
|
||
mip-copy 康网点击换一换 | ||
|
||
标题|内容 | ||
----|---- | ||
类型|通用 | ||
支持布局|responsive,fixed-height,fill,container,fixed | ||
所需脚本|https://mipcache.bdstatic.com/extensions/platform/v1/mip-copy/mip-copy.js | ||
|
||
## 示例 | ||
|
||
### 康网点击换一换 | ||
```html | ||
<mip-copy> | ||
<div class="block15" data-change-block=""> | ||
<dl class="block15_title"> | ||
<dt></dt> | ||
<dd>热词推荐</dd> | ||
<a href="http://m.sandbox.cnkang.com/pic/mip/6773564.html" class="changMore" data-change-btn="" data-change-api="http://m.sandbox.cnkang.com/sex/cnkang/gettagsapi?columnid=3696&from=mip&num=21"><span></span>换一换</a> | ||
</dl> | ||
<div class="iy02" data-change-content=""> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14927.html" class="link05" >高清美女</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14925.html" >美腿诱惑</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14919.html" >艺术写真</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14916.html" class="link05" >浴室</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14910.html" >吊带</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14908.html" class="link05" >性感诱惑</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14907.html" >泳装</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14906.html" >大美女</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14903.html" class="link05" >极品美女</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14900.html" >欧美美女</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14898.html" >泳装美女</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14892.html" >足球宝贝</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14890.html" >学生妹</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14887.html" >写真集</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14878.html" >人体摄影</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14874.html" >写真</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14872.html" >捆绑</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14863.html" >内涵图</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14859.html" >模特</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14858.html" >帅哥</a> | ||
<a href="http://m.sandbox.cnkang.com/pic/keyword/14852.html" >人体</a> | ||
</div> | ||
</div> | ||
</mip-copy> | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* @file mip-copy 康网点击换一换 | ||
* @author cnkang | ||
*/ | ||
|
||
define(function (require) { | ||
var $ = require('zepto'); | ||
var util = require('util'); | ||
var platform = util.platform; | ||
var customElement = require('customElement').create(); | ||
customElement.prototype.build = function () { | ||
$(document).ready(function (e) { | ||
$('[data-change-block]').on('click', '[data-change-btn]', function (event) { | ||
event.preventDefault(); | ||
var changeBtn = $(this); | ||
var apiStr = changeBtn.attr('data-change-api'); | ||
var joinChar = apiStr.indexOf('?') > - 1 ? '&' : '?'; | ||
var fetchApi = apiStr + joinChar + 'ts=' + new Date().getTime(); | ||
var changeContentBlock = changeBtn.parents('[data-change-block]').find('[data-change-content]'); | ||
if (changeBtn.attr('changing')) { | ||
return; | ||
} | ||
changeBtn.attr('changing', 'yes'); | ||
$.get(fetchApi, function (data) { | ||
changeBtn.removeAttr('changing'); | ||
var htmlStr = $(data).find('[data-change-content]').html(); | ||
changeContentBlock.html(htmlStr); | ||
}); | ||
}); | ||
}); | ||
}; | ||
return customElement; | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @file mip-copy样式文件 | ||
*/ | ||
|
||
mip-copy { | ||
// TODO | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "mip-copy", | ||
"version": "1.0.0", | ||
"description": "康网点击换一换", | ||
"contributors": [ | ||
{ | ||
"name": "sunruinian", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"engines": { | ||
"mip": ">=1.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# mip-fn-comment-reply | ||
<p>蜂鸟网WAP站评论回复</p> | ||
<p>蜂鸟网WAP站评论内容回复</p> | ||
|
||
## 示例 | ||
```html | ||
|
Oops, something went wrong.