Commit 149969e0 authored by beisir's avatar beisir

feat:我的拼团页面邀请好友参数调整

parent e75b1e0f
......@@ -44,12 +44,8 @@ export default {
getScheme(params) {
return http.get(
`${talosHost}/api/kdsp/ka/info/getShareMiniUrl`,
{
params
},
{
hideLoading: true
}
{ params },
{ hideLoading: true }
);
},
// 获取百人团订单
......
......@@ -104,7 +104,7 @@ const mutations = {
let getScheme = async function() {
const [res] = await groupBuy.getScheme({
miniUrl: 'pages/webview/webview',
params: window.location.href
params: 'https://group-buy-test1.liangkebang.net/groupBuy/list?h=0&activityId=39' // window.location.href
});
const url = res;
window.location.href = url; // todo 需要验证
......
......@@ -67,6 +67,16 @@
>
去支付
</cr-button>
<cr-button
v-if="item.openGroupStatus === 3"
size="small"
plain
type="primary"
shape="circle"
@click.stop="goGroupBuyList(item)"
>
重新拼团
</cr-button>
</div>
</div>
</div>
......@@ -150,6 +160,15 @@ export default {
else if (isWxMp) this.nativeBridge = new MpBridge();
},
methods: {
goGroupBuyList(itemInfo) {
this.$router.push({
path: '/groupBuy/list',
query: {
h: 0,
activityId: itemInfo.activityInfoId
}
});
},
goGroupDetails(skuInfo) {
this.nativeBridge.openNewUrl({
newUrl: `/pages/order/orderDetail?orderNo=${skuInfo.orderNo}`
......
......@@ -110,13 +110,12 @@ export default {
async getShareData(shareInfo) {
// 处理详情页面分享数据
const linkPath = qs.stringify({
h: 0,
skuNo: shareInfo.skuNo,
groupBuyGroupId: shareInfo.activityHundredGroupId,
goodsSpecialId: shareInfo.specialId,
activityId: shareInfo.activityInfoId,
groupBuyGroupId: shareInfo.groupBuyGroupId,
goodsSpecialId: shareInfo.goodsSpecialId,
activityId: shareInfo.activityId,
templateId: shareInfo.templateId,
templateDetailId: shareInfo.templateId
templateDetailId: shareInfo.templateDetailId
});
let detailUrl = `${config.localHost}/groupBuy/skuInfoSmallPic?h=0&${linkPath}`;
if (isWxMp) {
......
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