Commit 52955c4f authored by beisir's avatar beisir

Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy

parents deaad20f bd4e7666
...@@ -57,6 +57,9 @@ export default { ...@@ -57,6 +57,9 @@ export default {
pointer: this pointer: this
}); });
store.dispatch('change_is_weixin_browser', !isApp && !isWxMp && isWechat ? true : false); store.dispatch('change_is_weixin_browser', !isApp && !isWxMp && isWechat ? true : false);
this.$nextTick(() => {
document.querySelectorAll('.cr-overlay').forEach(e => e.parentNode.removeChild(e));
});
} }
}, },
methods: { methods: {
......
src/assets/images/share-icon.png

4.41 KB | W: | H:

src/assets/images/share-icon.png

1.63 KB | W: | H:

src/assets/images/share-icon.png
src/assets/images/share-icon.png
src/assets/images/share-icon.png
src/assets/images/share-icon.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -191,6 +191,7 @@ export default { ...@@ -191,6 +191,7 @@ export default {
} }
} }
.confirm-order-btn { .confirm-order-btn {
outline: none;
width: 130px !important; width: 130px !important;
margin-right: 10px !important; margin-right: 10px !important;
} }
......
<template> <template>
<div class="success-info"> <div class="success-info">
<p class="desc"> <p class="desc">
已有<span>{{ groupInfo.groupBuySuccessPersonCount || 0 }}</span>拼团成功 已有<span>{{ groupInfo.groupBuySuccessPersonCount || 0 }}</span>参与拼团
</p> </p>
<avator-swiper :avator-data="avatorData" /> <avator-swiper :avator-data="avatorData" />
</div> </div>
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<p style="font-size: 34px;margin-bottom: 15px;"> <p style="font-size: 34px;margin-bottom: 15px;">
已有<span>{{ sharePicData.groupBuySuccessGuys }}人</span> 已有<span>{{ sharePicData.groupBuySuccessGuys }}人</span>
</p> </p>
<p>拼团成功</p> <p>参与拼团</p>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -79,15 +79,17 @@ export default { ...@@ -79,15 +79,17 @@ export default {
box-sizing: border-box; box-sizing: border-box;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
align-content: center;
height: 30px; height: 30px;
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.4);
border-radius: 15px; border-radius: 15px;
padding: @padding-unit; padding: 0 @padding-unit;
&-icon { &-icon {
flex-shrink: 0; flex-shrink: 0;
width: 24px; width: 24px;
height: 24px; height: 24px;
margin-right: @padding-unit + 2; margin-top: 2px;
margin-right: @padding-unit;
.avatar { .avatar {
/deep/ img { /deep/ img {
border-radius: 50%; border-radius: 50%;
...@@ -97,6 +99,7 @@ export default { ...@@ -97,6 +99,7 @@ export default {
} }
} }
&-info { &-info {
text-align: center;
flex-shrink: 0; flex-shrink: 0;
padding-right: @padding-x; padding-right: @padding-x;
.text-12(); .text-12();
......
...@@ -135,11 +135,16 @@ export default { ...@@ -135,11 +135,16 @@ export default {
width: 100%; width: 100%;
background: @white; background: @white;
border-top: 2px solid #f7f7f7; border-top: 2px solid #f7f7f7;
padding: 10px 12px; padding-bottom: calc(10px + constant(safe-area-inset-bottom));
padding-bottom: calc(10px + env(safe-area-inset-bottom));
padding-top: 10px;
padding-left: 12px;
padding-right: 12px;
box-sizing: border-box; box-sizing: border-box;
z-index: 2; z-index: 2;
button { button {
flex: 1; flex: 1;
font-size: 16px;
&.mutiplie { &.mutiplie {
margin: 0 @padding-xs; margin: 0 @padding-xs;
} }
......
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
observer: null, observer: null,
statusTextMap: { statusTextMap: {
0: '发起拼团,邀请好友一起拼团吧!', 0: '发起拼团,邀请好友一起拼团吧!',
2: '恭喜成团,等待发货', 2: '恭喜成团!',
3: '哎呀,拼团时间已过,尚未成团!', 3: '哎呀,拼团时间已过,尚未成团!',
4: '已发货' 4: '已发货'
} }
...@@ -135,6 +135,7 @@ export default { ...@@ -135,6 +135,7 @@ export default {
} }
.button-area { .button-area {
button { button {
font-size: 16px;
margin-bottom: @padding-md; margin-bottom: @padding-md;
} }
} }
......
...@@ -44,19 +44,19 @@ ...@@ -44,19 +44,19 @@
.goods { .goods {
&-share-button{ &-share-button{
width: 40px; width: 44px;
height: 40px; height: 44px;
position: fixed; position: fixed;
right: 0; right: 10px;
bottom: 120px; bottom: 120px;
z-index: 3; z-index: 3;
/deep/ img { /deep/ img {
width: 40px; width: 44px;
height: 40px; height: 44px;
} }
} }
&-container { &-container {
padding-bottom: 60px; padding-bottom: calc(60px + env(safe-area-inset-bottom));
box-sizing: border-box; box-sizing: border-box;
font-size: 16px; font-size: 16px;
&-lose { &-lose {
......
...@@ -344,16 +344,18 @@ export default { ...@@ -344,16 +344,18 @@ export default {
// 校验是否允许开团或者参团 // 校验是否允许开团或者参团
this.$dialog({ this.$dialog({
message: checkStatus.failedReason || '', message: checkStatus.failedReason || '',
showCancelButton: false, cancelButtonText: '知道了',
confirmButtonText: '查看其他商品', showConfirmButton: false,
onConfirm: () => { cancelButtonColor: '#ec1500'
this.$router.replace({ // confirmButtonText: '返回活动',
path: '/groupBuy/list', // onConfirm: () => {
query: { // this.$router.replace({
activityId: this.detailParam.activityId // path: '/groupBuy/list',
} // query: {
}); // activityId: this.detailParam.activityId
} // }
// });
// }
}); });
return; return;
} }
......
...@@ -226,6 +226,10 @@ export default { ...@@ -226,6 +226,10 @@ export default {
this.detailInfo = res; this.detailInfo = res;
this.setStartStatus(res); this.setStartStatus(res);
try { try {
this.detailInfo.contentDetailUrl = this.detailInfo.contentDetailUrl.replace(
'http://',
'https://'
);
const detailImages = await goods.getDetailPic(this.detailInfo.contentDetailUrl); const detailImages = await goods.getDetailPic(this.detailInfo.contentDetailUrl);
// const imgReg = new RegExp('(?<=src=").[^"]*', 'g'); // const imgReg = new RegExp('(?<=src=").[^"]*', 'g');
// this.detailImgList = (detailImages || '').match(imgReg); // this.detailImgList = (detailImages || '').match(imgReg);
......
...@@ -33,13 +33,16 @@ ...@@ -33,13 +33,16 @@
.payBtn{ .payBtn{
width: 100%; width: 100%;
position: fixed; position: fixed;
padding: @padding-xs @padding-lg; padding-left: @padding-lg;
padding-right: @padding-lg;
padding-top: 10px;
box-sizing: border-box; box-sizing: border-box;
z-index: 99; z-index: 99;
bottom: 0; bottom: 0;
left:0; left:0;
background-color:@white; background-color:@white;
.iphonex-fix-margin; padding-bottom: calc(10px + constant(safe-area-inset-bottom));
padding-bottom: calc(10px + env(safe-area-inset-bottom));
button{ button{
.text-16; .text-16;
width: 100%; width: 100%;
......
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