evaSuccessful.vue
2.52 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
<template>
<view class="payCourteous">
<view class="evaBox">
<view class="imgBox">
<image src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/payIcon.png"></image>
</view>
<view class="successful">评价成功</view>
<view class="btnBox fs28 font-color-333">
<view class="orderBtn btn" @click="goToOrder">查看订单</view>
<view class="homeBtn btn" @click="goToHome">返回首页</view>
</view>
</view>
<HotTemplate />
</view>
</template>
<script>
import HotTemplate from '@/components/hoteRecommed/index.vue'
const NET = require('@/utils/request')
const API = require('@/config/api')
export default {
name: "evaSuccessful",
components: {
HotTemplate
},
data() {
return {
orderId: null,
orderPolite: {},
list: [],
listMsg:{}
}
},
onLoad(option) {
if (option.orderId) {
NET.request(API.GetOrderDetail,{
orderId: option.orderId
},'GET').then(res => {
console.log(res.data,'fasfasfasf')
this.listMsg = res.data
// uni.hideLoading()
// this.orderPolite = res.data
}).catch(res => {
// uni.hideLoading()
})
}
},
methods: {
goToOrder() {
// console.log('123123123')
// this.$jump(`orderDetails`, this.listMsg)
uni.navigateTo({
// url: '/pages_category_page1/orderModule/index?all=1'
url: `/pages_category_page1/orderModule/orderDetails?detail=${encodeURIComponent(JSON.stringify(this.listMsg))}`
})
},
goToHome() {
uni.switchTab({
url: '../../pages/tabbar/index/index'
})
},
}
}
</script>
<style lang="scss" scoped>
page {
background: #F8F8F8;
}
.payCourteous {
border-top: 2rpx solid #F3F4F5;
.evaBox {
padding: 30rpx 30rpx 50rpx 30rpx;
background: #FFFFFF;
.imgBox {
padding-top: 100rpx;
display: flex;
justify-content: center;
image {
width: 166rpx;
height: 121rpx;
}
}
.successful {
text-align: center;
margin-top: 30rpx;
}
.btnBox {
display: flex;
justify-content: center;
margin-top: 30rpx;
.btn {
width: 140rpx;
height: 58rpx;
line-height: 58rpx;
border: 2rpx solid #999999;
text-align: center;
font-size: 24rpx;
color: #999999;
}
.orderBtn {
margin-right: 30rpx;
}
.homeBtn {
background: #333333;
border: none;
color: #FFEBC4;
}
}
}
}
</style>