ticketBooking.vue 1.71 KB
<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>