

* 即拉取当前上架最新版本。"plugins": {
"myPlugin": {
"version": "*",
"provider": "2021001155688526"
}
}waybillNo:物流运单号;logisticsCode:物流公司编码,点此 查看编码,若查询不到对应的物流公司编号,则说明该物流公司还未和支付宝合作,组件内无法展示物流信息;deviceType:组件类型,需入参值为 C ,注意参数值是大写;tradeNo :支付宝交易号。{
"usingComponents": {
"express-find-helper": "plugin://myPlugin/express-find-helper"
}
}<express-find-helper
waybillNo="{waybillNo}"
logisticsCode="{logisticsCode}"
tradeNo="{tradeNo}"
diviceType="{diviceType}"/>Page({
data: {
// ... },
onLoad() {
this.setData({
tradeNo:'your teadeNo',
logisticsCode:'your logisticsCode',
waybillNo:'your waybillNo',
diviceType:'C',
});
});
// 防止页面跳转 <-> 回退导致重复绑定插件相关事件
const app = getApp();
if (!app.hasBoundPluginEvents) {
this.usePluginApi();
}
},
usePluginApi() {
const plugin = requirePlugin('myPlugin');
const myExpress = plugin.getExpressInstance();
myExpress.on('init', (url) => {
console.log(url);
myExpress.goLogsiticsDetail();
});
myExpress.on('error', (errormsg) => {
my.showToast({
content: errormsg || '系统繁忙,请稍后再试',
});
});
const app = getApp();
app.hasBoundPluginEvents = true;
},
});