|
|
@ -2,15 +2,17 @@ |
|
|
|
<view class="timing-details"> |
|
|
|
<view class="td-head"> |
|
|
|
<view class="th-store"> |
|
|
|
<image :src="orderInfo.original_order.extension.stadium_logo || '' "></image> |
|
|
|
<view>{{orderInfo.original_order.extension.stadium_name || '-'}}</view> |
|
|
|
<image :src="orderInfo.label.BrandAndStadiumLogo"></image> |
|
|
|
<view>{{orderInfo.label.BrandAndStadiumName || '-'}}</view> |
|
|
|
</view> |
|
|
|
<view class="th-line"> |
|
|
|
<view>订单编号:<text>{{orderInfo.order_no || '-'}}</text></view> |
|
|
|
<view><text :class="[orderInfo.original_order.pay_status == 0?'tl-active':'']">{{yw_order_status(orderInfo.original_order.pay_status)}}</text></view> |
|
|
|
<view v-if="orderInfo.original_order" > |
|
|
|
<text :class="[orderInfo.original_order.pay_status == 0?'tl-active':'']">{{yw_order_status(orderInfo.original_order.pay_status)}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="th-line"> |
|
|
|
<view>创建时间:<text>{{orderInfo.original_order.created_at || '-'}}</text></view> |
|
|
|
<view>创建时间:<text>{{orderInfo.created_at || '-'}}</text></view> |
|
|
|
</view> |
|
|
|
<view class="th-line"> |
|
|
|
<view>用户昵称:<text>{{orderInfo.user_nickname || '-'}}</text></view> |
|
|
@ -31,29 +33,33 @@ |
|
|
|
<view class="td-box" > |
|
|
|
<view class="tb-title">约玩信息</view> |
|
|
|
<view class="tb-line"> |
|
|
|
<view>约玩主题:<text>{{(orderInfo.theme)}}</text></view> |
|
|
|
<view class="yw-place-box"> |
|
|
|
<view class="yw-title">预定场地:</view> |
|
|
|
<view class="yw-place"> |
|
|
|
<view v-for="y_item in orderInfo.original_order.sessions"> |
|
|
|
{{y_item.venue_name}} {{y_item.duration}} ( ¥{{y_item.price}} ) |
|
|
|
<view>约玩主题:<text>{{ orderInfo.theme || '-' }}</text></view> |
|
|
|
<block v-if="orderInfo.type == 'Main'"> |
|
|
|
<view class="yw-place-box" v-if="orderInfo.original_order&&orderInfo.original_order.sessions"> |
|
|
|
<view class="yw-title">预定场地:</view> |
|
|
|
<view class="yw-place"> |
|
|
|
<view v-for="(y_item, i) in orderInfo.original_order.sessions" :key="i"> |
|
|
|
{{ (y_item.date).replace(/\-/g, '/') || '-' }} {{ y_item.duration.replace(/\-/g, '~') || '-' }} {{ y_item.venue_name || '-' }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view>报名费用:<text>{{orderInfo.original_order.sessions[0].price || '-'}}</text></view> --> |
|
|
|
<!-- <view>订场费用:<text>{{orderInfo.original_order.sessions[0].price || '-'}}</text></view> --> |
|
|
|
<view>订场费用:<text>¥{{ orderInfo.original_order.pay_amount || 0 }}</text></view> |
|
|
|
</block> |
|
|
|
|
|
|
|
<view v-if="orderInfo.type == 'Sub'">报名费用:<text>{{orderInfo.price_per_person || 0}}</text></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 报名信息 --> |
|
|
|
<view class="td-box" v-if="orderInfo.original_order.pay_status==2&&orderInfo.type=='Main'"> |
|
|
|
<view class="td-box" v-if="orderInfo.original_order&&orderInfo.original_order.pay_status==2&&orderInfo.type=='Main'"> |
|
|
|
<view class="tb-title">报名信息</view> |
|
|
|
<view class="tb-line"> |
|
|
|
<view class="user-images"> |
|
|
|
<view class="u-item" :key="index" v-for="(item,index) in orderInfo.sub_order_data" v-if="(openImages||(!openImages&&index<5))"> |
|
|
|
<image :src="item.user_avatar_url" mode=""></image> |
|
|
|
<text>{{item.user_nickname}}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<block v-for="(item,index) in orderInfo.sub_order_data" :key="index"> |
|
|
|
<view class="u-item" v-if="(openImages||(!openImages&&index<5))"> |
|
|
|
<image :src="item.user_avatar_url" mode=""></image> |
|
|
|
<text>{{item.user_nickname}}</text> |
|
|
|
</view> |
|
|
|
</block> |
|
|
|
</view> |
|
|
|
<view class="show-ui-all" @click="toggleImages()"> |
|
|
|
<image class="" :class="openImages?'reverse':''" src="../../../../../static/images/icon/retail/dropDown.png" mode=""></image> |
|
|
@ -72,7 +78,7 @@ |
|
|
|
</view> |
|
|
|
<!-- 金额小计 --> |
|
|
|
<view class="td-box"> |
|
|
|
<view class="tb-section " v-if="orderInfo.original_order.pay_status!= 0"> |
|
|
|
<view class="tb-section " v-if="orderInfo.original_order&&orderInfo.original_order.pay_status!= 0"> |
|
|
|
<view class="ts-line"> |
|
|
|
<view>金额小计</view> |
|
|
|
<view>¥{{orderInfo.original_order.amount || 0}}</view> |
|
|
@ -96,7 +102,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 支付信息 --> |
|
|
|
<view class="td-box" v-if="orderInfo.original_order.pay_status == 1||orderInfo.original_order.pay_status == 2"> |
|
|
|
<view class="td-box" v-if="orderInfo.original_order&&(orderInfo.original_order.pay_status == 1||orderInfo.original_order.pay_status == 2)"> |
|
|
|
<view class="tb-title">支付信息</view> |
|
|
|
<view class="tb-line"> |
|
|
|
<view>支付方式:<text>{{zh_pay_type(orderInfo.original_order.pay_type)}}</text></view> |
|
|
@ -153,39 +159,6 @@ export default { |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(['brandInfo']), |
|
|
|
yw_order_status(){ |
|
|
|
return status =>{ |
|
|
|
const _obj = {/* */ |
|
|
|
'1': '已付款', |
|
|
|
'2': '已完成', |
|
|
|
'4': '已退款', |
|
|
|
} |
|
|
|
return _obj[`${status}`] || '-' |
|
|
|
} |
|
|
|
}, |
|
|
|
zh_pay_type(){ |
|
|
|
// 支付类型 0微信支付1支付宝支付2储值卡支付 |
|
|
|
return status =>{ |
|
|
|
const _obj = { |
|
|
|
'0': '微信支付', |
|
|
|
'1': '支付宝支付', |
|
|
|
'2': '储值卡支付', |
|
|
|
'3': '商家主动结束计费', |
|
|
|
} |
|
|
|
return _obj[`${status}`] || '-' |
|
|
|
} |
|
|
|
}, |
|
|
|
yw_order_type(){ |
|
|
|
// 约玩类型 type Main/Sub 发起、参与 |
|
|
|
return status =>{ |
|
|
|
const _obj = { |
|
|
|
'Main': '发起的约玩', |
|
|
|
'Sub': '参与的约玩', |
|
|
|
} |
|
|
|
return _obj[`${status}`] || '-' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -197,6 +170,25 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
yw_order_status(status = ''){ |
|
|
|
const _obj = {/* */ |
|
|
|
'1': '已付款', |
|
|
|
'2': '已完成', |
|
|
|
'4': '已退款', |
|
|
|
} |
|
|
|
return _obj[`${status}`] || '-'; |
|
|
|
}, |
|
|
|
// 约玩类型 |
|
|
|
yw_order_type(status = ''){ |
|
|
|
// 约玩类型 type Main/Sub 发起、参与 |
|
|
|
const _obj = { |
|
|
|
'Main': '发起的约玩', |
|
|
|
'Sub': '参与的约玩', |
|
|
|
} |
|
|
|
return _obj[`${status}`] || '-' |
|
|
|
}, |
|
|
|
// 支付类型 |
|
|
|
zh_pay_type: util.order_pay_type_txt, |
|
|
|
confirmChange(){ |
|
|
|
let { brandInfo, orderInfo, input_amount } = this |
|
|
|
if(input_amount == '')return util.showNone('请输入金额!'); |
|
|
@ -231,7 +223,6 @@ export default { |
|
|
|
confirmColor:"#469576", |
|
|
|
success: function (res) { |
|
|
|
if (res.confirm) { |
|
|
|
console.log('用户点击确定'); |
|
|
|
servers.get({ |
|
|
|
url: API.amountIssued, |
|
|
|
data: { |
|
|
@ -240,7 +231,6 @@ export default { |
|
|
|
failMsg: '加载失败!' |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
console.log(888,res); |
|
|
|
util.showNone("发放成功") |
|
|
|
setTimeout(()=>uni.navigateBack(),1200); |
|
|
|
}).catch(e=>{ |
|
|
|