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
Show 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({
...
@@ -51,19 +51,18 @@ Component({
// }
// }
// })
// })
this
.
props
.
onUserCredit
();
// this.props.onUserCredit();
// this.props.onUserCredit();
}
else
{
}
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
();
this
.
onOrderNowModalClose
();
...
...
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.js
View file @
7d45ae9f
...
@@ -34,6 +34,8 @@ Page({
...
@@ -34,6 +34,8 @@ Page({
userCredits
:
''
,
userCredits
:
''
,
// 总楼层
// 总楼层
totalFloor
:
''
,
totalFloor
:
''
,
// 单人最多购买楼层
eachBuyMostFloor
:
''
,
countDown
:
''
,
countDown
:
''
,
ruleModalVisible
:
false
,
ruleModalVisible
:
false
,
...
@@ -134,8 +136,8 @@ Page({
...
@@ -134,8 +136,8 @@ Page({
},
},
// 加楼层
// 加楼层
addFloor
()
{
addFloor
()
{
let
{
canBuyFloor
}
=
this
.
data
;
let
{
canBuyFloor
,
eachBuyMostFloor
}
=
this
.
data
;
if
(
canBuyFloor
<
100
)
{
if
(
canBuyFloor
<
eachBuyMostFloor
)
{
this
.
setData
({
this
.
setData
({
canBuyFloor
:
canBuyFloor
+
1
canBuyFloor
:
canBuyFloor
+
1
})
})
...
@@ -211,6 +213,7 @@ Page({
...
@@ -211,6 +213,7 @@ Page({
let
totalFloor
=
data
.
totalFloor
;
let
totalFloor
=
data
.
totalFloor
;
let
end
=
data
.
endTime
;
let
end
=
data
.
endTime
;
let
start
=
data
.
startTime
;
let
start
=
data
.
startTime
;
let
eachBuyMostFloor
=
data
.
eachBuyMostFloor
;
// startTime = data.startTime;
// startTime = data.startTime;
// endingTime = data.endTime;
// endingTime = data.endTime;
...
@@ -231,7 +234,8 @@ Page({
...
@@ -231,7 +234,8 @@ Page({
prizeList
:
list
,
prizeList
:
list
,
start
:
start
,
start
:
start
,
end
:
end
,
end
:
end
,
totalFloor
totalFloor
,
eachBuyMostFloor
})
})
}
else
{
}
else
{
console
.
log
(
'返回失败'
)
console
.
log
(
'返回失败'
)
...
...
dist/pages/pagejie_shu_ye/pagejie_shu_ye.acss
View file @
7d45ae9f
...
@@ -121,6 +121,20 @@
...
@@ -121,6 +121,20 @@
position: absolute;
position: absolute;
overflow-y: auto;
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 {
.jie_shu_ye .zhong_jiang_ming_dan .zhong_jiang_zhuang_tai .yi_zhong_jiang .dixxx_ceng68 {
width: 84rpx;
width: 84rpx;
height: 23rpx;
height: 23rpx;
...
...
dist/pages/pagejie_shu_ye/pagejie_shu_ye.axml
View file @
7d45ae9f
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<label class="ba_la_kao_bei4">巴***拉</label> -->
<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">
<view style="height:40rpx;position:absolute">
<label style="{{prizeItem.prizestyle.prizefloor}}">第{{prizeItem.floor}}层</label>
<label style="{{prizeItem.prizestyle.prizefloor}}">第{{prizeItem.floor}}层</label>
<label style="{{prizeItem.prizestyle.prizeuser}}">{{prizeItem.username}}</label>
<label style="{{prizeItem.prizestyle.prizeuser}}">{{prizeItem.username}}</label>
...
@@ -60,6 +60,8 @@
...
@@ -60,6 +60,8 @@
</view>
</view>
</view>
</view>
<view class="no_prize">无中奖名单</view>
</view>
</view>
<!-- <view class="wei_zhong_jiang">
<!-- <view class="wei_zhong_jiang">
<label class="zong_lou_ceng_bu_zu_wu_ren_zhong_jiang">总楼层不足,无人中奖</label>
<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,6 +120,8 @@ Page({
...
@@ -120,6 +120,8 @@ Page({
async
getPrizeMenu
(){
async
getPrizeMenu
(){
let
{
data
}
=
await
API
.
getFloorPrize
()
||
{};
let
{
data
}
=
await
API
.
getFloorPrize
()
||
{};
console
.
log
(
data
,
'prizemenu'
)
console
.
log
(
data
,
'prizemenu'
)
if
(
data
!=
null
){
// 用户名单处理
// 用户名单处理
let
floorPrize
=
data
;
let
floorPrize
=
data
;
var
personMenuArr
=
[];
var
personMenuArr
=
[];
...
@@ -168,6 +170,12 @@ Page({
...
@@ -168,6 +170,12 @@ Page({
this
.
setData
({
this
.
setData
({
prizeMenu
:
floorPrize
prizeMenu
:
floorPrize
})
})
}
else
{
// 无中奖
this
.
setData
({
prizeMenu
:
null
})
}
},
},
...
...
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