82f3a7a6 by simon

默认提交

1 parent 4d79bd5c
......@@ -210,6 +210,12 @@ Page({
app.router.push({
path: "distributor"
})
// app.router.push({
// path: "webview",
// query: {
// url:`https://h5.demo.k.wxpai.cn/Ntyk/#/login/weapp?storecode=316174`,
// }
// })
},
/**
......
......@@ -47,7 +47,10 @@ Page({
}).catch((err) => {
// 如果均没有,则去h5授权
app.router.push({
path: "webview"
path: "webview",
query: {
url: "https://k.wxpai.cn/IdgW/index.html"
}
})
});
}
......
......@@ -25,8 +25,8 @@ Page({
}
},
onLoad(options = {}) {
let url = options.url;
url = "https://k.wxpai.cn/IdgW/index.html"
let url = decodeURIComponent(options.url) ;
// url = "https://k.wxpai.cn/IdgW/index.html"
console.log("url:", url);
if (url) {
this.setData({
......