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
2f22d13f
Commit
2f22d13f
authored
Jul 30, 2020
by
zhijie.xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用静态资源
parent
c7546171
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
49 additions
and
24 deletions
+49
-24
raffleProbability.js
src/common/raffleProbability.js
+1
-1
raffleProbability.wxs
src/common/raffleProbability.wxs
+1
-1
sharedPopup.wpy
src/components/custom/sharedPopup.wpy
+2
-2
starAnimation.wpy
src/components/custom/starAnimation.wpy
+1
-1
video.wpy
src/components/custom/video.wpy
+8
-6
common.less
src/style/common.less
+36
-13
lottery@2x.png
static/images/lottery@2x.png
+0
-0
searchdelete.png
static/images/searchdelete.png
+0
-0
share@2x.png
static/images/share@2x.png
+0
-0
sign-completed@2x-70_70px.png
static/images/sign-completed@2x-70_70px.png
+0
-0
sign@2x.png
static/images/sign@2x.png
+0
-0
No files found.
src/common/raffleProbability.js
View file @
2f22d13f
...
...
@@ -23,7 +23,7 @@
// }
function
getProbabilityByPercent
(
quantity
,
coinQuantity
)
{
if
(
quantity
===
0
)
return
'
0
%
'
;
if
(
quantity
===
0
)
return
'
0
'
;
const
quotient
=
quantity
/
coinQuantity
;
if
(
quotient
<
0.01
)
{
...
...
src/common/raffleProbability.wxs
View file @
2f22d13f
...
...
@@ -5,7 +5,7 @@ function getCommonDivisor(firstNum, secondNum) {
}
function getProbabilityByPercent(quantity, coinQuantity) {
if (quantity === 0) return '0
%
';
if (quantity === 0) return '0';
var quotient = quantity / coinQuantity;
if (quotient < 0.01) {
...
...
src/components/custom/sharedPopup.wpy
View file @
2f22d13f
...
...
@@ -106,7 +106,7 @@
height: 100%;
top: 0;
left: 0;
background: url('http://activitystatic.
xyqb
.com/light-1@2x.png') 0% 0%/contain no-repeat;
background: url('http://activitystatic.
q-gp
.com/light-1@2x.png') 0% 0%/contain no-repeat;
.star-image {
&:nth-child(1) {
position: absolute;
...
...
@@ -289,7 +289,7 @@
width: 73rpx;
height: 43rpx;
position: absolute;
background: url('http://activitystatic.
xyqb
.com/btn-shadow@2x.png') center center/contain no-repeat;
background: url('http://activitystatic.
q-gp
.com/btn-shadow@2x.png') center center/contain no-repeat;
top: 3rpx;
left: 4rpx;
};
...
...
src/components/custom/starAnimation.wpy
View file @
2f22d13f
...
...
@@ -64,7 +64,7 @@
// transform: scale(0.5);
// top: calc(100% - 1px);
// left: 100%;
background: url('https://activitystatic.
xyqb
.com/sign@2x.png') 0 0/contain no-repeat;
background: url('https://activitystatic.
q-gp
.com/sign@2x.png') 0 0/contain no-repeat;
// background: -webkit-linear-gradient(45deg,rgba(255,255,255,0),yellow,rgba(255,255,255,0));
/*此处为下一步的添加动画*/
// -webkit-animation: shining 3s ease-in-out infinite;
...
...
src/components/custom/video.wpy
View file @
2f22d13f
...
...
@@ -315,7 +315,7 @@
bottom: 415rpx;
width:30%;
right: 30rpx;
color: @white
color
;
color: @white;
will-change: transform;
.info {
line-height: 40rpx;
...
...
@@ -324,19 +324,21 @@
.progress {
width: 180rpx;
height: 20rpx;
background-color: @white
back
;
background-color: @white;
margin-top: 10rpx;
color: @
greycolor
;
color: @
text-color-gray
;
position: relative;
border-radius: @border-radius-sm;
.text {
position: absolute;
top:0;
left:0;
width:100%;
height:100%;
width:
100%;
height:
100%;
z-index: 2;
text-align: center;
line-height:20rpx;
line-height:
20rpx;
background-color: transparent;
font-size: 18rpx;
}
...
...
src/style/common.less
View file @
2f22d13f
// 调色板
@black: #000;
@white: #fff;
@gray-1: #aaa;
@gray-2: #999;
@gray-3: #666;
@gray-4: #333;
@gray-5: #f1f1f1;
@orange: #ff5d15;
@red: #FF1212;
// 主颜色
@maincolor:
#ff5d15
;
@redcolor:
#FF1212
;
@maincolor:
@orange
;
@redcolor:
@red
;
//字体颜色
@fontcolor:
#333
;
@greycolor:
#666
;
@lightgrey:
#999
;
@whitecolor:
#fff
;
@darkgrey:
#aaa
;
@fontcolor:
@gray-4
;
@greycolor:
@gray-3
;
@lightgrey:
@gray-2
;
@whitecolor:
@white
;
@darkgrey:
@gray-1
;
//背景颜色
@whiteback:
#fff
;
@greyback:
#f1f1f1
;
@whiteback:
@white
;
@greyback:
@gray-5
;
//字体大小
@font-normal: 24rpx;
@font-small:20rpx;
@font-common:22rpx;
@font-middle:28rpx;
@font-large:30rpx;
@font-small: 20rpx;
@font-common: 22rpx;
@font-middle: 28rpx;
@font-large: 30rpx;
// 组件颜色
@text-color: @gray-4;
@text-color-gray: @gray-3;
@text-color-lightgray: @gray-2;
// 边框
@border-width-base: 1rpx;
@border-radius-sm: 4rpx;
@border-radius-md: 10rpx;
static/images/lottery@2x.png
deleted
100644 → 0
View file @
c7546171
2.09 KB
static/images/searchdelete.png
deleted
100644 → 0
View file @
c7546171
347 Bytes
static/images/share@2x.png
deleted
100644 → 0
View file @
c7546171
1.36 KB
static/images/sign-completed@2x-70_70px.png
deleted
100644 → 0
View file @
c7546171
762 Bytes
static/images/sign@2x.png
deleted
100644 → 0
View file @
c7546171
2.57 KB
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