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
39509fd3
Commit
39509fd3
authored
Sep 09, 2020
by
汪欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prizelist
parent
f46234af
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
463 additions
and
197 deletions
+463
-197
index$.web.js
dist/.tea/entryFiles-development/index$.web.js
+3
-3
index$.worker.js
dist/.tea/entryFiles-development/index$.worker.js
+3
-3
app.json
dist/app.json
+2
-2
comgou_mai_ji_lu32.axml
dist/components/comgou_mai_ji_lu32/comgou_mai_ji_lu32.axml
+6
-6
comgou_mai_ji_lu32.js
dist/components/comgou_mai_ji_lu32/comgou_mai_ji_lu32.js
+47
-59
comhui_yuan.axml
dist/components/comhui_yuan/comhui_yuan.axml
+2
-2
comhui_yuan.js
dist/components/comhui_yuan/comhui_yuan.js
+27
-1
comyou_xi_gui_ze27.acss
dist/components/comyou_xi_gui_ze27/comyou_xi_gui_ze27.acss
+1
-0
pagehuo_dong_ye.acss
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.acss
+18
-0
pagehuo_dong_ye.axml
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.axml
+10
-4
pagehuo_dong_ye.js
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.js
+175
-61
pagehuo_dong_ye.json
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.json
+2
-1
pagejie_shu_ye.acss
dist/pages/pagejie_shu_ye/pagejie_shu_ye.acss
+18
-0
pagejie_shu_ye.axml
dist/pages/pagejie_shu_ye/pagejie_shu_ye.axml
+15
-9
pagejie_shu_ye.js
dist/pages/pagejie_shu_ye/pagejie_shu_ye.js
+103
-40
pagejie_shu_ye.json
dist/pages/pagejie_shu_ye/pagejie_shu_ye.json
+2
-1
pageshou_ye.acss
dist/pages/pageshou_ye/pageshou_ye.acss
+13
-0
pageshou_ye.axml
dist/pages/pageshou_ye/pageshou_ye.axml
+2
-1
pageshou_ye.js
dist/pages/pageshou_ye/pageshou_ye.js
+14
-4
No files found.
dist/.tea/entryFiles-development/index$.web.js
View file @
39509fd3
...
@@ -3,13 +3,13 @@ require('./config$');
...
@@ -3,13 +3,13 @@ require('./config$');
require
(
'../../components/comgou_mai_ji_lu32/comgou_mai_ji_lu32?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comgou_mai_ji_lu32/comgou_mai_ji_lu32?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comhui_yuan/comhui_yuan?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comhui_yuan/comhui_yuan?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comyou_xi_gui_ze27/comyou_xi_gui_ze27?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comgong_xi_huo_jiang/comgong_xi_huo_jiang?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comgong_xi_huo_jiang/comgong_xi_huo_jiang?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comhen_yi_han23/comhen_yi_han23?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comhen_yi_han23/comhen_yi_han23?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comyou_xi_gui_ze27/comyou_xi_gui_ze27?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/logisticsModal/logisticsModal?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/logisticsModal/logisticsModal?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/prizeModal/prizeModal?hash=951cb6a7fcdd2a5332763295aa08b4f86b6fd2e1'
);
require
(
'../../components/prizeModal/prizeModal?hash=951cb6a7fcdd2a5332763295aa08b4f86b6fd2e1'
);
require
(
'../../pages/pagehuo_dong_ye/pagehuo_dong_ye?hash=
90465399d3364a1028b01344ac9aa9dacad0f7e
0'
);
require
(
'../../pages/pagehuo_dong_ye/pagehuo_dong_ye?hash=
7ec0f338c71bf4e4819fe4b1de0280c7c068fa1
0'
);
require
(
'../../pages/pagejie_shu_ye/pagejie_shu_ye?hash=
1959bae1d571bb9ed770cf51fdf6090f42925135
'
);
require
(
'../../pages/pagejie_shu_ye/pagejie_shu_ye?hash=
4990da67de8821c5cecd5d61ea1f930142c306d6
'
);
require
(
'../../pages/pageshou_ye/pageshou_ye?hash=f6ca2530b12f33cb12545f5a792a8e73d47ec084'
);
require
(
'../../pages/pageshou_ye/pageshou_ye?hash=f6ca2530b12f33cb12545f5a792a8e73d47ec084'
);
require
(
'../../pages/myprize/myprize?hash=74b7edb09b315961bb13059a83b72836912bfd2c'
);
require
(
'../../pages/myprize/myprize?hash=74b7edb09b315961bb13059a83b72836912bfd2c'
);
require
(
'../../pages/pagewo_de_jiang_pin_ye_mian1/pagewo_de_jiang_pin_ye_mian1?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'
);
require
(
'../../pages/pagewo_de_jiang_pin_ye_mian1/pagewo_de_jiang_pin_ye_mian1?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'
);
dist/.tea/entryFiles-development/index$.worker.js
View file @
39509fd3
...
@@ -34,13 +34,13 @@ function success() {
...
@@ -34,13 +34,13 @@ function success() {
require
(
'../../app'
);
require
(
'../../app'
);
require
(
'../../components/comgou_mai_ji_lu32/comgou_mai_ji_lu32?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comgou_mai_ji_lu32/comgou_mai_ji_lu32?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comhui_yuan/comhui_yuan?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comhui_yuan/comhui_yuan?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comyou_xi_gui_ze27/comyou_xi_gui_ze27?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comgong_xi_huo_jiang/comgong_xi_huo_jiang?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comgong_xi_huo_jiang/comgong_xi_huo_jiang?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comhen_yi_han23/comhen_yi_han23?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comhen_yi_han23/comhen_yi_han23?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/comyou_xi_gui_ze27/comyou_xi_gui_ze27?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/logisticsModal/logisticsModal?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/logisticsModal/logisticsModal?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../components/prizeModal/prizeModal?hash=951cb6a7fcdd2a5332763295aa08b4f86b6fd2e1'
);
require
(
'../../components/prizeModal/prizeModal?hash=951cb6a7fcdd2a5332763295aa08b4f86b6fd2e1'
);
require
(
'../../pages/pagehuo_dong_ye/pagehuo_dong_ye?hash=
90465399d3364a1028b01344ac9aa9dacad0f7e
0'
);
require
(
'../../pages/pagehuo_dong_ye/pagehuo_dong_ye?hash=
7ec0f338c71bf4e4819fe4b1de0280c7c068fa1
0'
);
require
(
'../../pages/pagejie_shu_ye/pagejie_shu_ye?hash=
1959bae1d571bb9ed770cf51fdf6090f42925135
'
);
require
(
'../../pages/pagejie_shu_ye/pagejie_shu_ye?hash=
4990da67de8821c5cecd5d61ea1f930142c306d6
'
);
require
(
'../../pages/pageshou_ye/pageshou_ye?hash=f6ca2530b12f33cb12545f5a792a8e73d47ec084'
);
require
(
'../../pages/pageshou_ye/pageshou_ye?hash=f6ca2530b12f33cb12545f5a792a8e73d47ec084'
);
require
(
'../../pages/myprize/myprize?hash=74b7edb09b315961bb13059a83b72836912bfd2c'
);
require
(
'../../pages/myprize/myprize?hash=74b7edb09b315961bb13059a83b72836912bfd2c'
);
require
(
'../../pages/pagewo_de_jiang_pin_ye_mian1/pagewo_de_jiang_pin_ye_mian1?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'
);
require
(
'../../pages/pagewo_de_jiang_pin_ye_mian1/pagewo_de_jiang_pin_ye_mian1?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'
);
...
...
dist/app.json
View file @
39509fd3
{
{
"pages"
:
[
"pages"
:
[
"pages/pageshou_ye/pageshou_ye"
,
"pages/myprize/myprize"
,
"pages/pagehuo_dong_ye/pagehuo_dong_ye"
,
"pages/pagehuo_dong_ye/pagehuo_dong_ye"
,
"pages/pagejie_shu_ye/pagejie_shu_ye"
,
"pages/pagejie_shu_ye/pagejie_shu_ye"
,
"pages/pageshou_ye/pageshou_ye"
,
"pages/myprize/myprize"
,
"pages/pagewo_de_jiang_pin_ye_mian1/pagewo_de_jiang_pin_ye_mian1"
"pages/pagewo_de_jiang_pin_ye_mian1/pagewo_de_jiang_pin_ye_mian1"
],
],
"window"
:
{}
"window"
:
{}
...
...
dist/components/comgou_mai_ji_lu32/comgou_mai_ji_lu32.axml
View file @
39509fd3
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
<image class="zu7" src={{resList['ae013a3c-875a-461d-9273-1f58dd01eca2'].url}} />
<image class="zu7" src={{resList['ae013a3c-875a-461d-9273-1f58dd01eca2'].url}} />
<image class="yuan_jiao_ju_xing71744" src={{resList['1a960b92-d4b6-40fe-8e31-9658a5d904ec'].url}} />
<image class="yuan_jiao_ju_xing71744" src={{resList['1a960b92-d4b6-40fe-8e31-9658a5d904ec'].url}} />
<view class="zu135">
<view class="zu135">
<view class="zu13434" a:for="{{orderList}}" a:for-index="idx" a:for-item="item">
<view class="zu13434" a:if="{{orderList.length !== 0}}" a:for="{{orderList}}" a:key="index" a:for-item="item">
<!--<label class="tu_ceng09_yue15_ri43">09 月 15日</label><label class="tu_ceng10012042">100-120</label><label class="tu_ceng10012041">100-120</label><label class="tu_ceng10012040">100-120</label><label class="tu_ceng20039">200</label><label class="tu_ceng20038">200</label><label class="tu_ceng20037">200</label><label class="tu_ceng09_yue15_ri36">09 月 15日</label><label class="tu_ceng09_yue15_ri35">09 月 15日</label><label class="tu_ceng100120_kao_bei4">100-120</label><label class="tu_ceng200_kao_bei4">200</label><label class="tu_ceng09_yue15_ri_kao_bei4">09 月 15日</label><label class="tu_ceng100120_kao_bei5">100-120</label><label class="tu_ceng200_kao_bei5">200</label><label class="tu_ceng09_yue15_ri_kao_bei5">09 月 15日</label> -->
<label style="{{item.order.orderDay}}">{{item.monthDate}}</label>
<!-- bianli -->
<label style="{{item.order.orderFloor}}">{{item.floorRange}}</label>
<label style="{{item.order.orderDay}}">{{item.orderDay}}</label>
<label style="{{item.order.orderCredits}}">{{item.credits}}</label>
<label style="{{item.order.orderFloor}}">{{item.orderFloor}}</label>
<label style="{{item.order.orderCredits}}">{{item.consumeCredits}}</label>
</view>
</view>
<!-- <view a:else>暂无购买记录</view> -->
<!-- <text >{{JSON.stringify(orderList)}}</text> -->
<!-- <view class="item" a:for="{{orderList}}" a:for-index="index" a:for-item="item">
<!-- <view class="item" a:for="{{orderList}}" a:for-index="index" a:for-item="item">
<label style="{{item.order.orderDay}}">{{item.createTime}}</label>
<label style="{{item.order.orderDay}}">{{item.createTime}}</label>
...
...
dist/components/comgou_mai_ji_lu32/comgou_mai_ji_lu32.js
View file @
39509fd3
...
@@ -3,36 +3,10 @@
...
@@ -3,36 +3,10 @@
import
resList
from
'../../resconfig/resList'
;
import
resList
from
'../../resconfig/resList'
;
import
API
from
'../../api'
import
API
from
'../../api'
Component
({
Component
({
props
:
{},
props
:
{
},
data
:
{
data
:
{
resList
:
resList
,
resList
:
resList
,
orderList
:
[
// {
// orderDay: '09月16日',
// orderFloor: 10,
// consumeCredits: 100
// },
// {
// orderDay: '09月17日',
// orderFloor: 20,
// consumeCredits: 200
// },
// {
// orderDay: '09月18日',
// orderFloor: 30,
// consumeCredits: 300
// },
// {
// orderDay: '09月19日',
// orderFloor: 40,
// consumeCredits: 400
// },
// {
// orderDay: '09月20日',
// orderFloor: 50,
// consumeCredits: 500
// },
],
},
},
methods
:
{
methods
:
{
...
@@ -41,41 +15,55 @@ Component({
...
@@ -41,41 +15,55 @@ Component({
onOrderModalClose
&&
onOrderModalClose
();
onOrderModalClose
&&
onOrderModalClose
();
},
},
async
getOrderList
(){
getOrderListProps
(){
let
{
data
}
=
await
API
.
getBuyFloorList
()
||
{};
let
{
orderList
}
=
this
.
props
;
let
lens
=
data
.
length
;
console
.
log
(
this
.
props
,
'props'
);
for
(
let
i
=
0
;
i
<
lens
;
i
++
){
let
orderStyle
=
{
orderDay
:{
left
:
0
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
orderFloor
:{
left
:
200
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
orderCredits
:{
left
:
400
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
}
}
data
[
i
].
order
=
orderStyle
;
}
}
this
.
setData
({
orderList
:
data
,
// async getOrderList(){
// orderStyle:orderStyleArr
// let {data} = await API.getBuyFloorList() || {};
})
// console.log('buy',data);
},
// // 购买时间
// let createTime = data.list.cteateTime;
// let lens = data.length;
// for(let i=0;i<lens;i++){
// let orderStyle = {
// orderDay:{
// left: 0,
// top: 40*i+'rpx',
// position:'absolute',
// color:'white'
// },
// orderFloor:{
// left: 200+'rpx',
// top: 40*i + 'rpx',
// position:'absolute',
// color:'white'
// },
// orderCredits:{
// left:400 + 'rpx',
// top: 40 * i + 'rpx',
// position:'absolute',
// color:'white'
// }
// }
// data[i].order = orderStyle;
// }
// this.setData({
// orderList:data,
// // orderStyle:orderStyleArr
// })
// },
},
},
onInit
(
props
)
{
onInit
(
props
)
{
this
.
getOrderList
();
// this.getOrderList();
},
didMount
(){
this
.
getOrderListProps
();
}
}
});
});
\ No newline at end of file
dist/components/comhui_yuan/comhui_yuan.axml
View file @
39509fd3
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<image class="bei_jing1" src={{resList['26ff41d0-0891-4573-a557-1a0bb7881405'].url}} />
<image class="bei_jing1" src={{resList['26ff41d0-0891-4573-a557-1a0bb7881405'].url}} />
<image class="zu012" src={{resList['948928c1-e583-449d-baca-77db2e213fe1'].url}} />
<image class="zu012" src={{resList['948928c1-e583-449d-baca-77db2e213fe1'].url}} />
<label class="gou_maixxx_ge_lou_ceng_yi_gong_xu_yao_hua_feixxxx_ji_fen22">
<label class="gou_maixxx_ge_lou_ceng_yi_gong_xu_yao_hua_feixxxx_ji_fen22">
购买
XXX 个楼层 一共需要花费 XXXX
积分
购买
{{vipCredits.canBuyFloor}} 个楼层 一共需要花费 {{vipCredits.gradeCredits}}
积分
</label>
</label>
<label class="ps_mei_ceng_lou50_ji_fen">(PS:每层楼50积分)</label>
<label class="ps_mei_ceng_lou50_ji_fen">(PS:每层楼50积分)</label>
</view>
</view>
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
购买 XXX 个楼层 一共需要花费 XXXX 积分</label><label class="ps_mei_ceng_lou20_ji_fen">(PS:每层楼20积分)</label></view><view class="hei_qia_hui_yuan"><image class="bei_jing5" src={{resList['c46f1953-53df-4fdd-aaab-b5e8252b84ce'].url}} /><image class="zu926" src={{resList['53ff1056-22d3-48ad-8f55-3e8a459073b2'].url}} /><label class="gou_maixxx_ge_lou_ceng_yi_gong_xu_yao_hua_feixxxx_ji_fen21">
购买 XXX 个楼层 一共需要花费 XXXX 积分</label><label class="ps_mei_ceng_lou20_ji_fen">(PS:每层楼20积分)</label></view><view class="hei_qia_hui_yuan"><image class="bei_jing5" src={{resList['c46f1953-53df-4fdd-aaab-b5e8252b84ce'].url}} /><image class="zu926" src={{resList['53ff1056-22d3-48ad-8f55-3e8a459073b2'].url}} /><label class="gou_maixxx_ge_lou_ceng_yi_gong_xu_yao_hua_feixxxx_ji_fen21">
购买 XXX 个楼层 一共需要花费 XXXX 积分</label><label class="ps_mei_ceng_lou10_ji_fen">(PS:每层楼10积分)</label><label class="xu_yao_xiao_hao10n_ge_ji_fen">需要消耗 10*N 个积分</label></view> -->
购买 XXX 个楼层 一共需要花费 XXXX 积分</label><label class="ps_mei_ceng_lou10_ji_fen">(PS:每层楼10积分)</label><label class="xu_yao_xiao_hao10n_ge_ji_fen">需要消耗 10*N 个积分</label></view> -->
</view>
</view>
<image class="an_niu66" src={{resList['3cd0f2ce-f2e0-42c6-be49-52b3177164c5'].url}} />
<image class="an_niu66"
onTap="consumeCredits"
src={{resList['3cd0f2ce-f2e0-42c6-be49-52b3177164c5'].url}} />
<image class="an_niu_kao_bei2" onTap="onOrderNowModalClose" src={{resList['0eba7d77-43f9-4127-8976-ebf54e0b84be'].url}} />
<image class="an_niu_kao_bei2" onTap="onOrderNowModalClose" src={{resList['0eba7d77-43f9-4127-8976-ebf54e0b84be'].url}} />
</view>
</view>
\ No newline at end of file
dist/components/comhui_yuan/comhui_yuan.js
View file @
39509fd3
'use strict'
;
'use strict'
;
import
resList
from
'../../resconfig/resList'
;
import
resList
from
'../../resconfig/resList'
;
import
API
from
'../../api'
Component
({
Component
({
props
:
{},
props
:
{
},
data
:
{
data
:
{
resList
:
resList
resList
:
resList
},
},
...
@@ -11,6 +14,24 @@ Component({
...
@@ -11,6 +14,24 @@ Component({
onOrderNowModalClose
(){
onOrderNowModalClose
(){
const
{
onOrderNowModalClose
}
=
this
.
props
;
const
{
onOrderNowModalClose
}
=
this
.
props
;
onOrderNowModalClose
&&
onOrderNowModalClose
();
onOrderNowModalClose
&&
onOrderNowModalClose
();
},
// 购买判断
async
consumeCredits
(){
let
vipCredits
=
this
.
props
.
vipCredits
;
// console.log(this.props,'datas')
API
.
getCredits
().
catch
((
res
)
=>
{
console
.
log
(
'resdata'
,
res
)
// if(res.success){
let
data
=
res
.
data
;
console
.
log
(
data
,
vipCredits
.
gradeCredits
,
'1111'
)
if
(
data
>=
vipCredits
.
gradeCredits
){
console
.
log
(
'购买成功!'
)
}
else
{
console
.
log
(
'购买失败!'
)
}
// }
})
}
}
},
},
...
@@ -18,6 +39,11 @@ Component({
...
@@ -18,6 +39,11 @@ Component({
// this.setData({
// this.setData({
// resList: resList
// resList: resList
// });
// });
},
didMount
(){
let
{
vipCredits
}
=
this
.
props
;
console
.
log
(
this
.
props
,
'huiyuan'
)
}
}
});
});
\ No newline at end of file
dist/components/comyou_xi_gui_ze27/comyou_xi_gui_ze27.acss
View file @
39509fd3
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
position: absolute;
position: absolute;
font-size: 24rpx;
font-size: 24rpx;
color: #ffffff;
color: #ffffff;
overflow-y: auto;
}
}
.you_xi_gui_ze27 .gou_mai_ji_lu_kao_bei28 .zu1357 {
.you_xi_gui_ze27 .gou_mai_ji_lu_kao_bei28 .zu1357 {
width: 202rpx;
width: 202rpx;
...
...
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.acss
View file @
39509fd3
...
@@ -10,6 +10,24 @@
...
@@ -10,6 +10,24 @@
opacity: 1;
opacity: 1;
position: absolute;
position: absolute;
}
}
.huo_dong_ye .jiang_pinicon {
width: 136rpx;
height: 48rpx;
opacity: 1;
left: 600rpx;
top: 221rpx;
position: absolute;
}
.huo_dong_ye .gui_zeicon {
width: 136rpx;
height: 48rpx;
opacity: 1;
left: 17rpx;
top: 221rpx;
position: absolute;
}
.huo_dong_ye .tu2 {
.huo_dong_ye .tu2 {
width: 543rpx;
width: 543rpx;
height: 494rpx;
height: 494rpx;
...
...
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.axml
View file @
39509fd3
<view class="huo_dong_ye">
<view class="huo_dong_ye">
<image class="di_kao_bei2" src={{resList['66f2b76f-7265-4cb2-9b4d-7e8207ab1d74'].url}} />
<image class="di_kao_bei2" src={{resList['66f2b76f-7265-4cb2-9b4d-7e8207ab1d74'].url}} />
<image onTap="onPrizeBtnClick" class="jiang_pinicon" src={{resList['b7517eae-3bc2-4456-935a-e6e3e1fe995e'].url}} />
<image class="gui_zeicon" onTap="showRuleModal" src={{resList['d826a2f1-a3ec-4764-aad2-f6cacc43cfce'].url}} />
<image class="tu2" src={{resList['d2cd8191-8fbd-423a-8c36-5bd52659317e'].url}} />
<image class="tu2" src={{resList['d2cd8191-8fbd-423a-8c36-5bd52659317e'].url}} />
<!-- 立即购买 -->
<!-- 立即购买 -->
<image class="an_niu2" onTap="buyFloors" src={{resList['34e91d1d-6c84-45f5-ab77-870939ca7b12'].url}} />
<image class="an_niu2" onTap="buyFloors" src={{resList['34e91d1d-6c84-45f5-ab77-870939ca7b12'].url}} />
...
@@ -27,7 +31,7 @@
...
@@ -27,7 +31,7 @@
<!-- bianli -->
<!-- bianli -->
<!-- <image style="width:100;height:100" src={{item.image}}></image> -->
<!-- <image style="width:100;height:100" src={{item.image}}></image> -->
<view style="width:100rpx;height:100rpx;background:white;marginLeft:
50
rpx"></view>
<view style="width:100rpx;height:100rpx;background:white;marginLeft:
25
rpx"></view>
<label>{{item.probability}}</label>
<label>{{item.probability}}</label>
<label>{{item.name}}</label>
<label>{{item.name}}</label>
...
@@ -46,9 +50,11 @@
...
@@ -46,9 +50,11 @@
<view class="ji_fen">
<view class="ji_fen">
<image class="di111" src={{resList['8cb47bc2-bc31-4713-86ba-c8738367cb82'].url}} />
<image class="di111" src={{resList['8cb47bc2-bc31-4713-86ba-c8738367cb82'].url}} />
<image class="zu3" onTap="orderRecord" src={{resList['0c7c2470-690e-43df-aa7e-ed9aa99fb859'].url}} />
<image class="zu3" onTap="orderRecord" src={{resList['0c7c2470-690e-43df-aa7e-ed9aa99fb859'].url}} />
<label class="dang_qian_ji_fenxxxx">当前积分:
xxxx
</label>
<label class="dang_qian_ji_fenxxxx">当前积分:
{{userCredits}}
</label>
</view>
</view>
</view>
</view>
<order-record a:if="{{orderModalVisible}}" onOrderModalClose="orderModalClose"></order-record>
<order-record a:if="{{orderModalVisible}}" orderList="{{orderList}}" onOrderModalClose="orderModalClose"></order-record>
<order-now a:if="{{orderNowModalVisible}}" vipCredits="{{vipCredits}}" onOrderNowModalClose="orderNowModalClose"></order-now>
<order-now a:if="{{orderNowModalVisible}}" onOrderNowModalClose="orderNowModalClose"></order-now>
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="ruleModalClose"><text>{{ruleData}}222</text></rule-modal>
\ No newline at end of file
\ No newline at end of file
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.js
View file @
39509fd3
...
@@ -6,24 +6,34 @@ import API from '../../api';
...
@@ -6,24 +6,34 @@ import API from '../../api';
Page
({
Page
({
data
:
{
data
:
{
// 购买楼层数
// 购买楼层数
canBuyFloor
:
10
,
canBuyFloor
:
10
,
// 购买记录
orderList
:
[],
// 购买记录弹窗显示隐藏
// 购买记录弹窗显示隐藏
orderModalVisible
:
false
,
orderModalVisible
:
false
,
// 立即购买弹窗
// 立即购买弹窗
orderNowModalVisible
:
false
,
orderNowModalVisible
:
false
,
// 倒计时
// 倒计时
endTime
:{
endTime
:
{
d
:
''
,
d
:
''
,
h
:
''
,
h
:
''
,
m
:
''
,
m
:
''
,
s
:
''
,
s
:
''
,
},
},
// 奖品列表数据
// 奖品列表数据
prizeList
:[],
prizeList
:
[],
startTime
:
''
,
startTime
:
''
,
endingTime
:
''
,
endingTime
:
''
,
// 会员消耗积分
vipCredits
:
''
,
// 用户当前积分
userCredits
:
''
,
ruleModalVisible
:
false
,
myPrizeBtnVisible
:
false
,
},
},
...
@@ -31,86 +41,123 @@ Page({
...
@@ -31,86 +41,123 @@ Page({
this
.
setData
({
this
.
setData
({
resList
:
resList
resList
:
resList
});
});
this
.
getUserCredits
();
this
.
getBaseInfo
();
this
.
getBaseInfo
();
// this.getEndTime();
this
.
getOrderList
();
this
.
getEndTime
();
},
onPrizeBtnClick
()
{
my
.
navigateTo
({
url
:
'/pages/myprize/myprize'
});
},
showRuleModal
()
{
this
.
setData
({
ruleModalVisible
:
true
})
},
ruleModalClose
()
{
this
.
setData
({
ruleModalVisible
:
false
})
},
},
// 减楼层
// 减楼层
reduceFloor
(){
reduceFloor
()
{
let
{
canBuyFloor
}
=
this
.
data
let
{
canBuyFloor
}
=
this
.
data
if
(
canBuyFloor
>
1
)
{
if
(
canBuyFloor
>
1
)
{
this
.
setData
({
this
.
setData
({
canBuyFloor
:
canBuyFloor
-
1
canBuyFloor
:
canBuyFloor
-
1
})
})
}
}
},
},
// 加楼层
// 加楼层
addFloor
(){
addFloor
()
{
let
{
canBuyFloor
}
=
this
.
data
;
let
{
canBuyFloor
}
=
this
.
data
;
if
(
canBuyFloor
<
100
)
{
if
(
canBuyFloor
<
100
)
{
this
.
setData
({
this
.
setData
({
canBuyFloor
:
canBuyFloor
+
1
canBuyFloor
:
canBuyFloor
+
1
})
})
}
}
},
},
// 购买记录弹窗
// 购买记录弹窗
orderRecord
(){
orderRecord
()
{
// let {orderModalVisible} = this.data
// let {orderModalVisible} = this.data
console
.
log
(
'click'
,
this
.
data
)
// 点击弹窗时调用接口
// console.log('click',this.data)
this
.
setData
({
this
.
setData
({
orderModalVisible
:
true
orderModalVisible
:
true
})
})
},
},
// 关闭弹窗
// 关闭弹窗
orderModalClose
(){
orderModalClose
()
{
this
.
setData
({
this
.
setData
({
orderModalVisible
:
false
orderModalVisible
:
false
})
})
},
},
// 购买楼层
// 购买楼层
async
buyFloors
(){
async
buyFloors
()
{
// 购买楼层数
// 购买楼层数
let
{
canBuyFloor
}
=
this
.
data
let
{
canBuyFloor
}
=
this
.
data
// 判断会员等级
// 判断会员等级
let
{
isVip
,
grade
,
gradeName
,
gradeCredits
}
=
await
API
.
getVipInfo
()
||
{};
let
{
data
}
=
await
API
.
getVipInfo
()
||
{};
let
grade
=
data
.
grade
;
let
url
=
data
.
url
;
let
gradeName
=
data
.
gradeName
;
let
gradeCredits
=
data
.
gradeCredits
;
console
.
log
(
data
,
'grade'
);
// await API.submit({ floor: canBuyFloor, grade: grade }).catch((res) => {
// console.log('res', res);
// // console.log(this.data.vipCredits, 'vip')
// })
API
.
submit
({
floor
:
canBuyFloor
,
grade
:
grade
}).
catch
((
res
)
=>
{
// let {message,data,code,success} = await API.submit({ floor: canBuyFloor, grade: grade }) || {};
console
.
log
(
res
);
this
.
setData
({
vipCredits
:
{
grade
,
gradeName
,
gradeCredits
,
canBuyFloor
}
})
})
// 显示
// 显示
this
.
setData
({
this
.
setData
({
orderNowModalVisible
:
true
orderNowModalVisible
:
true
})
})
},
},
// 获取奖品列表数据
// 获取奖品列表数据
async
getBaseInfo
(){
async
getBaseInfo
()
{
let
listStyleArr
=
[]
let
listStyleArr
=
[]
let
{
data
}
=
await
API
.
getActivityBaseInfoById
()
||
{};
let
{
data
}
=
await
API
.
getActivityBaseInfoById
()
||
{};
console
.
log
(
data
,
'data'
)
console
.
log
(
data
,
'data'
)
let
list
=
data
.
list
;
let
list
=
data
.
list
;
let
prize
=
data
.
prize
;
let
prize
=
data
.
prize
;
// startTime = data.startTime;
// startTime = data.startTime;
// endingTime = data.endTime;
// endingTime = data.endTime;
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
let
listStyle
=
{
let
listStyle
=
{
left
:
200
*
i
+
'rpx'
,
left
:
180
*
i
+
'rpx'
,
width
:
20
0
+
'rpx'
,
width
:
15
0
+
'rpx'
,
height
:
20
0
+
'rpx'
,
height
:
15
0
+
'rpx'
,
position
:
'absolute'
,
position
:
'absolute'
,
color
:
'white'
,
color
:
'white'
,
textAlign
:
'center'
textAlign
:
'center'
}
}
// listStyleArr.push(listStyle);
// listStyleArr.push(listStyle);
list
[
i
].
liststyle
=
listStyle
;
list
[
i
].
liststyle
=
listStyle
;
...
@@ -123,24 +170,91 @@ Page({
...
@@ -123,24 +170,91 @@ Page({
// }
// }
// }
// }
this
.
setData
({
this
.
setData
({
prizeList
:
list
,
prizeList
:
list
,
startTime
:
data
.
startTime
,
startTime
:
data
.
startTime
,
endingTime
:
data
.
endingTime
endingTime
:
data
.
endingTime
})
})
},
},
// 获取购买记录信息
async
getOrderList
()
{
let
{
data
}
=
await
API
.
getBuyFloorList
()
||
{};
console
.
log
(
'buy'
,
data
);
// 购买时间
for
(
let
item
of
data
)
{
let
createTime
=
item
.
createTime
;
console
.
log
(
createTime
,
'create'
)
// let formatCreateTime = new Date(parseInt(createTime)).toLocaleDateString();
let
month
=
new
Date
(
parseInt
(
createTime
)).
getMonth
()
+
1
;
let
date
=
new
Date
(
parseInt
(
createTime
)).
getDate
();
item
.
monthDate
=
month
+
'月'
+
date
+
'日'
;
console
.
log
(
item
.
monthDate
,
'time'
)
}
let
lens
=
data
.
length
;
for
(
let
i
=
0
;
i
<
lens
;
i
++
)
{
let
orderStyle
=
{
orderDay
:
{
left
:
0
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
orderFloor
:
{
left
:
200
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
orderCredits
:
{
left
:
400
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
}
}
data
[
i
].
order
=
orderStyle
;
}
this
.
setData
({
orderList
:
data
,
// orderStyle:orderStyleArr
})
},
// 用户当前积分
async
getUserCredits
()
{
console
.
log
(
'zhxing'
)
// await API.getCredits().catch((res) => {
// console.log('resdata', res)
// // if(res.success)
// let data = res.data;
// this.setData({
// userCredits:data
// })
// })
let
{
message
,
data
,
code
,
success
}
=
await
API
.
getCredits
()
||
{};
console
.
log
(
code
,
data
,
message
,
success
,
'ret'
)
this
.
setData
({
userCredits
:
data
})
},
// 关闭立即购买
// 关闭立即购买
orderNowModalClose
(){
orderNowModalClose
()
{
this
.
setData
({
this
.
setData
({
orderNowModalVisible
:
false
orderNowModalVisible
:
false
})
})
},
},
// 倒计时
// 倒计时
getEndTime
()
{
getEndTime
()
{
let
{
prizeList
,
endingTime
}
=
this
.
data
let
{
prizeList
,
endingTime
}
=
this
.
data
if
(
!
prizeList
||
!
prizeList
.
length
)
return
null
if
(
!
prizeList
||
!
prizeList
.
length
)
return
null
// const endTime = prizeList[0].expiredTime
// const endTime = prizeList[0].expiredTime
// if (!endTime) return null
// if (!endTime) return null
...
@@ -166,27 +280,27 @@ Page({
...
@@ -166,27 +280,27 @@ Page({
let
hh
=
t2
.
padStart
(
2
,
'0'
);
let
hh
=
t2
.
padStart
(
2
,
'0'
);
let
mm
=
t3
.
padStart
(
2
,
'0'
);
let
mm
=
t3
.
padStart
(
2
,
'0'
);
let
ss
=
t4
.
padStart
(
2
,
'0'
);
let
ss
=
t4
.
padStart
(
2
,
'0'
);
let
timer
=
setTimeout
(()
=>
{
let
timer
=
setTimeout
(()
=>
{
this
.
setData
({
this
.
setData
({
stringTime
:
stringTime
-
1
stringTime
:
stringTime
-
1
})
})
console
.
log
(
stringTime
,
'stringTime'
);
console
.
log
(
stringTime
,
'stringTime'
);
if
(
stringTime
<=
0
)
{
if
(
stringTime
<=
0
)
{
clearTimeout
(
timer
);
clearTimeout
(
timer
);
}
}
this
.
setData
({
this
.
setData
({
// endTime: t1 + " " + t2.padStart(2, '0') + ":" + t3.padStart(2, '0') + ":" + t4.padStart(2, '0')
// endTime: t1 + " " + t2.padStart(2, '0') + ":" + t3.padStart(2, '0') + ":" + t4.padStart(2, '0')
endTime
:{
endTime
:
{
d
:
d1
,
d
:
d1
,
h
:
hh
,
h
:
hh
,
m
:
mm
,
m
:
mm
,
s
:
ss
s
:
ss
}
}
})
})
},
1000
)
},
1000
)
}
}
...
...
dist/pages/pagehuo_dong_ye/pagehuo_dong_ye.json
View file @
39509fd3
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"order-record"
:
"/components/comgou_mai_ji_lu32/comgou_mai_ji_lu32"
,
"order-record"
:
"/components/comgou_mai_ji_lu32/comgou_mai_ji_lu32"
,
"order-now"
:
"/components/comhui_yuan/comhui_yuan"
"order-now"
:
"/components/comhui_yuan/comhui_yuan"
,
"rule-modal"
:
"/components/comyou_xi_gui_ze27/comyou_xi_gui_ze27"
}
}
}
}
\ No newline at end of file
dist/pages/pagejie_shu_ye/pagejie_shu_ye.acss
View file @
39509fd3
...
@@ -4,6 +4,24 @@
...
@@ -4,6 +4,24 @@
opacity: 1;
opacity: 1;
position: absolute;
position: absolute;
}
}
.jie_shu_ye .jiang_pinicon {
width: 136rpx;
height: 48rpx;
opacity: 1;
left: 600rpx;
top: 221rpx;
position: absolute;
}
.jie_shu_ye .gui_zeicon {
width: 136rpx;
height: 48rpx;
opacity: 1;
left: 17rpx;
top: 221rpx;
position: absolute;
}
.jie_shu_ye .di_kao_bei3 {
.jie_shu_ye .di_kao_bei3 {
width: 750rpx;
width: 750rpx;
height: 1624rpx;
height: 1624rpx;
...
...
dist/pages/pagejie_shu_ye/pagejie_shu_ye.axml
View file @
39509fd3
<view class="jie_shu_ye">
<view class="jie_shu_ye">
<image class="di_kao_bei3" src={{resList['66f2b76f-7265-4cb2-9b4d-7e8207ab1d74'].url}} />
<image class="di_kao_bei3" src={{resList['66f2b76f-7265-4cb2-9b4d-7e8207ab1d74'].url}} />
<image onTap="onPrizeBtnClick" class="jiang_pinicon" src={{resList['b7517eae-3bc2-4456-935a-e6e3e1fe995e'].url}} />
<image class="gui_zeicon" onTap="showRuleModal" src={{resList['d826a2f1-a3ec-4764-aad2-f6cacc43cfce'].url}} />
<view class="dao_ji_shi69">
<view class="dao_ji_shi69">
<image class="di74" src={{resList['ad6e754e-6243-4acf-9ffd-9a7aeb3f4971'].url}} />
<image class="di74" src={{resList['ad6e754e-6243-4acf-9ffd-9a7aeb3f4971'].url}} />
<label class="tu_ceng2273">22</label>
<label class="tu_ceng2273">22</label>
...
@@ -48,16 +52,16 @@
...
@@ -48,16 +52,16 @@
<label class="ba_la_kao_bei4">巴***拉</label> -->
<label class="ba_la_kao_bei4">巴***拉</label> -->
<!-- 有中奖用户 -->
<!-- 有中奖用户 -->
<view a:for="{{prizeMenu}}" a:
for-index="idx" a:for-item="prizeItem"
>
<view a:for="{{prizeMenu}}" a:
key="idx" a:for-item="prizeItem"
>
<label>第{{prizeItem.floor}}层</label>
<label
style="{{prizeItem.prizestyle.prizefloor}}"
>第{{prizeItem.floor}}层</label>
<label
>用户名
{{prizeItem.username}}</label>
<label
style="{{prizeItem.prizestyle.prizeuser}}">
{{prizeItem.username}}</label>
<image src={{prizeItem.image}}></image>
<image s
tyle="{{prizeItem.prizestyle.prizeimage}}" s
rc={{prizeItem.image}}></image>
</view>
</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>
</view>
</view>
-->
</view>
</view>
</view>
</view>
<!-- 购买记录组件 -->
<!-- 购买记录组件 -->
...
@@ -84,8 +88,8 @@
...
@@ -84,8 +88,8 @@
<label class="tu_ceng200_kao_bei3">200</label>
<label class="tu_ceng200_kao_bei3">200</label>
<label class="tu_ceng09_yue15_ri_kao_bei3">09 月 15日</label> -->
<label class="tu_ceng09_yue15_ri_kao_bei3">09 月 15日</label> -->
<view class="item" a:for="{{orderList}}" a:
for-index
="index" a:for-item="item" >
<view class="item" a:for="{{orderList}}" a:
key
="index" a:for-item="item" >
<label style="{{item.order.orderDay}}">{{item.
createTim
e}}</label>
<label style="{{item.order.orderDay}}">{{item.
monthDat
e}}</label>
<label style="{{item.order.orderFloor}}">{{item.floorRange}}</label>
<label style="{{item.order.orderFloor}}">{{item.floorRange}}</label>
<label style="{{item.order.orderCredits}}">{{item.credits}}</label>
<label style="{{item.order.orderCredits}}">{{item.credits}}</label>
</view>
</view>
...
@@ -94,3 +98,5 @@
...
@@ -94,3 +98,5 @@
</view>
</view>
<prize-modal a:if="{{prizeVisible}}" ></prize-modal>
<prize-modal a:if="{{prizeVisible}}" ></prize-modal>
<noprize-modal a:if="{{noprizeVisible}}" openPrizeStatus="{{openPrizeStatus}}" ></noprize-modal>
<noprize-modal a:if="{{noprizeVisible}}" openPrizeStatus="{{openPrizeStatus}}" ></noprize-modal>
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="ruleModalClose"><text>{{ruleData}}1111</text></rule-modal>
\ No newline at end of file
dist/pages/pagejie_shu_ye/pagejie_shu_ye.js
View file @
39509fd3
...
@@ -11,9 +11,12 @@ Page({
...
@@ -11,9 +11,12 @@ Page({
// 购买记录列表
// 购买记录列表
orderList
:[],
orderList
:[],
// 中奖名单
// 中奖名单
prizeMenu
:
[]
,
prizeMenu
:
''
,
// 购买列表渲染
// 购买列表渲染
orderStyle
:[]
orderStyle
:[],
ruleModalVisible
:
false
,
// myPrizeBtnVisible: false,
},
},
onLoad
(
props
)
{
onLoad
(
props
)
{
...
@@ -22,75 +25,135 @@ Page({
...
@@ -22,75 +25,135 @@ Page({
resList
:
resList
resList
:
resList
});
});
// const {prize,openPrizeStatus,isShowPrize} = JSON.parse(props.data)
// if(isShowPrize){
// if(prize){
// this.setData({prizeVisible:true})
// } else {
// this.setData({
// noprizeVisible:true,
// openPrizeStatus:openPrizeStatus
// })
// }
// }
this
.
getOrderList
();
this
.
getOrderList
();
// this.getPrizeMenu();
this
.
getPrizeMenu
();
},
onPrizeBtnClick
()
{
my
.
navigateTo
({
url
:
'/pages/myprize/myprize'
});
},
showRuleModal
()
{
this
.
setData
({
ruleModalVisible
:
true
})
},
ruleModalClose
()
{
this
.
setData
({
ruleModalVisible
:
false
})
},
},
// 获取购买记录
// 获取购买记录
async
getOrderList
(){
async
getOrderList
()
{
let
{
data
}
=
await
API
.
getBuyFloorList
()
||
{};
let
{
data
}
=
await
API
.
getBuyFloorList
()
||
{};
let
orderStyleArr
=
[];
console
.
log
(
'buy'
,
data
);
// 购买时间
for
(
let
item
of
data
)
{
let
createTime
=
item
.
createTime
;
console
.
log
(
createTime
,
'create'
)
// let formatCreateTime = new Date(parseInt(createTime)).toLocaleDateString();
let
month
=
new
Date
(
parseInt
(
createTime
)).
getMonth
()
+
1
;
let
date
=
new
Date
(
parseInt
(
createTime
)).
getDate
();
item
.
monthDate
=
month
+
'月'
+
date
+
'日'
;
console
.
log
(
item
.
monthDate
,
'time'
)
}
let
lens
=
data
.
length
;
let
lens
=
data
.
length
;
for
(
let
i
=
0
;
i
<
lens
;
i
++
)
{
for
(
let
i
=
0
;
i
<
lens
;
i
++
)
{
let
orderStyle
=
{
let
orderStyle
=
{
orderDay
:{
orderDay
:
{
left
:
0
,
left
:
0
,
top
:
40
*
i
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
position
:
'absolute'
,
color
:
'white'
color
:
'white'
},
},
orderFloor
:{
orderFloor
:
{
left
:
200
+
'rpx'
,
left
:
200
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
position
:
'absolute'
,
color
:
'white'
color
:
'white'
},
},
orderCredits
:{
orderCredits
:
{
left
:
400
+
'rpx'
,
left
:
400
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
position
:
'absolute'
,
color
:
'white'
color
:
'white'
}
}
}
}
// orderStyleArr.push(orderStyle);
data
[
i
].
order
=
orderStyle
;
data
[
i
].
order
=
orderStyle
;
}
}
// 合并样式
// for(let i=0;i<lens;i++){
// data[i].order = orderStyleArr[i];
// }
this
.
setData
({
this
.
setData
({
orderList
:
data
,
orderList
:
data
,
// orderStyle:orderStyleArr
// orderStyle:orderStyleArr
})
})
},
},
async
getPrizeMenu
(){
async
getPrizeMenu
(){
let
{
data
}
=
await
API
.
getFloorPrize
()
||
{};
let
{
data
}
=
await
API
.
getFloorPrize
()
||
{};
console
.
log
(
data
,
'prizemenu'
)
// 用户名单处理
// 用户名单处理
let
floorPrize
=
data
;
let
floorPrize
=
data
;
var
personMenuArr
=
[];
var
personMenuArr
=
[];
for
(
let
i
=
0
;
i
<
floorPrize
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
floorPrize
.
length
;
i
++
){
let
userName
=
floorPrize
[
i
].
uerNick
;
let
userName
=
floorPrize
[
i
].
userNick
;
if
(
userName
.
length
>=
2
){
console
.
log
(
userName
,
'userName'
);
let
firstLetter
=
userName
.
subStr
(
0
,
1
);
if
(
userName
.
length
>=
2
){
let
lastLetter
=
userName
.
reverse
().
subStr
(
0
,
1
);
console
.
log
(
userName
.
length
);
userName
=
firstLetter
+
'***'
+
lastLetter
;
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)
}
}
personMenuArr
.
push
(
userName
);
}
floorPrize
[
i
].
username
=
userName
;
console
.
log
(
floorPrize
,
'arr'
)
// 处理好的姓名合并到floorPrize
let
prizeStyle
=
{
if
(
floorPrize
!=
null
){
prizefloor
:
{
for
(
var
floorprize
of
floorPrize
){
left
:
0
,
for
(
var
usernames
of
personMenuArr
){
top
:
40
*
i
+
'rpx'
,
floorprize
.
username
=
usernames
;
position
:
'absolute'
,
color
:
'white'
},
prizeuser
:
{
left
:
200
+
'rpx'
,
top
:
40
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
},
prizeimage
:
{
left
:
400
+
'rpx'
,
top
:
45
*
i
+
'rpx'
,
position
:
'absolute'
,
color
:
'white'
,
width
:
40
+
'rpx'
,
height
:
30
+
'rpx'
}
}
}
}
floorPrize
[
i
].
prizestyle
=
prizeStyle
;
}
}
console
.
log
(
floorPrize
,
'arr'
)
this
.
setData
({
this
.
setData
({
prizeMenu
:
floorPrize
prizeMenu
:
floorPrize
})
})
}
}
});
});
\ No newline at end of file
dist/pages/pagejie_shu_ye/pagejie_shu_ye.json
View file @
39509fd3
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"prize-modal"
:
"/components/comgong_xi_huo_jiang/comgong_xi_huo_jiang"
,
"prize-modal"
:
"/components/comgong_xi_huo_jiang/comgong_xi_huo_jiang"
,
"noprize-modal"
:
"/components/comhen_yi_han23/comhen_yi_han23"
"noprize-modal"
:
"/components/comhen_yi_han23/comhen_yi_han23"
,
"rule-modal"
:
"/components/comyou_xi_gui_ze27/comyou_xi_gui_ze27"
}
}
}
}
\ No newline at end of file
dist/pages/pageshou_ye/pageshou_ye.acss
View file @
39509fd3
...
@@ -43,6 +43,19 @@
...
@@ -43,6 +43,19 @@
top: 328rpx;
top: 328rpx;
position: absolute;
position: absolute;
}
}
.shou_ye .can_yu_ren_shu {
width: 300rpx;
height: 40rpx;
opacity: 1;
display: block;
left: 224rpx;
top: 1364rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 30rpx;
text-align: center;
color: white;
}
.shou_ye .jiang_pinicon {
.shou_ye .jiang_pinicon {
width: 136rpx;
width: 136rpx;
height: 48rpx;
height: 48rpx;
...
...
dist/pages/pageshou_ye/pageshou_ye.axml
View file @
39509fd3
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<image class="wen_an" src={{resList['2a026ac4-0a9c-497b-9469-2da99f935821'].url}} />
<image class="wen_an" src={{resList['2a026ac4-0a9c-497b-9469-2da99f935821'].url}} />
<image onTap="onPrizeBtnClick" a:if="{{myPrizeBtnVisible}}" class="jiang_pinicon" src={{resList['b7517eae-3bc2-4456-935a-e6e3e1fe995e'].url}} />
<image onTap="onPrizeBtnClick" a:if="{{myPrizeBtnVisible}}" class="jiang_pinicon" src={{resList['b7517eae-3bc2-4456-935a-e6e3e1fe995e'].url}} />
<image a:if="{{ruleModalBtnVisible}}" class="gui_zeicon" onTap="showRuleModal" src={{resList['d826a2f1-a3ec-4764-aad2-f6cacc43cfce'].url}} />
<image a:if="{{ruleModalBtnVisible}}" class="gui_zeicon" onTap="showRuleModal" src={{resList['d826a2f1-a3ec-4764-aad2-f6cacc43cfce'].url}} />
<text a:if="{{ruleModalBtnVisible}}" class="can_yu_ren_shu">已有{{joinCount}}人参与</text>
</view>
</view>
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="ruleModalClose"><text>案文文案文案文案文案文案文案文案文案文案文案</text></rule-modal>
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="ruleModalClose"><text>{{ruleData}}</text></rule-modal>
\ No newline at end of file
\ No newline at end of file
dist/pages/pageshou_ye/pageshou_ye.js
View file @
39509fd3
...
@@ -12,7 +12,10 @@ Page({
...
@@ -12,7 +12,10 @@ Page({
ruleModalVisible
:
false
,
ruleModalVisible
:
false
,
myPrizeBtnVisible
:
false
,
myPrizeBtnVisible
:
false
,
startBtnVisible
:
false
,
startBtnVisible
:
false
,
ruleModalBtnVisible
:
false
ruleModalBtnVisible
:
false
,
ruleData
:
''
,
joinCount
:
''
},
},
onLoad
(
query
)
{
onLoad
(
query
)
{
...
@@ -22,10 +25,12 @@ Page({
...
@@ -22,10 +25,12 @@ Page({
// 页面加载
// 页面加载
this
.
getAuth
();
this
.
getAuth
();
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
},
},
gotoVipPage
()
{
gotoVipPage
()
{
API
.
getVipInfo
().
then
(
res
=>
{
API
.
getVipInfo
().
then
(
res
=>
{
if
(
!
res
.
isVip
)
if
(
!
!
res
.
isVip
)
navigateToOutside
(
res
.
url
)
navigateToOutside
(
res
.
url
)
else
else
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
...
@@ -55,7 +60,7 @@ Page({
...
@@ -55,7 +60,7 @@ Page({
})
})
},
},
async
init
()
{
async
init
()
{
const
[{
data
:
{
isUserJoin
,
endTime
,
openPrizeStatus
,
prize
,
isShowPrize
}
},
vipInfo
]
=
await
Promise
.
all
([
const
[{
data
:
{
isUserJoin
,
endTime
,
openPrizeStatus
,
prize
,
isShowPrize
,
rule
,
joinCount
}
},
vipInfo
]
=
await
Promise
.
all
([
API
.
getActivityBaseInfoById
(),
API
.
getActivityBaseInfoById
(),
API
.
getVipInfo
(),
API
.
getVipInfo
(),
]);
]);
...
@@ -76,6 +81,11 @@ Page({
...
@@ -76,6 +81,11 @@ Page({
})
})
};
};
this
.
setData
({
ruleData
:
rule
,
joinCount
:
joinCount
})
},
},
/**
/**
* 登录接口
* 登录接口
...
@@ -106,6 +116,6 @@ Page({
...
@@ -106,6 +116,6 @@ Page({
app
.
avatar
=
avatar
;
app
.
avatar
=
avatar
;
this
.
login
();
this
.
login
();
}
}
}
}
,
});
});
\ No newline at end of file
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