Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wildfirecode13
hello_taobao
Commits
7d45ae9f
Commit
7d45ae9f
authored
Sep 09, 2020
by
汪欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3
parent
9fe2e482
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
56 deletions
+83
-56
comhui_yuan.js
dist/components/comhui_yuan/comhui_yuan.js
+7
-8
pagehuo_dong_ye.js
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.js
+7
-3
pagejie_shu_ye.acss
dist/pages/pagejie_shu_ye/pagejie_shu_ye.acss
+14
-0
pagejie_shu_ye.axml
dist/pages/pagejie_shu_ye/pagejie_shu_ye.axml
+3
-1
pagejie_shu_ye.js
dist/pages/pagejie_shu_ye/pagejie_shu_ye.js
+52
-44
No files found.
dist/components/comhui_yuan/comhui_yuan.js
View file @
7d45ae9f
...
...
@@ -51,19 +51,18 @@ Component({
// }
// })
this
.
props
.
onUserCredit
();
// this.props.onUserCredit();
}
else
{
console
.
log
(
'fail'
)
// 错误码判断不同情况
if
(
res
.
code
===
'500000'
){
commonToast
(
res
.
message
);
}
// console.log('fail')
}
})
// console.log('succ',success)
// if(success){
// console.log('success');
// }else{
// console.log('failed')
// }
// success
this
.
onOrderNowModalClose
();
...
...
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.js
View file @
7d45ae9f
...
...
@@ -34,6 +34,8 @@ Page({
userCredits
:
''
,
// 总楼层
totalFloor
:
''
,
// 单人最多购买楼层
eachBuyMostFloor
:
''
,
countDown
:
''
,
ruleModalVisible
:
false
,
...
...
@@ -134,8 +136,8 @@ Page({
},
// 加楼层
addFloor
()
{
let
{
canBuyFloor
}
=
this
.
data
;
if
(
canBuyFloor
<
100
)
{
let
{
canBuyFloor
,
eachBuyMostFloor
}
=
this
.
data
;
if
(
canBuyFloor
<
eachBuyMostFloor
)
{
this
.
setData
({
canBuyFloor
:
canBuyFloor
+
1
})
...
...
@@ -211,6 +213,7 @@ Page({
let
totalFloor
=
data
.
totalFloor
;
let
end
=
data
.
endTime
;
let
start
=
data
.
startTime
;
let
eachBuyMostFloor
=
data
.
eachBuyMostFloor
;
// startTime = data.startTime;
// endingTime = data.endTime;
...
...
@@ -231,7 +234,8 @@ Page({
prizeList
:
list
,
start
:
start
,
end
:
end
,
totalFloor
totalFloor
,
eachBuyMostFloor
})
}
else
{
console
.
log
(
'返回失败'
)
...
...
dist/pages/pagejie_shu_ye/pagejie_shu_ye.acss
View file @
7d45ae9f
...
...
@@ -121,6 +121,20 @@
position: absolute;
overflow-y: auto;
}
.jie_shu_ye .zhong_jiang_ming_dan .zhong_jiang_zhuang_tai .yi_zhong_jiang .no_prize{
width: 458rpx;
height: 320rpx;
top:20rpx;
left: 10rpx;
opacity: 1;
position: absolute;
text-align: center;
}
/*
*/
.jie_shu_ye .zhong_jiang_ming_dan .zhong_jiang_zhuang_tai .yi_zhong_jiang .dixxx_ceng68 {
width: 84rpx;
height: 23rpx;
...
...
dist/pages/pagejie_shu_ye/pagejie_shu_ye.axml
View file @
7d45ae9f
...
...
@@ -52,7 +52,7 @@
<label class="ba_la_kao_bei4">巴***拉</label> -->
<!-- 有中奖用户 -->
<view style="position:absolute" a:for="{{prizeMenu}}" a:key="idx" a:for-item="prizeItem" >
<view style="position:absolute" a:
if="{{prizeMenu != null}}" a:
for="{{prizeMenu}}" a:key="idx" a:for-item="prizeItem" >
<view style="height:40rpx;position:absolute">
<label style="{{prizeItem.prizestyle.prizefloor}}">第{{prizeItem.floor}}层</label>
<label style="{{prizeItem.prizestyle.prizeuser}}">{{prizeItem.username}}</label>
...
...
@@ -60,6 +60,8 @@
</view>
</view>
<view class="no_prize">无中奖名单</view>
</view>
<!-- <view class="wei_zhong_jiang">
<label class="zong_lou_ceng_bu_zu_wu_ren_zhong_jiang">总楼层不足,无人中奖</label>
...
...
dist/pages/pagejie_shu_ye/pagejie_shu_ye.js
View file @
7d45ae9f
...
...
@@ -120,54 +120,62 @@ Page({
async
getPrizeMenu
(){
let
{
data
}
=
await
API
.
getFloorPrize
()
||
{};
console
.
log
(
data
,
'prizemenu'
)
// 用户名单处理
let
floorPrize
=
data
;
var
personMenuArr
=
[];
for
(
let
i
=
0
;
i
<
floorPrize
.
length
;
i
++
){
let
userName
=
floorPrize
[
i
].
userNick
;
console
.
log
(
userName
,
'userName'
);
if
(
userName
.
length
>=
2
){
console
.
log
(
userName
.
length
);
let
length
=
userName
.
length
;
let
f
=
userName
.
toString
().
substr
(
0
,
1
);
// console.log('f',f);
let
last
=
userName
.
toString
().
substr
(
length
-
1
,
1
)
// console.log('last',last)
userName
=
f
+
"***"
+
last
;
// console.log('22222',userName)
}
floorPrize
[
i
].
username
=
userName
;
let
prizeStyle
=
{
prizefloor
:
{
left
:
0
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
prizeuser
:
{
left
:
200
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
prizeimage
:
{
left
:
400
+
'rpx'
,
position
:
'absolute'
,
verticalAlign
:
'middle'
,
top
:
40
*
i
+
10
+
'rpx'
,
color
:
'white'
,
width
:
40
+
'rpx'
,
height
:
30
+
'rpx'
if
(
data
!=
null
){
// 用户名单处理
let
floorPrize
=
data
;
var
personMenuArr
=
[];
for
(
let
i
=
0
;
i
<
floorPrize
.
length
;
i
++
){
let
userName
=
floorPrize
[
i
].
userNick
;
console
.
log
(
userName
,
'userName'
);
if
(
userName
.
length
>=
2
){
console
.
log
(
userName
.
length
);
let
length
=
userName
.
length
;
let
f
=
userName
.
toString
().
substr
(
0
,
1
);
// console.log('f',f);
let
last
=
userName
.
toString
().
substr
(
length
-
1
,
1
)
// console.log('last',last)
userName
=
f
+
"***"
+
last
;
// console.log('22222',userName)
}
floorPrize
[
i
].
username
=
userName
;
let
prizeStyle
=
{
prizefloor
:
{
left
:
0
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
prizeuser
:
{
left
:
200
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
prizeimage
:
{
left
:
400
+
'rpx'
,
position
:
'absolute'
,
verticalAlign
:
'middle'
,
top
:
40
*
i
+
10
+
'rpx'
,
color
:
'white'
,
width
:
40
+
'rpx'
,
height
:
30
+
'rpx'
}
}
floorPrize
[
i
].
prizestyle
=
prizeStyle
;
}
floorPrize
[
i
].
prizestyle
=
prizeStyle
;
console
.
log
(
floorPrize
,
'arr'
)
this
.
setData
({
prizeMenu
:
floorPrize
})
}
else
{
// 无中奖
this
.
setData
({
prizeMenu
:
null
})
}
console
.
log
(
floorPrize
,
'arr'
)
this
.
setData
({
prizeMenu
:
floorPrize
})
},
...
...
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