Commit b589ecad authored by beisir's avatar beisir

feat:getScheme

parent 07ce1379
......@@ -103,11 +103,12 @@ const mutations = {
// todo 跳转到小程序
let getScheme = async function() {
const [res] = await groupBuy.getScheme({
miniUrl: 'pages/webview/webview',
params: 'https://group-buy-test1.liangkebang.net/groupBuy/list?h=0&activityId=39' // window.location.href
miniUrl: 'pages/product/goodDetail',
params: window.location.href
});
const url = res;
window.location.href = url; // todo 需要验证
// 'https://group-buy-test1.liangkebang.net/groupBuy/list?h=0&activityId=39'
};
getScheme();
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