详情小程序
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.
 
 
 
 

139 lines
2.9 KiB

<template>
<view class="lf-w-100 lf-h-100">
<view class="pure_top">
<view class="tips-top">
<view class="lf-color-222 lf-font-32">私人专属红娘可可小红娘可爱猪猪</view>
<view class="lf-color-555 lf-font-26 lf-m-t-20">添加专属红娘为好友获得红线帮您牵线搭桥</view>
<view class="lf-color-555 lf-font-26 lf-m-t-20">线下红娘服务私人订制服务全方位助您脱单</view>
</view>
</view>
<view class="qrcode-content">
<view class="lf-row-between lf-p-l-30 lf-p-r-30 content-title">
<view class="lf-flex">
<u-icon name="weixin-fill lf-m-r-15 lf-font-38"></u-icon><text class="lf-font-28 lf-color-222">{{ hongniang.weixin }}</text>
</view>
<view class="content-btn" @click="copy(hongniang.weixin)">
复制
</view>
</view>
<view class="qr-code">
<image :src="hongniang.qrcode_url"></image>
<!-- <tki-qrcode ref="qrcode" @result="qrR" :val="checkArea" :size="270" unit="px" background="#fff"
foreground="#000" pdground="#000" :onval="true" :loadMake="true" /> -->
</view>
</view>
</view>
</template>
<script>
// import tkiQrcode from "tki-qrcode" // 二维码生成器
export default {
// components: {
// tkiQrcode
// },
data() {
return {
base64Img: '',
checkArea: 'USI782936437829',
hongniang: {}
}
},
onLoad(){
this.getData();
},
methods: {
getData(){
this.$http(this.API.API_HONGNIANG).then(res => {
this.hongniang = res.data.hongniang;
})
},
//二维码回调
qrR(data) {
this.base64Img = data;
},
// 点击复制
copy(text) {
if(!text) return;
this.$copy(text);
}
}
}
</script>
<style>
page {
background-color: #F5F5F5;
}
</style>
<style scoped="scoped">
.pure_top {
width: 100%;
height: 210rpx;
position: relative;
z-index: 1;
}
.pure_top::after {
content: '';
width: 140%;
height: 210rpx;
position: absolute;
left: -20%;
top: 0;
z-index: -1;
border-radius: 0 0 55% 55%;
background: linear-gradient(180deg, #FE3EA5 0%, #FE7749 100%);
}
.tips-top {
width: 686rpx;
height: 252rpx;
background: #FFFFFF;
border-radius: 20rpx;
margin: 0 auto;
position: relative;
top: 60rpx;
padding: 50rpx 40rpx;
display: flex;
flex-direction: column;
/* justify-content: space-around; */
}
.qrcode-content {
width: 686rpx;
height: 703rpx;
background: #FFFFFF;
border-radius: 20rpx;
margin: 0 auto;
margin-top: 133rpx;
}
.content-btn {
width: 122rpx;
height: 55rpx;
border-radius: 28rpx;
border: 1rpx solid #777777;
font-size: 24rpx;
color: #777;
font-weight: 400;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
letter-spacing: 1rpx;
}
.content-title {
height: 100rpx;
border-bottom: 1rpx solid #F5F5F5;
}
.qr-code {
display: flex;
justify-content: center;
align-items: center;
margin: 30rpx 0;
}
</style>