Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongwenjie committed Apr 12, 2018
2 parents 21661a6 + ee31555 commit a58c49e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/mip-share/mip-share.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mip-share{

.c-share-list {
background: #fff;
padding: 17px 21px;
Expand Down Expand Up @@ -124,7 +124,7 @@ mip-share{
position: fixed;
top: 0;
left: 0;
z-index: 999;
z-index: 9999999;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6) url(//m.baidu.com/se/static/pmd/pmd/share/images/wxtips.png) right 10px top 10px no-repeat;
Expand All @@ -145,4 +145,3 @@ mip-share{
margin: 0 auto;
padding: 21px;
}
}
2 changes: 1 addition & 1 deletion src/mip-share/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-share",
"version": "1.0.4",
"version": "1.0.5",
"description":"提供页面内分享按钮功能,默认分享当前网址。",
"author": {
"name": "MIP authors",
Expand Down
6 changes: 2 additions & 4 deletions src/mip-share/share/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ define(function (require) {
var $ = require('zepto');
var util = require('util');
var platform = util.platform;

require('./aio');
var defaultOpt = {
url: window.location.href,
title: '百度搜索有惊喜', // 分享至外站的title,必选
Expand All @@ -22,7 +22,7 @@ define(function (require) {
var OS = detect.os;
var Browser = detect.browser;
var isZbios = (Browser.n == 'zbios') ? 1 : 0;
var isUC = (Browser.n == 'uc' && (typeof(ucweb) != 'undefined' || typeof(ucbrowser) != 'undefined')) ? 1 : 0;
var isUC = (Browser.n == 'uc') ? 1 : 0;
var isQQ = (platform.isQQ() && Browser.v && Browser.v > '5.4') ? 1 : 0;
var isWechat = platform.isWechatApp() ? 1 : 0;
var share_promise = new Promise(function(resolve, reject) {
Expand Down Expand Up @@ -50,7 +50,6 @@ define(function (require) {
cfg.linkUrl = encodeURIComponent(cfg.url);
}
// 以这种方式require是为了避免过早加载aio组件
require('./aio');
if (Box.os.android) {
Box.android.invokeApp('Bdbox_android_utils', 'callShare', [JSON.stringify(cfg), window.successFnName || 'console.log', window.errorFnName || 'console.log']);
} else {
Expand All @@ -60,7 +59,6 @@ define(function (require) {
successcallback: 'onSuccess'
});
}

};


Expand Down

0 comments on commit a58c49e

Please sign in to comment.