mirror of
https://github.com/youzan/vant.git
synced 2026-04-14 03:13:47 +08:00
[improvement] optimize coupon text (#1934)
This commit is contained in:
@@ -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('库存不足');
|
||||
|
||||
@@ -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('库存不够了~~');
|
||||
|
||||
Reference in New Issue
Block a user