Commit 725f58b9 authored by beisir's avatar beisir

feat:getScheme 修改参数

parent f57802ea
...@@ -41,10 +41,16 @@ export default { ...@@ -41,10 +41,16 @@ export default {
appId: 'wx2f44c7fe7b08458d' appId: 'wx2f44c7fe7b08458d'
}); });
}, },
getScheme(data) { getScheme(params) {
return http.post(`${talosHost}/api/kdsp/ka/info/getShareMiniUrl`, data, { return http.get(
hideLoading: true `${talosHost}/api/kdsp/ka/info/getShareMiniUrl`,
}); {
params
},
{
hideLoading: true
}
);
}, },
// 获取百人团订单 // 获取百人团订单
getGroupOrderList(params) { getGroupOrderList(params) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
const protocol = window.location.protocol; const protocol = window.location.protocol;
const qiniuHost = protocol + '//kdspstatic.q-gp.com/'; const qiniuHost = protocol + '//kdspstatic.q-gp.com/';
const shenceHost = 'https://bn.xyqb.com/sa?project=default'; // 测试地址 const shenceHost = 'https://bn.xyqb.com/sa?project=default'; // 测试地址
const talosHost = 'https://talos-test1.liangkebang.net'; // const talosHost = 'https://talos-test1.liangkebang.net';
const faceHost = 'https://auth-test1.liangkebang.net'; const faceHost = 'https://auth-test1.liangkebang.net';
const kdspHost = 'https://kdsp-api-test1.liangkebang.net'; const kdspHost = 'https://kdsp-api-test1.liangkebang.net';
const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页面地址 const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页面地址
...@@ -15,7 +15,7 @@ const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页 ...@@ -15,7 +15,7 @@ const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页
// const talosHost = 'http://192.168.25.210:8080'; // 张超 // const talosHost = 'http://192.168.25.210:8080'; // 张超
// const talosHost = 'http://192.168.28.83:80'; // 董彪 // const talosHost = 'http://192.168.28.83:80'; // 董彪
// const talosHost = 'http://192.168.25.122:8098'; // 王永杰 // const talosHost = 'http://192.168.25.122:8098'; // 王永杰
// const talosHost = protocol + '//192.168.28.41'; // 超人 const talosHost = protocol + '//192.168.28.41'; // 超人
const opapiHost = 'https://opapi-test1.liangkebang.net'; const opapiHost = 'https://opapi-test1.liangkebang.net';
const VCC_CHANNEL = ''; const VCC_CHANNEL = '';
const TERMINAL = 'H5'; const TERMINAL = 'H5';
......
...@@ -103,7 +103,8 @@ const mutations = { ...@@ -103,7 +103,8 @@ 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?url=${encodeURIComponent(window.location.href)}` miniUrl: 'pages/webview/webview',
params: encodeURIComponent(window.location.href)
}); });
const url = res; const url = res;
window.location.href = url; // todo 需要验证 window.location.href = url; // todo 需要验证
......
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