Commit 3ce2f79a authored by beisir's avatar beisir

feat:分享路径问题

parent dd8b87f6
......@@ -42,7 +42,7 @@ export default {
});
},
getScheme(data) {
return http.get(`${talosHost}/api/kdsp/ka/info/getShareMiniUrl`, data, {
return http.post(`${talosHost}/api/kdsp/ka/info/getShareMiniUrl`, data, {
hideLoading: true
});
},
......
......@@ -8,7 +8,8 @@ const TERMINAL = 'H5';
const VERSION = '7.9.00';
const kdspHost = 'https://kdsp-api.q-gp.com';
const opapiHost = `${protocol}//opapi.xyqb.com`;
const localHost = 'https://mall.q-gp.com/group-buying'; // 正式环境页面地址
// const localHost = 'https://mall.q-gp.com/group-buying'; // 正式环境页面地址
const localHost = 'https://group-buy-test1.liangkebang.net'; // 正式环境页面地址
export default {
localHost,
// apiHost,
......
......@@ -103,7 +103,7 @@ const mutations = {
// todo 跳转到小程序
let getScheme = async function() {
const [res] = await groupBuy.getScheme({
miniUrl: 'pages/user/login'
miniUrl: `pages/webview/webview?url=${encodeURIComponent(window.location.href)}`
});
const url = res;
window.location.href = url; // todo 需要验证
......
......@@ -233,6 +233,7 @@ export default {
if (isWxMp) {
link = `/pages/webview/webview?url=${encodeURIComponent(JSON.stringify(link))}`;
}
console.log(link);
return Promise.resolve({
title: shareTitle,
desc: shareSubTitle,
......
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