From d1425aa67c0c6c0e087ce32b1779ee02bbcdc4c6 Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <287285524@qq.com> Date: Tue, 27 Jul 2021 14:53:20 +0800 Subject: [PATCH] 接入宁夏移动 --- src/views/product/wxScore-detail.vue | 24 +++++++++++------------- 1 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/views/product/wxScore-detail.vue b/src/views/product/wxScore-detail.vue index f612e1b..8c598b9 100644 --- a/src/views/product/wxScore-detail.vue +++ b/src/views/product/wxScore-detail.vue @@ -7,7 +7,7 @@ --> <template> <div class="hb-detail-box h-100-g"> - <v-navbar title="订单详情" fixed></v-navbar> + <v-navbar title="订单详情1" fixed></v-navbar> <div class="content"> <div class="cell-group"> <van-cell :value="form.chanNo" title='渠道编码' readonly></van-cell> @@ -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