// 电商小程序配置 - 请根据实际情况修改
const MINI_PROGRAM_CONFIG = {
// 小程序原始ID(gh_开头)
appId: 'gh_22289dd****2',
// 小程序路径
path: 'pages/goods/details',
// 商城小程序appId(备选)
miniProgramAppId: 'wxd800****3a9cb0fd'
};
// 在小程序web-view中,使用小程序跳转
wx.miniProgram.navigateTo({
url: `${MINI_PROGRAM_CONFIG.path}?materialNo=${encodeURIComponent(currentMaterialNo)}`
}); 怎么实现
