+
+
-
2022-05-25 17:45
-
已完成
+
{{item.createTime.substring(0, 16)}}
+
{{ $dict.getLabel('integralSGOStatus', item.status) }}
-

-
+
![]()
+
{{ $dict.getLabel('integralSGType', item.type) }}
-
无染(wuro)本色抽纸无染(wuro)本色抽纸无染(wuro)无染(wuro)本色抽纸无染无染(wuro)本色抽纸无染(wuro)本色抽纸无染(wuro)无染(wuro)
+
{{item.goodsTitle}}
-
50积分+2元
-
x 1
+
{{item.usedIntegral}}积分+{{item.payMoney}}元
+
x {{item.quantity}}
-
兑换成功后,点击「去购买」前往京东低价购买
-
-
-
+
兑换成功后,点击「去购买」前往京东低价购买
+
免费兑换商品,可到固定的兑换点进行「核销兑换」
+
+
+
+
核销码:{{item.verificationCode}}
+
取消订单
-
+
@@ -54,23 +55,65 @@ export default {
'bottom': '3px',
'background': '#2D7DFF'
},
+ list: [],
+ current: 1
}
},
computed: {
...mapState(['user']),
},
onLoad() {
-
+ this.$dict.load(['integralSGOStatus', 'integralSGType']).then(() => {
+ this.getList()
+ })
},
methods: {
changeTab(index) {
this.currentTabs = index
- // this.getListInit()
+ this.getListInit()
+ },
+ getListInit() {
+ this.current = 1
+ this.getList()
+ },
+ getList() {
+ this.$instance.post(`/app/appintegralsupermarketorder/listForXCX`, null, {
+ params: {
+ current: this.current,
+ status: this.currentTabs == 0 ? '' : this.currentTabs - 1
+ }
+ }).then(res => {
+ if (res.code === 0) {
+ this.list = this.current == 1 ? res.data.records : [...this.list, ...res.data.records]
+ }
+ })
+ },
+ openJd(item) {
+ uni.navigateTo({url: `./jdH5?goodsJdUrl=${item.goodsJdUrl}`})
+ },
+ cancel(item) {
+ uni.showModal({
+ title: '确认取消该订单?',
+ confirmspan: "确认",
+ confirmColor: "#135AB8",
+ success: function (res) {
+ if (res.confirm) {
+ this.cancelOrder(item)
+ }
+ }
+ });
+ },
+ cancelOrder(item) {
+ this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => {
+ if (res.code === 0) {
+ this.getListInit()
+ }
+ })
},
},
onReachBottom() {
- // this.current = this.current + 1
- // this.getList()
+ this.current = this.current + 1
+ this.getList()
},
}
@@ -104,6 +147,9 @@ export default {
div {
color: #2D7DFF;
}
+ .status2 {
+ color: #999;
+ }
}
.flex {
padding: 32px 32px 0;
@@ -132,10 +178,10 @@ export default {
scale: 0.9;
}
}
- .type0 {
+ .type1 {
background-color: #E64E39;
}
- .type1 {
+ .type0 {
background-color: #FF6900;
}
.flex-right {
diff --git a/src/project/fengdu/AppRedemptionPoints/placeOrder.vue b/src/project/fengdu/AppRedemptionPoints/placeOrder.vue
index ed86295..0a863d2 100644
--- a/src/project/fengdu/AppRedemptionPoints/placeOrder.vue
+++ b/src/project/fengdu/AppRedemptionPoints/placeOrder.vue
@@ -2,34 +2,35 @@
订单备注
-
无备注
+
{{value || '无备注'}}
积分余额
-
562积分
+
{{total}}积分
支付积分
-
减100积分
+
减{{goodsNum*goodsInfo.integralPrice}}积分
-
+
京东支付
-
¥4.00
+
¥{{goodsNum*goodsInfo.payMoney}}
@@ -42,7 +43,7 @@
保存
-
@@ -56,28 +57,56 @@ export default {
appName: '提交订单',
data() {
return {
- value: 1,
- show: false
+ value: '',
+ show: false,
+ total: 0,
+ goodsInfo: {},
+ goodsNum: 1,
+ backLevel: 0
}
},
computed: {
...mapState(['user']),
},
- onLoad() {
-
+ onLoad(option) {
+ this.shopGoodsId = option.shopGoodsId
+ this.total = option.total
+ this.backLevel = option.backLevel
+ this.$dict.load(['integralSGType']).then(() => {
+ this.getDetail()
+ })
},
methods: {
+ getDetail() {
+ this.$instance.post(`/app/appintegralsupermarketshop/queryGoodsInfoXCX?shopGoodsId=${this.shopGoodsId}`).then(res => {
+ if (res.code === 0) {
+ this.goodsInfo = res.data
+ }
+ })
+ },
valChange(e) {
- console.log('当前值为: ' + e.value)
+ this.goodsNum = e.value
+ },
+ confirm() {
+ this.show = false
+ },
+ confirmOrder() {
+ this.$instance.post(`/app/appintegralsupermarketorder/add`, {
+ shopId: this.goodsInfo.shopId,
+ goodsId: this.goodsInfo.id,
+ remarks: this.value,
+ quantity: this.goodsNum
+ }).then(res => {
+ if (res.code === 0) {
+ this.toSuccess()
+ }
+ })
},
toSuccess() {
- uni.navigateTo({url: './successOrder'})
+ var integralPrice = this.goodsNum*this.goodsInfo.integralPrice
+ uni.navigateTo({url: `./successOrder?isFree=${this.goodsInfo.type}&integralPrice=${integralPrice}&backLevel=${this.backLevel}&goodsJdUrl=${this.goodsInfo.goodsJdUrl}`})
}
},
- onReachBottom() {
- // this.current = this.current + 1
- // this.getList()
- },
}
@@ -113,10 +142,10 @@ export default {
scale: 0.9;
}
}
- .type0 {
+ .type1 {
background-color: #E64E39;
}
- .type1 {
+ .type0 {
background-color: #FF6900;
}
.flex-right {
diff --git a/src/project/fengdu/AppRedemptionPoints/productDetails.vue b/src/project/fengdu/AppRedemptionPoints/productDetails.vue
index 41598c8..96ca127 100644
--- a/src/project/fengdu/AppRedemptionPoints/productDetails.vue
+++ b/src/project/fengdu/AppRedemptionPoints/productDetails.vue
@@ -1,25 +1,21 @@
-
-

-
免费兑
+
+
![]()
+
{{ $dict.getLabel('integralSGType', goodsInfo.type) }}
-
无染(wuro)本色抽纸无染(wuro)本色抽纸无染(wuro)本色抽纸无染(wuro)本色抽纸
-
50积分+¥2.00(兑换后再付)
-
零售单价¥10.00
-
免费兑换商品,可到固定的兑换点进行「核销兑换」
+
{{goodsInfo.title}}
+
{{goodsInfo.integralPrice}}积分+¥{{goodsInfo.payMoney}}(兑换后再付)
+
零售单价¥{{goodsInfo.retailPrice}}
+
兑换成功后,点击「去购买」前往京东低价购买
+
免费兑换商品,可到固定的兑换点进行「核销兑换」
商品描述:
-
“本色”最早起源于南朝刘勰《文心雕龙》_
- “李”蟹悬架于栗龍登花《文温襞垄总理”寿事集色一
- 做过解释,“本色”就是求真,特别较真,有时候有点犟。泉林本色对“本色”的解释是对于生活是一种健康、环保的生活观念。
- 泉林本色是公司在长期的发展过程中逐渐打造的高端产品产品主要是涉岌泉秣本色生活角箱浆纸。产品种美包括软箱面巾纸、
- 盒抽面巾纸、卷纸、空心卷纸、实心卷纸、扁卷纸、手帕纸、饕币纸、珍宝纸、擦手纸、礼品套装等,种类齐全,在各个生活
- 的细微之处全面呵护消费者的健康。
-
+
-
-
立即兑换
+
+
{{total >= goodsInfo.integralPrice ? '去兑换' : '积分不足'}}
+
商品缺货
@@ -32,23 +28,34 @@ export default {
appName: '兑换商品',
data() {
return {
-
+ shopGoodsId: '',
+ goodsInfo: {},
+ total: 0
}
},
computed: {
...mapState(['user']),
},
- onLoad() {
-
+ onLoad(option) {
+ this.shopGoodsId = option.shopGoodsId
+ this.total = option.total
+ this.$dict.load(['integralSGType']).then(() => {
+ this.getDetail()
+ })
},
methods: {
- toPlaceOrder() {
- uni.navigateTo({url: './placeOrder'})
- }
- },
- onReachBottom() {
- // this.current = this.current + 1
- // this.getList()
+ getDetail() {
+ this.$instance.post(`/app/appintegralsupermarketshop/queryGoodsInfoXCX?shopGoodsId=${this.shopGoodsId}`).then(res => {
+ if (res.code === 0) {
+ this.goodsInfo = res.data
+ }
+ })
+ },
+ toOrder() {
+ if(this.total >= this.goodsInfo.integralPrice && this.goodsInfo.stock > 0 && this.goodsInfo.status == 1) {
+ uni.navigateTo({url: `./placeOrder?shopGoodsId=${this.goodsInfo.shopGoodsId}&total=${this.total}&backLevel=3`})
+ }
+ },
},
}
@@ -73,10 +80,10 @@ export default {
padding: 16px 16px 16px 36px;
border-bottom-left-radius: 40px;
}
- .type0 {
+ .type1 {
background-color: #E64E39;
}
- .type1 {
+ .type0 {
background-color: #FF6900;
}
.product-info {
@@ -158,11 +165,11 @@ export default {
font-weight: 500;
font-size: 34px;
}
- .status0 {
+ .status1 {
color: #FFF;
background: #4181FF;
}
- .status1 {
+ .status0 {
color: #666;
background: #E2E2E2;
}
diff --git a/src/project/fengdu/AppRedemptionPoints/successOrder.vue b/src/project/fengdu/AppRedemptionPoints/successOrder.vue
index d7d9ef7..57ef95f 100644
--- a/src/project/fengdu/AppRedemptionPoints/successOrder.vue
+++ b/src/project/fengdu/AppRedemptionPoints/successOrder.vue
@@ -1,20 +1,21 @@

-
-
提交成功
-
提交「免费兑」订单成功,扣减 50积分
-
-
-
+
+
兑换成功
-
提交「京东低价商品」订单成功,扣减 50积分
+
提交「京东低价商品」订单成功,扣减 {{integralPrice}}积分
可点击下方按钮前往京东商城进行低价购买
-
去购买
+
去购买
+
+
+
提交成功
+
提交「免费兑」订单成功,扣减 {{integralPrice}}积分
+
@@ -27,21 +28,33 @@ export default {
appName: '提交订单',
data() {
return {
- isOrder: false
+ isFree: 0, // 0免费 1京东
+ integralPrice: 0,
+ backLevel: 1,
+ goodsJdUrl: ''
}
},
computed: {
...mapState(['user']),
},
- onLoad() {
-
+ onLoad(option) {
+ this.isFree = option.isFree
+ this.integralPrice = option.integralPrice
+ this.backLevel = option.backLevel
+ this.goodsJdUrl = option.goodsJdUrl
},
methods: {
-
- },
- onReachBottom() {
- // this.current = this.current + 1
- // this.getList()
+ openJd() {
+ uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsJdUrl}`})
+ },
+ back() {
+ uni.navigateBack({delta: backLevel})
+ },
+ toOrderList() {
+ uni.redirectTo({
+ url: './myOrderList'
+ })
+ }
},
}