Commit 149969e0 authored by beisir's avatar beisir

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

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