[improvement] optimize coupon text (#1934)

This commit is contained in:
neverland
2018-10-16 15:57:23 +08:00
committed by GitHub
parent b8fa4d901f
commit cb793b3671
8 changed files with 11 additions and 11 deletions

View File

@@ -382,7 +382,7 @@ export default create({
} else if (action === 'plus') {
if (limitType === QUOTA_LIMIT) {
let msg = `限购${quota}`;
if (quotaUsed > 0) msg += `${`已购买${quotaUsed}`}`;
if (quotaUsed > 0) msg += `${`已购买${quotaUsed}`}`;
Toast(msg);
} else {
Toast('库存不足');

View File

@@ -212,7 +212,7 @@ customStepperConfig: {
// const { LIMIT_TYPE } = Sku.skuConstants;
if (limitType === LIMIT_TYPE.QUOTA_LIMIT) {
let msg = `单次限购${quota}`;
if (quotaUsed > 0) msg += `已购买${quotaUsed}`;
if (quotaUsed > 0) msg += `已购买${quotaUsed}`;
Toast(msg);
} else {
Toast('库存不够了~~');