Skip to content

Commit

Permalink
update extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mip-platform committed Mar 5, 2018
1 parent 9b5c86c commit c166f84
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mip-jia-apply/mip-jia-apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ define(function (require) {
}
}
// 手机号加密
if (/^1[3|4|5|7|8]\d{9}$/.test(params[key])) {
if (/^1[3|4|5|6|7|8|9]\d{9}$/.test(params[key])) {
params[key] = mobileEncrypt(params[key], params.encrypt || 'zx');
}
}
Expand Down
2 changes: 1 addition & 1 deletion mip-jia-apply/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-jia-apply",
"version": "1.0.6",
"version": "1.0.7",
"description": "齐家报名组件",
"contributors": [
{
Expand Down
2 changes: 1 addition & 1 deletion mip-jia-footerzxbj/mip-jia-footerzxbj.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ define(function (require) {
$this.find('.zxbj-submit-btn').on('click', function () {
var area = $this.find('input[name=area]').val();
var mobile = $this.find('input[name=zxbjMobile]').val();
var re = /^1[3|4|5|7|8]\d{9}$/;
var re = /^1[3|4|5|6|7|8|9]\d{9}$/;
if (!zxbjPage.method.isPositiveNum(area)) {
tipMask('请输入正确的面积');
}
Expand Down
2 changes: 1 addition & 1 deletion mip-jia-footerzxbj/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-jia-footerzxbj",
"version": "1.0.7",
"version": "1.0.8",
"description": "齐家底通报名",
"contributors": [
{
Expand Down
2 changes: 1 addition & 1 deletion mip-jia-redpacket/mip-jia-redpacket.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ define(function (require) {
}

var TYPE = 'script[type="application/json"]';
var regPhone = /^1[3|4|5|7|8]\d{9}$/;
var regPhone = /^1[3|4|5|6|7|8|9]\d{9}$/;

function jsonParse(json) {
try {
Expand Down
2 changes: 1 addition & 1 deletion mip-jia-redpacket/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-jia-redpacket",
"version": "1.0.7",
"version": "1.0.8",
"description": "领取红包",
"contributors": [
{
Expand Down
12 changes: 9 additions & 3 deletions mip-jt-pangu/mip-jt-pangu.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ define(function (require) {
var vlstatAction = 'index.php';
p = 'cookieId=' + vlstatCookieId + '&cngoldId=' + cngoldId + '&ua='
+ vlstatUA + '&ip=' + vlstatIPAddress + '&refurl='
+ vlstatREFURL + '&url=' + vlstatURL + '&screenX=' + vlstatScreenX
+ vlstatREFURL + '&url=' + handelUrl(vlstatURL) + '&screenX=' + vlstatScreenX
+ '&screenY=' + vlstatScreenY
+ '&os=' + vlstatOS + '&brower=' + vlstatBrower + '&browerLang='
+ vlstatBrowerLanguage
Expand Down Expand Up @@ -194,7 +194,7 @@ define(function (require) {
}

function myUnloadHandler() {
var url = 'https://tj.zpath888.cn/ma.gif?cookieId=' + panguUv + '&type=1&url=' + encodeURIComponent(document.URL);
var url = 'https://tj.zpath888.cn/ma.gif?cookieId=' + panguUv + '&type=1&url=' + handelUrl(encodeURIComponent(document.URL));
var img = new Image(1, 1);
img.src = url;
}
Expand All @@ -210,6 +210,12 @@ define(function (require) {
}
}
return flag;
}
function handelUrl(url) {
url = url.indexOf('mip.cngold.org') > 0 ? 'https://' + url.substring(url.indexOf('mip.cngold.org')) : url;
url = url.indexOf('#') > 0 ? url.substring(0, url.indexOf('#')) + '/' : url;
url = url.indexOf('?') > 0 ? url.substring(0, url.indexOf('?')) : url;
return url;
}
// 元素插入到文档时执行,仅会执行一次,用于解析_maq配置
customElem.prototype.build = function () {
Expand All @@ -221,4 +227,4 @@ define(function (require) {
});
};
return customElem;
});
});
2 changes: 1 addition & 1 deletion mip-jt-pangu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-jt-pangu",
"version": "1.2.0",
"version": "1.3.0",
"description": "统计功能组件",
"contributors": [
{
Expand Down
2 changes: 2 additions & 0 deletions mip-truckcn-hash/mip-truckcn-hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ define(function (require) {
case 'name':
if (name) {
name = (name.split('*', 1));
name = decodeURIComponent(name);
name = '<div class="name">' + name + ':</div>';
}
else if (tel) {
Expand Down Expand Up @@ -61,6 +62,7 @@ define(function (require) {
case 'text':
if (text) {
text = (text.split('*', 1));
text = decodeURIComponent(text);
}
else {
text = element.getAttribute('default-text');
Expand Down
2 changes: 1 addition & 1 deletion mip-truckcn-hash/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-truckcn-hash",
"version": "1.0.3",
"version": "1.0.4",
"description": "根据url里的hash值,改变页面的内容",
"contributors": [
{
Expand Down

0 comments on commit c166f84

Please sign in to comment.