Commit 1333a55f by 李伟康

修改加微样式

1 parent e9622412
...@@ -35,7 +35,7 @@ Page({ ...@@ -35,7 +35,7 @@ Page({
// 6 // 6
// ) // )
} }
this.getServiceCode()
}, },
longtap() { longtap() {
let { let {
...@@ -96,7 +96,9 @@ Page({ ...@@ -96,7 +96,9 @@ Page({
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () {}, onShow: function () {
this.getServiceCode()
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
......
<view class="layout"> <view class="layout">
<view class="view-bg">
<glsx-image src="home/service/bg.png"></glsx-image>
</view>
<view class="box"> <view class="box">
<view class="bg"> <view class="bg">
<glsx-image src="home/service/box-bg.png"></glsx-image> <glsx-image src="home/service/box-bg.png"></glsx-image>
......
/* pages/serviceCode/serviceCode.wxss */ /* pages/serviceCode/serviceCode.wxss */
.layout { .layout {
height: 1443rpx; height: 1443rpx;
&::after{
// &::after{
// position: fixed;
// width: 100vw;
// height: 100%;
// left: 0;
// top: 0;
// background-color: rgb(186,9,16);
// content: '';
// z-index: -10;
// }
.view-bg {
position: fixed; position: fixed;
width: 100vw; width: 882rpx;
height: 100%; height: 1761rpx;
left: 0; top: -61rpx;
top: 0; left: -52rpx;
background-color: rgb(186,9,16);
content: '';
z-index: -10; z-index: -10;
} }
.box{
.box {
margin: 0 50rpx; margin: 0 50rpx;
height: 1276rpx; height: 1276rpx;
position: relative; position: relative;
.bg{
.bg {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: absolute;
...@@ -23,71 +34,82 @@ ...@@ -23,71 +34,82 @@
left: 0; left: 0;
top: 0; top: 0;
} }
.icon{
.icon {
position: absolute; position: absolute;
left: 46rpx; left: 46rpx;
top: 78rpx; top: 78rpx;
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
} }
.name{
.name {
position: absolute; position: absolute;
top: 107rpx; top: 107rpx;
left: 139rpx; left: 139rpx;
width: 191rpx; width: 191rpx;
height: 24rpx; height: 24rpx;
} }
.title{
.title {
position: absolute; position: absolute;
top: 204rpx; top: 204rpx;
width: 438rpx; width: 438rpx;
height: 54rpx; height: 54rpx;
} }
.sub-title{
.sub-title {
position: absolute; position: absolute;
top: 290rpx; top: 290rpx;
width: 424rpx; width: 424rpx;
height: 117rpx; height: 117rpx;
} }
.line{
.line {
position: absolute; position: absolute;
width: 339rpx; width: 339rpx;
height: 3rpx; height: 3rpx;
top: 486rpx; top: 486rpx;
} }
.receive{
.receive {
position: absolute; position: absolute;
width: 121rpx; width: 121rpx;
height: 29rpx; height: 29rpx;
top: 473rpx; top: 473rpx;
} }
.qr-box{
.qr-box {
position: absolute; position: absolute;
top: 526rpx; top: 526rpx;
width: 312rpx; width: 312rpx;
height: 312rpx; height: 312rpx;
.wx-tips{
.wx-tips {
position: absolute; position: absolute;
left: 59rpx; left: 59rpx;
bottom: 16rpx; bottom: 16rpx;
width: 206rpx; width: 206rpx;
height: 22rpx; height: 22rpx;
} }
.qr{
.qr {
position: absolute; position: absolute;
width: 230rpx; width: 230rpx;
height: 230rpx; height: 230rpx;
top: 33rpx; top: 33rpx;
} }
} }
.qr-bg{
.qr-bg {
position: absolute; position: absolute;
top: 559rpx; top: 559rpx;
width: 559rpx; width: 559rpx;
height: 235rpx; height: 235rpx;
z-index: -1; z-index: -1;
} }
.tips{
.tips {
position: absolute; position: absolute;
right: 0; right: 0;
bottom: -34rpx; bottom: -34rpx;
......
<view class="layout"> <view class="layout">
<view class="view-bg">
<glsx-image src="home/service/bg.png"></glsx-image>
</view>
<view class="box"> <view class="box">
<view class="bg"> <view class="bg">
<glsx-image src="home/service/box-bg.png"></glsx-image> <glsx-image src="home/service/box-bg.png"></glsx-image>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!