@ -16,7 +16,8 @@ |
|||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
<scroll-view class="item" style="height:380rpx" scroll-y="true" show-scrollbar="true" scroll-with-animation="true" scroll-top="0" > |
<scroll-view class="item" style="height:380rpx" scroll-y="true" show-scrollbar="true" |
||||
|
scroll-with-animation="true" scroll-top="0"> |
||||
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in whatAppList" |
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in whatAppList" |
||||
:key="item"> |
:key="item"> |
||||
<image src="../../static/color/[email protected]" mode="aspectFit" class="img2"></image> |
<image src="../../static/color/[email protected]" mode="aspectFit" class="img2"></image> |
||||
@ -24,8 +25,7 @@ |
|||||
{{getName(item)}} |
{{getName(item)}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in teList" |
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in teList" :key="item"> |
||||
:key="item"> |
|
||||
<image src="../../static/color/pop_icon_teltgram.png" mode="" class="img2"></image> |
<image src="../../static/color/pop_icon_teltgram.png" mode="" class="img2"></image> |
||||
<view class="p2"> |
<view class="p2"> |
||||
<span class="whatapp-name">{{getName(item)}}</span> |
<span class="whatapp-name">{{getName(item)}}</span> |
||||
@ -35,7 +35,8 @@ |
|||||
|
|
||||
</view> |
</view> |
||||
|
|
||||
<image src="../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0"></image> |
<image src="../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0"> |
||||
|
</image> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
@ -115,19 +116,23 @@ |
|||||
overflow-y: scroll; |
overflow-y: scroll; |
||||
overflow-x: hidden; */ |
overflow-x: hidden; */ |
||||
} |
} |
||||
|
|
||||
.img2 { |
.img2 { |
||||
width: 60rpx; |
width: 60rpx; |
||||
height: 60rpx; |
height: 60rpx; |
||||
} |
} |
||||
|
|
||||
.p2 { |
.p2 { |
||||
font-size: 28rpx; |
font-size: 28rpx; |
||||
color: #303133FF; |
color: #303133FF; |
||||
margin-left: 20rpx; |
margin-left: 20rpx; |
||||
} |
} |
||||
|
|
||||
.p1 { |
.p1 { |
||||
font-size: 28rpx; |
font-size: 28rpx; |
||||
color: #606266FF; |
color: #606266FF; |
||||
} |
} |
||||
|
|
||||
.colseKefu { |
.colseKefu { |
||||
position: absolute; |
position: absolute; |
||||
right: 36rpx; |
right: 36rpx; |
||||
@ -135,29 +140,35 @@ |
|||||
width: 36rpx; |
width: 36rpx; |
||||
height: 36rpx; |
height: 36rpx; |
||||
} |
} |
||||
|
|
||||
.img1 { |
.img1 { |
||||
display: block; |
display: block; |
||||
margin: 0 auto; |
margin: 0 auto; |
||||
width: 108rpx; |
width: 108rpx; |
||||
height: 108rpx; |
height: 108rpx; |
||||
} |
} |
||||
|
|
||||
.content { |
.content { |
||||
position: relative; |
position: relative; |
||||
} |
} |
||||
|
|
||||
.title { |
.title { |
||||
text-transform: capitalize; |
text-transform: capitalize; |
||||
font-size: 28rpx; |
font-size: 28rpx; |
||||
color: #954DE3FF; |
color: #954DE3FF; |
||||
text-align: center; |
text-align: center; |
||||
} |
} |
||||
|
|
||||
.title p { |
.title p { |
||||
margin-top: 18rpx; |
margin-top: 18rpx; |
||||
} |
} |
||||
|
|
||||
.body_item { |
.body_item { |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
align-items: center; |
||||
padding-bottom: 40rpx; |
padding-bottom: 40rpx; |
||||
} |
} |
||||
|
|
||||
.body_item_info { |
.body_item_info { |
||||
font-size: 28rpx; |
font-size: 28rpx; |
||||
color: #606266; |
color: #606266; |
||||
@ -165,6 +176,7 @@ |
|||||
margin-top: 28rpx; |
margin-top: 28rpx; |
||||
margin-bottom: 20rpx; |
margin-bottom: 20rpx; |
||||
} |
} |
||||
|
|
||||
.tc { |
.tc { |
||||
width: 600rpx; |
width: 600rpx; |
||||
background-color: #fff; |
background-color: #fff; |
||||
@ -176,11 +188,13 @@ |
|||||
transform: translate(-50%, -50%); |
transform: translate(-50%, -50%); |
||||
z-index: 999; |
z-index: 999; |
||||
} |
} |
||||
|
|
||||
.tc_body { |
.tc_body { |
||||
padding: 48rpx 36rpx; |
padding: 48rpx 36rpx; |
||||
padding-bottom: 0rpx; |
padding-bottom: 0rpx; |
||||
position: relative; |
position: relative; |
||||
} |
} |
||||
|
|
||||
.tc_body::before { |
.tc_body::before { |
||||
content: ''; |
content: ''; |
||||
position: absolute; |
position: absolute; |
||||
@ -191,6 +205,7 @@ |
|||||
height: 2rpx; |
height: 2rpx; |
||||
background-color: #EDEFF2FF; |
background-color: #EDEFF2FF; |
||||
} |
} |
||||
|
|
||||
.my-cont { |
.my-cont { |
||||
width: 180rpx; |
width: 180rpx; |
||||
height: 180rpx; |
height: 180rpx; |
||||
@ -198,13 +213,16 @@ |
|||||
top: 75%; |
top: 75%; |
||||
right: 0; |
right: 0; |
||||
} |
} |
||||
|
|
||||
.my-cont image { |
.my-cont image { |
||||
width: 100%; |
width: 100%; |
||||
height: 100%; |
height: 100%; |
||||
} |
} |
||||
|
|
||||
.flex { |
.flex { |
||||
align-items: center; |
align-items: center; |
||||
} |
} |
||||
|
|
||||
.flex .my-cont { |
.flex .my-cont { |
||||
margin-left: auto; |
margin-left: auto; |
||||
|
|
||||
|
@ -7,7 +7,7 @@ |
|||||
<view class="bg_white"> |
<view class="bg_white"> |
||||
<view class="gNum flex"> |
<view class="gNum flex"> |
||||
<view class="ga" v-for="(item,index) in colorList" :key="item.id" :class="index==ganum?'gaactive':''" |
<view class="ga" v-for="(item,index) in colorList" :key="item.id" :class="index==ganum?'gaactive':''" |
||||
@click="gaClick(index,item.name),nextBtting()"> |
@click="gaClick(index,item.name)"> |
||||
{{item.name}} |
{{item.name}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -17,7 +17,8 @@ |
|||||
<view class="perCon"> |
<view class="perCon"> |
||||
<view class="perCoun flex"> |
<view class="perCoun flex"> |
||||
<view class="period"> |
<view class="period"> |
||||
<image src="../../../static/color/[email protected]" mode="aspectFit" class="color_icon"></image> |
<image src="../../../static/color/[email protected]" mode="aspectFit" |
||||
|
class="color_icon"></image> |
||||
<span>Period</span> |
<span>Period</span> |
||||
</view> |
</view> |
||||
<view class="coDown"> |
<view class="coDown"> |
||||
@ -30,12 +31,13 @@ |
|||||
{{nextBttingValue.period}} |
{{nextBttingValue.period}} |
||||
</view> |
</view> |
||||
<view class="count"> |
<view class="count"> |
||||
<u-count-down :timestamp="nextBttingValue.remain" :show-days="false" :show-hours="false"></u-count-down> |
<u-count-down :timestamp="nextBttingValue.remain" :show-days="false" :show-hours="false" |
||||
|
></u-count-down> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
<view class=""> |
<view v-show="canBuy"> |
||||
<view class="flex icon-con"> |
<view class="flex icon-con"> |
||||
<view class="ico" @click="xiazhu(item.color)" v-for="item,index in gameColor" :key="item.id"> |
<view class="ico" @click="xiazhu(item.color)" v-for="item,index in gameColor" :key="item.id"> |
||||
<image :src="'../../../static/color/ico_apple_'+item.color+'@3x.png'" mode=""></image> |
<image :src="'../../../static/color/ico_apple_'+item.color+'@3x.png'" mode=""></image> |
||||
@ -45,12 +47,39 @@ |
|||||
|
|
||||
<view class="multiple"> |
<view class="multiple"> |
||||
<view class="multiple-con flex"> |
<view class="multiple-con flex"> |
||||
<view class="mul-item" v-for="(item,index) in gameColorNumber1" :key="item.num" :class="item.cla" @click="xiazhu(item.num)"> |
<view class="mul-item" v-for="(item,index) in gameColorNumber1" :key="item.num" |
||||
|
:class="item.cla"> |
||||
|
{{item.num}} |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="multiple-con flex"> |
||||
|
<view class="mul-item" ref="mulitem" v-for="(item,index) in gameColorNumber2" |
||||
|
:key="item.num" :class="item.cla"> |
||||
|
{{item.num}} |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
<view class="canBuy" v-show="!canBuy"> |
||||
|
<view class="flex icon-con"> |
||||
|
<view class="ico" v-for="item,index in gameColor" :key="item.id"> |
||||
|
<image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
<view class="multiple"> |
||||
|
<view class="multiple-con flex"> |
||||
|
<view class="mul-item bg_ash" v-for="(item,index) in gameColorNumber1" :key="item.num"> |
||||
{{item.num}} |
{{item.num}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="multiple-con flex"> |
<view class="multiple-con flex"> |
||||
<view class="mul-item" ref="mulitem" v-for="(item,index) in gameColorNumber2" :key="item.num" :class="item.cla" @click="xiazhu(item.num)"> |
<view class="mul-item bg_ash" ref="mulitem" v-for="(item,index) in gameColorNumber2" |
||||
|
:key="item.num"> |
||||
{{item.num}} |
{{item.num}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -88,7 +117,8 @@ |
|||||
|
|
||||
|
|
||||
<view class="gameNav"> |
<view class="gameNav"> |
||||
<view class="gameNav-item " v-for="item,index in gameNav2" :class="index==gameNavNum?'active':''" :key="item.id" @click="gameNavMe(index)"> |
<view class="gameNav-item " v-for="item,index in gameNav2" :class="index==gameNavNum?'active':''" |
||||
|
:key="item.id" @click="gameNavMe(index)"> |
||||
{{item.text}} |
{{item.text}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -252,7 +282,8 @@ |
|||||
Contract Money |
Contract Money |
||||
</view> |
</view> |
||||
<view class="numcon"> |
<view class="numcon"> |
||||
<view class="num" v-for="(item,index) in betting_amount" :key="item" v-model="bettingPrice" @click="numColor(index,item)" :class="numindex==index?'active':''"> |
<view class="num" v-for="(item,index) in betting_amount" :key="item" v-model="bettingPrice" |
||||
|
@click="numColor(index,item)" :class="numindex==index?'active':''"> |
||||
{{item}} |
{{item}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -334,13 +365,12 @@ |
|||||
colorList: [], |
colorList: [], |
||||
colorData: [], |
colorData: [], |
||||
ganum: 0, |
ganum: 0, |
||||
|
canBuy: true, |
||||
|
|
||||
gameRecord: [], |
gameRecord: [], |
||||
gameRecordCont: [], |
gameRecordCont: [], |
||||
myGameRecord: [], |
myGameRecord: [], |
||||
list: [ |
list: [{ |
||||
{ |
|
||||
name: '', |
name: '', |
||||
checked: false, |
checked: false, |
||||
disabled: false |
disabled: false |
||||
@ -353,8 +383,7 @@ |
|||||
totalPage: 1, |
totalPage: 1, |
||||
gameNav: [], |
gameNav: [], |
||||
gNum: 'G2', |
gNum: 'G2', |
||||
gameColor:[ |
gameColor: [{ |
||||
{ |
|
||||
id: 1, |
id: 1, |
||||
color: 'GREEN' |
color: 'GREEN' |
||||
}, |
}, |
||||
@ -367,8 +396,7 @@ |
|||||
color: 'RED' |
color: 'RED' |
||||
}, |
}, |
||||
], |
], |
||||
gameColorNumber1:[ |
gameColorNumber1: [{ |
||||
{ |
|
||||
num: 0, |
num: 0, |
||||
cla: 'bg_jb2' |
cla: 'bg_jb2' |
||||
}, |
}, |
||||
@ -389,8 +417,7 @@ |
|||||
cla: 'bg_red' |
cla: 'bg_red' |
||||
}, |
}, |
||||
], |
], |
||||
gameColorNumber2:[ |
gameColorNumber2: [{ |
||||
{ |
|
||||
num: 5, |
num: 5, |
||||
cla: 'bg_jb1' |
cla: 'bg_jb1' |
||||
}, |
}, |
||||
@ -416,8 +443,8 @@ |
|||||
numindex: -1, |
numindex: -1, |
||||
ganumArr: [], |
ganumArr: [], |
||||
gg: 3, |
gg: 3, |
||||
gameNav2:[ |
lotteryData: {}, |
||||
{ |
gameNav2: [{ |
||||
id: 1, |
id: 1, |
||||
text: 'Chart Trending', |
text: 'Chart Trending', |
||||
}, |
}, |
||||
@ -437,71 +464,86 @@ |
|||||
|
|
||||
this.myName = uni.getStorageSync('MyInfo').nickname; |
this.myName = uni.getStorageSync('MyInfo').nickname; |
||||
this.myImgUrl = uni.getStorageSync('MyInfo').headImgPath; |
this.myImgUrl = uni.getStorageSync('MyInfo').headImgPath; |
||||
this.nextBtting(); |
this.getLotteryClassList(); |
||||
|
//this.getBettingConfig(); |
||||
|
this.getLottertRecord(); |
||||
|
|
||||
|
|
||||
|
|
||||
|
}, |
||||
|
onReachBottom() { |
||||
|
this.pageSize += 9; |
||||
|
console.log(this.pageSize, this.totalPage, 5555555555555555555) |
||||
|
if (this.pageSize > this.totalPage) { |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
this.getLottertRecord() |
||||
|
// 判断 |
||||
|
this.myLottertRecord() |
||||
|
|
||||
uni.request({ |
|
||||
url: '/start/api/lottery/lotteryClassList', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
|
||||
}, |
}, |
||||
header: { |
methods: { |
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
getBettingConfig() { |
||||
|
const post = api.bettingConfig({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
}) |
||||
|
post.then(res => { |
||||
|
console.log(uni.getStorageSync('logInfo').data, 6666666) |
||||
|
console.log(res.data, 123123) |
||||
|
this.betting_amount = res.data.betting_amount.split(','); |
||||
|
this.betting_rule = res.data.tips; |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
console.log(e) |
||||
|
}) |
||||
}, |
}, |
||||
method: 'POST', //请求方式 或GET,必须为大写 |
getLotteryClassList() { |
||||
success: (res) => { |
const post = api.lotteryClassList({ |
||||
console.log(res.data.data, 888888888888) |
"ticket": uni.getStorageSync('logInfo').data, |
||||
this.colorList = res.data.data; |
}) |
||||
|
post.then(res => { |
||||
|
console.log(res.data, 888888888888) |
||||
|
this.colorList = res.data; |
||||
this.colorData = this.colorList[0]; |
this.colorData = this.colorList[0]; |
||||
this.gameNav2[1].text = this.colorData.name + " record" |
this.gameNav2[1].text = this.colorData.name + " record" |
||||
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" |
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" |
||||
|
this.gNum = this.colorList[0].name |
||||
|
this.setlotteryData(); |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
|
||||
}, |
}, |
||||
fail: (res) => { |
timeChange(timestamp) { |
||||
console.log(res); |
console.log(timestamp) |
||||
|
if (timestamp <= this.colorData.lottery) { |
||||
|
this.canBuy = false |
||||
|
} else { |
||||
|
this.canBuy = true |
||||
} |
} |
||||
}); |
|
||||
|
|
||||
|
|
||||
|
|
||||
this.getLottertRecord(); |
|
||||
uni.request({ |
|
||||
url: '/start/api/lottery/bettingConfig', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
|
||||
}, |
|
||||
header: { |
|
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
|
||||
}, |
|
||||
method: 'POST', //请求方式 或GET,必须为大写 |
|
||||
success: (res) => { |
|
||||
console.log(uni.getStorageSync('logInfo').data,6666666) |
|
||||
console.log(res.data,123123) |
|
||||
this.betting_amount = res.data.data.betting_amount.split(','); |
|
||||
this.betting_rule = res.data.data.tips; |
|
||||
}, |
}, |
||||
fail: (res) => { |
reckonTime(){ |
||||
console.log(res); |
for (var key in this.lotteryData) { |
||||
|
this.lotteryData[key].remain = this.lotteryData[key].remain - 1 |
||||
|
if(this.lotteryData[key].remain==0){ |
||||
|
this.nextBtting(key) |
||||
} |
} |
||||
}); |
|
||||
|
|
||||
|
|
||||
}, |
|
||||
onReachBottom() { |
|
||||
this.pageSize += 9; |
|
||||
console.log(this.pageSize,this.totalPage,5555555555555555555) |
|
||||
if(this.pageSize>this.totalPage){ |
|
||||
return; |
|
||||
} |
} |
||||
|
this.timeChange(this.lotteryData[this.gNum].remain); |
||||
this.getLottertRecord() |
} |
||||
// 判断 |
, |
||||
this.myLottertRecord() |
setlotteryData() { |
||||
|
for (let i = 0; i < this.colorList.length; i++) { |
||||
|
this.nextBtting(this.colorList[i].name) |
||||
|
} |
||||
|
setInterval(this.reckonTime,"1000"); |
||||
}, |
}, |
||||
methods: { |
|
||||
gameNavMe(i) { |
gameNavMe(i) { |
||||
this.gameNavNum = i; |
this.gameNavNum = i; |
||||
}, |
}, |
||||
@ -518,24 +560,21 @@ |
|||||
this.numindex = i; |
this.numindex = i; |
||||
this.bettingPrice = j; |
this.bettingPrice = j; |
||||
}, |
}, |
||||
nextBtting(){ |
nextBtting(gNum) { |
||||
uni.request({ |
const post = api.nextLotteryPeriod({ |
||||
url: '/start/api/lottery/nextLotteryPeriod', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
"className":this.gNum, |
"className": gNum, |
||||
}, |
}) |
||||
header: { |
post.then(res => { |
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
this.lotteryData[gNum] = res.data |
||||
}, |
if (gNum === this.gNum) { |
||||
method: 'POST', //请求方式 或GET,必须为大写 |
this.nextBttingValue = this.lotteryData[gNum] |
||||
success: (res) => { |
|
||||
this.nextBttingValue=res.data.data |
|
||||
}, |
|
||||
fail: (res) => { |
|
||||
console.log(res); |
|
||||
} |
} |
||||
}); |
}) |
||||
|
.catch(e => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
|
||||
}, |
}, |
||||
|
|
||||
toLotter() { |
toLotter() { |
||||
@ -564,21 +603,15 @@ |
|||||
}) |
}) |
||||
return; |
return; |
||||
} |
} |
||||
uni.request({ |
const post = api.betting({ |
||||
url: '/start/api/lottery/betting', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
"className": this.nextBttingValue.name, |
"className": this.nextBttingValue.name, |
||||
"period": this.nextBttingValue.period, |
"period": this.nextBttingValue.period, |
||||
"bettingValue": this.bettingValue, |
"bettingValue": this.bettingValue, |
||||
"bettingPrice": this.bettingPrice, |
"bettingPrice": this.bettingPrice, |
||||
"bettingNumber": this.bettingNumber, |
"bettingNumber": this.bettingNumber, |
||||
}, |
}) |
||||
header: { |
post.then(res => { |
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
|
||||
}, |
|
||||
method: 'POST', //请求方式 或GET,必须为大写 |
|
||||
success: (res) => { |
|
||||
console.log(res.data) |
console.log(res.data) |
||||
if (res.data.success == true) { |
if (res.data.success == true) { |
||||
this.xiaSul = 1; |
this.xiaSul = 1; |
||||
@ -594,80 +627,64 @@ |
|||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
}, |
|
||||
fail: (res) => { |
|
||||
uni.showToast({ |
|
||||
title: res.data.errMsg, |
|
||||
icon: 'none', |
|
||||
duration: 1500 |
|
||||
}) |
}) |
||||
} |
.catch(e => { |
||||
}); |
console.log(e) |
||||
|
}) |
||||
|
|
||||
}, |
}, |
||||
|
|
||||
|
|
||||
myLottertRecord() { |
myLottertRecord() { |
||||
uni.request({ |
const post = api.myLotteryRecords({ |
||||
url: '/start/api/lottery/myLotteryRecords', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
"classId": this.gg, |
"classId": this.gg, |
||||
"pageNumber": 1, |
"pageNumber": 1, |
||||
"pageSize": this.pageSize, |
"pageSize": this.pageSize, |
||||
}, |
}) |
||||
header: { |
post.then(res => { |
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
|
||||
}, |
if (res.data == '' || res.data.content == null) { |
||||
method: 'POST', //请求方式 或GET,必须为大写 |
|
||||
success: (res) => { |
|
||||
if(res.data==''||res.data.data.content==null){ |
|
||||
return |
return |
||||
} |
} |
||||
this.myGameRecord = res.data.data.content; |
this.myGameRecord = res.data.content; |
||||
this.totalPage = res.data.data.totalElements; |
this.totalPage = res.data.totalElements; |
||||
for (var i = 0; i < this.myGameRecord.length; i++) { |
for (var i = 0; i < this.myGameRecord.length; i++) { |
||||
this.myGameRecord[i].period = this.myGameRecord[i].period.substring(2, 13); |
this.myGameRecord[i].period = this.myGameRecord[i].period.substring(2, 13); |
||||
this.myGameRecord[i].addTime=index.formatyymmddhhmmss(this.myGameRecord[i].addTime); |
this.myGameRecord[i].addTime = index.formatyymmddhhmmss(this.myGameRecord[i] |
||||
|
.addTime); |
||||
} |
} |
||||
console.log(res.data, 5666666) |
console.log(res.data, 5666666) |
||||
}, |
|
||||
fail: (res) => { |
}) |
||||
console.log(res); |
.catch(e => { |
||||
} |
console.log(e) |
||||
}); |
}) |
||||
|
|
||||
}, |
}, |
||||
getLottertRecord() { |
getLottertRecord() { |
||||
|
const post = api.lotteryRecords({ |
||||
uni.request({ |
|
||||
url: '/start/api/lottery/lotteryRecords', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
"classId": this.gg, |
"classId": this.gg, |
||||
"pageNumber": 1, |
"pageNumber": 1, |
||||
"pageSize": this.pageSize, |
"pageSize": this.pageSize, |
||||
}, |
}) |
||||
header: { |
post.then(res => { |
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
if (res.data == '' || res.data.content == null) { |
||||
}, |
|
||||
method: 'POST', //请求方式 或GET,必须为大写 |
|
||||
success: (res) => { |
|
||||
if(res.data==''||res.data.data.content==null){ |
|
||||
return |
return |
||||
} |
} |
||||
this.gameRecordCont = res.data.data.content; |
this.gameRecordCont = res.data.content; |
||||
this.totalPage = res.data.data.totalElements; |
this.totalPage = res.data.totalElements; |
||||
for (var i = 0; i < this.gameRecordCont.length; i++) { |
for (var i = 0; i < this.gameRecordCont.length; i++) { |
||||
this.gameRecordCont[i].period = this.gameRecordCont[i].period.substring(2, 13); |
this.gameRecordCont[i].period = this.gameRecordCont[i].period.substring(2, 13); |
||||
this.gameRecordCont[i].lotteryColor = this.gameRecordCont[i].lotteryColor.split( |
this.gameRecordCont[i].lotteryColor = this.gameRecordCont[i].lotteryColor.split( |
||||
','); |
','); |
||||
} |
} |
||||
// console.log(res.data.data,77777777777777) |
// console.log(res.data,77777777777777) |
||||
}, |
}) |
||||
fail: (res) => { |
.catch(e => { |
||||
console.log(res); |
console.log(e) |
||||
} |
}) |
||||
}); |
|
||||
|
|
||||
}, |
}, |
||||
|
|
||||
@ -681,6 +698,9 @@ |
|||||
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" |
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" |
||||
this.ganumArr = this.gNum.split(',') |
this.ganumArr = this.gNum.split(',') |
||||
this.gg = this.gNum[1]; |
this.gg = this.gNum[1]; |
||||
|
this.nextBttingValue = this.lotteryData[j] |
||||
|
this.timeChange(this.lotteryData[j].remain) |
||||
|
|
||||
}, |
}, |
||||
goRule() { |
goRule() { |
||||
uni.reLaunch({ |
uni.reLaunch({ |
||||
|
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 2.0 KiB |
@ -0,0 +1,25 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="zh-CN"> |
||||
|
|
||||
|
<head> |
||||
|
<meta charset="UTF-8" /> |
||||
|
<script> |
||||
|
var __UniViewStartTime__ = Date.now(); |
||||
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || |
||||
|
CSS.supports('top: constant(a)')) |
||||
|
document.write( |
||||
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + |
||||
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />') |
||||
|
</script> |
||||
|
<title>View</title> |
||||
|
<link rel="stylesheet" href="view.css" /> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<div id="app"></div> |
||||
|
<script src="__uniappes6.js"></script> |
||||
|
<script src="view.umd.min.js"></script> |
||||
|
<script src="app-view.js"></script> |
||||
|
</body> |
||||
|
|
||||
|
</html> |
@ -0,0 +1,8 @@ |
|||||
|
|
||||
|
var isReady=false;var onReadyCallbacks=[]; |
||||
|
var isServiceReady=false;var onServiceReadyCallbacks=[]; |
||||
|
var __uniConfig = {"pages":["pages/login/index","pages/register/index","pages/menu/color/index","pages/menu/promotion/applyRecord/index","pages/menu/promotion/bounsRecord/index","pages/menu/withdrawl/transactions/index","pages/menu/recharge/rechargeRule","pages/menu/withdrawl/transactions/index","pages/menu/withdrawl/withdrawlRecord/index","pages/menu/recharge/index","pages/menu/recharge/record/index","pages/menu/rule/arules/index","pages/menu/aplan/index","pages/menu/withdrawl/index","pages/menu/promotion/promotionRecord/index","pages/menu/recharge/index","pages/menu/My/index","pages/menu/promotion/index","pages/menu/index/index","pages/login/resetPassword/index","pages/menu/rule/index","pages/menu/rule/inviteRule/index"],"window":{"navigationBarTextStyle":"white","navigationBarBackgroundColor":"#34026B"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Game","pagePath":"pages/menu/index/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"first","compilerVersion":"3.1.8","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; |
||||
|
var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{}},{"path":"/pages/register/index","meta":{},"window":{}},{"path":"/pages/menu/color/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/applyRecord/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/bounsRecord/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/transactions/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/rechargeRule","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/withdrawlRecord/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/record/index","meta":{},"window":{}},{"path":"/pages/menu/rule/arules/index","meta":{},"window":{}},{"path":"/pages/menu/aplan/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/promotionRecord/index","meta":{},"window":{}},{"path":"/pages/menu/My/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/login/resetPassword/index","meta":{},"window":{}},{"path":"/pages/menu/rule/index","meta":{},"window":{}},{"path":"/pages/menu/rule/inviteRule/index","meta":{},"window":{}}]; |
||||
|
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |
||||
|
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |
||||
|
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); |
@ -0,0 +1,154 @@ |
|||||
|
/******/ (function(modules) { // webpackBootstrap
|
||||
|
/******/ // install a JSONP callback for chunk loading
|
||||
|
/******/ function webpackJsonpCallback(data) { |
||||
|
/******/ var chunkIds = data[0]; |
||||
|
/******/ var moreModules = data[1]; |
||||
|
/******/ var executeModules = data[2]; |
||||
|
/******/ |
||||
|
/******/ // add "moreModules" to the modules object,
|
||||
|
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
|
/******/ var moduleId, chunkId, i = 0, resolves = []; |
||||
|
/******/ for(;i < chunkIds.length; i++) { |
||||
|
/******/ chunkId = chunkIds[i]; |
||||
|
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { |
||||
|
/******/ resolves.push(installedChunks[chunkId][0]); |
||||
|
/******/ } |
||||
|
/******/ installedChunks[chunkId] = 0; |
||||
|
/******/ } |
||||
|
/******/ for(moduleId in moreModules) { |
||||
|
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { |
||||
|
/******/ modules[moduleId] = moreModules[moduleId]; |
||||
|
/******/ } |
||||
|
/******/ } |
||||
|
/******/ if(parentJsonpFunction) parentJsonpFunction(data); |
||||
|
/******/ |
||||
|
/******/ while(resolves.length) { |
||||
|
/******/ resolves.shift()(); |
||||
|
/******/ } |
||||
|
/******/ |
||||
|
/******/ // add entry modules from loaded chunk to deferred list
|
||||
|
/******/ deferredModules.push.apply(deferredModules, executeModules || []); |
||||
|
/******/ |
||||
|
/******/ // run deferred modules when all chunks ready
|
||||
|
/******/ return checkDeferredModules(); |
||||
|
/******/ }; |
||||
|
/******/ function checkDeferredModules() { |
||||
|
/******/ var result; |
||||
|
/******/ for(var i = 0; i < deferredModules.length; i++) { |
||||
|
/******/ var deferredModule = deferredModules[i]; |
||||
|
/******/ var fulfilled = true; |
||||
|
/******/ for(var j = 1; j < deferredModule.length; j++) { |
||||
|
/******/ var depId = deferredModule[j]; |
||||
|
/******/ if(installedChunks[depId] !== 0) fulfilled = false; |
||||
|
/******/ } |
||||
|
/******/ if(fulfilled) { |
||||
|
/******/ deferredModules.splice(i--, 1); |
||||
|
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); |
||||
|
/******/ } |
||||
|
/******/ } |
||||
|
/******/ |
||||
|
/******/ return result; |
||||
|
/******/ } |
||||
|
/******/ |
||||
|
/******/ // The module cache
|
||||
|
/******/ var installedModules = {}; |
||||
|
/******/ |
||||
|
/******/ // object to store loaded and loading chunks
|
||||
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
|
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
/******/ var installedChunks = { |
||||
|
/******/ "app-config": 0 |
||||
|
/******/ }; |
||||
|
/******/ |
||||
|
/******/ var deferredModules = []; |
||||
|
/******/ |
||||
|
/******/ // The require function
|
||||
|
/******/ function __webpack_require__(moduleId) { |
||||
|
/******/ |
||||
|
/******/ // Check if module is in cache
|
||||
|
/******/ if(installedModules[moduleId]) { |
||||
|
/******/ return installedModules[moduleId].exports; |
||||
|
/******/ } |
||||
|
/******/ // Create a new module (and put it into the cache)
|
||||
|
/******/ var module = installedModules[moduleId] = { |
||||
|
/******/ i: moduleId, |
||||
|
/******/ l: false, |
||||
|
/******/ exports: {} |
||||
|
/******/ }; |
||||
|
/******/ |
||||
|
/******/ // Execute the module function
|
||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
||||
|
/******/ |
||||
|
/******/ // Flag the module as loaded
|
||||
|
/******/ module.l = true; |
||||
|
/******/ |
||||
|
/******/ // Return the exports of the module
|
||||
|
/******/ return module.exports; |
||||
|
/******/ } |
||||
|
/******/ |
||||
|
/******/ |
||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||
|
/******/ __webpack_require__.m = modules; |
||||
|
/******/ |
||||
|
/******/ // expose the module cache
|
||||
|
/******/ __webpack_require__.c = installedModules; |
||||
|
/******/ |
||||
|
/******/ // define getter function for harmony exports
|
||||
|
/******/ __webpack_require__.d = function(exports, name, getter) { |
||||
|
/******/ if(!__webpack_require__.o(exports, name)) { |
||||
|
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); |
||||
|
/******/ } |
||||
|
/******/ }; |
||||
|
/******/ |
||||
|
/******/ // define __esModule on exports
|
||||
|
/******/ __webpack_require__.r = function(exports) { |
||||
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
||||
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
||||
|
/******/ } |
||||
|
/******/ Object.defineProperty(exports, '__esModule', { value: true }); |
||||
|
/******/ }; |
||||
|
/******/ |
||||
|
/******/ // create a fake namespace object
|
||||
|
/******/ // mode & 1: value is a module id, require it
|
||||
|
/******/ // mode & 2: merge all properties of value into the ns
|
||||
|
/******/ // mode & 4: return value when already ns object
|
||||
|
/******/ // mode & 8|1: behave like require
|
||||
|
/******/ __webpack_require__.t = function(value, mode) { |
||||
|
/******/ if(mode & 1) value = __webpack_require__(value); |
||||
|
/******/ if(mode & 8) return value; |
||||
|
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; |
||||
|
/******/ var ns = Object.create(null); |
||||
|
/******/ __webpack_require__.r(ns); |
||||
|
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); |
||||
|
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); |
||||
|
/******/ return ns; |
||||
|
/******/ }; |
||||
|
/******/ |
||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
|
/******/ __webpack_require__.n = function(module) { |
||||
|
/******/ var getter = module && module.__esModule ? |
||||
|
/******/ function getDefault() { return module['default']; } : |
||||
|
/******/ function getModuleExports() { return module; }; |
||||
|
/******/ __webpack_require__.d(getter, 'a', getter); |
||||
|
/******/ return getter; |
||||
|
/******/ }; |
||||
|
/******/ |
||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; |
||||
|
/******/ |
||||
|
/******/ // __webpack_public_path__
|
||||
|
/******/ __webpack_require__.p = "/"; |
||||
|
/******/ |
||||
|
/******/ var jsonpArray = this["webpackJsonp"] = this["webpackJsonp"] || []; |
||||
|
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); |
||||
|
/******/ jsonpArray.push = webpackJsonpCallback; |
||||
|
/******/ jsonpArray = jsonpArray.slice(); |
||||
|
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); |
||||
|
/******/ var parentJsonpFunction = oldJsonpFunction; |
||||
|
/******/ |
||||
|
/******/ |
||||
|
/******/ // run deferred modules from other chunks
|
||||
|
/******/ checkDeferredModules(); |
||||
|
/******/ }) |
||||
|
/************************************************************************/ |
||||
|
/******/ ([]); |
@ -0,0 +1 @@ |
|||||
|
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7E21D6D","name":"first","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#34026B"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.1.8","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Game","pagePath":"pages/menu/index/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html"}} |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 562 B |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 323 B |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 530 B |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 535 B |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 253 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 698 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 560 B |
After Width: | Height: | Size: 410 B |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 810 B |
After Width: | Height: | Size: 221 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1011 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 567 B |
After Width: | Height: | Size: 599 B |