ticketBooking.vue
1.71 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
<template>
<view class="pages">
<view style="padding: 10px; background-color: #fff;width: 70%;align-items: center;flex-direction: column;display: flex;margin-bottom: 10px; ">
<view class="title">
抖音订票渠道
</view>
<!-- <img :src="$imgUrl('/piaowu2.png')" alt="" style="width: 90%;" @longpress="longpressEvent"> -->
<!-- <view catchtap="prImg">
</view>\ -->
<img :src="$imgUrl('/dy.jpg')" alt="" style="width: 90%;" />
</view>
<view style="padding: 10px; background-color: #fff;width: 70%;align-items: center;flex-direction: column;display: flex;margin-bottom: 10px; ">
<view class="title">
携程官方订票渠道
</view>
<!-- <img :src="$imgUrl('/piaowu3.png')" alt="" style="width: 90%;"> -->
<img :src="$imgUrl('/piaowu5.png')" alt="" style="width: 90%;"/>
</view>
</view>
</template>
<script>
export default {
methods: {
longPressHandler(e){
let src = e.currentTarget.dataset.src
wx.scanCode({
scanType: ['qrCode'],
success: function(res) {
console.log(res.result);
}
})
},
// longpressEvent() {
// wx.scanCode({
// success: res => {
// // 扫描成功,res.result为扫描结果
// if (res.resultType === 'qrCode') { // 判断是否为二维码
// // 进行跳转逻辑处理
// }
// },
// fail: err => {
// // 扫描失败,处理错误信息
// }
// })
// },
// prImg(){
// wx.previewImage({urls:['../../static/images/dy.jpg']})
// }
}
}
</script>
<style>
.pages{
padding-top: 20px;
display: flex;
width: 100%;
align-items: center;
flex-direction: column;
}
.title{
padding: 10px 0;
font-size: 20px;
}
</style>