diff --git a/src/project/fd/AppRedemptionPoints/goodsList.vue b/src/project/fd/AppRedemptionPoints/goodsList.vue index 5ed180a3..502ff29f 100644 --- a/src/project/fd/AppRedemptionPoints/goodsList.vue +++ b/src/project/fd/AppRedemptionPoints/goodsList.vue @@ -28,7 +28,7 @@
-
{{ $dict.getLabel('integralSGType', item.type) }}
+
{{ $dict.getLabel('integralSGTypeText', item.typeText) }}

{{item.title}}

@@ -51,7 +51,7 @@
-
{{ $dict.getLabel('integralSGType', item.type) }}
+
{{ $dict.getLabel('integralSGTypeText', item.typeText) }}

{{item.title}}

@@ -113,7 +113,7 @@ export default { this.userId = option.userId this.integralUserId = option.integralUserId this.getTotal() - this.$dict.load(['integralSGType']).then(() => { + this.$dict.load(['integralSGTypeText']).then(() => { this.getList() }) }, @@ -151,6 +151,7 @@ export default { if (res.code === 0) { this.goodsList = this.current == 1 ? res.data.records : [...this.goodsList, ...res.data.records] res.data.records.map((item, index) => { + item.typeText = item.type == 0 ? 0 : 1 if(index%2 ==0) { this.leftList.push(item) }else { diff --git a/src/project/fd/AppRedemptionPoints/myOrderList.vue b/src/project/fd/AppRedemptionPoints/myOrderList.vue index a42eede0..4727bf16 100644 --- a/src/project/fd/AppRedemptionPoints/myOrderList.vue +++ b/src/project/fd/AppRedemptionPoints/myOrderList.vue @@ -12,7 +12,7 @@
-
{{ $dict.getLabel('integralSGType', item.goodsType) }}
+
{{ $dict.getLabel('integralSGTypeText', item.goodsTypeText) }}

{{item.goodsTitle}}

@@ -65,7 +65,7 @@ export default { }, onLoad(option) { this.userId = option.userId - this.$dict.load(['integralSGOStatus', 'integralSGType']).then(() => { + this.$dict.load(['integralSGOStatus', 'integralSGTypeText']).then(() => { this.getList() }) }, @@ -87,6 +87,9 @@ export default { } }).then(res => { if (res.code === 0) { + res.data.records.map((item) => { + item.goodsTypeText = item.goodsType == 0 ? 0 : 1 + }) this.list = this.current == 1 ? res.data.records : [...this.list, ...res.data.records] } }) diff --git a/src/project/fd/AppRedemptionPoints/placeOrder.vue b/src/project/fd/AppRedemptionPoints/placeOrder.vue index 2b898415..8ec1be30 100644 --- a/src/project/fd/AppRedemptionPoints/placeOrder.vue +++ b/src/project/fd/AppRedemptionPoints/placeOrder.vue @@ -3,7 +3,7 @@
-
{{ $dict.getLabel('integralSGType', goodsInfo.type) }}
+
{{ $dict.getLabel('integralSGTypeText', goodsInfo.typeText) }}

{{goodsInfo.title}}

@@ -74,7 +74,7 @@ export default { this.shopGoodsId = option.shopGoodsId this.total = option.total this.backLevel = option.backLevel - this.$dict.load(['integralSGType']).then(() => { + this.$dict.load(['integralSGTypeText']).then(() => { this.getDetail() }) }, @@ -86,6 +86,7 @@ export default { this.$http.post(`/app/appintegralsupermarketshop/queryGoodsInfoXCX?shopGoodsId=${this.shopGoodsId}`).then(res => { if (res.code === 0) { this.goodsInfo = res.data + this.goodsInfo.typeText = this.goodsInfo.type == 0 ? 0 : 1 } }) }, diff --git a/src/project/fd/AppRedemptionPoints/productDetails.vue b/src/project/fd/AppRedemptionPoints/productDetails.vue index a4bb064e..55c92847 100644 --- a/src/project/fd/AppRedemptionPoints/productDetails.vue +++ b/src/project/fd/AppRedemptionPoints/productDetails.vue @@ -1,7 +1,7 @@