mui.init();
.sjxx {
list-style: none;
margin-top: 10px;
font-size: 13px;
font-family: "微软雅黑";
}
.sjxx li {
float: left;
width: 25%;
}
.sjwza {
color: #AAAAAA;
}
.mui-share {
position: fixed;
bottom: 0px;
width: 100%;
height: 180px;
background-color: #fff;
padding: 10px 5px;
margin: 0px;
}
.mui-share li {
float: left;
width: 20%;
text-align: center;
}
.mui-share li img {
width: 100%;
height: 100%;
cursor: pointer;
}
.mui-share li .mui-subtitle {
font-family: "microsoft yahei";
}
.mui-share .mui-btn {
position: fixed;
bottom: 10px;
width: 90%;
left: 5%;
right: 5%;
}
在破败中崛起,在寂灭中复苏。沧海成尘,雷电枯竭,
那一缕幽雾又一次临近大地,世间的枷锁被打开了,一
个全新的世界就此揭开神秘的一角……
玄幻
东方玄幻
-
热门短评
ChangJun@China
小说写的特别好看,人物,情节,不夸张,脑洞大开想象力够丰富,情节细腻,人物的个性刻画非常到位,必须推荐给大家看。
12:25
全部短评9147 -
热门书评
ChangJun@China
看完遮天,怜惜里面的安妙衣,疼惜姬紫月,报悍终生的秦瑶!!希望这部不会有这么多遗憾! 希望真正的完美世界!
12:25
全部短评9147
微信好友
朋友圈
新浪微博
腾讯微博
qq好友
取消
var shareClassName = document.querySelector('.mui-share');
// 打开分享
document.getElementById("openShare").addEventListener('tap',function(){
shareClassName.classList.remove('mui-hidden');
})
// 取消分享
document.querySelector('.mui-share .mui-btn').addEventListener('tap',function(){
shareClassName.classList.add('mui-hidden');
})
// 分享操作
var shares = {};
mui.plusReady(function () {
// 获取分享服务
plus.share.getServices(function(s) {
if (s && s.length > 0) {
for (var i = 0; i < s.length; i++) {
var t = s[i];
shares[t.id] = t;
}
}
}, function() {
console.log("获取分享服务列表失败");
});
})
/**
* 监听分享点击事件
*/
mui('.mui-share').on('tap','li',function(e){
var id = this.getAttribute('data-id');
var scene = this.getAttribute('data-scene');
console.log(id);
var share = shares[id];
if (share) {
if (share.authenticated) {
shareMessage(share, scene);
} else {
share.authorize(function() {
shareMessage(share, scene);
}, function(e) {
mui.toast("认证授权失败:" + e.code + " - " + e.message);
});
}
} else {
mui.toast("分享成功")
}
})
/**
* 分享发送消息
* @param {Object} share
* @param {Object} ex
*/
function shareMessage(share, scene) {
var msg = {
extra: {
scene: scene
}
};
msg.href = "http://www.dcloud.io/hellomui/";
msg.title = "最接近原生APP体验的高性能前端框架";
msg.content = "我正在体验HelloMUI,果然很流畅,基本看不出和原生App的差距";
if (~share.id.indexOf('weibo')) {
msg.content += ";体验地址:http://www.dcloud.io/hellomui/";
}
msg.thumbs = ["_www/img/logo.png"];
share.send(msg, function() {
mui.toast("分享到\"" + share.description + "\"成功! ");
}, function(e) {
mui.toast("分享到\"" + share.description + "\"失败: " + e.code + " - " + e.message);
});
}
一键复制
编辑
Web IDE
原始数据
按行查看
历史