zhaoxiaoqiang
2021-07-27 d1425aa67c0c6c0e087ce32b1779ee02bbcdc4c6
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(() => {