27 changed files with 1516 additions and 1619 deletions
@ -1,6 +1,5 @@ |
|||||
<template> |
<template> |
||||
<view class="flex"> |
<view class="flex"> |
||||
<<<<<<< HEAD |
|
||||
<view class="my-cont" @click="keCode=1"> |
<view class="my-cont" @click="keCode=1"> |
||||
<image src="../../static/home/[email protected]" mode=""></image> |
<image src="../../static/home/[email protected]" mode=""></image> |
||||
</view> |
</view> |
||||
@ -9,27 +8,15 @@ |
|||||
|
|
||||
<view class="title"> |
<view class="title"> |
||||
<image src="../../static/color/pop_icon_service@2x(1).png" mode="aspectFit" class="img1"></image> |
<image src="../../static/color/pop_icon_service@2x(1).png" mode="aspectFit" class="img1"></image> |
||||
<p>matis</p> |
<p>Customer Service</p> |
||||
======= |
|
||||
<view class="my-cont" @click="keCode=1"> |
|
||||
<image src="../../static/home/[email protected]" mode=""></image> |
|
||||
>>>>>>> 568bf6045ac1252bb15844d528ceabdb0f66ad2f |
|
||||
</view> |
|
||||
<!-- <u-mask :z-index="10" v-if="keCode!=1"></u-mask> --> |
|
||||
<view class="tc" v-show="keCode==1"> |
|
||||
|
|
||||
<view class="title"> |
|
||||
<image src="../../static/color/pop_icon_service@2x(1).png" mode="aspectFit" class="img1"></image> |
|
||||
<p>matis</p> |
|
||||
</view> |
</view> |
||||
<view class="tc_body"> |
<view class="tc_body"> |
||||
<view class="p1"> |
<view class="p1"> |
||||
Sen assistente ao vivo e sempre a seu servico. |
{{serviceTime}} |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
<scroll-view class="item" style="height:380rpx" scroll-y="true" show-scrollbar="true" |
<scroll-view class="item" style="height:380rpx" scroll-y="true" show-scrollbar="true" scroll-with-animation="true" scroll-top="0" > |
||||
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> |
||||
@ -37,7 +24,8 @@ |
|||||
{{getName(item)}} |
{{getName(item)}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in teList" :key="item"> |
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in teList" |
||||
|
: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> |
||||
@ -47,8 +35,7 @@ |
|||||
|
|
||||
</view> |
</view> |
||||
|
|
||||
<image src="../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0"> |
<image src="../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0"></image> |
||||
</image> |
|
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
@ -60,16 +47,19 @@ |
|||||
// props:["teList","whatAppList"], |
// props:["teList","whatAppList"], |
||||
data() { |
data() { |
||||
return { |
return { |
||||
keCode: 0, |
keCode:0, |
||||
teList: [], |
teList:[], |
||||
whatAppList: [], |
whatAppList:[], |
||||
|
serviceTime:'', |
||||
} |
} |
||||
}, |
}, |
||||
computed: { |
computed: { |
||||
|
|
||||
}, |
}, |
||||
mounted() { |
mounted() { |
||||
|
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime; |
||||
const siteTelegram = uni.getStorageSync('siteInfo').siteTelegram; |
const siteTelegram = uni.getStorageSync('siteInfo').siteTelegram; |
||||
|
|
||||
const siteWhatsapp = uni.getStorageSync('siteInfo').siteWhatsapp; |
const siteWhatsapp = uni.getStorageSync('siteInfo').siteWhatsapp; |
||||
if (siteTelegram != undefined && siteTelegram != '') { |
if (siteTelegram != undefined && siteTelegram != '') { |
||||
this.teList = siteTelegram.split(',') |
this.teList = siteTelegram.split(',') |
||||
@ -113,7 +103,7 @@ |
|||||
return item.replace(item.split(':')[0] + ':', '') |
return item.replace(item.split(':')[0] + ':', '') |
||||
}, |
}, |
||||
getName(item) { |
getName(item) { |
||||
console.log(item, 20000); |
console.log(item,20000); |
||||
return item.split(':')[0] |
return item.split(':')[0] |
||||
} |
} |
||||
}, |
}, |
||||
@ -122,74 +112,63 @@ |
|||||
|
|
||||
|
|
||||
<style> |
<style> |
||||
.item { |
.item{ |
||||
margin-top: 60rpx; |
margin-top: 60rpx; |
||||
/* height: 380rpx; |
/* height: 380rpx; |
||||
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; |
||||
top: 36rpx; |
top: 36rpx; |
||||
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; |
||||
text-transform: capitalize; |
text-transform: capitalize; |
||||
margin-top: 28rpx; |
margin-top: 28rpx; |
||||
margin-bottom: 20rpx; |
margin-bottom: 20rpx; |
||||
} |
} |
||||
|
.tc{ |
||||
.tc { |
|
||||
width: 600rpx; |
width: 600rpx; |
||||
background-color: #fff; |
background-color: #fff; |
||||
border-radius: 24rpx; |
border-radius: 24rpx; |
||||
@ -197,17 +176,15 @@ |
|||||
position: fixed; |
position: fixed; |
||||
top: 50%; |
top: 50%; |
||||
left: 50%; |
left: 50%; |
||||
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; |
||||
top: 20rpx; |
top: 20rpx; |
||||
@ -217,25 +194,21 @@ |
|||||
height: 2rpx; |
height: 2rpx; |
||||
background-color: #EDEFF2FF; |
background-color: #EDEFF2FF; |
||||
} |
} |
||||
|
.my-cont{ |
||||
.my-cont { |
|
||||
width: 180rpx; |
width: 180rpx; |
||||
height: 180rpx; |
height: 180rpx; |
||||
position: fixed; |
position: fixed; |
||||
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; |
||||
|
|
||||
} |
} |
||||
|
@ -1,7 +1,7 @@ |
|||||
<template> |
<template> |
||||
<view class="content"> |
<view class="content"> |
||||
<navigation>color</navigation> |
<navigation>color</navigation> |
||||
<balance @send="getSonValue"> |
<balance @send="getSonValue" :currencySymbol="currencySymbol" :currentBalance="currentBalance"> |
||||
<view class="rules-btn" slot="rules" @click="goRule()">rules</view> |
<view class="rules-btn" slot="rules" @click="goRule()">rules</view> |
||||
</balance> |
</balance> |
||||
<view class="bg_white"> |
<view class="bg_white"> |
||||
@ -11,8 +11,6 @@ |
|||||
{{item.name}} |
{{item.name}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
<view class="gameContent"> |
<view class="gameContent"> |
||||
<view class="perCon"> |
<view class="perCon"> |
||||
<view class="perCoun flex"> |
<view class="perCoun flex"> |
||||
@ -36,32 +34,26 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
<view v-show="canBuy"> |
<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> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
<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" |
<view class="mul-item" v-for="(item,index) in gameColorNumber1" :key="item.num" |
||||
:class="item.cla"> |
@click="xiazhu(item.num)" :class="item.cla"> |
||||
{{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" |
<view class="mul-item" ref="mulitem" v-for="(item,index) in gameColorNumber2" |
||||
:key="item.num" :class="item.cla"> |
@click="xiazhu(item.num)" :key="item.num" :class="item.cla"> |
||||
{{item.num}} |
{{item.num}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
|
|
||||
</view> |
</view> |
||||
<view class="canBuy" v-show="!canBuy"> |
<view class="canBuy" v-show="!canBuy"> |
||||
<view class="flex icon-con"> |
<view class="flex icon-con"> |
||||
@ -69,8 +61,6 @@ |
|||||
<image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> |
<image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
<view class="multiple"> |
<view class="multiple"> |
||||
<view class="multiple-con flex"> |
<view class="multiple-con flex"> |
||||
<view class="mul-item bg_ash" v-for="(item,index) in gameColorNumber1" :key="item.num"> |
<view class="mul-item bg_ash" v-for="(item,index) in gameColorNumber1" :key="item.num"> |
||||
@ -84,13 +74,8 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
|
|
||||
</view> |
</view> |
||||
|
<!-- <view class="donna flex"> |
||||
|
|
||||
<view class="donna flex"> |
|
||||
<view class="flex info"> |
<view class="flex info"> |
||||
<view class="imgcon"> |
<view class="imgcon"> |
||||
<image :src="'https://apitest.luck-work.com/'+myImgUrl" mode="aspectFit"></image> |
<image :src="'https://apitest.luck-work.com/'+myImgUrl" mode="aspectFit"></image> |
||||
@ -109,39 +94,20 @@ |
|||||
<view class="follow" @click="follow_xiazhu_conOn=1"> |
<view class="follow" @click="follow_xiazhu_conOn=1"> |
||||
Follow |
Follow |
||||
</view> |
</view> |
||||
|
</view> --> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
</view> |
|
||||
|
|
||||
|
|
||||
|
|
||||
<view class="gameNav"> |
<view class="gameNav"> |
||||
<view class="gameNav-item " v-for="item,index in gameNav2" :class="index==gameNavNum?'active':''" |
<view class="gameNav-item " v-for="item,index in gameNav2" :class="index==gameNavNum?'active':''" |
||||
:key="item.id" @click="gameNavMe(index)"> |
:key="item.id" @click="gameNavMe(index)"> |
||||
{{item.text}} |
{{item.text}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
<gamecont v-if="gameNavNum==0" :gameRecordCont="gameRecordCont" :lotteryNumResult="lotteryNumResult"></gamecont> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
<gamecont v-if="gameNavNum==0"></gamecont> |
|
||||
<gamecont2 :gameRecordCont="gameRecordCont" v-if="gameNavNum==1"></gamecont2> |
<gamecont2 :gameRecordCont="gameRecordCont" v-if="gameNavNum==1"></gamecont2> |
||||
<gamecont3 :myGameRecord="myGameRecord" v-if="gameNavNum==2"></gamecont3> |
<gamecont3 :myGameRecord="myGameRecord" v-if="gameNavNum==2"></gamecont3> |
||||
|
|
||||
</view> |
</view> |
||||
|
<!-- <u-mask :show="follow_xiazhu_conOn==1" z-index="1000"></u-mask> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
<u-mask :show="follow_xiazhu_conOn==1" z-index="1000"></u-mask> |
|
||||
<view class="follow_xiazhu_con" v-show="follow_xiazhu_conOn==1"> |
<view class="follow_xiazhu_con" v-show="follow_xiazhu_conOn==1"> |
||||
|
|
||||
<view class="xia_head"> |
<view class="xia_head"> |
||||
<view class="tiao" @click="follow_xiazhu_conOn=0"> |
<view class="tiao" @click="follow_xiazhu_conOn=0"> |
||||
</view> |
</view> |
||||
@ -261,7 +227,7 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
</view> |
</view> --> |
||||
|
|
||||
|
|
||||
|
|
||||
@ -292,10 +258,10 @@ |
|||||
<view class="xname"> |
<view class="xname"> |
||||
Number |
Number |
||||
</view> |
</view> |
||||
<u-number-box v-model="bettingNumber"></u-number-box> |
<u-number-box v-model="bettingNumber" @input="tmoney()"></u-number-box> |
||||
</view> |
</view> |
||||
<view class="TotalMoney xname"> |
<view class="TotalMoney xname"> |
||||
Total Contract Money is 50 |
Total Contract Money is {{touzhuMoney}} |
||||
</view> |
</view> |
||||
<view class="agree"> |
<view class="agree"> |
||||
<view class=""> |
<view class=""> |
||||
@ -306,7 +272,6 @@ |
|||||
</view> |
</view> |
||||
<span class="s1">I agree </span><span class="s2" @click="goRule">presale rule</span> |
<span class="s1">I agree </span><span class="s2" @click="goRule">presale rule</span> |
||||
</view> |
</view> |
||||
|
|
||||
</view> |
</view> |
||||
<view class="btn_con flex"> |
<view class="btn_con flex"> |
||||
<view class="btn1 btn" @click="xiazhuCode=false"> |
<view class="btn1 btn" @click="xiazhuCode=false"> |
||||
@ -316,9 +281,8 @@ |
|||||
comfierm |
comfierm |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
</view> |
</view> |
||||
<view class="tc" v-show="xiaSul==1"> |
<!-- <view class="tc" v-show="xiaSul==1"> |
||||
<view class="title"> |
<view class="title"> |
||||
connfirm |
connfirm |
||||
</view> |
</view> |
||||
@ -328,9 +292,56 @@ |
|||||
<view class="sul ok" @click="xiaSul=0"> |
<view class="sul ok" @click="xiaSul=0"> |
||||
OK |
OK |
||||
</view> |
</view> |
||||
</view> |
</view> --> |
||||
<u-mask :show="xiazhuCode" :z-index="10"></u-mask> |
<u-mask :show="xiazhuCode" :z-index="10" @click="xiazhuCode=false"></u-mask> |
||||
<u-mask :show="xiaSul==1" :z-index="10"></u-mask> |
<u-mask :show="xiaSul==1" :z-index="10"></u-mask> |
||||
|
|
||||
|
|
||||
|
<!-- 客服信息 --> |
||||
|
<view class="flex"> |
||||
|
<view class="my-cont" @click="keCode=1"> |
||||
|
<image src="../../../static/home/[email protected]" mode=""></image> |
||||
|
</view> |
||||
|
<u-mask :z-index="10" :show="keCode==1"></u-mask> |
||||
|
<view class="tc" v-show="keCode==1"> |
||||
|
|
||||
|
<view class="title"> |
||||
|
<image src="../../../static/color/pop_icon_service@2x(1).png" mode="aspectFit" class="img1"></image> |
||||
|
<p>Customer Service</p> |
||||
|
</view> |
||||
|
<view class="tc_body"> |
||||
|
<view class="p1"> |
||||
|
{{serviceTime}} |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
<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" |
||||
|
:key="item"> |
||||
|
<image src="../../../static/color/[email protected]" mode="aspectFit" class="img2"></image> |
||||
|
<view class="p2"> |
||||
|
{{getName(item)}} |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in teList" |
||||
|
:key="item"> |
||||
|
<image src="../../../static/color/pop_icon_teltgram.png" mode="" class="img2"></image> |
||||
|
<view class="p2"> |
||||
|
<span class="whatapp-name">{{getName(item)}}</span> |
||||
|
</view> |
||||
|
</view> |
||||
|
</scroll-view> |
||||
|
|
||||
|
</view> |
||||
|
|
||||
|
<image src="../../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0"></image> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
@ -347,7 +358,15 @@ |
|||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
|
// 客服 |
||||
|
keCode:0, |
||||
|
teList:[], |
||||
|
whatAppList:[], |
||||
|
serviceTime:'', |
||||
|
|
||||
|
touzhuMoney:0, |
||||
|
currencySymbol:'', |
||||
|
currentBalance:'', |
||||
gameNavNum: 0, |
gameNavNum: 0, |
||||
xiaSul: 0, |
xiaSul: 0, |
||||
gsxia: 0, |
gsxia: 0, |
||||
@ -456,49 +475,97 @@ |
|||||
id: 3, |
id: 3, |
||||
text: '' |
text: '' |
||||
}, |
}, |
||||
] |
], |
||||
|
totalPage2:'', |
||||
|
lotteryNum:[], |
||||
|
lotteryNumResult:[0,0,0,0,0,0,0,0,0,0], |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
|
||||
|
|
||||
|
// 客服 |
||||
|
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime; |
||||
|
const siteTelegram = uni.getStorageSync('siteInfo').siteTelegram; |
||||
|
|
||||
|
const siteWhatsapp = uni.getStorageSync('siteInfo').siteWhatsapp; |
||||
|
if (siteTelegram != undefined && siteTelegram != '') { |
||||
|
this.teList = siteTelegram.split(',') |
||||
|
console.log(1111111 + this.teList) |
||||
|
} |
||||
|
if (siteWhatsapp != undefined && siteWhatsapp != '') { |
||||
|
this.whatAppList = siteWhatsapp.split(',') |
||||
|
console.log(2222222 + this.whatAppList) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
|
this.currentBalance=uni.getStorageSync('currentBalance'); |
||||
this.myName = uni.getStorageSync('MyInfo').nickname; |
this.myName = uni.getStorageSync('MyInfo').nickname; |
||||
this.myImgUrl = uni.getStorageSync('MyInfo').headImgPath; |
this.myImgUrl = uni.getStorageSync('MyInfo').headImgPath; |
||||
<<<<<<< HEAD |
|
||||
|
|
||||
|
this.getLotteryClassList(); |
||||
|
this.getBettingConfig(); |
||||
|
this.getLottertRecord(); |
||||
|
|
||||
this.nextBtting(); |
|
||||
uni.request({ |
// 获取整个往期记录 |
||||
url: '/start/api/lottery/lotteryClassList', |
const post = api.lotteryRecords({ |
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
}, |
"classId": this.gg, |
||||
header: { |
"pageNumber": 1, |
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
"pageSize": 1277, |
||||
}, |
}) |
||||
method: 'POST', //请求方式 或GET,必须为大写 |
post.then(res => { |
||||
success: (res) => { |
this.lotteryNum = res.data.content; |
||||
console.log(res.data.data, 888888888888) |
console.log(this.lotteryNum,666666666666666666666) |
||||
this.colorList = res.data.data; |
for (var i = 0; i < this.lotteryNum.length; i++) { |
||||
this.colorData=this.colorList[0]; |
if(!this.lotteryNum[i].lotteryResult){ |
||||
this.gameNav2[1].text=this.colorData.name+" record" |
this.lotteryNumResult[0]=this.lotteryNumResult[0]+1; |
||||
this.gameNav2[2].text='My '+this.colorData.name+" record" |
|
||||
}, |
|
||||
fail: (res) => { |
|
||||
console.log(res); |
|
||||
} |
} |
||||
}); |
if(this.lotteryNum[i].lotteryResult==1){ |
||||
|
this.lotteryNumResult[1]=this.lotteryNumResult[1]+1; |
||||
|
|
||||
|
} |
||||
|
if(this.lotteryNum[i].lotteryResult==2){ |
||||
|
this.lotteryNumResult[2]=this.lotteryNumResult[2]+1; |
||||
|
|
||||
|
} |
||||
|
if(this.lotteryNum[i].lotteryResult==3){ |
||||
|
this.lotteryNumResult[3]=this.lotteryNumResult[3]+1; |
||||
|
|
||||
|
} |
||||
|
if(this.lotteryNum[i].lotteryResult==4){ |
||||
|
this.lotteryNumResult[4]=this.lotteryNumResult[4]+1; |
||||
|
|
||||
======= |
} |
||||
this.getLotteryClassList(); |
if(this.lotteryNum[i].lotteryResult==5){ |
||||
//this.getBettingConfig(); |
this.lotteryNumResult[5]=this.lotteryNumResult[5]+1; |
||||
>>>>>>> 568bf6045ac1252bb15844d528ceabdb0f66ad2f |
|
||||
this.getLottertRecord(); |
|
||||
|
|
||||
|
} |
||||
|
if(this.lotteryNum[i].lotteryResult==6){ |
||||
|
this.lotteryNumResult[6]=this.lotteryNumResult[6]+1; |
||||
|
|
||||
|
} |
||||
|
if(this.lotteryNum[i].lotteryResult==7){ |
||||
|
this.lotteryNumResult[7]=this.lotteryNumResult[7]+1; |
||||
|
|
||||
|
} |
||||
|
if(this.lotteryNum[i].lotteryResult==8){ |
||||
|
this.lotteryNumResult[8]=this.lotteryNumResult[8]+1; |
||||
|
|
||||
|
} |
||||
|
if(this.lotteryNum[i].lotteryResult==9){ |
||||
|
this.lotteryNumResult[9]=this.lotteryNumResult[9]+1; |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
console.log(this.lotteryNumResult) |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
console.log(e) |
||||
|
}) |
||||
}, |
}, |
||||
onReachBottom() { |
onReachBottom() { |
||||
this.pageSize += 9; |
this.pageSize += 9; |
||||
@ -513,6 +580,46 @@ |
|||||
|
|
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
// 客服 |
||||
|
gotoWeb(gotoUrl) { |
||||
|
// #ifdef H5 |
||||
|
window.location.href = gotoUrl |
||||
|
// #endif |
||||
|
// #ifdef APP-PLUS |
||||
|
var networkType = '' |
||||
|
uni.getNetworkType({ |
||||
|
success: function(res) { |
||||
|
networkType = res.networkType |
||||
|
} |
||||
|
}); |
||||
|
if (networkType == 'none') { |
||||
|
uni.showToast({ |
||||
|
title: 'no Network', |
||||
|
icon: 'none', |
||||
|
duration: 1500 |
||||
|
}) |
||||
|
} else { |
||||
|
var param = { |
||||
|
url: gotoUrl |
||||
|
} |
||||
|
uni.navigateTo({ |
||||
|
url: '/pages/menu/me/rechange/topay/index?' + qs.stringify(param) |
||||
|
}) |
||||
|
} |
||||
|
// #endif |
||||
|
}, |
||||
|
|
||||
|
getLink(item) { |
||||
|
return item.replace(item.split(':')[0] + ':', '') |
||||
|
}, |
||||
|
getName(item) { |
||||
|
// console.log(item,20000); |
||||
|
return item.split(':')[0] |
||||
|
}, |
||||
|
|
||||
|
tmoney(){ |
||||
|
this.touzhuMoney=this.bettingNumber*this.bettingPrice; |
||||
|
}, |
||||
getBettingConfig() { |
getBettingConfig() { |
||||
const post = api.bettingConfig({ |
const post = api.bettingConfig({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
@ -546,9 +653,17 @@ |
|||||
|
|
||||
}, |
}, |
||||
timeChange(timestamp) { |
timeChange(timestamp) { |
||||
console.log(timestamp) |
// if(timestamp==0){ |
||||
|
// this.ganum+=1; |
||||
|
// this.gNum="G"+ Number(this.gNum.substring(1)+1) ; |
||||
|
// console.log(this.gNum,5555555555555) |
||||
|
// this.gaClick(this.ganum,this.gNum); |
||||
|
// } |
||||
|
// console.log(timestamp) |
||||
|
// console.log(123) |
||||
if (timestamp <= this.colorData.lottery) { |
if (timestamp <= this.colorData.lottery) { |
||||
this.canBuy = false |
this.canBuy = false |
||||
|
this.xiazhuCode=false |
||||
} else { |
} else { |
||||
this.canBuy = true |
this.canBuy = true |
||||
} |
} |
||||
@ -588,6 +703,8 @@ |
|||||
numColor(i, j) { |
numColor(i, j) { |
||||
this.numindex = i; |
this.numindex = i; |
||||
this.bettingPrice = j; |
this.bettingPrice = j; |
||||
|
this.touzhuMoney=j; |
||||
|
this.bettingNumber=1; |
||||
}, |
}, |
||||
nextBtting(gNum) { |
nextBtting(gNum) { |
||||
const post = api.nextLotteryPeriod({ |
const post = api.nextLotteryPeriod({ |
||||
@ -641,14 +758,38 @@ |
|||||
"bettingNumber": this.bettingNumber, |
"bettingNumber": this.bettingNumber, |
||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
|
uni.showLoading({ |
||||
|
title:'loading' |
||||
|
}) |
||||
console.log(res.data) |
console.log(res.data) |
||||
if (res.data.success == true) { |
if (res.success == true) { |
||||
this.xiaSul = 1; |
// this.xiaSul = 1; |
||||
uni.showToast({ |
uni.showToast({ |
||||
title: 'Successful bet', |
title: 'Successful bet', |
||||
icon: 'success', |
icon: 'success', |
||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
|
//更新余额 |
||||
|
const post = api.withdrawConfig({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
}) |
||||
|
post.then(res => { |
||||
|
if(res.data){ |
||||
|
this.currentBalance=res.data.currentBalance; |
||||
|
uni.setStorage({ |
||||
|
key: 'currentBalance', |
||||
|
data: this.currentBalance, |
||||
|
success: function() { |
||||
|
console.log('success') |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
}) |
||||
|
|
||||
|
setTimeout(function(){ |
||||
|
location.reload(); |
||||
|
},2000) |
||||
} else { |
} else { |
||||
uni.showToast({ |
uni.showToast({ |
||||
title: res.data.errMsg, |
title: res.data.errMsg, |
||||
@ -679,7 +820,7 @@ |
|||||
this.myGameRecord = res.data.content; |
this.myGameRecord = res.data.content; |
||||
this.totalPage = res.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] |
this.myGameRecord[i].addTime = index.formatyymmddhhmmss(this.myGameRecord[i] |
||||
.addTime); |
.addTime); |
||||
} |
} |
||||
@ -704,12 +845,17 @@ |
|||||
} |
} |
||||
this.gameRecordCont = res.data.content; |
this.gameRecordCont = res.data.content; |
||||
this.totalPage = res.data.totalElements; |
this.totalPage = res.data.totalElements; |
||||
|
this.totalPage2 = res.data.totalPages; |
||||
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(','); |
||||
','); |
if(!this.gameRecordCont[i].lotteryResult){ |
||||
|
this.gameRecordCont[i].lotteryResult=0 |
||||
|
} |
||||
|
|
||||
|
|
||||
} |
} |
||||
// console.log(res.data,77777777777777) |
|
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
console.log(e) |
console.log(e) |
||||
@ -718,8 +864,10 @@ |
|||||
}, |
}, |
||||
|
|
||||
|
|
||||
gaClick(i, j) { |
|
||||
|
|
||||
|
|
||||
|
gaClick(i, j) { |
||||
|
console.log(j,8000000) |
||||
this.ganum = i |
this.ganum = i |
||||
this.gNum = j; |
this.gNum = j; |
||||
this.colorData = this.colorList[i]; |
this.colorData = this.colorList[i]; |
||||
|
@ -3,14 +3,17 @@ |
|||||
<view class="pro-head"> |
<view class="pro-head"> |
||||
promotion |
promotion |
||||
<view class="pro-hea-rig"> |
<view class="pro-hea-rig"> |
||||
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img1" @click="goInviteRule()"></image> |
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img1" |
||||
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img2" @click="invMore=true,msShow=true"></image> |
@click="goInviteRule()"></image> |
||||
|
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img2" |
||||
|
@click="invMore=true,msShow=true"></image> |
||||
|
|
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="pro-body"> |
<view class="pro-body"> |
||||
<view class="pro-body-p1"> |
<view class="pro-body-p1"> |
||||
bonus: <span class="category-sigh">{{currencySymbol}}</span><span class="s1">{{inviteRule.bonusCapital}}</span> |
bonus: <span class="category-sigh">{{currencySymbol}}</span><span |
||||
|
class="s1">{{inviteRule.bonusCapital}}</span> |
||||
</view> |
</view> |
||||
|
|
||||
<view class="pro-body-btn1" @click="appl=true,msShow=true"> |
<view class="pro-body-btn1" @click="appl=true,msShow=true"> |
||||
@ -72,7 +75,8 @@ |
|||||
apply to balance |
apply to balance |
||||
</view> |
</view> |
||||
<view class="input"> |
<view class="input"> |
||||
<input type="text" value="" placeholder="bonus" v-model="tranAmt" placeholder-style="color: #BFC2CCFF;font-size:28rpx;text-transform: capitalize"/> |
<input type="text" value="" placeholder="bonus" v-model="tranAmt" |
||||
|
placeholder-style="color: #BFC2CCFF;font-size:28rpx;text-transform: capitalize" /> |
||||
</view> |
</view> |
||||
<view class="all" @click="applyAll()"> |
<view class="all" @click="applyAll()"> |
||||
Apply all |
Apply all |
||||
@ -97,127 +101,107 @@ |
|||||
|
|
||||
<script> |
<script> |
||||
import cont from "@/components/cont/cont.vue" |
import cont from "@/components/cont/cont.vue" |
||||
|
import api from '@/utils/api' |
||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
currencySymbol:'', |
currencySymbol: '', |
||||
leaId:0, |
leaId: 0, |
||||
inviteRule:[], |
inviteRule: [], |
||||
tranAmt:'', |
tranAmt: '', |
||||
proLeav:[ |
proLeav: [{ |
||||
{ |
id: 0, |
||||
id:0, |
lea: 'level1', |
||||
lea:'level1', |
lea2: 'Total people', |
||||
lea2:'Total people', |
leanum: 0 |
||||
leanum:0 |
|
||||
}, |
}, |
||||
{ |
{ |
||||
id:1, |
id: 1, |
||||
lea:'level2', |
lea: 'level2', |
||||
lea2:'Contribution', |
lea2: 'Contribution', |
||||
leanum:0.00 |
leanum: 0.00 |
||||
}, |
}, |
||||
], |
], |
||||
copyText:'', |
copyText: '', |
||||
invMore:false, |
invMore: false, |
||||
appl:false, |
appl: false, |
||||
msShow:false, |
msShow: false, |
||||
} |
} |
||||
}, |
}, |
||||
onLoad() { |
onLoad() { |
||||
|
const post = api.inviteCode({ |
||||
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
|
||||
uni.request({ |
|
||||
url: '/start/api/user/inviteCode', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
}, |
}) |
||||
header: { |
post.then(res => { |
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
this.inviteRule = res.data; |
||||
}, |
this.copyText = this.inviteRule.qrcodeUrl; |
||||
method: 'POST', //请求方式 或GET,必须为大写 |
console.log(res.data, 9999); |
||||
success: (res) => { |
}) |
||||
this.inviteRule=res.data.data |
.catch(e => { |
||||
this.copyText=this.inviteRule.qrcodeUrl; |
uni.showToast({ |
||||
console.log(res.data,9999); |
title: e, |
||||
}, |
icon: 'none', |
||||
fail: (res) => { |
duration: 2500 |
||||
console.log(res.errMsg); |
}) |
||||
} |
}) |
||||
}); |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
goInviteRule(){ |
goInviteRule() { |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url:'../rule/inviteRule/index' |
url: '../rule/inviteRule/index' |
||||
}) |
}) |
||||
}, |
}, |
||||
applyAll(){ |
applyAll() { |
||||
this.tranAmt=this.inviteRule.bonusCapital; |
this.tranAmt = this.inviteRule.bonusCapital; |
||||
}, |
}, |
||||
bountOut(){ |
bountOut() { |
||||
uni.request({ |
const post = api.bonusOut({ |
||||
url: '/start/api/summary/bonusOut', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
"tranAmt":this.tranAmt, |
"tranAmt": this.tranAmt, |
||||
}, |
}) |
||||
header: { |
post.then(res => { |
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
if (res != undefined) { |
||||
}, |
if (res.success == true) { |
||||
method: 'POST', //请求方式 或GET,必须为大写 |
|
||||
|
|
||||
success: (res) => { |
|
||||
if(res.data!=''){ |
|
||||
if(res.data.success==true){ |
|
||||
uni.showToast({ |
uni.showToast({ |
||||
title: 'Commission successfully transferred out to balance', |
title: 'Commission successfully transferred out to balance', |
||||
icon: 'success', |
icon: 'success', |
||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
}else{ |
} else { |
||||
uni.showToast({ |
uni.showToast({ |
||||
title:res.data.errMsg , |
title: res.data.errMsg, |
||||
icon: 'none', |
icon: 'none', |
||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
} |
} |
||||
} |
} |
||||
|
}) |
||||
|
.catch(e => { |
||||
}, |
|
||||
fail: (res) => { |
|
||||
uni.showToast({ |
uni.showToast({ |
||||
title:res.data.errMsg , |
title: e, |
||||
icon: 'none', |
icon: 'none', |
||||
duration: 1500 |
duration: 2500 |
||||
}) |
}) |
||||
} |
}) |
||||
}); |
|
||||
}, |
}, |
||||
goProRe(){ |
goProRe() { |
||||
uni.reLaunch({ |
uni.reLaunch({ |
||||
url:'./promotionRecord/index' |
url: './promotionRecord/index' |
||||
}) |
}) |
||||
}, |
}, |
||||
goBouns(){ |
goBouns() { |
||||
uni.reLaunch({ |
uni.reLaunch({ |
||||
url:'./bounsRecord/index' |
url: './bounsRecord/index' |
||||
}) |
}) |
||||
}, |
}, |
||||
applyRecord(){ |
applyRecord() { |
||||
uni.reLaunch({ |
uni.reLaunch({ |
||||
url:'./applyRecord/index' |
url: './applyRecord/index' |
||||
}) |
}) |
||||
}, |
}, |
||||
copyTextMethod(){ |
copyTextMethod() { |
||||
|
|
||||
this.$copyText(this.copyText).then(res => { |
this.$copyText(this.copyText).then(res => { |
||||
uni.showToast({ |
uni.showToast({ |
||||
@ -226,8 +210,8 @@ |
|||||
}) |
}) |
||||
}) |
}) |
||||
}, |
}, |
||||
leaIdChange(index){ |
leaIdChange(index) { |
||||
this.leaId=index; |
this.leaId = index; |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
|
Loading…
Reference in new issue