You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
2.6 KiB
132 lines
2.6 KiB
<template> |
|
<view> |
|
<cu-custom class="main-totextbar bg-main-oil" :isBack="true" bgColor="bg-main-oil"> |
|
<block slot="backText">返回</block> |
|
<block slot="content">加油码</block> |
|
</cu-custom> |
|
<view class="main padding-top"> |
|
<view class="card" @tap="routerTo('xk')"> |
|
<view class="text"> |
|
<view class=""> |
|
<text class="title font-16 ">星油</text> </view> <text class="font-14">加油码</text> |
|
<view class="tip-container font-12">支持油站:星油/老吕油站</view> |
|
</view> |
|
<view class="qr-bg"> |
|
<image src="https://www.51xingka.net/LSMOIL/static/img/xk.png"></image> |
|
</view> |
|
<text color="#fff" class="opened van-tag">{{'111'}}</text> |
|
</view> |
|
<view class="margin-top-xs"> |
|
|
|
</view> |
|
<view class="card margin-top" @tap="routerTo('wjy')"> |
|
<view class="text"> |
|
<view class=""> |
|
<text class="title font-16 ">万金油</text> |
|
</view> |
|
|
|
<text class="font-14">加油码</text> |
|
</view> |
|
<view class="qr-bg"> |
|
<image src="https://www.51xingka.net/LSMOIL/static/img/wjy.png"></image> |
|
</view> |
|
<text color="#fff" v-if="wanjinAccount" class="opened van-tag">{{'111'}}</text> |
|
<text color="#D54C4C" v-else class="before-open van-tag">{{'111'}}</text> |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</template> |
|
|
|
<script> |
|
export default { |
|
data() { |
|
return { |
|
wanjinAccount: true |
|
} |
|
}, |
|
methods: { |
|
routerTo(key) { |
|
if(key==='xk'){ |
|
var url ='/pages/qrcode/QrCode_xy/QrCode_xy' |
|
}else{ |
|
var url = '/pages/qrcode/QrCode-wjy/QrCode-wjy' |
|
} |
|
// console.log(url) |
|
uni.navigateTo({ |
|
url: url, |
|
fail:(err)=>{ |
|
// console.log('失败',url,err) |
|
} |
|
}) |
|
} |
|
|
|
} |
|
} |
|
</script> |
|
|
|
<style scoped> |
|
.card { |
|
position: relative; |
|
width: 700upx; |
|
margin: auto; |
|
} |
|
|
|
.qr-bg { |
|
min-height: 200rpx; |
|
text-align: center; |
|
max-height: 300rpx; |
|
} |
|
|
|
.text { |
|
position: absolute; |
|
z-index: 1; |
|
left: 4rem; |
|
top: 1.2rem; |
|
color: #fff; |
|
} |
|
|
|
.van-tag { |
|
display: inline-block; |
|
padding: 0.3rem 0.4rem; |
|
position: absolute; |
|
right: 1px; |
|
font-size: 12px; |
|
top: 15.75%; |
|
background-color: #fff; |
|
border-radius: 10rem 0 0 10rem; |
|
border-color: transparent; |
|
} |
|
|
|
.opened { |
|
color: #fe0505; |
|
} |
|
|
|
.before-open { |
|
padding-bottom: 4px; |
|
} |
|
|
|
.qr-bg image { |
|
background-size: cover; |
|
width: 700upx; |
|
height: 232rpx; |
|
} |
|
|
|
.tip-container { |
|
margin-top: 0.5rem; |
|
color: rgba(191, 39, 1, 1); |
|
background: rgba(255, 255, 255, 1); |
|
box-shadow: 6px 2px 6px 1px rgba(0, 0, 0, 0.06); |
|
opacity: 0.71; |
|
border-radius: 0px 20px 20px 15px; |
|
padding: 0.3rem 0.8rem; |
|
} |
|
|
|
.opened { |
|
color: #fe0505; |
|
} |
|
|
|
.before-open { |
|
padding-bottom: 4px; |
|
} |
|
</style>
|
|
|