+
取消订单
核销码:{{ item.auditCode }}
@@ -51,8 +50,11 @@ export default {
}
},
onLoad() {
- this.getOrderList()
document.title = '我的订单'
+ this.$dict.load('merchandiseOrderStatus').then(() => {
+ this.getOrderList()
+ })
+
},
methods: {
toCheck(index) {
@@ -74,15 +76,14 @@ export default {
})
},
cancelBtn(id) {
- this.$dialog.confirm({ content: '确定要关闭该订单吗?' }).then(() => {
- this.$http.post('/appvillagerintegralshoporder/overOrderForWx',null,{
+ this.$confirm('确定要取消该订单吗?').then(() => {
+ this.$http.post('/app/appintegralmerchandiseorder/cancelOrder',null,{
params: {
- orderId: id
+ id: id
}
}).then(res=>{
if(res.code==0) {
- this.$u.toast('关闭成功')
- this.$store.commit('getUserInfo')
+ this.$u.toast('取消成功')
setTimeout(() => {
this.getOrderList()
},600)
@@ -91,17 +92,6 @@ export default {
})
},
},
- filters: {
- format(num) {
- if(num == 0) {
- return '预约中'
- }else if(num == 1) {
- return '已完成'
- }else if(num == 2) {
- return '已关闭'
- }
- },
- },
onReachBottom() {
this.current ++
this.getOrderList()
@@ -161,10 +151,31 @@ export default {
padding: 0 32px;
box-sizing: border-box;
border-bottom: 1px solid #EEEEEE;
+
+ .status_all {
+ padding: 3px 10px;
+ border-radius: 12px;
+ }
+
+ .status0 {
+ background: #FFEDE2;
+ color: #FF883C;
+ }
+
+ .status1 {
+ background: #E2F6E1;
+ color: #42D784;
+ }
+
+ .status2 {
+ background: #EEEEEE;
+ color: #999999;
+ }
}
.list {
padding: 0 32px;
box-sizing: border-box;
+ border-radius: 16px;
height: 100%;
.list-item {
display: flex;