orderSuccessful.vue
2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<template>
<view class="container">
<Navbar title="订气完成" canBack bgColor="#EA5504" leftIconColor="#fff" textColor="#fff"></Navbar>
<view class="topCss">
<view class="flex">
<view class="">
<u-image src="@/static/images/home/success.png" width="50px" height="50px"></u-image>
</view>
<view class="flex flex-direction margin-left-sm justify-between">
<view class="text-xl text-white text-bold">
下单成功!
</view>
<view class="text-white text-sm">
感谢您的支持
</view>
</view>
</view>
<view class="borderCss flex flex-direction">
<view class="billCss">
<view class="priceCss">
¥{{ddInfo.fDdje}}
</view>
<view class="margin-lr-sm">
<u-line dashed></u-line>
</view>
<view class="flex margin-left-sm margin-top-lg align-center">
<view class="text-gray">
订单编号:
</view>
<view class="margin-left-sm">
{{ ddInfo.fDddh || '-'}}
</view>
</view>
<view class="flex margin-left-sm margin-top-lg align-center">
<view class="text-gray">
下单时间:
</view>
<view class="margin-left-sm">
{{ddInfo.fCjsj || '-'}}
</view>
</view>
<view class="flex margin-left-sm margin-top-lg align-center">
<view class="text-gray">
订单总金额:
</view>
<view class="margin-left-sm">
¥{{ddInfo.fDdje|| '-'}}
</view>
</view>
</view>
</view>
</view>
<view class="bomBtnCss flex justify-between">
<view class="" @click="goHome">
<u-button>返回首页</u-button>
</view>
<view class="" @click="goOrder">
<u-button color="#EA5504">查看订单</u-button>
</view>
</view>
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
ddInfo: null
};
},
mounted() {
},
onLoad(data) {
console.log("data", data);
if (data.datas) {
this.ddInfo = JSON.parse(data.datas)
}
},
methods: {
goHome() {
uni.redirectTo({
url: "/pages/home/home"
})
},
goOrder() {
uni.redirectTo({
url: "/pages/home/appList/orderDelivery/orderDelivery"
})
}
}
}
</script>
<style lang="scss" scoped>
.topCss {
background: #EA5504;
height: 200px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.borderCss {
width: 90%;
height: 10px;
background: #8A3A0E;
border-radius: 15px;
margin: 40px 10px 0 10px;
position: relative;
}
.billCss {
width: 95%;
position: absolute;
background: #fff;
left: 0;
right: 0;
margin: 0 auto;
text-align: center;
top: 5px;
padding: 10px 10px 20px 10px;
// height: 250px;
box-shadow: 0px 0px 5px #FACFBA;
.priceCss {
font-size: 35px;
margin: 10px 0;
}
}
.bomBtnCss {
display: flex;
justify-content: space-around;
position: absolute;
width: 100%;
bottom: 20px;
}
/deep/ .bomBtnCss .u-button {
width: 135px;
border-radius: 8px;
}
</style>