Authored by huangyCode

修改已售罄

... ... @@ -272,6 +272,10 @@ class GroupService extends global.yoho.BaseModel {
shop_id: result.shop_id
});
result.activityIdDetail = await this.api.getCollageProductInfo(params);
if (!result.activityIdDetail.peopleNum) {
result.activityIdDetail.peopleNum = 0;
}
result.activityGroupDetailList = await this.api.fetchActivityGroups(params);
result.support = await this.api.getSupport(params);
result.floor = await this.api._getResourceCode({
... ...
... ... @@ -135,7 +135,7 @@
<div class="bottom">
<div class="count-down">
{{#if storage_sum}}
{{#ifcond storage_sum '&&' activityIdDetail.currentTime}}
<div data-current="{{activityIdDetail.currentTime}}"
data-begin="{{activityIdDetail.beginTime}}"
data-end="{{activityIdDetail.endTime}}"
... ... @@ -147,7 +147,7 @@
<span class="number" id="minutes"></span>
<span class="number" id="seconds"></span>
</div>
{{/if}}
{{/ifcond}}
</div>
{{#unless groupNo}}
<a href="/activity/group" class='shoppint-cart-icon'>
... ... @@ -174,7 +174,7 @@
{{/if}}
</button>
<button class="buynow join-group-btn"
<button class="buynow join-group-btn" {{#ifcond activityIdDetail.peopleNum "==" '0'}} style="background-color: #b0b0b0;" {{/ifcond}}
id="buynow">
<span class="bottom-title">{{activityIdDetail.formatCollagePrice}}</span>
{{#if groupNo}}
... ...
... ... @@ -313,6 +313,9 @@ class Detail extends Page {
joinGroup() {
let chosePanel = require('js/activity/group/chose-panel');
if (!document.getElementById('date')) {
return;
}
if (!user.uid) {
return yoho.goLogin(location.href);
}
... ...