From cab67f8a3eda31745c45b56d659367eedf025d2a Mon Sep 17 00:00:00 2001 From: mip-platform Date: Tue, 27 Jun 2017 15:26:11 +0800 Subject: [PATCH] update extensions --- mip-233-up2now/README.md | 16 ++++++++++++++++ mip-233-up2now/mip-233-up2now.js | 20 ++++++++++++++++++++ mip-233-up2now/package.json | 10 ++++++++++ mip-233-yytx/mip-233-yytx.js | 2 +- mip-233-yytx/package.json | 2 +- 5 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 mip-233-up2now/README.md create mode 100644 mip-233-up2now/mip-233-up2now.js create mode 100644 mip-233-up2now/package.json diff --git a/mip-233-up2now/README.md b/mip-233-up2now/README.md new file mode 100644 index 00000000..2fb60232 --- /dev/null +++ b/mip-233-up2now/README.md @@ -0,0 +1,16 @@ + +# mip-233-up2now + +将目标时间更新至最新 + +标题|内容 +----|---- +类型|业务,广告 +支持布局|N/S +所需脚本|https://mipcache.bdstatic.com/static/v1/mip-233-up2now/mip-233-up2now.js + +## 示例 + +``` html +

课程推广06-13

+``` diff --git a/mip-233-up2now/mip-233-up2now.js b/mip-233-up2now/mip-233-up2now.js new file mode 100644 index 00000000..a0559b49 --- /dev/null +++ b/mip-233-up2now/mip-233-up2now.js @@ -0,0 +1,20 @@ +/** + * @file 将目标时间更新至最新 + * @author 233 程序部 + */ +define(function (require) { + var $ = require('zepto'); + var customElem = require('customElement').create(); + // build 方法,元素插入到文档时执行,仅会执行一次 + customElem.prototype.build = function () { + var element = this.element; + var date = new Date(); + var month = date.getMonth() + 1; + var day = date.getDate(); + if (month < 10) { + month = '0' + month; + } + $(element).find('.time').html(month + '-' + day); + }; + return customElem; +}); diff --git a/mip-233-up2now/package.json b/mip-233-up2now/package.json new file mode 100644 index 00000000..4c67a585 --- /dev/null +++ b/mip-233-up2now/package.json @@ -0,0 +1,10 @@ +{ + "name": "mip-233-up2now", + "version": "1.0.0", + "description":"将目标时间更新至最新", + "author": { + "name": "up2now", + "email": "446545975@qq.com", + "url": "www.233.com" + } +} diff --git a/mip-233-yytx/mip-233-yytx.js b/mip-233-yytx/mip-233-yytx.js index cbe471b4..4ffe7d92 100644 --- a/mip-233-yytx/mip-233-yytx.js +++ b/mip-233-yytx/mip-233-yytx.js @@ -89,7 +89,7 @@ define(function (require) { $.ajax({ type: 'post', scriptCharset: 'utf-8', - url: 'http://www.23113.com/search/nine-20150423/json/bespeak.asp?Act=bespeak', + url: 'http://www.233.com/search/nine-20150423/json/bespeak.asp?Act=bespeak', data: { domain: domain, fullname: escape(fullname), diff --git a/mip-233-yytx/package.json b/mip-233-yytx/package.json index 4ec006f3..34efd9d7 100644 --- a/mip-233-yytx/package.json +++ b/mip-233-yytx/package.json @@ -1,6 +1,6 @@ { "name": "mip-233-yytx", - "version": "1.0.0", + "version": "1.0.1", "description":"预约提醒插件", "author": { "name": "233预约提醒",