From 31376f65082da91b54a0868b3460e2f21a5ea340 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Wed, 28 Jul 2021 10:14:48 +0800
Subject: [PATCH] 1
---
src/views/product/wxScore-detail.vue | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/src/views/product/wxScore-detail.vue b/src/views/product/wxScore-detail.vue
index f612e1b..9217996 100644
--- a/src/views/product/wxScore-detail.vue
+++ b/src/views/product/wxScore-detail.vue
@@ -27,7 +27,6 @@
<van-cell :value="form.mblNo" title='手机号码' readonly></van-cell>
<van-cell :value="form.merName" title='商户名称' readonly></van-cell>
</div>
-
<!-- <div class="cell-group">
<van-cell :value="form.rate + '%'" title='费率' readonly></van-cell>
</div> -->
@@ -42,9 +41,6 @@
</template>
<script>
- import {
- mapState
- } from 'vuex';
import Vue from 'vue';
import { Notify } from 'vant';
@@ -59,13 +55,16 @@
},
created() {
- this.$api.wxScoreDetail({
- id:this.$route.query.orderId
- }).then(res => {
- this.form = res.body || {};
- }, err => err);
+ this.getDetail();
},
methods: {
+ getDetail() {
+ this.$api.wxScoreDetail({
+ id:this.$route.query.orderId
+ }).then(res => {
+ this.form = res.body || {};
+ }, err => err);
+ },
//退款
refund() {
this.$dialog.confirm({
@@ -77,10 +76,8 @@
this.$tool.toast('返销完成');
}, err => err);
}).catch(() => {
- // on cancel
+
});
- // this
-
},
//订单推送
sendOrder() {
@@ -90,6 +87,7 @@
this.$api.wxScoreSendOrder({
id:this.form.id
}).then(res => {
+ this.getDetail();
this.$tool.toast('推送完成');
}, err => err);
}).catch(() => {
--
Gitblit v1.8.0