|
@@ -144,7 +144,7 @@ export const toLBHome = () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export const toXiaoChengxu = (appid) => {
|
|
|
|
|
|
|
+export const toXiaoChengxu = (appid,pageUrl='') => {
|
|
|
let url = window.location.href.split("#")[0];
|
|
let url = window.location.href.split("#")[0];
|
|
|
const formData = new FormData();
|
|
const formData = new FormData();
|
|
|
formData.append('url', url);
|
|
formData.append('url', url);
|
|
@@ -165,7 +165,7 @@ export const toXiaoChengxu = (appid) => {
|
|
|
"launchMiniprogram",
|
|
"launchMiniprogram",
|
|
|
{
|
|
{
|
|
|
appid: appid, // 需跳转的小程序appid
|
|
appid: appid, // 需跳转的小程序appid
|
|
|
- path: "" // 所需跳转的小程序内页面路径及参数。非必填
|
|
|
|
|
|
|
+ path: pageUrl // 所需跳转的小程序内页面路径及参数。非必填
|
|
|
},
|
|
},
|
|
|
function (res) {
|
|
function (res) {
|
|
|
if (res.err_msg == "launchMiniprogram:ok") {
|
|
if (res.err_msg == "launchMiniprogram:ok") {
|