diff --git a/src/mip-share/mip-share.less b/src/mip-share/mip-share.less index 9cecf857d..11deb7d61 100755 --- a/src/mip-share/mip-share.less +++ b/src/mip-share/mip-share.less @@ -1,4 +1,4 @@ -mip-share{ + .c-share-list { background: #fff; padding: 17px 21px; @@ -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; @@ -145,4 +145,3 @@ mip-share{ margin: 0 auto; padding: 21px; } -} \ No newline at end of file diff --git a/src/mip-share/package.json b/src/mip-share/package.json index d041a042e..f25ba6757 100644 --- a/src/mip-share/package.json +++ b/src/mip-share/package.json @@ -1,6 +1,6 @@ { "name": "mip-share", - "version": "1.0.4", + "version": "1.0.5", "description":"提供页面内分享按钮功能,默认分享当前网址。", "author": { "name": "MIP authors", diff --git a/src/mip-share/share/share.js b/src/mip-share/share/share.js index ca3bc44f2..12c50dd2d 100755 --- a/src/mip-share/share/share.js +++ b/src/mip-share/share/share.js @@ -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,必选 @@ -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) { @@ -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 { @@ -60,7 +59,6 @@ define(function (require) { successcallback: 'onSuccess' }); } - };