|
|
|
@ -38,29 +38,40 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const order_info = ref({
|
|
|
|
// const order_info = ref({
|
|
|
|
status: 1,
|
|
|
|
// status: 1,
|
|
|
|
combo_id: 1,
|
|
|
|
// combo_id: 1,
|
|
|
|
combo_name: '中心动脉硬化检测体检',
|
|
|
|
// combo_name: '中心动脉硬化检测体检',
|
|
|
|
item_ids: [1, 2, 3, 4],
|
|
|
|
// item_ids: [1, 2, 3, 4],
|
|
|
|
item_info: [{
|
|
|
|
// item_info: [{
|
|
|
|
name: '抽血1'
|
|
|
|
// name: '抽血1'
|
|
|
|
}, {
|
|
|
|
// }, {
|
|
|
|
name: '抽血2'
|
|
|
|
// name: '抽血2'
|
|
|
|
}, {
|
|
|
|
// }, {
|
|
|
|
name: '抽血3'
|
|
|
|
// name: '抽血3'
|
|
|
|
}, {
|
|
|
|
// }, {
|
|
|
|
name: '抽血4'
|
|
|
|
// name: '抽血4'
|
|
|
|
}],
|
|
|
|
// }],
|
|
|
|
name: '周子轩',
|
|
|
|
// name: '周子轩',
|
|
|
|
id_number: '130322199409090090',
|
|
|
|
// id_number: '130322199409090090',
|
|
|
|
order_number: '1000034',
|
|
|
|
// order_number: '1000034',
|
|
|
|
order_time: '2024-12-12 12:12:12',
|
|
|
|
// order_time: '2024-12-12 12:12:12',
|
|
|
|
type: '个检',
|
|
|
|
// type: '个检',
|
|
|
|
price: '300.00'
|
|
|
|
// price: '300.00'
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
|
|
|
|
const order_info = ref({})
|
|
|
|
const getOrderInfo = async () => {
|
|
|
|
const getOrderInfo = async () => {
|
|
|
|
|
|
|
|
uni.showLoading()
|
|
|
|
|
|
|
|
const response = await $api('GetOrderDetail', {
|
|
|
|
|
|
|
|
openid: localStorage.getItem('OPENID'),
|
|
|
|
|
|
|
|
id: $props.id,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
uni.hideLoading()
|
|
|
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
|
|
|
if (response.status) {
|
|
|
|
|
|
|
|
order_info.value=response.data.info
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const toOrderList = () => {
|
|
|
|
const toOrderList = () => {
|
|
|
|
@ -81,7 +92,7 @@
|
|
|
|
<view :ref="configRef"></view>
|
|
|
|
<view :ref="configRef"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view v-if="!!order_info">
|
|
|
|
<view v-if="!!order_info">
|
|
|
|
<view v-if="order_info.status === 1" class="order_done_wrapper">
|
|
|
|
<view v-if="order_info.status === 2" class="order_done_wrapper">
|
|
|
|
<view class="order_icon_wrapper">
|
|
|
|
<view class="order_icon_wrapper">
|
|
|
|
<view class="order_icon_image_wrapper">
|
|
|
|
<view class="order_icon_image_wrapper">
|
|
|
|
<image src="@/static/assets/buy/buy_done@2x.png"></image>
|
|
|
|
<image src="@/static/assets/buy/buy_done@2x.png"></image>
|
|
|
|
@ -89,7 +100,7 @@
|
|
|
|
<view class="order_icon_tip_wrapper">恭喜您,支付成功!</view>
|
|
|
|
<view class="order_icon_tip_wrapper">恭喜您,支付成功!</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="order_info_wrapper">
|
|
|
|
<view class="order_info_wrapper">
|
|
|
|
<view class="order_info_title_wrapper">{{ order_info.combo_name }}</view>
|
|
|
|
<view class="order_info_title_wrapper">{{ order_info.title }}</view>
|
|
|
|
<view class="order_info_line_wrapper">
|
|
|
|
<view class="order_info_line_wrapper">
|
|
|
|
<view class="order_info_label_wrapper">体检人:</view>
|
|
|
|
<view class="order_info_label_wrapper">体检人:</view>
|
|
|
|
<view class="order_info_value_wrapper">{{ order_info.name }}</view>
|
|
|
|
<view class="order_info_value_wrapper">{{ order_info.name }}</view>
|
|
|
|
@ -104,15 +115,15 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="order_info_line_wrapper">
|
|
|
|
<view class="order_info_line_wrapper">
|
|
|
|
<view class="order_info_label_wrapper">预约时间:</view>
|
|
|
|
<view class="order_info_label_wrapper">预约时间:</view>
|
|
|
|
<view class="order_info_value_wrapper">{{ order_info.order_time }}</view>
|
|
|
|
<view class="order_info_value_wrapper">{{ order_info.appointment_date }} {{ order_info.appointment_time }}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="order_info_line_wrapper">
|
|
|
|
<view class="order_info_line_wrapper">
|
|
|
|
<view class="order_info_label_wrapper">类型:</view>
|
|
|
|
<view class="order_info_label_wrapper">类型:</view>
|
|
|
|
<view class="order_info_value_wrapper">{{ order_info.type }}</view>
|
|
|
|
<view class="order_info_value_wrapper"><span v-if="order_info.type==1">个检</span><span v-if="order_info.type==2">团检</span></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="order_info_price_wrapper">
|
|
|
|
<view class="order_info_price_wrapper">
|
|
|
|
<view class="order_info_label_wrapper">订单金额:</view>
|
|
|
|
<view class="order_info_label_wrapper">订单金额:</view>
|
|
|
|
<view class="order_info_value_wrapper">¥{{ order_info.price }}</view>
|
|
|
|
<view class="order_info_value_wrapper">¥{{ order_info.true_price }}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view @click="toOrderList()" class="check_done_wrapper">确认并关闭</view>
|
|
|
|
<view @click="toOrderList()" class="check_done_wrapper">确认并关闭</view>
|
|
|
|
|