11.29前端
This commit is contained in:
parent
f920b643aa
commit
5e65c8e520
261
gasStation-uni/pagesHome/QRcode/QRcode.vue
Normal file
261
gasStation-uni/pagesHome/QRcode/QRcode.vue
Normal file
@ -0,0 +1,261 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="container">
|
||||
<view class="my-header">
|
||||
<view class="my-icons" @click="goback"> <uni-icons type="left" color="#ffffff" size="16"></uni-icons>
|
||||
</view>
|
||||
<view class="my-text">二维码</view>
|
||||
<view class="my-icons"></view>
|
||||
</view>
|
||||
<!-- 顶部区域 -->
|
||||
<view class="cen-box">
|
||||
<view class="box-top">
|
||||
请出示此码给加油员
|
||||
</view>
|
||||
<view class="code-top">
|
||||
<w-barcode :options="option"></w-barcode>
|
||||
</view>
|
||||
<view class="hui-size">
|
||||
<text>2023 **** **** 5523</text>
|
||||
<text>查看数字</text>
|
||||
</view>
|
||||
<view class="code-box">
|
||||
<w-qrcode :options="options"></w-qrcode>
|
||||
</view>
|
||||
<view class="dis-size">
|
||||
<u-icon name="reload" color="#2979ff" size="18"></u-icon>
|
||||
<text style="margin-left: 10px;">0秒后自动刷新</text>
|
||||
</view>
|
||||
<view class="bottom-box" @click="bottomShow()">
|
||||
<view style="display: flex;align-items: center;">
|
||||
<uni-icons type="wallet-filled" color="#2979ff" size="30"></uni-icons>
|
||||
<view style="margin-left: 10px;">
|
||||
<view class="">自动识别</view>
|
||||
<view style="font-size: 14px; color: #666666;">根据账户自动识别的付款方式</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="v-bottom-box">
|
||||
<u-icon name="warning-fill" size="20px"></u-icon>
|
||||
<view style="width: 80%;margin-left: 10px;">付款码有效时长180秒,切勿截屏使用</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup :show="show" :round="10" @close="close" @open="open">
|
||||
<view class="box-popup">
|
||||
<view class="popup-top">
|
||||
<view class="title">请选择用户类型</view>
|
||||
<view class="hui-size">如果付款失败尝试使用其他方式完成付款</view>
|
||||
</view>
|
||||
<view class="bottom-box">
|
||||
<view style="display: flex;align-items: center;">
|
||||
<uni-icons type="wallet-filled" color="#2979ff" size="30"></uni-icons>
|
||||
<view style="margin-left: 10px;">
|
||||
<view class="">自动识别</view>
|
||||
<view style="font-size: 14px; color: #666666;">根据账户自动识别的付款方式</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom-box">
|
||||
<view style="display: flex;align-items: center;">
|
||||
<uni-icons type="wallet-filled" color="#2979ff" size="30"></uni-icons>
|
||||
<view style="margin-left: 10px;">
|
||||
<view class="">自动识别</view>
|
||||
<view style="font-size: 14px; color: #666666;">根据账户自动识别的付款方式</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
show: false,
|
||||
option: {
|
||||
width: 670, // 宽度 单位rpx
|
||||
height: 100, // 高度 单位rpx
|
||||
code: 'E57890543271985', // 生成条形码的值
|
||||
},
|
||||
options: {
|
||||
code: 'https://qm.qq.com/cgi-bin/qm/qr?k=LKqML292dD2WvwQfAJXBUmvgbiB_TZWF&noverify=0', // 生成二维码的值
|
||||
size: 460, // 460代表生成的二维码的宽高均为460rpx
|
||||
},
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
close() {
|
||||
console.log('弹出层收起');
|
||||
this.show = false
|
||||
},
|
||||
open() {
|
||||
console.log('弹出层打开');
|
||||
},
|
||||
bottomShow() {
|
||||
this.show = true
|
||||
|
||||
},
|
||||
goback() {
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.content {
|
||||
background: #f4f5f6;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
box-sizing: border-box;
|
||||
padding-top: 88px;
|
||||
background-color: #1678ff;
|
||||
}
|
||||
|
||||
.my-header {
|
||||
width: 100%;
|
||||
height: 88px;
|
||||
background: #1678ff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
color: #ffffff;
|
||||
box-sizing: border-box;
|
||||
padding: 0px 15px;
|
||||
padding-top: 40px;
|
||||
|
||||
.my-icons {
|
||||
width: 20px;
|
||||
|
||||
}
|
||||
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
.cen-box {
|
||||
width: 95%;
|
||||
background: #ffffff;
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
border-radius: 8px;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
.box-top {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
// padding: 10px 0px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #f4f5f6;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.code-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.code-top {
|
||||
margin: 10px auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hui-size {
|
||||
font-size: 14px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #666666;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.dis-size {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #666666;
|
||||
font-size: 14px;
|
||||
margin: 20px 0px;
|
||||
}
|
||||
|
||||
.bottom-box {
|
||||
width: 100%;
|
||||
border-top: 1px solid #f4f5f6;
|
||||
box-sizing: border-box;
|
||||
padding-top: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.v-bottom-box {
|
||||
width: 95%;
|
||||
border-radius: 8px;
|
||||
box-sizing: border-box;
|
||||
padding: 15px 10px;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
color: #666666;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
.box-popup {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
background-color: #ffffff;
|
||||
|
||||
}
|
||||
|
||||
.popup-top {
|
||||
box-sizing: border-box;
|
||||
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.hui-size {
|
||||
color: #666666;
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user