35b48aa6
liuqimichale
init
|
1
2
|
<template>
<div class="wrap">
|
53cd7057
liuqimichale
调接口
|
3
|
<Pay :title="title" :money="money"/>
|
35b48aa6
liuqimichale
init
|
4
5
6
7
8
9
10
|
<Loading v-show="_getshowflag"/>
</div>
</template>
<script>
import Loading from './Loading'
import InOut from './InOut'
|
8da434bf
liuqimichale
车场进出场支付
|
11
|
import Pay from './Pay'
|
35b48aa6
liuqimichale
init
|
12
13
14
15
16
|
import { mapGetters, mapActions } from 'vuex'
export default {
name: 'HelloWorld',
components: {
|
8da434bf
liuqimichale
车场进出场支付
|
17
|
Loading, InOut, Pay
|
35b48aa6
liuqimichale
init
|
18
19
20
21
|
},
data() {
return {
payFlag: false,
|
8da434bf
liuqimichale
车场进出场支付
|
22
|
inOutVal: this.$route.query.id,
|
35b48aa6
liuqimichale
init
|
23
|
// isShow: ''
|
8da434bf
liuqimichale
车场进出场支付
|
24
25
|
title: '',
money: ''
|
35b48aa6
liuqimichale
init
|
26
27
28
29
30
31
32
33
|
}
},
computed: {
...mapGetters([
'_getshowflag', '_getPayFlag'
])
},
created() {
|
0bfdd97a
liuqimichale
调接口
|
34
35
36
37
38
39
40
|
this.$http.get('http://39.98.54.240:8090/hmQrCodeInOutPark/noCarQRcodeInOutPark')
.then(function(response) {
console.log(response)
})
.catch(function(error) {
console.log(error)
})
|
35b48aa6
liuqimichale
init
|
41
42
|
setTimeout(() => {
this.handleHide()
|
e495e419
liuqimichale
传值
|
43
|
|
e495e419
liuqimichale
传值
|
44
45
46
47
48
49
50
51
52
53
54
|
// $http.post('/user', {
// firstName: 'Fred',
// lastName: 'Flintstone'
// })
// .then(function (response) {
// console.log(response);
// })
// .catch(function (error) {
// console.log(error);
// });
|
35b48aa6
liuqimichale
init
|
55
56
57
58
59
|
// 模拟请求
// this.$fetch('/api/v2/movie/top250').then((response) => {
// console.log(response)
// })
// },
|
145c620a
liuqimichale
传值
|
60
|
// this.handlePayFlag()
|
35b48aa6
liuqimichale
init
|
61
|
console.log(this._getPayFlag)
|
145c620a
liuqimichale
传值
|
62
63
|
// this.title = '手机: 13911137584'
// this.money = '¥100.00'
|
35b48aa6
liuqimichale
init
|
64
65
66
67
68
69
70
|
}, 2000)
},
methods: {
...mapActions([
'handleHide',
'handleShow',
'handlePayFlag'
|
145c620a
liuqimichale
传值
|
71
72
73
74
75
76
|
]),
transmit(data) {
console.log(data)
this.title = data.title
this.money = data.money
}
|
35b48aa6
liuqimichale
init
|
77
78
79
80
81
82
83
84
85
86
87
88
|
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.wrap {
width: 100%;
height: 100%;
position: relative;
}
</style>
|