Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ecbbebc9
authored
Sep 25, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
省钱攻略组件开发
1 parent
c82808be
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
90 additions
and
3 deletions
packageIndex/components/MoneySavingTips/MoneySavingTips.js
packageIndex/components/MoneySavingTips/MoneySavingTips.json
packageIndex/components/MoneySavingTips/MoneySavingTips.wxml
packageIndex/components/MoneySavingTips/MoneySavingTips.wxss
pages/index/index.json
pages/tab/index/index.json
pages/tab/index/index.wxml
packageIndex/components/MoneySavingTips/MoneySavingTips.js
0 → 100644
View file @
ecbbebc
Component
({
data
:
{},
properties
:
{},
methods
:
{}
})
\ No newline at end of file
\ No newline at end of file
packageIndex/components/MoneySavingTips/MoneySavingTips.json
0 → 100644
View file @
ecbbebc
{
"component"
:
true
}
\ No newline at end of file
\ No newline at end of file
packageIndex/components/MoneySavingTips/MoneySavingTips.wxml
0 → 100644
View file @
ecbbebc
<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
\ No newline at end of file
packageIndex/components/MoneySavingTips/MoneySavingTips.wxss
0 → 100644
View file @
ecbbebc
.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;
}
pages/index/index.json
View file @
ecbbebc
{
{
"usingComponents"
:
{}
"usingComponents"
:
{
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.json
View file @
ecbbebc
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"money-saving-tips"
:
"../../../packageIndex/components/MoneySavingTips/MoneySavingTips"
},
},
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"onReachBottomDistance"
:
10
,
"onReachBottomDistance"
:
10
,
...
...
pages/tab/index/index.wxml
View file @
ecbbebc
<view class=""></view>
\ No newline at end of file
\ No newline at end of file
<money-saving-tips></money-saving-tips>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment