plus.share.getServices((s) => {
let shares = {};
for (let i = 0; i < s.length; i++) {
let t = s[i];
shares[t.id] = t;
}
let sweixin = shares['weixin'];
this.weixin = sweixin
this.weixin ? this.weixin.launchMiniProgram({
path: `pages/institutionalPay/institutionalPay?params=${params}&token=${value}&cid=${this.cid}&uuid=${this.uuid}`,//路径可以传值
type: 0, //可取值: 0-正式版; 1-测试版; 2-体验版。 默认值为0。
id: 'xxxxxxxxx', //小程序的原始id
},
res => {
console.log(res)
},
err => {
console.log(err);
},
) : plus.nativeUI.alert('当前环境不支持微信操作!');
return
}, function(e) {
console.log("获取分享服务列表失败:" + e.message);
});
uniapp做app跳转小程序支付功能
最新推荐文章于 2024-07-09 14:28:20 发布