上传代码
This commit is contained in:
29
p-BluPrint_1.0.288888/pages/test/test.vue
Normal file
29
p-BluPrint_1.0.288888/pages/test/test.vue
Normal file
@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<view>
|
||||
<h1>订单详情</h1>
|
||||
<view v-if="orderInfo">
|
||||
<p>ID: {{ orderInfo.id }}</p>
|
||||
<p>创建时间: {{ orderInfo.createTime }}</p>
|
||||
<p>手机号: {{ orderInfo.phone }}</p>
|
||||
<p>总价: ¥{{ orderInfo.totalPrice }}</p>
|
||||
<!-- 其他订单信息 -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
orderInfo: null
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
if (options.orderInfo) {
|
||||
// 解码并解析订单信息
|
||||
const orderInfo = decodeURIComponent(options.orderInfo);
|
||||
this.orderInfo = JSON.parse(orderInfo);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user