提交 7086a40e 编写于 作者: shuang.zhou's avatar shuang.zhou

退款说明弹窗改造

上级 1eaaba5c
...@@ -266,6 +266,20 @@ ...@@ -266,6 +266,20 @@
<el-button size="small" type="primary" @click="confirmExpressNo">完成</el-button> <el-button size="small" type="primary" @click="confirmExpressNo">完成</el-button>
</span> </span>
</el-dialog> --> </el-dialog> -->
<!-- 退款说明 -->
<el-dialog
class="refund-explain-dialog"
title="退款说明"
:visible.sync="refundDialog"
width="20%">
<div class="explain-content">退款方式:{{refundDialogData.refundWay}}</div>
<div class="explain-content">退款金额:{{refundDialogData.refundAmount | toFixed2}}</div>
<div class="explain-content">退款对象:{{refundDialogData.refundObject}}</div>
<div class="explain-content">退款理由:{{refundDialogData.refundReason}}</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="refundDialog = false">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -336,6 +350,13 @@ ...@@ -336,6 +350,13 @@
showStatusStr: '', // 订单状态文案 showStatusStr: '', // 订单状态文案
packageName: '包裹1', // 多包裹name packageName: '包裹1', // 多包裹name
expressIndex: 0, // 修改物流单号下标 expressIndex: 0, // 修改物流单号下标
refundDialog: false, // 退款说明弹窗
refundDialogData: {
refundWay: '',
refundAmount: '',
refundObject: '',
refundReason: ''
}
} }
}, },
created() { created() {
...@@ -397,15 +418,12 @@ ...@@ -397,15 +418,12 @@
this.isShowRefundDetail = true; this.isShowRefundDetail = true;
let refundWayStr = ''; let refundWayStr = '';
let refundObjectStr = ''; let refundObjectStr = '';
this.refundDialog = true;
refundWayStr = res.data.refundWay == 0 ? '仅退款,无需退货' : '退款退货'; refundWayStr = res.data.refundWay == 0 ? '仅退款,无需退货' : '退款退货';
refundObjectStr = res.data.refundObject == 1 ? '开单医生' : '支付用户'; refundObjectStr = res.data.refundObject == 1 ? '开单医生' : '支付用户';
this.$alert(`<p>退款方式:${refundWayStr}</p> res.data.refundWay = refundWayStr;
<p>退款金额:${this.getPrice(res.data.refundAmount)}元</p> res.data.refundObject = refundObjectStr;
<p>退款对象:${refundObjectStr}</p> this.refundDialogData = res.data;
<p>退款理由:${res.data.refundReason}</p>`,
'退款说明', {
dangerouslyUseHTMLString: true
});
} }
}) })
}, },
...@@ -581,6 +599,16 @@ ...@@ -581,6 +599,16 @@
<style lang="scss"> <style lang="scss">
.order-detail-wrapper{ .order-detail-wrapper{
.el-dialog__wrapper {
.el-dialog {
.el-dialog__body {
padding: 0 20px;
.explain-content {
margin-bottom: 5px;
}
}
}
}
.el-table__column-filter-trigger i { .el-table__column-filter-trigger i {
color: #0d9078; color: #0d9078;
font-size: 14px; font-size: 14px;
...@@ -776,5 +804,7 @@ ...@@ -776,5 +804,7 @@
border: 1px solid #999999; border: 1px solid #999999;
background-color: #b8b8b8; background-color: #b8b8b8;
} }
} }
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册