tao(id, url) {
plus.share.getServices(function(res) {
let sweixin = null;
for (let i = 0; i < res.length; i++) {
let t = res[i];
if (t.id == 'weixin') sweixin = t;
}
if (sweixin) {
sweixin.launchMiniProgram({
id: id, //微信小程序平台原始id
path: url, //跳转路径(带参)
type: 0
});
}
}, function(res) {
console.log(JSON.stringify(res)); //回调
});
},
不支持双开