|
@@ -365,7 +365,7 @@ import {CustomToast} from '@/components/custom-toast.vue';
|
|
|
// 如果限购数量为0,提示库存不足
|
|
// 如果限购数量为0,提示库存不足
|
|
|
if (this.remainingPurchaseLimit === 0) {
|
|
if (this.remainingPurchaseLimit === 0) {
|
|
|
this.$refs.customToast.show({
|
|
this.$refs.customToast.show({
|
|
|
- title: "该商品限购:" + this.purchaseLimit +",已达到购买上限",
|
|
|
|
|
|
|
+ title: `该商品限购:${this.this.purchaseLimit}件\n已达购买上限`,
|
|
|
duration: 2000
|
|
duration: 2000
|
|
|
});
|
|
});
|
|
|
// uni.showToast({
|
|
// uni.showToast({
|
|
@@ -597,7 +597,7 @@ import {CustomToast} from '@/components/custom-toast.vue';
|
|
|
if (this.remainingPurchaseLimit !== null && typeof this.remainingPurchaseLimit === 'number' && this.specNum > this.remainingPurchaseLimit) {
|
|
if (this.remainingPurchaseLimit !== null && typeof this.remainingPurchaseLimit === 'number' && this.specNum > this.remainingPurchaseLimit) {
|
|
|
this.specNum = this.remainingPurchaseLimit;
|
|
this.specNum = this.remainingPurchaseLimit;
|
|
|
this.$refs.customToast.show({
|
|
this.$refs.customToast.show({
|
|
|
- title: "该商品限购:" + this.remainingPurchaseLimit + "次,已达购买上限",
|
|
|
|
|
|
|
+ title: `该商品限购:${this.this.remainingPurchaseLimit}件\n已达购买上限`,
|
|
|
duration: 2000
|
|
duration: 2000
|
|
|
});
|
|
});
|
|
|
// uni.showToast({
|
|
// uni.showToast({
|
|
@@ -619,7 +619,7 @@ import {CustomToast} from '@/components/custom-toast.vue';
|
|
|
if (this.remainingPurchaseLimit !== null && typeof this.remainingPurchaseLimit === 'number' && this.specNum > this.remainingPurchaseLimit) {
|
|
if (this.remainingPurchaseLimit !== null && typeof this.remainingPurchaseLimit === 'number' && this.specNum > this.remainingPurchaseLimit) {
|
|
|
this.specNum = this.remainingPurchaseLimit;
|
|
this.specNum = this.remainingPurchaseLimit;
|
|
|
this.$refs.customToast.show({
|
|
this.$refs.customToast.show({
|
|
|
- title: "该商品限购:" + this.remainingPurchaseLimit + "次,已达购买上限",
|
|
|
|
|
|
|
+ title: `该商品限购:${this.this.remainingPurchaseLimit}件\n已达购买上限`,
|
|
|
duration: 2000
|
|
duration: 2000
|
|
|
});
|
|
});
|
|
|
// uni.showToast({
|
|
// uni.showToast({
|
|
@@ -638,7 +638,7 @@ import {CustomToast} from '@/components/custom-toast.vue';
|
|
|
if (this.remainingPurchaseLimit !== null && typeof this.remainingPurchaseLimit === 'number' && this.specNum > this.remainingPurchaseLimit) {
|
|
if (this.remainingPurchaseLimit !== null && typeof this.remainingPurchaseLimit === 'number' && this.specNum > this.remainingPurchaseLimit) {
|
|
|
this.specNum = this.remainingPurchaseLimit;
|
|
this.specNum = this.remainingPurchaseLimit;
|
|
|
this.$refs.customToast.show({
|
|
this.$refs.customToast.show({
|
|
|
- title: "该商品限购:" + this.remainingPurchaseLimit + "次,已达购买上限",
|
|
|
|
|
|
|
+ title: `该商品限购:${this.this.remainingPurchaseLimit}件\n已达购买上限`,
|
|
|
duration: 2000
|
|
duration: 2000
|
|
|
});
|
|
});
|
|
|
// uni.showToast({
|
|
// uni.showToast({
|