<th>券码</th>
<th>类型</th>
<th>状态</th>
<th>金额</th>
</tr>
<tr @click="topath({
name:'/checkCouponInfo',
item:item
})" v-for="(item,index) in checkCouponList.data">
<td></td>
<td>{{item.ticket_code}}</td>
<td>{{item.ticket_type}}</td>
<td class="status" :class="item.active == 't' ? 'status-active' : ''">{{item.active == 't' ? '成功' : '失败'}}</td>
<td>¥{{item.amount}}<b class="right_j"></b></td>
</tr>
</table>
</div>
</div>
</div>
</template>
<script type="text/javascript">
import Header from '../Mast/Header'
import myDatepicker from 'vue-datepicker'
export default{
name:'CertificateDetail',
data () {
return {
title:'验券明细',
xian:false,
name:'launcher',
food:true,
active:{
koubei:true,
meituan:false,
nuomi:false,
},
checkCouponList:{
data:[] },
statistics:{},
startTime: {
time: ''
},
multiOption: {
type: 'day',
week: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
month: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
format:"YYYY-MM-DD",
inputStyle: {
'display': 'inline-block',
'height':'35px',
'line-height': '35px',
'width':'141px',
'font-size': '16px',
'border': 'none',
'color': '#5F5F5F',
'margin':'0',
'text-align':'center'
},
color: { // 字体颜色
header: '#ff5534', // 头部
headerText: '#fff', // 头部文案
},
buttons: { // button 文案
ok: '确定',
cancel: '取消'
},
placeholder: '请选时间',
dismissible: true
},
limit: [{
type: 'weekday',
available: [1, 2, 3, 4, 5,6,0] },
{
type: 'fromto',
from: '2016-02-01',
to: '2050-02-20'
}] }
},
methods:{
topath: function (params) {
this.$store.state.cashtime1 = this.startTime.time;
if(params['name'] == '/checkCouponInfo'){
this.$store.commit('couponInfo',params['item']);
}
this.$router.push({'path':params['name']});
},
getYesterday: function (time) {
let yesterday = new Date(time);
yesterday.setTime(yesterday.getTime() - 24 * 60 * 60 * 1000);
let reduce = '-';
this.startTime.time = yesterday.getFullYear() + reduce + this.addZero(yesterday.getMonth() + 1) + reduce + this.addZero(yesterday.getDate());










