|
|
@ -1,32 +1,50 @@ |
|
|
|
<template> |
|
|
|
<view class="offer-info"> |
|
|
|
<view :class="['i-status', optionsQuery.order_pay_status == 1?'i-active':'']"> |
|
|
|
<view :class="['i-status', offerInfo.order_pay_status == 1?'i-active':'']"> |
|
|
|
{{ |
|
|
|
optionsQuery.order_pay_status == 0? '等待客户支付': |
|
|
|
optionsQuery.order_pay_status == 1? '客户已支付': '' |
|
|
|
offerInfo.order_pay_status == 0? '等待客户支付': |
|
|
|
offerInfo.order_pay_status == 1? '客户已支付': '' |
|
|
|
|
|
|
|
}} |
|
|
|
</view> |
|
|
|
<view class="i-setion"> |
|
|
|
<view class="s-line"><text>课程名称:</text>{{optionsQuery.course_name || '-'}}</view> |
|
|
|
<view class="s-line"><text>上课用户:</text>{{optionsQuery.name || '-'}}</view> |
|
|
|
<view class="s-line"><text>课程次数:</text>{{optionsQuery.number || '-'}}</view> |
|
|
|
<view class="s-line"><text>课程报价:</text>{{optionsQuery.price || '-'}}</view> |
|
|
|
<view class="s-line"><text>课程名称:</text>{{offerInfo.course.name || '-'}}</view> |
|
|
|
<view class="s-line"><text>上课用户:</text>{{offerInfo.name || '-'}}</view> |
|
|
|
<view class="s-line"><text>课程次数:</text>{{offerInfo.number || '0'}}</view> |
|
|
|
<view class="s-line"><text>课程报价:</text>{{offerInfo.offer_price || '0'}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { API } from '../../../js/api'; |
|
|
|
import { servers } from '../../../js/server'; |
|
|
|
import util from '../../../utils/util' |
|
|
|
export default { |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
optionsQuery: {} |
|
|
|
offerInfo: {}, |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
let _query = util.jsonPar(options.query); |
|
|
|
this.optionsQuery = _query; |
|
|
|
// let _query = util.jsonPar(options.query); |
|
|
|
// this.optionsQuery = _query; |
|
|
|
this.getOfferInfo(options.class_id); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getOfferInfo(id){ |
|
|
|
util.showLoad(); |
|
|
|
servers.get({ |
|
|
|
url: API.course.getOfferPriceInfo, |
|
|
|
data: {id}, |
|
|
|
failMsg: '加载失败!' |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
util.hideLoad(); |
|
|
|
this.offerInfo = res; |
|
|
|
console.warn('offerInfo', res); |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|