Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mini-program-wepy
Commits
79e1e467
Commit
79e1e467
authored
Jun 08, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 公共样式
parent
2fee3ff7
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
138 additions
and
125 deletions
+138
-125
app.wpy
src/app.wpy
+4
-2
network.wpy
src/components/custom/network.wpy
+7
-6
openAnimation.wpy
src/components/custom/openAnimation.wpy
+10
-9
popup.wpy
src/components/custom/popup.wpy
+4
-3
sharedPopup.wpy
src/components/custom/sharedPopup.wpy
+6
-5
sign.wpy
src/components/custom/sign.wpy
+18
-17
videolist.wpy
src/components/custom/videolist.wpy
+6
-5
test.js
src/mixins/test.js
+0
-18
help.wpy
src/pages/help.wpy
+4
-4
index.wpy
src/pages/index.wpy
+10
-9
myraffles.wpy
src/pages/myraffles.wpy
+11
-10
prize.wpy
src/pages/prize.wpy
+12
-12
raffle.wpy
src/pages/raffle.wpy
+24
-25
common.less
src/style/common.less
+22
-0
No files found.
src/app.wpy
View file @
79e1e467
<style>
<style lang="less">
@import "./style/common.less";
page {
page {
font-family: 'PingFangSC-Regular',monospace;
font-family: 'PingFangSC-Regular',monospace;
width:100%;
width:100%;
height:100%;
height:100%;
background-color:#F1F1F1;
background-color:@greyback;
color:@fontcolor;
}
}
</style>
</style>
<script>
<script>
...
...
src/components/custom/network.wpy
View file @
79e1e467
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
});
});
</script>
</script>
<style lang="less">
<style lang="less">
@import "../../style/common";
.network-container {
.network-container {
position: fixed;
position: fixed;
width: 100%;
width: 100%;
...
@@ -40,17 +41,17 @@
...
@@ -40,17 +41,17 @@
align-items: center;
align-items: center;
flex-direction: column;
flex-direction: column;
.network-text {
.network-text {
color:
#AAA
;
color:
@darkgrey
;
font-size:
24rpx
;
font-size:
@font-normal
;
}
}
.network-button {
.network-button {
margin-top: 20rpx;
margin-top: 20rpx;
width: 180rpx;
width: 180rpx;
font-size:
24rpx
;
font-size:
@font-normal
;
height: 56rpx;
height: 56rpx;
line-height: 56rpx;
line-height: 56rpx;
background:
#FF6600
;
background:
@maincolor
;
border-color:
#FF6600
;
border-color:
@maincolor
;
}
}
}
}
}
}
...
...
src/components/custom/openAnimation.wpy
View file @
79e1e467
...
@@ -105,6 +105,7 @@
...
@@ -105,6 +105,7 @@
});
});
</script>
</script>
<style lang="less">
<style lang="less">
@import "../../style/common";
.open-container {
.open-container {
position: fixed;
position: fixed;
width: 100%;
width: 100%;
...
@@ -184,7 +185,7 @@
...
@@ -184,7 +185,7 @@
width: 500rpx;
width: 500rpx;
height: 500rpx;
height: 500rpx;
border-radius: 20rpx;
border-radius: 20rpx;
color:
#fff
;
color:
@whitecolor
;
background: linear-gradient(#FF5D15 5%, #FDA13E 60%, rgba(255, 255, 255, 0.8) 100%),
background: linear-gradient(#FF5D15 5%, #FDA13E 60%, rgba(255, 255, 255, 0.8) 100%),
;
;
padding: 39rpx 40rpx 0rpx 40rpx;
padding: 39rpx 40rpx 0rpx 40rpx;
...
@@ -299,7 +300,7 @@
...
@@ -299,7 +300,7 @@
white-space: nowrap;
white-space: nowrap;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
font-size:
24rpx
;
font-size:
@font-normal
;
text-align: center;
text-align: center;
}
}
}
}
...
@@ -311,11 +312,11 @@
...
@@ -311,11 +312,11 @@
height: 158rpx;
height: 158rpx;
z-index: 11;
z-index: 11;
.btn {
.btn {
font-size:
24rpx
;
font-size:
@font-normal
;
width: 160rpx;
width: 160rpx;
height: 70rpx;
height: 70rpx;
line-height: 70rpx;
line-height: 70rpx;
border: 1rpx solid
#FF5D15
;
border: 1rpx solid
@maincolor
;
z-index: 11;
z-index: 11;
border-radius: 10rpx;
border-radius: 10rpx;
&:after {
&:after {
...
@@ -323,11 +324,11 @@
...
@@ -323,11 +324,11 @@
};
};
&:nth-child(1) {
&:nth-child(1) {
background: #fff;
background: #fff;
color:
#FF5D15
;
color:
@maincolor
;
}
}
&:nth-child(2) {
&:nth-child(2) {
background:
#FF5D15
;
background:
@maincolor
;
color: #fff;
color: #fff;
}
}
}
}
...
@@ -439,7 +440,7 @@
...
@@ -439,7 +440,7 @@
bottom:160rpx;
bottom:160rpx;
left:0rpx;
left:0rpx;
content:"";
content:"";
background:
#fff
;
background:
@whiteback
;
border-left:#e59c00 2rpx solid;
border-left:#e59c00 2rpx solid;
border-right:#e59c00 2rpx solid;
border-right:#e59c00 2rpx solid;
box-sizing:border-box;
box-sizing:border-box;
...
@@ -448,7 +449,7 @@
...
@@ -448,7 +449,7 @@
position: relative;
position: relative;
z-index: 2;
z-index: 2;
text-align: center;
text-align: center;
font-size:
22rpx
;
font-size:
@font-common
;
padding-bottom: 20rpx;
padding-bottom: 20rpx;
.gift-image {
.gift-image {
width: 140rpx;
width: 140rpx;
...
@@ -467,7 +468,7 @@
...
@@ -467,7 +468,7 @@
height: 50rpx;
height: 50rpx;
line-height: 50rpx;
line-height: 50rpx;
border-radius: 6rpx;
border-radius: 6rpx;
font-size:
22rpx
;
font-size:
@font-common
;
&:active{
&:active{
background-image: -webkit-gradient(linear, left top, left bottom, from(#f09902), to(#f09902));
background-image: -webkit-gradient(linear, left top, left bottom, from(#f09902), to(#f09902));
}
}
...
...
src/components/custom/popup.wpy
View file @
79e1e467
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
});
});
</script>
</script>
<style lang="less">
<style lang="less">
@import "../../style/common";
.popup-container {
.popup-container {
position: fixed;
position: fixed;
width: 100%;
width: 100%;
...
@@ -81,7 +82,7 @@
...
@@ -81,7 +82,7 @@
position: absolute;
position: absolute;
left: 20rpx;
left: 20rpx;
top: 155rpx;
top: 155rpx;
background:
#fff
;
background:
@whiteback
;
border-radius: 10rpx;
border-radius: 10rpx;
padding: 10rpx 19rpx;
padding: 10rpx 19rpx;
box-sizing: border-box;
box-sizing: border-box;
...
@@ -108,8 +109,8 @@
...
@@ -108,8 +109,8 @@
height: 50rpx;
height: 50rpx;
}
}
.desc {
.desc {
color:
#FF5D15
;
color:
@maincolor
;
font-size:
20rpx
;
font-size:
@font-small
;
margin-top: 9rpx
margin-top: 9rpx
}
}
}
}
...
...
src/components/custom/sharedPopup.wpy
View file @
79e1e467
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
});
});
</script>
</script>
<style lang="less">
<style lang="less">
@import "../../style/common";
.share-container {
.share-container {
position: fixed;
position: fixed;
width: 100%;
width: 100%;
...
@@ -83,7 +84,7 @@
...
@@ -83,7 +84,7 @@
width: 530rpx;
width: 530rpx;
height: 530rpx;
height: 530rpx;
border-radius: 20rpx;
border-radius: 20rpx;
color:
#fff
;
color:
@whitecolor
;
background: linear-gradient(#E6401F, #FDA13E),
background: linear-gradient(#E6401F, #FDA13E),
;
;
padding: 39rpx 40rpx 0rpx 40rpx;
padding: 39rpx 40rpx 0rpx 40rpx;
...
@@ -227,7 +228,7 @@
...
@@ -227,7 +228,7 @@
white-space: nowrap;
white-space: nowrap;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
font-size:
28rpx
;
font-size:
@font-middle
;
text-align: center;
text-align: center;
}
}
.user {
.user {
...
@@ -261,14 +262,14 @@
...
@@ -261,14 +262,14 @@
height: 120rpx;
height: 120rpx;
z-index: 11;
z-index: 11;
.btn {
.btn {
font-size:
30rpx
;
font-size:
@font-large
;
width: 200rpx;
width: 200rpx;
height: 70rpx;
height: 70rpx;
line-height: 70rpx;
line-height: 70rpx;
z-index: 11;
z-index: 11;
border-radius: 10rpx;
border-radius: 10rpx;
background:
#FF5D15
;
background:
@maincolor
;
color:
#FFF
;
color:
@whitecolor
;
&:before {
&:before {
content: '';
content: '';
width: 73rpx;
width: 73rpx;
...
...
src/components/custom/sign.wpy
View file @
79e1e467
...
@@ -176,6 +176,7 @@
...
@@ -176,6 +176,7 @@
});
});
</script>
</script>
<style lang="less">
<style lang="less">
@import "../../style/common";
.icon-container {
.icon-container {
.lottery {
.lottery {
...
@@ -202,8 +203,8 @@
...
@@ -202,8 +203,8 @@
width: 100%;
width: 100%;
text-align: center;
text-align: center;
display: block;
display: block;
color:
#fff
;
color:
@whitecolor
;
font-size:
22rpx
;
font-size:
@font-common
;
}
}
}
}
...
@@ -225,8 +226,8 @@
...
@@ -225,8 +226,8 @@
width: 100%;
width: 100%;
text-align: center;
text-align: center;
display: block;
display: block;
color:
#fff
;
color:
@whitecolor
;
font-size:
22rpx
;
font-size:
@font-common
;
}
}
}
}
...
@@ -296,8 +297,8 @@
...
@@ -296,8 +297,8 @@
width: 100%;
width: 100%;
text-align: center;
text-align: center;
display: block;
display: block;
color:
#fff
;
color:
@whitecolor
;
font-size:
22rpx
;
font-size:
@font-common
;
}
}
@keyframes swift {
@keyframes swift {
...
@@ -375,7 +376,7 @@
...
@@ -375,7 +376,7 @@
animation:addGoldRotate .6s linear infinite;
animation:addGoldRotate .6s linear infinite;
}
}
.add-gold-num {
.add-gold-num {
color:
#fff
;
color:
@whitecolor
;
font-size: 16rpx;
font-size: 16rpx;
vertical-align: middle;
vertical-align: middle;
}
}
...
@@ -405,8 +406,8 @@
...
@@ -405,8 +406,8 @@
}
}
.show-gold-num {
.show-gold-num {
margin-top: -10rpx;
margin-top: -10rpx;
color:
#fff
;
color:
@whitecolor
;
font-size:
22rpx
;
font-size:
@font-common
;
}
}
}
}
...
...
src/components/custom/videolist.wpy
View file @
79e1e467
<style lang="less">
<style lang="less">
@import "../../style/common";
.container,.video-swiper{
.container,.video-swiper{
width:100%;
width:100%;
height:100%;
height:100%;
...
@@ -15,13 +16,13 @@
...
@@ -15,13 +16,13 @@
width: 100%;
width: 100%;
}
}
.rightcont {
.rightcont {
font-size:
24rpx
;
font-size:
@font-normal
;
position: absolute;
position: absolute;
z-index: 9;
z-index: 9;
bottom: 415rpx;
bottom: 415rpx;
width:30%;
width:30%;
right: 30rpx;
right: 30rpx;
color:
#fff
;
color:
@whitecolor
;
.info {
.info {
line-height: 40rpx;
line-height: 40rpx;
}
}
...
@@ -29,9 +30,9 @@
...
@@ -29,9 +30,9 @@
.progress {
.progress {
width: 180rpx;
width: 180rpx;
height: 20rpx;
height: 20rpx;
background-color:
#fff
;
background-color:
@whiteback
;
margin-top: 10rpx;
margin-top: 10rpx;
color:
#666
;
color:
@greycolor
;
position: relative;
position: relative;
.text {
.text {
position: absolute;
position: absolute;
...
@@ -49,7 +50,7 @@
...
@@ -49,7 +50,7 @@
width: 0;
width: 0;
height:100%;
height:100%;
transition:all .6s;
transition:all .6s;
background-color:
#FF5D15
;
background-color:
@maincolor
;
}
}
}
}
.images {
.images {
...
...
src/mixins/test.js
deleted
100644 → 0
View file @
2fee3ff7
export
default
{
data
:
{
mixin
:
'
MixinText
'
},
methods
:
{
mixintap
()
{
this
.
mixin
=
'
MixinText
'
+
(
Math
.
random
()
+
''
).
substring
(
3
,
7
);
console
.
log
(
'
mixin method tap
'
);
},
tap
()
{
console
.
log
(
'
tap in mixin
'
);
}
},
created
()
{
console
.
log
(
'
created in mixin
'
);
}
};
src/pages/help.wpy
View file @
79e1e467
<style lang="less">
<style lang="less">
@import "../style/common.less";
.help-cont {
.help-cont {
padding:30rpx;
padding:30rpx;
padding-top:0;
padding-top:0;
background-color:
#fff
;
background-color:
@whiteback
;
.help-title{
.help-title{
font-size: 30rpx;
font-size: @font-large;
color:#333;
font-weight:bold;
font-weight:bold;
padding-top:30rpx;
padding-top:30rpx;
}
}
.help-info {
.help-info {
color:
#666
;
color:
@greycolor
;
font-size: 26rpx;
font-size: 26rpx;
padding-left:20rpx;
padding-left:20rpx;
line-height: 40rpx;
line-height: 40rpx;
...
...
src/pages/index.wpy
View file @
79e1e467
<style lang="less">
<style lang="less">
@import "../style/common";
page{
page{
height: 100%;
height: 100%;
background-color: #000;
background-color: #000;
...
@@ -54,7 +55,7 @@
...
@@ -54,7 +55,7 @@
z-index: 9;
z-index: 9;
bottom: 400rpx;
bottom: 400rpx;
width: 100%;
width: 100%;
color:
white
;
color:
@whitecolor
;
clear: both;
clear: both;
&.anima {
&.anima {
animation:fadeout 2s;
animation:fadeout 2s;
...
@@ -66,7 +67,7 @@
...
@@ -66,7 +67,7 @@
.leftcont {
.leftcont {
width: 44%;
width: 44%;
float: left;
float: left;
font-size:
24rpx
;
font-size:
@font-normal
;
margin-left: 30rpx;
margin-left: 30rpx;
}
}
.list-wrapper {
.list-wrapper {
...
@@ -87,7 +88,7 @@
...
@@ -87,7 +88,7 @@
vertical-align: middle;
vertical-align: middle;
border-radius: 20rpx;
border-radius: 20rpx;
display: inline-block;
display: inline-block;
font-size:
20rpx
;
font-size:
@font-small
;
box-sizing: border-box;
box-sizing: border-box;
padding:6rpx 15rpx;
padding:6rpx 15rpx;
background-color:rgba(238, 238, 238, 0.2);
background-color:rgba(238, 238, 238, 0.2);
...
@@ -105,7 +106,7 @@
...
@@ -105,7 +106,7 @@
.list-item{
.list-item{
width:220rpx;
width:220rpx;
/*height: 330rpx;*/
/*height: 330rpx;*/
background-color:
#fff
;
background-color:
@whiteback
;
border-radius: 10rpx;
border-radius: 10rpx;
transform: scale(0.7,0.7) translateY(65rpx);
transform: scale(0.7,0.7) translateY(65rpx);
transition: all 0.5s;
transition: all 0.5s;
...
@@ -122,7 +123,7 @@
...
@@ -122,7 +123,7 @@
border-radius: 10rpx;
border-radius: 10rpx;
}
}
.list-item .text {
.list-item .text {
font-size:
20rpx
;
font-size:
@font-small
;
text-overflow: ellipsis;
text-overflow: ellipsis;
display: -webkit-box;
display: -webkit-box;
-webkit-line-clamp: 2; //行数
-webkit-line-clamp: 2; //行数
...
@@ -132,13 +133,13 @@
...
@@ -132,13 +133,13 @@
margin-top:10rpx;
margin-top:10rpx;
}
}
.list-item .price{
.list-item .price{
color:
#FF5D15
;
color:
@maincolor
;
font-size:
22rpx
;
font-size:
@font-common
;
margin-top:2rpx;
margin-top:2rpx;
}
}
.list-item .buy{
.list-item .buy{
font-size: 16rpx;
font-size: 16rpx;
color:
#AAA
;
color:
@darkgrey
;
}
}
.list-item.subright {
.list-item.subright {
transform: scale(0.85,0.85) translateY(26rpx) translateX(25rpx);
transform: scale(0.85,0.85) translateY(26rpx) translateX(25rpx);
...
@@ -166,7 +167,7 @@
...
@@ -166,7 +167,7 @@
position: relative;
position: relative;
top:200px;
top:200px;
padding: 50rpx 0;
padding: 50rpx 0;
background-color:
#fff
;
background-color:
@whiteback
;
border-radius: 20rpx;
border-radius: 20rpx;
.text {
.text {
color:#333;
color:#333;
...
...
src/pages/myraffles.wpy
View file @
79e1e467
<style lang="less">
<style lang="less">
@import "../style/common";
.raffles-list{
.raffles-list{
padding-bottom:30rpx;
padding-bottom:30rpx;
}
}
.raffle-none{
.raffle-none{
font-size:
28rpx
;
font-size:
@font-middle
;
padding-top:300rpx;
padding-top:300rpx;
text-align: center;
text-align: center;
}
}
.raffle-item{
.raffle-item{
background-color:
#fff
;
background-color:
@whiteback
;
padding:30rpx 0 0 30rpx;
padding:30rpx 0 0 30rpx;
overflow: hidden;
overflow: hidden;
.item-img{
.item-img{
...
@@ -33,8 +34,8 @@
...
@@ -33,8 +34,8 @@
overflow: hidden;
overflow: hidden;
}
}
.item-corn{
.item-corn{
color:
#FF5D15
;
color:
@maincolor
;
font-size:
28rpx
;
font-size:
@font-middle
;
position: absolute;
position: absolute;
bottom:30rpx;
bottom:30rpx;
}
}
...
@@ -42,22 +43,22 @@
...
@@ -42,22 +43,22 @@
position: absolute;
position: absolute;
right:30rpx;
right:30rpx;
top:30%;
top:30%;
font-size:
28rpx
;
font-size:
@font-middle
;
}
}
.item-button{
.item-button{
height:60rpx;
height:60rpx;
color:
#fff
;
color:
@whitecolor
;
background-color:
#FF5D15
;
background-color:
@maincolor
;
border-radius: 10rpx;
border-radius: 10rpx;
text-align: center;
text-align: center;
line-height: 60rpx;
line-height: 60rpx;
font-size:
28rpx
;
font-size:
@font-middle
;
}
}
.grey{
.grey{
color:
#999
;
color:
@lightgrey
;
}
}
.red{
.red{
color:
#FF1212
color:
@redcolor;
}
}
.green{
.green{
color:#097A00;
color:#097A00;
...
...
src/pages/prize.wpy
View file @
79e1e467
<style lang="less">
<style lang="less">
@import "../style/common.less";
.prize-top {
.prize-top {
background-color:
#fff
;
background-color:
@whiteback
;
padding:30rpx 50rpx;
padding:30rpx 50rpx;
.img{
.img{
display: block;
display: block;
margin:0 auto;
margin:0 auto;
width: 400rpx;
width: 400rpx;
.van-image {
.van-image {
box-shadow:0
px
3rpx 13rpx 1rpx rgba(163,163,163,0.38);
box-shadow:0 3rpx 13rpx 1rpx rgba(163,163,163,0.38);
}
}
}
}
.goodsname{
.goodsname{
padding:25rpx 0;
padding:25rpx 0;
font-size: 28rpx;
font-size: @font-middle;
color:#333;
}
}
.prize-info{
.prize-info{
color:
#999
;
color:
@lightgrey
;
font-size: 26rpx;
font-size: 26rpx;
.red {
.red {
color:
#FF1212
;
color:
@redcolor
;
}
}
}
}
}
}
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
padding-top:50rpx;
padding-top:50rpx;
.address-title {
.address-title {
font-size: 32rpx;
font-size: 32rpx;
color:
#666
;
color:
@greycolor
;
padding-left:30rpx;
padding-left:30rpx;
}
}
.address-cont{
.address-cont{
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
.footer{
.footer{
width:100%;
width:100%;
height: 110rpx;
height: 110rpx;
background-color:
#fff
;
background-color:
@whiteback
;
position: fixed;
position: fixed;
bottom:0;
bottom:0;
left:0;
left:0;
...
@@ -48,18 +48,18 @@
...
@@ -48,18 +48,18 @@
position: absolute;
position: absolute;
width:160rpx;
width:160rpx;
height:70rpx;
height:70rpx;
color:
#fff
;
color:
@whitecolor
;
border-radius: 10rpx;
border-radius: 10rpx;
background-color:
#FF5D15
;
background-color:
@maincolor
;
right:30rpx;
right:30rpx;
top:20rpx;
top:20rpx;
line-height: 70rpx;
line-height: 70rpx;
text-align: center;
text-align: center;
font-size:
30rpx
;
font-size:
@font-large
;
}
}
}
}
.van-picker .van-picker__cancel,.van-picker .van-picker__confirm{
.van-picker .van-picker__cancel,.van-picker .van-picker__confirm{
color:
#FF5D15
;
color:
@maincolor
;
}
}
</style>
</style>
<template>
<template>
...
...
src/pages/raffle.wpy
View file @
79e1e467
<style lang="less">
<style lang="less">
@import "../style/common.less";
.raffle-wrapper {
.raffle-wrapper {
width:100%;
width:100%;
height:100%;
height:100%;
background-color:
#F1F1F1
;
background-color:
@greyback
;
padding-top:40rpx;
padding-top:40rpx;
-webkit-box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
}
}
.raffle-content {
.raffle-content {
background-color:
#fff
;
background-color:
@whiteback
;
width: 94%;
width: 94%;
-webkit-box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
margin:0 auto;
margin:0 auto;
padding:50rpx 50rpx 40rpx 50rpx;
padding:50rpx 50rpx 40rpx 50rpx;
border-radius: 10rpx;
border-radius: 10rpx;
box-shadow:0
px 2rpx 20rpx 0px
rgba(188,188,188,0.75);
box-shadow:0
2rpx 20rpx 0
rgba(188,188,188,0.75);
.img .van-image {
.img .van-image {
box-shadow:0
px
3rpx 13rpx 1rpx rgba(163,163,163,0.38);
box-shadow:0 3rpx 13rpx 1rpx rgba(163,163,163,0.38);
}
}
}
}
.goodsinfo {
.goodsinfo {
margin-top:15rpx;
margin-top:15rpx;
overflow: hidden;
overflow: hidden;
.text {
.text {
font-size:
28rpx
;
font-size:
@font-middle
;
text-overflow: ellipsis;
text-overflow: ellipsis;
display: -webkit-box;
display: -webkit-box;
-webkit-line-clamp: 2; //行数
-webkit-line-clamp: 2; //行数
...
@@ -40,48 +39,48 @@
...
@@ -40,48 +39,48 @@
.money{
.money{
float: right;
float: right;
width:30%;
width:30%;
color:
#FF5D15
;
color:
@maincolor
;
font-size:
30rpx
;
font-size:
@font-large
;
text-align: right;
text-align: right;
font-weight:bold;
font-weight:bold;
}
}
}
}
.raffle-chance {
.raffle-chance {
font-size:
24rpx
;
font-size:
@font-normal
;
color:
#666
;
color:
@greycolor
;
margin-top:20rpx;
margin-top:20rpx;
}
}
.raffle-progress {
.raffle-progress {
font-size:
24rpx
;
font-size:
@font-normal
;
color:
#666
;
color:
@greycolor
;
}
}
.progress {
.progress {
width: 298rpx;
width: 298rpx;
height:18rpx;
height:18rpx;
background-color:
#fff
;
background-color:
@whiteback
;
border:1px solid
#FF5D15
;
border:1px solid
@maincolor
;
border-radius: 4rpx;
border-radius: 4rpx;
color:
#666
;
color:
@greycolor
;
display: inline-block;
display: inline-block;
position: relative;
position: relative;
top:3rpx;
top:3rpx;
.orange {
.orange {
height:100%;
height:100%;
transition:all 1s;
transition:all 1s;
background-color:
#FF5D15
;
background-color:
@maincolor
;
}
}
}
}
.pronumber{
.pronumber{
font-size:
20rpx
;
font-size:
@font-small
;
color:
#666
;
color:
@greycolor
;
margin-left:10rpx;
margin-left:10rpx;
position: relative;
position: relative;
top:-3rpx;
top:-3rpx;
}
}
.user-wish {
.user-wish {
padding-left:35rpx;
padding-left:35rpx;
font-size:
24rpx
;
font-size:
@font-normal
;
color:
#aaa
;
color:
@darkgrey
;
margin-top:25rpx;
margin-top:25rpx;
height:50rpx;
height:50rpx;
line-height: 50rpx;
line-height: 50rpx;
...
@@ -94,8 +93,8 @@
...
@@ -94,8 +93,8 @@
vertical-align: middle;
vertical-align: middle;
position: relative;
position: relative;
&.checked{
&.checked{
background-color:
#FF5D15
;
background-color:
@maincolor
;
border:3rpx solid
#FF5D15
;
border:3rpx solid
@maincolor
;
}
}
}
}
.checkicon {
.checkicon {
...
@@ -117,12 +116,12 @@
...
@@ -117,12 +116,12 @@
width:380rpx;
width:380rpx;
height:70rpx;
height:70rpx;
line-height: 70rpx;
line-height: 70rpx;
background-color:
#FF5D15
;
background-color:
@maincolor
;
border-radius:10rpx;
border-radius:10rpx;
margin:0 auto;
margin:0 auto;
margin-top:80rpx;
margin-top:80rpx;
font-size: 34rpx;
font-size: 34rpx;
color:
#fff
;
color:
@whitecolor
;
}
}
</style>
</style>
<template>
<template>
...
...
src/style/common.less
0 → 100644
View file @
79e1e467
// 主颜色
@maincolor: #ff5d15;
@redcolor: #FF1212;
//字体颜色
@fontcolor:#333;
@greycolor: #666;
@lightgrey: #999;
@whitecolor: #fff;
@darkgrey: #aaa;
//背景颜色
@whiteback:#fff;
@greyback: #f1f1f1;
//字体大小
@font-normal: 24rpx;
@font-small:20rpx;
@font-common:22rpx;
@font-middle:28rpx;
@font-large:30rpx;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment