Browse Source

计算提交

master
fan 4 years ago
parent
commit
e8bafe2a96
  1. 2
      components/balance/balance.vue
  2. 273
      components/cont/cont.vue
  3. 296
      components/gamecont/gamecont.vue
  4. 9
      components/gamecont2/gamecont2.vue
  5. 2
      components/gamecont3/gamecont3.vue
  6. 124
      pages/login/index.vue
  7. 294
      pages/login/resetPassword/index.vue
  8. 365
      pages/menu/My/index.vue
  9. 98
      pages/menu/color/index.css
  10. 322
      pages/menu/color/index.vue
  11. 51
      pages/menu/index/index.vue
  12. 39
      pages/menu/promotion/applyRecord/index.vue
  13. 72
      pages/menu/promotion/bounsRecord/index.vue
  14. 252
      pages/menu/promotion/index.vue
  15. 58
      pages/menu/promotion/promotionRecord/index.vue
  16. 30
      pages/menu/recharge/index.css
  17. 223
      pages/menu/recharge/index.vue
  18. 30
      pages/menu/recharge/rechargeRule.vue
  19. 49
      pages/menu/recharge/record/index.vue
  20. 33
      pages/menu/rule/index.vue
  21. 36
      pages/menu/rule/inviteRule/index.vue
  22. 109
      pages/menu/withdrawl/index.vue
  23. 42
      pages/menu/withdrawl/transactions/index.vue
  24. 40
      pages/menu/withdrawl/withdrawlRecord/index.vue
  25. 116
      pages/register/index.vue
  26. 3
      utils/api.js
  27. 33
      utils/axios.js

2
components/balance/balance.vue

@ -6,7 +6,7 @@
</view>
<view class="rq flex">
<view class="index-p1">
<span class="category-sigh">{{currencySymbol}}</span> <span>{{currentBalance}}</span>
<span class="category-sigh">{{currencySymbol}} </span><span>{{currentBalance}}</span>
</view>
<view class="index-a1" @click="sendMegToIndex">
Recharge

273
components/cont/cont.vue

@ -1,6 +1,5 @@
<template>
<view class="flex">
<<<<<<< HEAD
<view class="my-cont" @click="keCode=1">
<image src="../../static/home/[email protected]" mode=""></image>
</view>
@ -9,67 +8,58 @@
<view class="title">
<image src="../../static/color/pop_icon_service@2x(1).png" mode="aspectFit" class="img1"></image>
<p>matis</p>
=======
<view class="my-cont" @click="keCode=1">
<image src="../../static/home/[email protected]" mode=""></image>
>>>>>>> 568bf6045ac1252bb15844d528ceabdb0f66ad2f
<p>Customer Service</p>
</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 class="tc_body">
<view class="p1">
{{serviceTime}}
</view>
<view class="tc_body">
<view class="p1">
Sen assistente ao vivo e sempre a seu servico.
</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>
<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 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>
<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>
</scroll-view>
</view>
</view>
</scroll-view>
<image src="../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0">
</image>
</view>
<image src="../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0"></image>
</view>
</view>
</template>
<script>
const COMPONENT_NAME = 'cont'
export default {
name: COMPONENT_NAME,
// props:["teList","whatAppList"],
// props:["teList","whatAppList"],
data() {
return {
keCode: 0,
teList: [],
whatAppList: [],
keCode:0,
teList:[],
whatAppList:[],
serviceTime:'',
}
},
computed: {
},
mounted() {
const siteTelegram = uni.getStorageSync('siteInfo').siteTelegram;
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(',')
@ -81,161 +71,144 @@
}
},
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)
})
gotoWeb(gotoUrl) {
// #ifdef H5
window.location.href = gotoUrl
// #endif
// #ifdef APP-PLUS
var networkType = ''
uni.getNetworkType({
success: function(res) {
networkType = res.networkType
}
// #endif
},
getLink(item) {
return item.replace(item.split(':')[0] + ':', '')
},
getName(item) {
console.log(item, 20000);
return item.split(':')[0]
});
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]
}
},
}
</script>
<style>
.item {
.item{
margin-top: 60rpx;
/* height: 380rpx;
/* height: 380rpx;
overflow-y: scroll;
overflow-x: hidden; */
}
.img2 {
.img2{
width: 60rpx;
height: 60rpx;
}
.p2 {
.p2{
font-size: 28rpx;
color: #303133FF;
margin-left: 20rpx;
}
.p1 {
.p1{
font-size: 28rpx;
color: #606266FF;
}
.colseKefu {
.colseKefu{
position: absolute;
right: 36rpx;
top: 36rpx;
width: 36rpx;
height: 36rpx;
}
.img1 {
.img1{
display: block;
margin: 0 auto;
width: 108rpx;
height: 108rpx;
}
.content {
position: relative;
}
.title {
text-transform: capitalize;
font-size: 28rpx;
color: #954DE3FF;
text-align: center;
}
.title p {
margin-top: 18rpx;
}
.body_item {
display: flex;
align-items: center;
padding-bottom: 40rpx;
}
.body_item_info {
font-size: 28rpx;
color: #606266;
text-transform: capitalize;
margin-top: 28rpx;
margin-bottom: 20rpx;
}
.tc {
width: 600rpx;
background-color: #fff;
border-radius: 24rpx;
padding-top: 48rpx;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 999;
}
.tc_body {
padding: 48rpx 36rpx;
padding-bottom: 0rpx;
position: relative;
}
.tc_body::before {
content: '';
position: absolute;
top: 20rpx;
left: 50%;
transform: translateX(-50%);
width: 100%;
height: 2rpx;
background-color: #EDEFF2FF;
}
.my-cont {
.content{
position: relative;
}
.title{
text-transform: capitalize;
font-size: 28rpx;
color: #954DE3FF;
text-align: center;
}
.title p{
margin-top: 18rpx;
}
.body_item{
display: flex;
align-items: center;
padding-bottom: 40rpx;
}
.body_item_info{
font-size: 28rpx;
color: #606266;
text-transform: capitalize;
margin-top: 28rpx;
margin-bottom: 20rpx;
}
.tc{
width: 600rpx;
background-color: #fff;
border-radius: 24rpx;
padding-top: 48rpx;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
z-index: 999;
}
.tc_body{
padding: 48rpx 36rpx;
padding-bottom: 0rpx;
position: relative;
}
.tc_body::before{
content: '';
position: absolute;
top: 20rpx;
left: 50%;
transform: translateX(-50%);
width: 100%;
height: 2rpx;
background-color: #EDEFF2FF;
}
.my-cont{
width: 180rpx;
height: 180rpx;
position: fixed;
top: 75%;
right: 0;
}
.my-cont image {
.my-cont image{
width: 100%;
height: 100%;
}
.flex {
.flex{
align-items: center;
}
.flex .my-cont {
.flex .my-cont{
margin-left: auto;
}

296
components/gamecont/gamecont.vue

@ -46,308 +46,55 @@
frequency
</view>
<view class="num_con">
<view class="num">
6
</view>
<view class="num">
3
</view>
<view class="num">
26
</view>
<view class="num">
7
</view>
<view class="num">
19
</view>
<view class="num">
9
</view>
<view class="num">
8
</view>
<view class="num">
12
</view>
<view class="num">
1
</view>
<view class="num">
0
<view class="num" v-for="item,index in lotteryNumResult" :key="item">
{{item}}
</view>
</view>
</view>
</view>
<view class="conttwo">
<view class="contone_item contone_item2">
<view class="contone_item contone_item2" v-for="item,index in gameRecordCont" :key="item.period">
<view class="miss">
20210602234
{{item.period}}
</view>
<view class="num_con">
<view class="num2">
6
</view>
<view class="num2">
3
</view>
<view class="num2">
26
</view>
<view class="num2">
7
</view>
<view class="num2">
19
</view>
<view class="num2">
9
</view>
<view class="num2">
8
</view>
<view class="num2">
12
</view>
<view class="num2">
1
</view>
<view class="num2">
0
</view>
</view>
</view>
<view class="contone_item contone_item2">
<view class="miss">
20210602233
</view>
<view class="num_con">
<view class="num2">
6
</view>
<view class="num2">
3
</view>
<view class="num2">
26
</view>
<view class="num2">
7
</view>
<view class="num2">
19
</view>
<view class="num2 green">
9
</view>
<view class="num2">
8
</view>
<view class="num2">
12
</view>
<view class="num2">
1
</view>
<view class="num2">
0
</view>
</view>
</view>
<view class="contone_item contone_item2">
<view class="miss">
20210602232
</view>
<view class="num_con">
<view class="num2">
6
</view>
<view class="num2">
3
</view>
<view class="num2">
26
</view>
<view class="num2">
7
</view>
<view class="num2">
19
</view>
<view class="num2">
9
</view>
<view class="num2">
8
</view>
<view class="num2">
12
</view>
<view class="num2">
1
</view>
<view class="num2">
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==0?item.lotteryColor:'')},{color:(item.lotteryResult==0?white:'')}]">
0
</view>
</view>
</view>
<view class="contone_item contone_item2">
<view class="miss">
20210602231
</view>
<view class="num_con">
<view class="num2">
6
</view>
<view class="num2">
3
</view>
<view class="num2">
26
</view>
<view class="num2">
7
</view>
<view class="num2">
19
</view>
<view class="num2">
9
</view>
<view class="num2">
8
</view>
<view class="num2">
12
</view>
<view class="num2">
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==1?item.lotteryColor:'')},{color:(item.lotteryResult==1?white:'')}]" >
1
</view>
<view class="num2">
0
</view>
</view>
</view>
<view class="contone_item contone_item2">
<view class="miss">
20210602230
</view>
<view class="num_con">
<view class="num2">
6
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==2?item.lotteryColor:'')},{color:(item.lotteryResult==2?white:'')}]">
2
</view>
<view class="num2">
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==3?item.lotteryColor:'')},{color:(item.lotteryResult==3?white:'')}]">
3
</view>
<view class="num2">
26
</view>
<view class="num2">
7
</view>
<view class="num2">
19
</view>
<view class="num2">
9
</view>
<view class="num2">
8
</view>
<view class="num2">
12
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==4?item.lotteryColor:'')},{color:(item.lotteryResult==4?white:'')}]">
4
</view>
<view class="num2">
1
</view>
<view class="num2">
0
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==5?item.lotteryColor:'')},{color:(item.lotteryResult==5?white:'')}]">
5
</view>
</view>
</view>
<view class="contone_item contone_item2">
<view class="miss">
20210602229
</view>
<view class="num_con">
<view class="num2 red">
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==6?item.lotteryColor:'')},{color:(item.lotteryResult==6?white:'')}]">
6
</view>
<view class="num2">
3
</view>
<view class="num2">
26
</view>
<view class="num2">
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==7?item.lotteryColor:'')},{color:(item.lotteryResult==7?white:'')}]">
7
</view>
<view class="num2">
19
</view>
<view class="num2">
9
</view>
<view class="num2">
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==8?item.lotteryColor:'')},{color:(item.lotteryResult==8?white:'')}]">
8
</view>
<view class="num2">
12
</view>
<view class="num2">
1
</view>
<view class="num2">
0
</view>
</view>
</view>
<view class="contone_item contone_item2">
<view class="miss">
20210602228
</view>
<view class="num_con">
<view class="num2">
6
</view>
<view class="num2 bg_jb1">
3
</view>
<view class="num2">
26
</view>
<view class="num2">
7
</view>
<view class="num2">
19
</view>
<view class="num2">
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==9?item.lotteryColor:'')},{color:(item.lotteryResult==9?white:'')}]">
9
</view>
<view class="num2">
8
</view>
<view class="num2">
12
</view>
<view class="num2">
1
</view>
<view class="num2 bg_jb1">
0
</view>
</view>
</view>
</view>
<cont class="test"></cont>
<view class="morejia">
<p class="">More</p>
<image src="../../static/color/loading_icon_ins@3x(20).png" mode=""></image>
</view>
</view>
</view>
@ -357,11 +104,12 @@
import cont from "../cont/cont.vue"
const COMPONENT_NAME = 'gamecont'
export default {
props:["gameRecordCont","lotteryNumResult"],
name: COMPONENT_NAME,
data() {
return {
white:'white',
}
},
computed: {
@ -403,6 +151,7 @@
text-align: center;
font-size: 28rpx;
color: #303133;
margin:0 10rpx;
}
.num_con{
width: 514rpx;
@ -412,6 +161,7 @@
}
.miss{
width: 236rpx;
overflow-x: scroll;
color: #606266;
font-size: 28rpx;
text-transform: capitalize;

9
components/gamecont2/gamecont2.vue

@ -17,7 +17,7 @@
<view class="cont2_body">
<view class="bodycon flex" v-for="(item,index) in gameRecordCont">
<view class="body_item item">
<view class="body_item item one">
{{item.period}}
</view>
<view class="body_item item">
@ -33,7 +33,7 @@
</view>
<cont class="test"></cont>
<!-- <cont class="test"></cont> -->
<view class="morejia">
<p class="">More</p>
<image src="../../static/color/loading_icon_ins@3x(20).png" mode=""></image>
@ -67,6 +67,11 @@
<style>
.one{
overflow-x: scroll;
overflow-y: hidden;
}
.flex2{
display: flex;
justify-content: center;

2
components/gamecont3/gamecont3.vue

@ -101,7 +101,7 @@
</view>
</view>
<cont class="test"></cont>
<!-- <cont class="test"></cont> -->
<view class="morejia">
<p class="">More</p>
<image src="../../static/color/loading_icon_ins@3x(20).png" mode=""></image>

124
pages/login/index.vue

@ -86,33 +86,15 @@
this.logoUrl = this.siteInfoData.siteDomain + this.siteInfoData.siteLogo
this.siteName = this.siteInfoData.siteName
// const ticket = this.$store.state.ticket
<<<<<<< HEAD
const ticket= uni.getStorageSync('logInfo').data;
console.log(ticket,7777777777777777777)
// if(ticket != undefined){
// if(ticket != ''){
// uni.reLaunch({
// url: '../menu/index/index'
// })
// }else{
// // location.reload()
// }
=======
const ticket = uni.getStorageSync('logInfo').data;
console.log(ticket, 7777777777777777777)
// if (ticket) {
// uni.reLaunch({
// url: '../menu/index/index'
// })
// } else {
// // location.reload()
// }
>>>>>>> 568bf6045ac1252bb15844d528ceabdb0f66ad2f
},
methods: {
btnControl() {
@ -172,65 +154,57 @@
}
uni.request({
url: '/start/api/user/login',
data: {
"mobile": this.mobile,
'password': md5(this.password),
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
var that = this;
if (res.data.errCode == "SUCCESS") {
uni.setStorage({
key: 'logInfo',
data: res.data,
success: function() {
console.log('success')
}
});
uni.setStorage({
key: 'loginMobile',
data: this.mobile,
success: function() {
console.log('success', 8686668)
}
});
uni.showToast({
title: 'Successful login',
icon: 'success',
duration: 1500
})
setTimeout(function() {
uni.reLaunch({
url: '../menu/index/index'
})
}, 1500)
console.log(uni.getStorageSync('logInfo').data, 66666666666666666666)
} else {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 2500
})
}
const post = api.login({
"mobile": this.mobile,
'password': md5(this.password),
})
post.then(res => {
var that = this;
if (res.errCode == "SUCCESS") {
},
fail: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 2500
uni.setStorage({
key: 'logInfo',
data: res,
success: function() {
console.log('success')
}
});
uni.setStorage({
key: 'loginMobile',
data: this.mobile,
success: function() {
console.log('success', 8686668)
}
});
uni.showToast({
title: 'Successful login',
icon: 'success',
duration: 1500
})
setTimeout(function() {
uni.reLaunch({
url: '../menu/index/index'
})
console.log(res.data);
}
});
}, 1500)
console.log(uni.getStorageSync('logInfo').data, 66666666666666666666)
} else {
uni.showToast({
title: res.errMsg,
icon: 'none',
duration: 2500
})
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}

294
pages/login/resetPassword/index.vue

@ -10,7 +10,8 @@
<span class="quhao">+{{areacode}}</span>
</view>
<input type="text" value="" placeholder="mobile number"
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" v-model="mobile" @input="btnControl"/>
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" v-model="mobile"
@input="btnControl" />
</view>
<view class="input-item flex">
<view class="login-sigh login-sigh2 flex">
@ -27,23 +28,23 @@
</view>
</view>
<view class="input-item flex">
<view class="login-sigh login-sigh2 flex">
<view class="imgcon">
<image src="../../../static/login/[email protected]" mode=""></image>
</view>
<view class="input-item flex">
<view class="login-sigh login-sigh2 flex">
<view class="imgcon">
<image src="../../../static/login/[email protected]" mode=""></image>
</view>
<input value="" placeholder="Verification code"
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;"
v-model="infoCode" />
<view class="wrap">
<u-toast ref="uToast"></u-toast>
<u-verification-code :seconds="seconds" ref="uCode" @change="codeChange"
start-text="OTP" change-text="xs" end-text="OTP"></u-verification-code>
<u-button @tap="getCode" style="color: #954DE3FF; border-radius: 4px;font-size: 15px;width: 20px; height: 24px;line-height: 40px;">{{tips}}</u-button>
</view>
<input value="" placeholder="Verification code"
placeholder-style="color: #BFC2CCFF;font-size:14px;"
v-model="infoCode" />
<view class="wrap">
<u-toast ref="uToast"></u-toast>
<u-verification-code :seconds="seconds" ref="uCode" @change="codeChange"
start-text="OTP" change-text="xs" end-text="OTP"></u-verification-code>
<u-button @tap="getCode" style="color: #954DE3FF; border-radius: 4px;font-size: 15px;width: 20px; height: 24px;line-height: 40px;">{{tips}}</u-button>
</view>
</view>
</view>
<view class="input-item flex">
<view class="login-sigh login-sigh2 flex">
<view class="imgcon">
@ -54,7 +55,8 @@
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;"
v-model="newPassword" />
</view>
<button class="login-btn" @click="resetPassword()" :class="btnNum==1?'on':''" :disabled="btnNum==1?false:true">
<button class="login-btn" @click="resetPassword()" :class="btnNum==1?'on':''"
:disabled="btnNum==1?false:true">
Continue
</button>
@ -79,7 +81,7 @@
infoCode: '',
picCode: '',
areacode: '',
btnNum:0,
btnNum: 0,
}
},
@ -90,121 +92,113 @@
},
methods: {
btnControl(){
this.btnNum=1;
if(this.mobile==''){
this.btnNum=0;
}
codeChange(text) {
this.tips = text;
},
btnControl() {
this.btnNum = 1;
if (this.mobile == '') {
this.btnNum = 0;
}
},
getCode() {
if (this.picCode == '') {
uni.showToast({
title: 'The graphic verification code is empty',
icon: 'none',
duration: 1500
})
return;
}
if (this.mobile == '') {
uni.showToast({
title: 'Please input mobile phone number',
icon: 'none',
duration: 1500
})
return;
}
var a = /^[0-9]{9}$/;
if (!a.test(this.mobile)) {
uni.showToast({
title: 'Wrong format of mobile phone number',
icon: 'none',
duration: 1500
})
return;
}
if (this.$refs.uCode.canGetCode) {
//
uni.showLoading({
title: 'Getting captcha'
})
getCode() {
if (this.picCode == '') {
uni.showToast({
title: 'The graphic verification code is empty',
icon: 'none',
duration: 1500
})
return;
}
if (this.mobile == '') {
uni.showToast({
title: 'Please input mobile phone number',
icon: 'none',
duration: 1500
})
return;
}
var a = /^[0-9]{4,14}$/;
if (!a.test(this.mobile)) {
uni.showToast({
title: 'Wrong format of mobile phone number',
icon: 'none',
duration: 1500
})
return;
}
if (this.$refs.uCode.canGetCode) {
//
uni.showLoading({
title: 'Getting captcha'
})
setTimeout(() => {
uni.hideLoading();
this.$refs.uCode.start();
}, 2000);
this.countryCode = uni.getStorageSync('siteInfo').countryCode
uni.request({
url: '/start/api/home/sendSmsCode',
data: {
setTimeout(() => {
uni.hideLoading();
this.$refs.uCode.start();
}, 2000);
this.countryCode = uni.getStorageSync('siteInfo').countryCode
const post = api.sendSmsCode({
"mobile": this.mobile,
"mark": this.mark,
"countryCode": this.countryCode,
"code": this.picCode
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 2500
})
post.then(res => {
var that = this;
uni.showToast({
title: res.errMsg,
icon: 'none',
duration: 2500
})
})
console.log(res.data);
},
fail: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 2500
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
console.log(res.data);
}
});
} else {
this.$u.toast('Send after the countdown');
}
} else {
this.$u.toast('Send after the countdown');
}
},
},
getPicCode() {
this.imgcodeUrl = "/start/api/home/imgCode?uuid=" + this.$u.guid(20);
console.log();
console.log(this.imgcodeUrl)
},
resetPassword() {
var a= /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,19}$/;
var a = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,19}$/;
if(this.mobile==''){
uni.showToast({
title: 'Please input mobile phone number',
icon: 'none',
duration: 1500
})
return;
}
var a= /^[0-9]{4,14}$/;
if(!a.test(this.mobile)){
uni.showToast({
title: 'Wrong format of mobile phone number',
icon: 'none',
duration: 1500
})
return;
}
if (this.infoCode == '') {
uni.showToast({
title: ' Please enter the SMS verification code',
icon: 'none',
duration: 1500
})
return;
}
if (this.mobile == '') {
uni.showToast({
title: 'Please input mobile phone number',
icon: 'none',
duration: 1500
})
return;
}
var a = /^[0-9]{4,14}$/;
if (!a.test(this.mobile)) {
uni.showToast({
title: 'Wrong format of mobile phone number',
icon: 'none',
duration: 1500
})
return;
}
if (this.infoCode == '') {
uni.showToast({
title: ' Please enter the SMS verification code',
icon: 'none',
duration: 1500
})
return;
}
if (this.picCode == '') {
uni.showToast({
@ -214,7 +208,7 @@
})
return;
}
if(!a.test(this.newPassword)){
if (!a.test(this.newPassword)) {
uni.showToast({
title: 'Incorrect password format,a password requires a combination of numbers and letters',
icon: 'none',
@ -222,48 +216,34 @@
})
return;
}
uni.request({
url: '/start/api/user/forgotPassword',
data: {
// "ticket":uni.getStorageSync('logInfo').data,
// "oldPassword": uni.getStorageSync('logInfo').password,
// "newPassword":this.nwePassword,
// "confirmNewPassword": this.nwePassword
'mobile': this.mobile,
'code': this.infoCode,
'newPassword': this.newPassword,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
if(res.data.errCode=='SUCCESS'){
uni.showToast({
title: 'Password modified successfully',
icon: 'success',
duration: 1500
})
}else{
uni.showToast({
title: res.data.errMsg,
icon: '',
duration: 1500
})
}
console.log(res.data);
},
fail: (res) => {
uni.showToast({
title: res.errMsg,
icon: '',
duration: 1500
})
}
});
const post = api.forgotPassword({
'mobile': this.mobile,
'code': this.infoCode,
'newPassword': this.newPassword,
})
post.then(res => {
if (res.errCode == 'SUCCESS') {
uni.showToast({
title: 'Password modified successfully',
icon: 'success',
duration: 1500
})
} else {
uni.showToast({
title: res.errMsg,
icon: '',
duration: 1500
})
}
console.log(res.data);
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}
},
}

