Commit ecbbebc9 by 匡雅琴

省钱攻略组件开发

1 parent c82808be
Component({
data: {},
properties: {},
methods: {}
})
\ No newline at end of file
{
"component": true
}
\ No newline at end of file
<view class="saving-tips-box">
<view class="save-title-box">
<view class="bg-box"></view>
<view class="text">省钱攻略</view>
</view>
<view class="img-box">
<view class="img-item-box">
<glsx-image webp src="home/saving_1.png" class="saving-img"></glsx-image>
<view class="viewer">9520人浏览</view>
</view>
<view class="img-item-box">
<glsx-image webp src="home/saving_2.png" class="saving-img"></glsx-image>
<view class="viewer">9520人浏览</view>
</view>
</view>
</view>
\ No newline at end of file
.save-title-box {
position: relative;
}
.save-title-box .text {
position: absolute;
top: 14rpx;
font-size: 36rpx;
color: #000000;
font-weight: 500;
margin-left: 20rpx;
}
.bg-box {
width: 200rpx;
height: 60rpx;
background: #d6e8fe;
/* 宽高background-image: linear-gradient(180deg, #d6e8fe 0%, #f8f8f8 100%); */
/*颜色*/
border-radius: 16rpx 16rpx 0 0;
/*设置圆角*/
transform: perspective(48rpx) scale(1.1, 1.3) rotateX(5deg);
/*镜头距离元素表面的位置为8px,x轴为1.1倍y轴为1.3倍,绕x轴旋转5度*/
transform-origin: bottom left;
/*bottomleft=leftbottom=0100%中心点偏移量*/
}
.saving-img {
width: 690rpx;
height: 388rpx;
}
.img-box {
padding: 30rpx;
background-image: linear-gradient(180deg, #d6e8fe 0%, #f8f8f8 100%);
border-radius: 0 16rpx 0 0;
-webkit-border-radius: 0 16rpx 0 0;
-moz-border-radius: 0 16rpx 0 0;
-ms-border-radius: 0 16rpx 0 0;
-o-border-radius: 0 16rpx 0 0;
}
.img-item-box {
position: relative;
margin-bottom: 30rpx;
}
.viewer {
position: absolute;
top: 20rpx;
right: 28rpx;
width: 146rpx;
height: 36rpx;
opacity: 0.3;
background: #000000;
border-radius: 18rpx;
font-size: 24rpx;
color: #ffffff;
line-height: 36rpx;
padding: 0 4rpx;
text-align: center;
}
{
"usingComponents": {}
"usingComponents": {
}
}
\ No newline at end of file
{
"usingComponents": {
"money-saving-tips": "../../../packageIndex/components/MoneySavingTips/MoneySavingTips"
},
"navigationStyle": "custom",
"onReachBottomDistance": 10,
......
<view class=""></view>
\ No newline at end of file
<money-saving-tips></money-saving-tips>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!