|
|
<template>
|
|
|
<template v-if="show">
|
|
|
<div class="order-status">
|
|
|
<p>{{order.statusStr}}</p>
|
|
|
<p v-if="order.isCancel !== 'Y' && order.status == 0 && order.payLefttime != 0">剩余: <span v-count-down v-bind:left-time="order.payLefttime"></span>,订单将被取消</p>
|
...
|
...
|
@@ -55,6 +56,7 @@ |
|
|
<select id="cancel-reason" class="cancel-reason" v-on:blur="reasonChange" v-model="selected">
|
|
|
<option v-for="option in options" v-bind:value="{id:option.id,reason:option.reason}">{{option.reason}}</option>
|
|
|
</select>
|
|
|
</template>
|
|
|
</template>
|
|
|
<script>
|
|
|
'use strict';
|
...
|
...
|
@@ -69,12 +71,13 @@ |
|
|
module.exports = {
|
|
|
data() {
|
|
|
return {
|
|
|
show: false,
|
|
|
order: {},
|
|
|
options: [],
|
|
|
selected: {}
|
|
|
};
|
|
|
},
|
|
|
ready() {
|
|
|
created() {
|
|
|
this.getOrderData();
|
|
|
|
|
|
yohoAPI.addNativeMethod('goToService', () => {
|
...
|
...
|
@@ -91,6 +94,7 @@ |
|
|
}
|
|
|
}).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
this.show = true;
|
|
|
this.$set('order', result.data);
|
|
|
genderSel = genderSel([{
|
|
|
key: this.order.isSupportRefund,
|
...
|
...
|
|