365
pages/menu/My/index.vue

@ -4,7 +4,7 @@
<view class="my-info">
<view class="my-a">
<view class="my-img">
<!-- <img :src=`http://openweathermap.org/img/w/${item.weather[0].icon}.png`> -->
<!-- <img :src=`http://openweathermap.org/img/w/${item.weather[0].icon}.png`> -->
<image :src="'https://apitest.luck-work.com/'+MyInfo.headImgPath" mode=""></image>
</view>
@ -17,84 +17,84 @@
</view>
</view>
</view>
<view class="my-b">
<view class="my-tel">
Mobile: +{{areaCode}} {{MyInfo.mobile}}
</view>
<view class="my-bal flex">
<view>Available Balance: {{currentBalance}}</view>
<!-- <view class="my-ap">
<view class="my-b">
<view class="my-tel">
Mobile: +{{areaCode}} {{MyInfo.mobile}}
</view>
<view class="my-bal flex">
<view>Available Balance: {{currentBalance}}</view>
<!-- <view class="my-ap">
A+ Plan
</view> -->
</view>
</view>
</view>
<view class="my-c flex">
<view class="my-btn1" @click="goRecharge()">
recharge
</view>
<view class="my-btn2" @click="goWithdraw">
Withdraw
<view class="my-c flex">
<view class="my-btn1" @click="goRecharge()">
recharge
</view>
<view class="my-btn2" @click="goWithdraw">
Withdraw
</view>
</view>
</view>
</view>
</view>
<view class="my-bg">
<view class="my-body">
<view class="my-body-item" v-for="(item,index) in myAList" :key="item.id" @click="go(index)">
{{item.text}}
</view>
</view>
<view class="my-body-out" @click="logout">
logout
</view>
<cont></cont>
<view class="my-bg">
<view class="my-body">
<view class="my-body-item" v-for="(item,index) in myAList" :key="item.id" @click="go(index)">
{{item.text}}
</view>
</view>
</view>
<view class="my-body-out" @click="logout">
logout
</view>
<cont></cont>
<u-mask :show="transferCode==1" :z-index="888"></u-mask>
<view class="tc" v-show="transferCode==1">
<view class="title">
change name
</view>
<view class="tc_body">
<view class="body_item ">
<input type="text" value="" placeholder="New user name"
placeholder-style="color: #BFC2CC;font-size:14px;text-transform: capitalize;padding-left:24rpx" v-model="newName"/>
<u-mask :show="transferCode==1" :z-index="888"></u-mask>
<view class="tc" v-show="transferCode==1">
<view class="title">
change name
</view>
</view>
<view class="anniu_con flex">
<view class="cancel" @click="transferCode=0">
cancel
<view class="tc_body">
<view class="body_item ">
<input type="text" value="" placeholder="New user name"
placeholder-style="color: #BFC2CC;font-size:14px;text-transform: capitalize;padding-left:24rpx"
v-model="newName" />
</view>
</view>
<view class="cancel pupler" @click="changeName()">
confirm
<view class="anniu_con flex">
<view class="cancel" @click="transferCode=0">
cancel
</view>
<view class="cancel pupler" @click="changeName()">
confirm
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import api from '@/utils/api'
import utils from '@/utils'
import cont from "@/components/cont/cont.vue"
export default{
data(){
return{
newName:'',
MyInfo:{},
transferCode:0,
currentBalance:'',
areaCode:'',
androidUrl:'',
myAList:[
{
id:'3',
text:'Change Nick Name'
export default {
data() {
return {
newName: '',
MyInfo: {},
transferCode: 0,
currentBalance: '',
areaCode: '',
androidUrl: '',
myAList: [{
id: '3',
text: 'Change Nick Name'
},
// {
// id:'1',
@ -109,177 +109,178 @@
// text:'Address'
// },
{
id:'4',
text:'Reset password'
id: '4',
text: 'Reset password'
},
{
id:'5',
text:'Android download'
id: '5',
text: 'Android download'
},
],
}
},
}
},
onLoad() {
this.areaCode = uni.getStorageSync('siteInfo').areaCode;
this.androidUrl = uni.getStorageSync('siteInfo').androidUrl;
console.log(this.androidUrl,78)
this.currentBalance=uni.getStorageSync('currentBalance');
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
uni.request({
url: '/start/api/user/userInfo',
data: {
this.areaCode = uni.getStorageSync('siteInfo').areaCode;
this.androidUrl = uni.getStorageSync('siteInfo').androidUrl;
console.log(this.androidUrl, 78)
this.currentBalance = uni.getStorageSync('currentBalance');
this.currencySymbol = uni.getStorageSync('siteInfo').currencySymbol;
const post = api.userInfo({
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.MyInfo=res.data.data;
console.log(this.MyInfo,9990);
uni.setStorage({
key: 'MyInfo',
data: res.data.data,
success: function() {
console.log('success')
}
});
console.log(res.data)
},
fail: (res) => {
console.log(res.data);
}
});
})
post.then(res => {
this.MyInfo = res.data;
console.log(this.MyInfo, 9990);
uni.setStorage({
key: 'MyInfo',
data: res.data,
success: function() {
console.log('success')
}
});
console.log(res.data)
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
methods:{
go(i){
if(i==0){
this.transferCode=1
}
if(i==1){
uni.reLaunch({
url:'../../login/resetPassword/index'
})
}
if(i==2){
console.log(this.androidUrl)
uni.navigateTo({
url:this.androidUrl
})
}
},
changeName(){
uni.showLoading({
title:"loading"
})
if(this.newName==''){
methods: {
go(i) {
if (i == 0) {
this.transferCode = 1
}
if (i == 1) {
uni.navigateTo({
url: '../../login/resetPassword/index'
})
}
if (i == 2) {
console.log(this.androidUrl)
uni.navigateTo({
url: this.androidUrl
})
}
},
changeName() {
uni.showLoading({
title: "loading"
})
if (this.newName == '') {
uni.showToast({
title: 'The new user name cannot be empty',
icon: 'none',
icon: 'none',
duration: 1500
})
return;
}
uni.request({
url: '/start/api/user/updateNickname',
data: {
"ticket": uni.getStorageSync('logInfo').data,
"nickname":this.newName,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
if(res.data.success==true){
uni.showToast({
title: 'Modified successfully',
icon: 'success',
duration: 1500
})
setTimeout(function(){
location.reload();
},1000)
}else{
uni.showToast({
title: 'Modification failed',
icon: 'none',
duration: 1500
})
}
console.log(res.data,9990);
},
fail: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 1500
})
const post = api.updateNickname({
"ticket": uni.getStorageSync('logInfo').data,
"nickname": this.newName,
})
post.then(res => {
if (res.success == true) {
uni.showToast({
title: 'Modified successfully',
icon: 'success',
duration: 1500
})
setTimeout(function() {
location.reload();
}, 1000)
} else {
uni.showToast({
title: 'Modification failed',
icon: 'none',
duration: 1500
})
}
});
console.log(res.data, 9990);
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
goRecharge(){
goRecharge() {
uni.reLaunch({
url:'../recharge/index'
url: '../recharge/index'
})
},
goWithdraw(){
goWithdraw() {
uni.navigateTo({
url:'../withdrawl/index'
url: '../withdrawl/index'
})
},
logout(){
const param = {
"ticket": uni.getStorageSync('logInfo').data,
}
const post = api.loginOut(param)
post.then(res => {
logout() {
const param = {
"ticket": uni.getStorageSync('logInfo').data,
}
const post = api.loginOut(param)
post.then(res => {
uni.showLoading({
title:'loading'
title: 'loading'
})
if(res.data.success==true){
if (res.data.success == true) {
uni.showToast({
title: 'Log out successfully',
icon: 'success',
icon: 'success',
duration: 1500
})
uni.removeStorageSync('logInfo');
uni.removeStorageSync('ticket')
setTimeout(function(){
uni.reLaunch({
url:'../../login/index'
})
},2000)
uni.removeStorageSync('logInfo');
uni.removeStorageSync('ticket')
setTimeout(function() {
uni.reLaunch({
url: '../../login/index'
})
}, 2000)
}else{
} else {
uni.showToast({
title: 'Exit failed',
icon: 'none',
icon: 'none',
duration: 1500
})
}
console.log(res.data,9990);
console.log(res.data, 9990);
})
.catch(e => {
console.log(e)
})
})
.catch(e => {
console.log(e)
})
}
}
},
}
</script>
<style>
@import './index.css';
@import './index.css';
</style>

98
pages/menu/color/index.css

@ -2,6 +2,104 @@
.content{
position: relative;
}
.item{
margin-top: 60rpx;
/* height: 380rpx;
overflow-y: scroll;
overflow-x: hidden; */
}
.img2{
width: 60rpx;
height: 60rpx;
}
.p2{
font-size: 28rpx;
color: #303133FF;
margin-left: 20rpx;
}
.p1{
font-size: 28rpx;
color: #606266FF;
}
.colseKefu{
position: absolute;
right: 36rpx;
top: 36rpx;
width: 36rpx;
height: 36rpx;
}
.img1{
display: block;
margin: 0 auto;
width: 108rpx;
height: 108rpx;
}
.title{
text-transform: capitalize;
font-size: 28rpx;
color: #954DE3FF;
text-align: center;
}
.title p{
margin-top: 18rpx;
}
.body_item{
display: flex;
align-items: center;
padding-bottom: 40rpx;
}
.body_item_info{
font-size: 28rpx;
color: #606266;
text-transform: capitalize;
margin-top: 28rpx;
margin-bottom: 20rpx;
}
.tc{
width: 600rpx;
background-color: #fff;
border-radius: 24rpx;
padding-top: 48rpx;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
z-index: 999;
}
.tc_body{
padding: 48rpx 36rpx;
padding-bottom: 0rpx;
position: relative;
}
.tc_body::before{
content: '';
position: absolute;
top: 20rpx;
left: 50%;
transform: translateX(-50%);
width: 100%;
height: 2rpx;
background-color: #EDEFF2FF;
}
.my-cont{
width: 180rpx;
height: 180rpx;
position: fixed;
top: 75%;
right: 0;
}
.my-cont image{
width: 100%;
height: 100%;
}
.flex{
align-items: center;
}
.flex .my-cont{
margin-left: auto;
}
.rules-btn{
font-size: 24rpx;
color: #FFFFFF;

322
pages/menu/color/index.vue

@ -1,7 +1,7 @@
<template>
<view class="content">
<navigation>color</navigation>
<balance @send="getSonValue">
<balance @send="getSonValue" :currencySymbol="currencySymbol" :currentBalance="currentBalance">
<view class="rules-btn" slot="rules" @click="goRule()">rules</view>
</balance>
<view class="bg_white">
@ -11,8 +11,6 @@
{{item.name}}
</view>
</view>
<view class="gameContent">
<view class="perCon">
<view class="perCoun flex">
@ -36,32 +34,26 @@
</view>
</view>
</view>
<view v-show="canBuy">
<view class="flex icon-con">
<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>
</view>
</view>
<view class="multiple">
<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)" :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">
@click="xiazhu(item.num)" :key="item.num" :class="item.cla">
{{item.num}}
</view>
</view>
</view>
</view>
<view class="canBuy" v-show="!canBuy">
<view class="flex icon-con">
@ -69,8 +61,6 @@
<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">
@ -84,13 +74,8 @@
</view>
</view>
</view>
</view>
<view class="donna flex">
<!-- <view class="donna flex">
<view class="flex info">
<view class="imgcon">
<image :src="'https://apitest.luck-work.com/'+myImgUrl" mode="aspectFit"></image>
@ -109,39 +94,20 @@
<view class="follow" @click="follow_xiazhu_conOn=1">
Follow
</view>
</view>
</view> -->
</view>
<view class="gameNav">
<view class="gameNav-item " v-for="item,index in gameNav2" :class="index==gameNavNum?'active':''"
:key="item.id" @click="gameNavMe(index)">
{{item.text}}
</view>
</view>
<gamecont v-if="gameNavNum==0"></gamecont>
<gamecont v-if="gameNavNum==0" :gameRecordCont="gameRecordCont" :lotteryNumResult="lotteryNumResult"></gamecont>
<gamecont2 :gameRecordCont="gameRecordCont" v-if="gameNavNum==1"></gamecont2>
<gamecont3 :myGameRecord="myGameRecord" v-if="gameNavNum==2"></gamecont3>
</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="xia_head">
<view class="tiao" @click="follow_xiazhu_conOn=0">
</view>
@ -261,7 +227,7 @@
</view>
</view>
</view>
</view> -->
@ -292,10 +258,10 @@
<view class="xname">
Number
</view>
<u-number-box v-model="bettingNumber"></u-number-box>
<u-number-box v-model="bettingNumber" @input="tmoney()"></u-number-box>
</view>
<view class="TotalMoney xname">
Total Contract Money is 50
Total Contract Money is {{touzhuMoney}}
</view>
<view class="agree">
<view class="">
@ -306,7 +272,6 @@
</view>
<span class="s1">I agree </span><span class="s2" @click="goRule">presale rule</span>
</view>
</view>
<view class="btn_con flex">
<view class="btn1 btn" @click="xiazhuCode=false">
@ -316,9 +281,8 @@
comfierm
</view>
</view>
</view>
<view class="tc" v-show="xiaSul==1">
<!-- <view class="tc" v-show="xiaSul==1">
<view class="title">
connfirm
</view>
@ -328,9 +292,56 @@
<view class="sul ok" @click="xiaSul=0">
OK
</view>
</view>
<u-mask :show="xiazhuCode" :z-index="10"></u-mask>
</view> -->
<u-mask :show="xiazhuCode" :z-index="10" @click="xiazhuCode=false"></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>
</template>
@ -347,7 +358,15 @@
export default {
data() {
return {
//
keCode:0,
teList:[],
whatAppList:[],
serviceTime:'',
touzhuMoney:0,
currencySymbol:'',
currentBalance:'',
gameNavNum: 0,
xiaSul: 0,
gsxia: 0,
@ -456,49 +475,97 @@
id: 3,
text: ''
},
]
],
totalPage2:'',
lotteryNum:[],
lotteryNumResult:[0,0,0,0,0,0,0,0,0,0],
}
},
onLoad() {
this.myName = uni.getStorageSync('MyInfo').nickname;
this.myImgUrl = uni.getStorageSync('MyInfo').headImgPath;
<<<<<<< HEAD
//
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime;
const siteTelegram = uni.getStorageSync('siteInfo').siteTelegram;
this.nextBtting();
uni.request({
url: '/start/api/lottery/lotteryClassList',
data: {
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
console.log(res.data.data, 888888888888)
this.colorList = res.data.data;
this.colorData=this.colorList[0];
this.gameNav2[1].text=this.colorData.name+" record"
this.gameNav2[2].text='My '+this.colorData.name+" record"
},
fail: (res) => {
console.log(res);
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.myImgUrl = uni.getStorageSync('MyInfo').headImgPath;
=======
this.getLotteryClassList();
//this.getBettingConfig();
>>>>>>> 568bf6045ac1252bb15844d528ceabdb0f66ad2f
this.getBettingConfig();
this.getLottertRecord();
//
const post = api.lotteryRecords({
"ticket": uni.getStorageSync('logInfo').data,
"classId": this.gg,
"pageNumber": 1,
"pageSize": 1277,
})
post.then(res => {
this.lotteryNum = res.data.content;
console.log(this.lotteryNum,666666666666666666666)
for (var i = 0; i < this.lotteryNum.length; i++) {
if(!this.lotteryNum[i].lotteryResult){
this.lotteryNumResult[0]=this.lotteryNumResult[0]+1;
}
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;
}
if(this.lotteryNum[i].lotteryResult==5){
this.lotteryNumResult[5]=this.lotteryNumResult[5]+1;
}
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() {
this.pageSize += 9;
@ -513,6 +580,46 @@
},
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() {
const post = api.bettingConfig({
"ticket": uni.getStorageSync('logInfo').data,
@ -546,9 +653,17 @@
},
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) {
this.canBuy = false
this.xiazhuCode=false
} else {
this.canBuy = true
}
@ -588,6 +703,8 @@
numColor(i, j) {
this.numindex = i;
this.bettingPrice = j;
this.touzhuMoney=j;
this.bettingNumber=1;
},
nextBtting(gNum) {
const post = api.nextLotteryPeriod({
@ -641,14 +758,38 @@
"bettingNumber": this.bettingNumber,
})
post.then(res => {
uni.showLoading({
title:'loading'
})
console.log(res.data)
if (res.data.success == true) {
this.xiaSul = 1;
if (res.success == true) {
// this.xiaSul = 1;
uni.showToast({
title: 'Successful bet',
icon: 'success',
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 {
uni.showToast({
title: res.data.errMsg,
@ -679,7 +820,7 @@
this.myGameRecord = res.data.content;
this.totalPage = res.data.totalElements;
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);
}
@ -704,12 +845,17 @@
}
this.gameRecordCont = res.data.content;
this.totalPage = res.data.totalElements;
this.totalPage2 = res.data.totalPages;
for (var i = 0; i < this.gameRecordCont.length; i++) {
this.gameRecordCont[i].period = this.gameRecordCont[i].period.substring(2, 13);
this.gameRecordCont[i].lotteryColor = this.gameRecordCont[i].lotteryColor.split(
',');
// this.gameRecordCont[i].period = this.gameRecordCont[i].period.substring(2, 13);
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 => {
console.log(e)
@ -718,8 +864,10 @@
},
gaClick(i, j) {
gaClick(i, j) {
console.log(j,8000000)
this.ganum = i
this.gNum = j;
this.colorData = this.colorList[i];

51
pages/menu/index/index.vue

@ -17,6 +17,7 @@
<script>
import Vue from 'vue';
import balance from "@/components/balance/balance.vue"
import api from '@/utils/api'
export default {
data() {
return {
@ -26,17 +27,12 @@
},
onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
uni.request({
url: '/start/api/withdraw/withdrawConfig',
data: {
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.currentBalance=res.data.data.currentBalance;
const post = api.withdrawConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
if(res.data!=undefined){
this.currentBalance=res.data.currentBalance;
uni.setStorage({
key: 'currentBalance',
data: this.currentBalance,
@ -44,11 +40,36 @@
console.log('success')
}
});
},
fail: (res) => {
console.log(res.data);
}
});
})
.catch(e => {
console.log(e)
})
const post2 = api.userInfo({
"ticket": uni.getStorageSync('logInfo').data,
})
post2.then(res => {
uni.setStorage({
key: 'MyInfo',
data: res.data,
success: function() {
console.log('success')
}
});
console.log(res.data)
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
methods: {
getSonValue(){

39
pages/menu/promotion/applyRecord/index.vue

@ -70,34 +70,33 @@
this.getBounsRecord();
},
getBounsRecord(){
uni.request({
url: '/start/api/summary/bonusOutRecords',
data: {
"ticket": uni.getStorageSync('logInfo').data,
"pageNumber": 1,
"pageSize": 20,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
if(res.data.data.content!=''){
this.promotionRecord=res.data.data.content;
const post = api.bonusOutRecords({
"ticket": uni.getStorageSync('logInfo').data,
"level":this.level,
"pageNumber": 1,
"pageSize": this.pageSize,
})
post.then(res => {
this.totalElements=res.data.totalElements;
if(res.data.content){
this.promotionRecord=res.data.content;
for(var i=0;i<this.promotionRecord.length;i++){
this.promotionRecord[i].addTime=index.formatyymmddhhmmss(this.promotionRecord[i].addTime);
this.promotionRecord[i].orderNo = this.promotionRecord[i].orderNo.substring(13, 20);
}
this.test=this.promotionRecord.length;
console.log(res.data)
}else{
console.log(123123)
}
},
fail: (res) => {
console.log(res.data);
}
});
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}
},
}

72
pages/menu/promotion/bounsRecord/index.vue

@ -100,35 +100,49 @@
this.getBounsRecord();
},
getBounsRecord(){
uni.request({
url: '/start/api/summary/bonusRecords',
data: {
"ticket": uni.getStorageSync('logInfo').data,
"level":this.level,
"pageNumber": 1,
"pageSize": this.pageSize,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.totalElements=res.data.data.totalElements;
if(res.data.data.content!=''){
this.promotionRecord=res.data.data.content;
for(var i=0;i<this.promotionRecord.length;i++){
this.promotionRecord[i].addTime=index.formatyymmddhhmmss(this.promotionRecord[i].addTime);
}
this.test=this.promotionRecord.length;
console.log(res.data)
}else{
console.log(123123)
}
},
fail: (res) => {
console.log(res.data);
}
});
const post = api.bonusRecords({
"ticket": uni.getStorageSync('logInfo').data,
"level":this.level,
"pageNumber": 1,
"pageSize": this.pageSize,
})
post.then(res => {
this.totalElements=res.data.totalElements;
if(res.data.content){
this.promotionRecord=res.data.content;
for(var i=0;i<this.promotionRecord.length;i++){
this.promotionRecord[i].addTime=index.formatyymmddhhmmss(this.promotionRecord[i].addTime);
}
this.test=this.promotionRecord.length;
console.log(res.data)
}else{
console.log(123123)
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}
},
}

252
pages/menu/promotion/index.vue

@ -3,14 +3,17 @@
<view class="pro-head">
promotion
<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="img2" @click="invMore=true,msShow=true"></image>
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img1"
@click="goInviteRule()"></image>
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img2"
@click="invMore=true,msShow=true"></image>
</view>
</view>
<view class="pro-body">
<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 class="pro-body-btn1" @click="appl=true,msShow=true">
@ -19,8 +22,8 @@
<view class="pro-body-lea">
<view class="lea-item" v-for="(item,index) in proLeav" :key="item.id" @click=" leaIdChange(index)">
<p :class="['p1', leaId==index?'on':'']">{{item.lea}}</p>
<p class="p2">{{item.lea2}}</p>
<p :class="['p1', leaId==index?'on':'']">{{item.lea}}</p>
<p class="p2">{{item.lea2}}</p>
<p class="p3">{{item.leanum}}</p>
</view>
</view>
@ -41,26 +44,26 @@
</view>
<cont></cont>
<cont></cont>
</view>
<view class="invite-more" v-show="invMore">
<view class="invite-con">
<view class="more-a" @click="goProRe">
promotion record
</view>
<view class="more-a" @click="goBouns">
bonus record
<view class="more-a" @click="goProRe">
promotion record
</view>
<view class="more-a" @click="goBouns">
bonus record
</view>
<view class="more-a" @click="applyRecord">
apply record
</view>
</view>
<view class="more-a" @click="applyRecord">
apply record
<view class="invite-con2">
<view class="more-a" @click="invMore=false,msShow=false">
cancel
</view>
</view>
</view>
<view class="invite-con2">
<view class="more-a" @click="invMore=false,msShow=false">
cancel
</view>
</view>
</view>
@ -68,16 +71,17 @@
<view class="top">
<view class="title">
apply to balance
</view>
<view class="input">
<input type="text" value="" placeholder="bonus" v-model="tranAmt" placeholder-style="color: #BFC2CCFF;font-size:28rpx;text-transform: capitalize"/>
</view>
<view class="all" @click="applyAll()">
Apply all
</view>
<view class="title">
apply to balance
</view>
<view class="input">
<input type="text" value="" placeholder="bonus" v-model="tranAmt"
placeholder-style="color: #BFC2CCFF;font-size:28rpx;text-transform: capitalize" />
</view>
<view class="all" @click="applyAll()">
Apply all
</view>
</view>
<view class="btn_con">
<view class="btn1" @click="appl=false,msShow=false">
@ -88,7 +92,7 @@
</view>
</view>
</view>
<view class="msg-box-bg" v-show="msShow" @click="invMore=false,msShow=false,appl=false">
<view class="msg-box-bg" v-show="msShow" @click="invMore=false,msShow=false,appl=false">
</view>
</view>
@ -97,138 +101,118 @@
<script>
import cont from "@/components/cont/cont.vue"
import api from '@/utils/api'
export default {
data() {
return {
currencySymbol:'',
leaId:0,
inviteRule:[],
tranAmt:'',
proLeav:[
{
id:0,
lea:'level1',
lea2:'Total people',
leanum:0
},
{
id:1,
lea:'level2',
lea2:'Contribution',
leanum:0.00
},
],
copyText:'',
invMore:false,
appl:false,
msShow:false,
currencySymbol: '',
leaId: 0,
inviteRule: [],
tranAmt: '',
proLeav: [{
id: 0,
lea: 'level1',
lea2: 'Total people',
leanum: 0
},
{
id: 1,
lea: 'level2',
lea2: 'Contribution',
leanum: 0.00
},
],
copyText: '',
invMore: false,
appl: false,
msShow: false,
}
},
onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
uni.request({
url: '/start/api/user/inviteCode',
data: {
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.inviteRule=res.data.data
this.copyText=this.inviteRule.qrcodeUrl;
console.log(res.data,9999);
},
fail: (res) => {
console.log(res.errMsg);
}
});
const post = api.inviteCode({
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
this.inviteRule = res.data;
this.copyText = this.inviteRule.qrcodeUrl;
console.log(res.data, 9999);
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
methods: {
goInviteRule(){
goInviteRule() {
uni.navigateTo({
url:'../rule/inviteRule/index'
url: '../rule/inviteRule/index'
})
},
applyAll(){
this.tranAmt=this.inviteRule.bonusCapital;
applyAll() {
this.tranAmt = this.inviteRule.bonusCapital;
},
bountOut(){
uni.request({
url: '/start/api/summary/bonusOut',
data: {
"ticket": uni.getStorageSync('logInfo').data,
"tranAmt":this.tranAmt,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
if(res.data!=''){
if(res.data.success==true){
uni.showToast({
title: 'Commission successfully transferred out to balance',
icon: 'success',
duration: 1500
})
}else{
uni.showToast({
title:res.data.errMsg ,
icon: 'none',
duration: 1500
})
}
}
},
fail: (res) => {
uni.showToast({
title:res.data.errMsg ,
icon: 'none',
duration: 1500
bountOut() {
const post = api.bonusOut({
"ticket": uni.getStorageSync('logInfo').data,
"tranAmt": this.tranAmt,
})
post.then(res => {
if (res != undefined) {
if (res.success == true) {
uni.showToast({
title: 'Commission successfully transferred out to balance',
icon: 'success',
duration: 1500
})
} else {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 1500
})
}
}
})
}
});
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
goProRe(){
goProRe() {
uni.reLaunch({
url:'./promotionRecord/index'
url: './promotionRecord/index'
})
},
goBouns(){
goBouns() {
uni.reLaunch({
url:'./bounsRecord/index'
url: './bounsRecord/index'
})
},
applyRecord(){
applyRecord() {
uni.reLaunch({
url:'./applyRecord/index'
url: './applyRecord/index'
})
},
copyTextMethod(){
copyTextMethod() {
this.$copyText(this.copyText).then(res => {
uni.showToast({
title: 'Copy succeeded',
icon: 'success'
})
this.$copyText(this.copyText).then(res => {
uni.showToast({
title: 'Copy succeeded',
icon: 'success'
})
})
},
leaIdChange(index){
this.leaId=index;
}
leaIdChange(index) {
this.leaId = index;
}
}
}
</script>

58
pages/menu/promotion/promotionRecord/index.vue

@ -95,36 +95,36 @@
this.level=i+1;
this.getBounsRecord();
},
getBounsRecord(){
uni.request({
url: '/start/api/summary/promotionRecords',
data: {
"ticket": uni.getStorageSync('logInfo').data,
"level":this.level,
"pageNumber": 1,
"pageSize": this.pageSize,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.totalElements=res.data.data.totalElements;
if(res.data.data.content){
this.promotionRecord=res.data.data.content;
for(var i=0;i<this.promotionRecord.length;i++){
this.promotionRecord[i].addTime=index.formatyymmddhhmmss(this.promotionRecord[i].addTime);
}
this.test=this.promotionRecord.length;
console.log(res.data)
}else{
console.log(123123)
}
},
fail: (res) => {
console.log(res.data);
}
});
const post = api.promotionRecords({
"ticket": uni.getStorageSync('logInfo').data,
"level":this.level,
"pageNumber": 1,
"pageSize": this.pageSize,
})
post.then(res => {
this.totalElements=res.data.totalElements;
if(res.data.content){
this.promotionRecord=res.data.content;
for(var i=0;i<this.promotionRecord.length;i++){
this.promotionRecord[i].addTime=index.formatyymmddhhmmss(this.promotionRecord[i].addTime);
}
this.test=this.promotionRecord.length;
console.log(res.data)
}else{
console.log(res,555555555555);
console.log(123123)
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}
},
}

30
pages/menu/recharge/index.css

@ -119,17 +119,7 @@ display: flex;
color: #909399;
text-transform: capitalize;
}
.capy{
font-size: 32rpx;
color: #954DE3;
display: flex;
align-items: center;
}
.capy image{
width: 34rpx;
height: 34rpx;
padding-right: 12rpx;
}
.rech-btn{
margin-top: 58rpx;
line-height: 96rpx;
@ -152,3 +142,21 @@ display: flex;
text-transform: capitalize;
font-size: 32rpx;
}
.offline-text{
padding: 0 36rpx;
font-size: 28rpx;
color: #303133;
line-height: 60rpx;
margin-top: 40rpx;
}
.offline-button{
display: inline-block;
width: 80rpx;
margin: 0 10rpx;
vertical-align: middle;
line-height: 40rpx;
text-align: center;
font-size: 28rpx;
padding: 0;
color: rgb(149, 77, 227);
}

223
pages/menu/recharge/index.vue

@ -51,7 +51,7 @@
payment
</view>
<view class="paymentType">
<u-radio-group v-model="payType" @change="radioGroupChange" class="payTypenName">
<u-radio-group @change="radioGroupChange" class="payTypenName">
<u-radio @change="radioChange(item)" v-for="(item, index) in paymentType" :key="index"
:name="item.typeName" :disabled="item.disabled" active-color="#954DE3FF">
{{item.typeName}}
@ -65,6 +65,28 @@
Confirm
</view>
</view>
<view class="offline-text" v-show="pd==1">
You can follow the steps to pay:
<view class="">
1. Go to your M-Pesa menu or App on your phone.
</view>
<view class="">
2. Go to Lipa na M-Pena then select "Pay Bill" option.
</view>
<view class="">
3. Enter business number: {{mobile}} <button type="default" class="offline-button" @click="copyTextMethod()">Copy</button> Account number: Enter your ID : {{userId}}
</view>
<view class="">
5. Enter the amount
</view>
<view class="">
6. Enter your M-Pesa PIN.
</view>
<view class="">
7. Confirm that all details are correct and submit.
</view>
</view>
</view>
</template>
@ -76,6 +98,7 @@
export default {
data() {
return {
copyText: '',
pd:0,
mobile:'',
areacode: '',
@ -85,65 +108,71 @@
paymentType: [],
payType: '',
currencySymbol:'',
currentBalance:''
currentBalance:'',
userId:'',
}
},
onLoad() {
this.copyText=uni.getStorageSync('loginMobile');
this.mobile=uni.getStorageSync('loginMobile');
this.currentBalance=uni.getStorageSync('currentBalance');
this.areacode = uni.getStorageSync('siteInfo').areaCode;
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
uni.request({
url: '/start/api/recharge/rechargeConfig',
data: {
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
uni.setStorage({
key: 'rechargeInfo',
data: res.data.data,
success: function() {
console.log('success')
}
});
this.rechangeInfo = res.data.data;
this.recharge_amount = this.rechangeInfo.recharge_amount.split(',');
console.log(res.data, 9990);
},
fail: (res) => {
this.userId=uni.getStorageSync('MyInfo').userId;
const post = api.rechargeConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
uni.setStorage({
key: 'rechargeInfo',
data: res.data,
success: function() {
console.log('success')
}
});
this.rechangeInfo = res.data;
this.recharge_amount = this.rechangeInfo.recharge_amount.split(',');
console.log(res.data, 9990);
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
console.log(res.data);
}
});
const post2 = api.getPayType({
"ticket": uni.getStorageSync('logInfo').data,
})
post2.then(res => {
this.paymentType = res.data;
console.log(res.data);
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
uni.request({
url: '/start/api/recharge/getPayType',
data: {
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.paymentType = res.data.data;
console.log(res.data.data);
},
fail: (res) => {
console.log(res.data);
}
});
},
methods: {
copyTextMethod() {
this.$copyText(this.copyText).then(res => {
uni.showToast({
title: 'Copy succeeded',
icon: 'success'
})
})
},
PayTo(){
uni.showLoading({
title:'loading'
})
if(this.payType==''){
uni.showToast({
title: 'Please choose the payment method',
@ -185,99 +214,61 @@
})
return;
}
uni.request({
url: '/start/api/recharge/recharge',
data: {
"ticket": uni.getStorageSync('logInfo').data,
"payType":this.payType,
"tranAmt":this.tranAmt,
"mobile":this.mobile,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
if(res.data.errCode=='SUCCESS'){
uni.request({
url: '/start/api/recharge/toPay',
data: {
"ticket": uni.getStorageSync('logInfo').data,
'orderNo': res.data.data.orderNo,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
if(res.data.success==true){
uni.showToast({
title: 'Recharge success',
icon: 'success',
duration: 1500
})
setTimeout(function(){
location.reload()
},1000)
}else{
uni.showToast({
title: 'Payment failed',
icon: 'none',
duration: 1500
})
}
console.log(res.data);
},
fail: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 1500
})
console.log(res.data);
},
});
}else{
const post2 = api.recharge({
"ticket": uni.getStorageSync('logInfo').data,
"payType":this.payType,
"tranAmt":this.tranAmt,
"mobile":this.mobile,
})
post2.then(res => {
if(res.success==true){
uni.showToast({
title: 'Recharge success',
icon: 'success',
duration: 1500
})
setTimeout(function(){
location.reload()
},1000)
}else{
uni.showToast({
title: res.data.errMsg,
title: 'Payment failed',
icon: 'none',
duration: 1500
})
}
console.log(res.data,666666666);
console.log(res.data.data.orderNo,666666666);
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
fail: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 1500
})
console.log(res.data);
}
});
},
radioChange(e) {
if(e.payType=='pay.offline'){
this.pd=1;
this.payType=e.payType
}else{
this.pd=0;
this.payType=e.payType
}
console.log(e)
},
// radioradio-group
radioGroupChange(e) {
// console.log(e);
console.log(this.payType,8888888888888)
},
getMonVal(m) {
this.tranAmt = m
}
},
},
}
</script>

30
pages/menu/recharge/rechargeRule.vue

@ -22,28 +22,24 @@
onLoad() {
uni.request({
url: '/start/api/recharge/rechargeConfig',
data: {
const post2 = api.rechargeConfig({
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.rechangeRule=res.data.data.tips;
})
post2.then(res => {
this.rechangeRule=res.data.tips;
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
fail: (res) => {
console.log(res.data);
}
});
},
},
methods:{

49
pages/menu/recharge/record/index.vue

@ -62,30 +62,35 @@
methods:{
getRechardRecord(){
uni.request({
url: '/start/api/recharge/rechargeList',
data: {
"ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber,
"pageSize":this.pageSize,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.record_list=res.data.data.content;
for(var i=0;i<this.record_list[i].addTime;i++){
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime);
}
this.totalPage=res.data.data.totalPages;
},
fail: (res) => {
console.log(res);
}
});
const post2 = api.rechargeList({
"ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber,
"pageSize":this.pageSize,
})
post2.then(res => {
if(res.data.content){
this.record_list=res.data.content;
for(var i=0;i<this.record_list[i].addTime;i++){
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime);
}
this.totalPage=res.data.totalElements;
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
},

33
pages/menu/rule/index.vue

@ -21,22 +21,23 @@
}
},
onLoad(){
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) => {
this.betting_rule=res.data.data.tips;
},
fail: (res) => {
console.log(res);
}
});
const post2 = api.bettingConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post2.then(res => {
this.betting_rule=res.data.tips;
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
methods: {

36
pages/menu/rule/inviteRule/index.vue

@ -44,23 +44,25 @@
}
},
onLoad() {
uni.request({
url: '/start/api/user/inviteCode',
data: {
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.inviteRule=res.data.data
console.log(res.data,9999);
},
fail: (res) => {
console.log(res.errMsg);
}
});
const post2 = api.inviteCode({
"ticket": uni.getStorageSync('logInfo').data,
})
post2.then(res => {
this.inviteRule=res.data
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
methods: {
back(){

109
pages/menu/withdrawl/index.vue

@ -129,26 +129,28 @@
onLoad() {
this.currentBalance = uni.getStorageSync('currentBalance');
this.mobile = uni.getStorageSync('loginMobile');
uni.request({
url: '/start/api/withdraw/withdrawConfig',
data: {
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.withdrawConfig = res.data.data;
this.content = this.withdrawConfig.tips;
console.log(res.data, 8880);
console.log(this.withdrawConfig, 9990);
this.show = true;
},
fail: (res) => {
console.log(res.data);
}
});
const post2 = api.withdrawConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post2.then(res => {
this.withdrawConfig = res.data;
this.content = this.withdrawConfig.tips;
console.log(res.data, 8880);
console.log(this.withdrawConfig, 9990);
this.show = true;
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
@ -235,7 +237,7 @@
uni.showLoading({
title: 'loading'
});
if (this.tranAmt == null) {
if (this.tranAmt == '') {
uni.showToast({
title: 'Please enter the withdrawal amount',
icon: 'none',
@ -246,49 +248,37 @@
uni.request({
url: '/start/api/withdraw/withdraw',
data: {
const post2 = api.withdraw({
"ticket": uni.getStorageSync('logInfo').data,
// 'password': md5(this.password),
"tranAmt": this.tranAmt,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
if (res.data.success == true) {
})
post2.then(res => {
if (res.success == true) {
uni.showToast({
title: res.data.errMsg,
title: res.errMsg,
icon: 'none',
duration: 1500
})
uni.request({
url: '/start/api/withdraw/withdrawServiceCharge',
data: {
const post = api.withdrawServiceCharge({
"ticket": uni.getStorageSync('logInfo').data,
// 'password': md5(this.password),
"tranAmt": this.tranAmt,
"ticket": uni.getStorageSync('MyInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
})
post.then(res => {
console.log(res.data, '45464654646446');
console.log(res.data, '45464654646446');
},
fail: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 1500
})
}
});
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
} else {
uni.showToast({
title: 'Withdrawal failed',
@ -296,17 +286,16 @@
duration: 1500
})
}
console.log(res.data);
},
fail: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 1500
})
}
});
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}
},

42
pages/menu/withdrawl/transactions/index.vue

@ -66,28 +66,34 @@
onLoad() {
uni.request({
url: '/start/api/summary/billList',
data: {
const post = api.billList({
"ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber,
"pageSize":this.pageSize,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.record_list=res.data.data.content;
for(var i=0;i<this.record_list.length;i++){
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime);
})
post.then(res => {
if(res.data.content){
this.record_list=res.data.content;
for(var i=0;i<this.record_list.length;i++){
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime);
}
}
console.log(res.data,9999);
},
fail: (res) => {
console.log(res.errMsg);
}
});
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})

40
pages/menu/withdrawl/withdrawlRecord/index.vue

@ -65,30 +65,32 @@
},
onLoad() {
uni.request({
url: '/start/api/withdraw/withdrawList',
data: {
const post = api.withdrawList({
"ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber,
"pageSize":this.pageSize,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.record_list=res.data.data.content;
for(var i=0;i<this.record_list.length;i++){
this.record_list[i].createTime=index.formatyymmddhhmmss(this.record_list[i].createTime);
})
post.then(res => {
if(res.data.content){
this.record_list=res.data.content;
for(var i=0;i<this.record_list.length;i++){
this.record_list[i].createTime=index.formatyymmddhhmmss(this.record_list[i].createTime);
}
}
console.log(res.data,9999);
},
fail: (res) => {
console.log(res.errMsg);
}
});
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})

116
pages/register/index.vue

@ -141,7 +141,7 @@
})
return;
}
var a = /^[0-9]{4,14}$/;
var a = /^[0-9]{9}$/;
if (!a.test(this.mobile)) {
uni.showToast({
title: 'Wrong format of mobile phone number',
@ -161,35 +161,27 @@
this.$refs.uCode.start();
}, 2000);
this.countryCode = uni.getStorageSync('siteInfo').countryCode
uni.request({
url: '/start/api/home/sendSmsCode',
data: {
"mobile": this.mobile,
"mark": this.mark,
"countryCode": this.countryCode,
"code": this.picCode
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 2500
})
console.log(res.data);
},
fail: (res) => {
const post = api.sendSmsCode({
"mobile": this.mobile,
"mark": this.mark,
"countryCode": this.countryCode,
"code": this.picCode
})
post.then(res => {
var that = this;
uni.showToast({
title: res.data.errMsg,
title: res.errMsg,
icon: 'none',
duration: 2500
})
console.log(res.data);
}
});
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
} else {
this.$u.toast('Send after the countdown');
}
@ -208,23 +200,8 @@
uni.reLaunch({
url: '../login/index'
})
},
checPas() {
},
getInfoCode() {
},
getPicCode() {
this.imgcodeUrl = "/start/api/home/imgCode?uuid=" + this.$u.guid(20);
console.log();
@ -296,45 +273,44 @@
uni.showLoading({
title: 'loading'
});
uni.request({
url: '/start/api/home/register',
data: {
"mobile": this.mobile,
'password': md5(this.password),
'inviteCode': this.inviteCode,
'code': this.infoCode,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',
duration: 1500
const post = api.register({
"mobile": this.mobile,
'password': md5(this.password),
'inviteCode': this.inviteCode,
'code': this.infoCode,
})
post.then(res => {
uni.showToast({
title: res.errMsg,
icon: 'none',
duration: 1500
})
setTimeout(function() {
uni.reLaunch({
url: '../login/index'
})
}, 1500)
})
setTimeout(function() {
uni.reLaunch({
url: '../login/index'
})
}, 1500)
},
fail: (res) => {
.catch(e => {
uni.showToast({
title: res.data.errMsg,
title: e,
icon: 'none',
duration: 1500
duration: 2500
})
})
}
});
}
},
goLogin() {
uni.reLaunch({
uni.navigateTo({
url: '../login/index',
})
}

3
utils/api.js

@ -43,6 +43,9 @@ const api = {
inviteCode: (params) => Vue.prototype.$axios.post('/api/user/inviteCode',params),
bonusOut: (params) => Vue.prototype.$axios.post('/api/summary/bonusOut',params),
bonusOutRecords: (params) => Vue.prototype.$axios.post('/api/summary/bonusOutRecords',params),
promotionRecords: (params) => Vue.prototype.$axios.post('/api/summary/promotionRecords',params),
bonusRecords: (params) => Vue.prototype.$axios.post('/api/summary/bonusRecords',params),
}

33
utils/axios.js

@ -20,17 +20,6 @@ const service = axios.create({
})
// request拦截器,在请求之前做一些处理
<<<<<<< HEAD
// service.interceptors.request.use(
// config => {
// console.log('showDialog' + Vue.prototype.$showDialog)
// if (Vue.prototype.$showDialog) {
// uni.showLoading({
// title: 'loading',
// mask: true
// })
// }
=======
service.interceptors.request.use(
config => {
console.log('showDialog' + Vue.prototype.$showDialog)
@ -40,7 +29,6 @@ service.interceptors.request.use(
mask: true
})
}
>>>>>>> 568bf6045ac1252bb15844d528ceabdb0f66ad2f
// if (store.state.token) {
// // 给请求头添加user-token
// config.headers["user-token"] = store.state.token;
@ -69,8 +57,8 @@ service.interceptors.request.use(
}
var keys = [];
let sign='';
    for (var k in config.data)
      keys.push(k);
for (var k in config.data)
keys.push(k);
keys.sort(function(a,b){
return a<b?-1:1;
})
@ -97,22 +85,6 @@ service.interceptors.request.use(
}
if (config.method=='get') {
<<<<<<< HEAD
// if (ticket != '') {
// config.url = config.url + '&ticket=' + ticket + '&sign=' + sign
// } else {
// config.url = config.url + '&sign=' + sign
// }
// }
// console.log(config)
// return config;
// },
// error => {
// console.log(error); // for debug
// return Promise.reject(error);
// }
// );
=======
if (ticket != '') {
config.url = config.url + '&ticket=' + ticket + '&sign=' + sign
} else {
@ -127,7 +99,6 @@ service.interceptors.request.use(
return Promise.reject(error);
}
);
>>>>>>> 568bf6045ac1252bb15844d528ceabdb0f66ad2f
//配置成功后的拦截器
service.interceptors.response.use(res => {

Loading…
Cancel
Save