Commit b589ecad authored by beisir's avatar beisir

feat:getScheme

parent 07ce1379
...@@ -103,11 +103,12 @@ const mutations = { ...@@ -103,11 +103,12 @@ const mutations = {
// todo 跳转到小程序 // todo 跳转到小程序
let getScheme = async function() { let getScheme = async function() {
const [res] = await groupBuy.getScheme({ const [res] = await groupBuy.getScheme({
miniUrl: 'pages/webview/webview', miniUrl: 'pages/product/goodDetail',
params: 'https://group-buy-test1.liangkebang.net/groupBuy/list?h=0&activityId=39' // window.location.href params: window.location.href
}); });
const url = res; const url = res;
window.location.href = url; // todo 需要验证 window.location.href = url; // todo 需要验证
// 'https://group-buy-test1.liangkebang.net/groupBuy/list?h=0&activityId=39'
}; };
getScheme(); getScheme();
getScheme = null; getScheme = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment