Browse Source

提交910

master
fan 4 years ago
parent
commit
fe1d491383
  1. 33
      App.vue
  2. 26
      components/balance/balance.vue
  3. 8
      components/cont/cont.vue
  4. 16
      components/gamecont/gamecont.vue
  5. 50
      components/gamecont2/gamecont2.vue
  6. 42
      components/gamecont3/gamecont3.vue
  7. 46
      components/navigation/navigation.vue
  8. 10
      components/switch/switch.vue
  9. 202
      components/tabBar/tabBar.vue
  10. 5
      main.js
  11. 50
      manifest.json
  12. 385
      pages.json
  13. 9
      pages/login/index.css
  14. 27
      pages/login/index.vue
  15. 13
      pages/login/resetPassword/index.css
  16. 17
      pages/login/resetPassword/index.vue
  17. 10
      pages/menu/My/index.css
  18. 147
      pages/menu/My/index.vue
  19. 33
      pages/menu/about/RiskDisclosureAGREEMENT.vue
  20. 31
      pages/menu/about/privacyPolicy.vue
  21. 8
      pages/menu/address/addAddress/index.css
  22. 109
      pages/menu/address/addAddress/index.vue
  23. 73
      pages/menu/address/index.css
  24. 185
      pages/menu/address/index.vue
  25. 14
      pages/menu/aplan/index.css
  26. 8
      pages/menu/bankCard/addBankCard/index.css
  27. 328
      pages/menu/bankCard/addBankCard/index.vue
  28. 111
      pages/menu/bankCard/index.vue
  29. 139
      pages/menu/color/index.css
  30. 385
      pages/menu/color/index.vue
  31. 68
      pages/menu/colorMoni/index.css
  32. 108
      pages/menu/colorMoni/index.vue
  33. 6
      pages/menu/goods/goodsDetail/index.vue
  34. 40
      pages/menu/goods/index.css
  35. 142
      pages/menu/goods/index.vue
  36. 2
      pages/menu/index/index.css
  37. 0
      pages/menu/order/index.css
  38. 108
      pages/menu/order/index.vue
  39. 8
      pages/menu/promotion/applyRecord/index.css
  40. 8
      pages/menu/promotion/bounsRecord/index.css
  41. 28
      pages/menu/promotion/index.css
  42. 72
      pages/menu/promotion/index.vue
  43. 2
      pages/menu/promotion/promotionRecord/index.css
  44. 28
      pages/menu/re/add/index.css
  45. 115
      pages/menu/re/add/index.vue
  46. 117
      pages/menu/re/list/index.css
  47. 200
      pages/menu/re/list/index.vue
  48. 14
      pages/menu/recharge/index.css
  49. 124
      pages/menu/recharge/index.vue
  50. 2
      pages/menu/recharge/rechargeRule.vue
  51. 21
      pages/menu/recharge/record/index.css
  52. 54
      pages/menu/recharge/record/index.vue
  53. 2
      pages/menu/rule/arules/index.vue
  54. 8
      pages/menu/rule/index.css
  55. 9
      pages/menu/rule/index.vue
  56. 9
      pages/menu/rule/inviteRule/index.css
  57. 98
      pages/menu/search/index.css
  58. 92
      pages/menu/search/index.vue
  59. 22
      pages/menu/withdrawl/index.css
  60. 176
      pages/menu/withdrawl/index.vue
  61. 30
      pages/menu/withdrawl/transactions/index.vue
  62. 47
      pages/menu/withdrawl/withdrawlRecord/index.vue
  63. 138
      pages/redenvelopes.vue
  64. 12
      pages/register/index.css
  65. 35
      pages/register/index.vue
  66. BIN
      static/bankCard/dizhi.png
  67. BIN
      static/bankCard/redBJ.png
  68. BIN
      static/bankCard/upgrade.png
  69. BIN
      static/home/[email protected]
  70. BIN
      static/tabbar/dorder.png
  71. BIN
      static/tabbar/dorderS.png
  72. 8
      uni.scss
  73. BIN
      unpackage.rar
  74. BIN
      unpackage/cache/apk/__UNI__7E21D6D_cm.apk
  75. 2
      unpackage/cache/apk/apkurl
  76. 2
      unpackage/cache/apk/cmManifestCache.json
  77. 2
      unpackage/cache/certdata
  78. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/.manifest/icon-android-hdpi.png
  79. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/.manifest/icon-android-xhdpi.png
  80. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/.manifest/icon-android-xxhdpi.png
  81. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/.manifest/icon-android-xxxhdpi.png
  82. 2
      unpackage/cache/wgt/__UNI__7E21D6D/__uniappquill.js
  83. 2
      unpackage/cache/wgt/__UNI__7E21D6D/__uniappquillimageresize.js
  84. 4
      unpackage/cache/wgt/__UNI__7E21D6D/app-config-service.js
  85. 24
      unpackage/cache/wgt/__UNI__7E21D6D/app-service.js
  86. 2
      unpackage/cache/wgt/__UNI__7E21D6D/app-view.js
  87. 2
      unpackage/cache/wgt/__UNI__7E21D6D/manifest.json
  88. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/dizhi.png
  89. 0
      unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
  90. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
  91. 0
      unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
  92. 0
      unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
  93. 0
      unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
  94. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/redBJ.png
  95. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/upgrade.png
  96. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/static/fonts/DIN-Bold.otf
  97. 0
      unpackage/cache/wgt/__UNI__7E21D6D/static/home/[email protected]
  98. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/static/home/[email protected]
  99. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/static/tabbar/dorder.png
  100. BIN
      unpackage/cache/wgt/__UNI__7E21D6D/static/tabbar/dorderS.png

33
App.vue

@ -3,8 +3,17 @@
</style> </style>
<script> <script>
export default { export default {
onLaunch: function() {
onLaunch: function(e) {
console.log('App Launch') console.log('App Launch')
}, },
onShow: function() { onShow: function() {
@ -17,18 +26,32 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.uni-btn-icon{
display: none;
}
/* #ifdef H5 */ /* #ifdef H5 */
uni-page-head { uni-page-head {
display: none; display: none;
} }
.uni-btn-icon{
display: none;
}
/* #endif */ /* #endif */
/* #ifdef APP-PLUS */
uni-page-head {
display: none ;
}
.uni-btn-icon{
display: none;
}
/* #endif */
uni-tabbar { uni-tabbar {
.uni-tabbar { // tab .uni-tabbar { // tab
padding-top:28rpx; padding-top:28rpx;
padding-bottom: 50rpx !important; padding-bottom: 30rpx !important;
background-image: linear-gradient(to top, #FAF8F8, #FFFFFF)!important; // tab background-image: linear-gradient(to top, #FAF8F8, #FFFFFF)!important; // tab
.uni-tabbar-border { // tabBar .uni-tabbar-border { // tabBar
background-color: #F7F4F4!important; // tabBar background-color: #F7F4F4!important; // tabBar

26
components/balance/balance.vue

@ -8,7 +8,7 @@
<view class="index-p1"> <view class="index-p1">
<span class="category-sigh">{{currencySymbol}} </span><span>{{currentBalance}}</span> <span class="category-sigh">{{currencySymbol}} </span><span>{{currentBalance}}</span>
</view> </view>
<view class="index-a1" @click="sendMegToIndex"> <view class="index-a1" @click="sendMegToIndex" v-if="showRechange">
Recharge Recharge
</view> </view>
</view> </view>
@ -19,7 +19,29 @@
const COMPONENT_NAME = 'balance' const COMPONENT_NAME = 'balance'
export default { export default {
name: COMPONENT_NAME, name: COMPONENT_NAME,
props:["currencySymbol","currentBalance"],
// props:["currencySymbol","currentBalance"],
props: {
currencySymbol: {
type: String,
default () {
return ''
}
},
currentBalance: {
type: String,
default () {
return ''
}
},
showRechange: {
type: Boolean,
default () {
return true
}
},
},
data() { data() {
return { return {

8
components/cont/cont.vue

@ -127,12 +127,12 @@
} }
.p2{ .p2{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
margin-left: 20rpx; margin-left: 20rpx;
} }
.p1{ .p1{
font-size: 28rpx; font-size: 28rpx;
color: #606266FF; color: #606266;
} }
.colseKefu{ .colseKefu{
position: absolute; position: absolute;
@ -153,7 +153,7 @@
.title{ .title{
text-transform: capitalize; text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #954DE3FF; color: #954DE3;
text-align: center; text-align: center;
} }
.title p{ .title p{
@ -195,7 +195,7 @@
transform: translateX(-50%); transform: translateX(-50%);
width: 100%; width: 100%;
height: 2rpx; height: 2rpx;
background-color: #EDEFF2FF; background-color: #EDEFF2;
} }
.my-cont{ .my-cont{
width: 180rpx; width: 180rpx;

16
components/gamecont/gamecont.vue

@ -34,7 +34,7 @@
</view> </view>
<view class="num_con"> <view class="num_con">
<view class="num2" :class="item.lotteryResult==5?'bg_jb2':''"> <view class="num2" :class="item.lotteryResult==0?'bg_jb1':''">
0 0
</view> </view>
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==1?item.lotteryColor:'')},{color:(item.lotteryResult==1?white:'')}]" > <view class="num2" :style="[{backgroundColor:(item.lotteryResult==1?item.lotteryColor:'')},{color:(item.lotteryResult==1?white:'')}]" >
@ -49,7 +49,7 @@
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==4?item.lotteryColor:'')},{color:(item.lotteryResult==4?white:'')}]"> <view class="num2" :style="[{backgroundColor:(item.lotteryResult==4?item.lotteryColor:'')},{color:(item.lotteryResult==4?white:'')}]">
4 4
</view> </view>
<view class="num2" :class="item.lotteryResult==5?'bg_jb1':''"> <view class="num2" :class="item.lotteryResult==5?'bg_jb2':''">
5 5
</view> </view>
<view class="num2" :style="[{backgroundColor:(item.lotteryResult==6?item.lotteryColor:'')},{color:(item.lotteryResult==6?white:'')}]"> <view class="num2" :style="[{backgroundColor:(item.lotteryResult==6?item.lotteryColor:'')},{color:(item.lotteryResult==6?white:'')}]">
@ -134,10 +134,10 @@
align-items: center; align-items: center;
} }
.miss{ .miss{
width: 180rpx; /* width: 180rpx;
overflow-x: scroll; overflow-x: scroll; */
color: #606266; color: #606266;
font-size: 28rpx; font-size: 24rpx;
text-transform: capitalize; text-transform: capitalize;
} }
.contone_item2{ .contone_item2{
@ -153,7 +153,7 @@
} }
.conttwo{ .conttwo{
padding: 0 36rpx; padding: 0 10rpx;
} }
.contone_item{ .contone_item{
line-height: 72rpx; line-height: 72rpx;
@ -181,11 +181,11 @@
margin: 0 auto; margin: 0 auto;
} }
.green{ .green{
background-color: #00B977FF !important; background-color: #00B977 !important;
color: #fff !important; color: #fff !important;
} }
.red{ .red{
background-color: #F25B5BFF !important; background-color: #F25B5B !important;
color: #fff !important; color: #fff !important;
} }
.bg_jb1{ .bg_jb1{

50
components/gamecont2/gamecont2.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="gamecont2"> <view class="gamecont2">
<view class="flex cont2_head"> <view class="flex cont2_head">
<view class="head_item item"> <view class="head_item item one">
period period
</view> </view>
<view class="head_item item"> <view class="head_item item">
@ -28,6 +28,7 @@
</view> </view>
<view class="body_item item"> <view class="body_item item">
<image :src="'/static/color/bg_er@3x'+item+'.png'" mode="" v-for="(item,index) in gameRecordCont[index].lotteryColor" :key="index"></image> <image :src="'/static/color/bg_er@3x'+item+'.png'" mode="" v-for="(item,index) in gameRecordCont[index].lotteryColor" :key="index"></image>
</view> </view>
</view> </view>
@ -56,7 +57,6 @@
}, },
mounted() { mounted() {
}, },
methods: { methods: {
@ -66,11 +66,10 @@
</script> </script>
<style> <style scoped lang="scss">
.one{
overflow-x: scroll;
overflow-y: hidden;
.one{
width: 500rpx !important;
} }
.flex2{ .flex2{
display: flex; display: flex;
@ -108,13 +107,38 @@
color: #303133; color: #303133;
} }
.item{ /* #ifdef H5 */
text-transform: capitalize; .item{
font-size: 28rpx; text-transform: capitalize;
text-align: center; font-size: 28rpx;
width: 234rpx; text-align: center;
line-height: 72rpx; width: 234rpx;
} line-height: 72rpx;
}
/* #endif */
/* #ifdef APP-PLUS */
.one{
width: 400rpx !important;
}
.gamecont2{
padding-top: 0 !important;
}
.cont2_head{
padding: 0 !important;
}
.bodycon{
height: 72rpx !important;
}
.item{
text-transform: capitalize;
font-size: 28rpx;
text-align: center;
width: 234rpx;
line-height: 72rpx;
}
/* #endif */
.body_item image{ .body_item image{
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;

42
components/gamecont3/gamecont3.vue

@ -12,7 +12,7 @@
{{item.status}} {{item.status}}
</view> </view>
<view class="body_item mar_let" :class="item.status=='success'?'green':'red'"> <view class="body_item mar_let" :class="item.status=='success'?'green':'red'">
{{item.bettingAmount}} <text v-if="item.status=='Fail'">-</text>{{item.bettingAmount}}
</view> </view>
</view> </view>
<view class="body_item jiantou"> <view class="body_item jiantou">
@ -52,8 +52,17 @@
<view class="name"> <view class="name">
delivery delivery
</view> </view>
<view class="num" style="color: #F49D7A;">
{{item.realAmount}}
</view>
</view>
<view class="perd_item flex">
<view class="name">
result
</view>
<view class="num"> <view class="num">
{{item.bettingNumber}} <text style="color: #46A8F5;"> {{ item.lotteryValue }} </text>{{k}}<text style="text-transform:lowercase;" :style="{color:item.lotteryColor}"> {{item.lotteryColor}} </text>
</view> </view>
</view> </view>
<view class="perd_item flex"> <view class="perd_item flex">
@ -69,14 +78,15 @@
select select
</view> </view>
<view class="num"> <view class="num">
<image :src="'static/color/ico_apple_'+item.lotteryColor+'@3x.png'" mode=""></image> <!-- <image :src="'static/color/ico_apple_'+item.lotteryColor+'@3x.png'" mode=""></image> -->
{{item.bettingValue}}
</view> </view>
</view> </view>
<view class="perd_item flex"> <view class="perd_item flex">
<view class="name"> <view class="name">
status status
</view> </view>
<view class="num"> <view class="num" :class="item.status=='Fail'?'red':'green'">
{{item.status}} {{item.status}}
</view> </view>
</view> </view>
@ -84,8 +94,11 @@
<view class="name"> <view class="name">
Amount Amount
</view> </view>
<view class="num"> <view class="num" :class="item.status=='Fail'?'red':'green'" v-if="item.status=='Fail'">
{{item.bettingAmount}} <text v-if="item.status=='Fail'" >-</text>{{item.realAmount}}
</view>
<view class="num" :class="item.status=='Fail'?'red':'green'" v-else>
{{item.profitAmount}}
</view> </view>
</view> </view>
<view class="perd_item flex"> <view class="perd_item flex">
@ -117,6 +130,7 @@
props:["myGameRecord"], props:["myGameRecord"],
data() { data() {
return { return {
k:' ',
// cont3data:[ // cont3data:[
// { // {
// id:1, // id:1,
@ -203,6 +217,12 @@
<style> <style>
.green{
color: green;
}
.red{
color: red;
}
.num image{ .num image{
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
@ -211,12 +231,14 @@
margin-bottom: 24rpx; margin-bottom: 24rpx;
} }
.perd_item .name{ .perd_item .name{
text-transform: capitalize; text-transform: capitalize;
color: #303133; color: #303133;
font-size: 28rpx; font-size: 28rpx;
} }
.perd_item .num{ .perd_item .num{
color: #303133; color: #303133;
text-transform: uppercase;
font-size: 28rpx; font-size: 28rpx;
} }
.periodd{ .periodd{
@ -227,18 +249,21 @@
} }
.list_con{ .list_con{
padding: 0 60rpx; padding: 0 60rpx;
border: none;
} }
.list{ .list{
max-height: 0rpx; max-height: 0rpx;
overflow: hidden; overflow: hidden;
transition: .5s all; transition: .5s all;
border: none;
padding: 0; padding: 0;
background-color: #F5F7FA; background-color: #F5F7FA;
} }
.body_con_zon.on .list{ .body_con_zon.on .list{
padding: 48rpx 0; padding: 48rpx 0;
max-height: 700rpx; max-height: 800rpx;
border: none;
} }
.red{ .red{
color: #F25B5B !important; color: #F25B5B !important;
@ -248,7 +273,8 @@
} }
.bodycon{ .bodycon{
height: 72rpx; height: 72rpx;
padding: 0 36rpx; padding: 0 36rpx;
border: none;
} }
.mar_let{ .mar_let{
margin-left: 30rpx; margin-left: 30rpx;

46
components/navigation/navigation.vue

@ -33,7 +33,6 @@
methods: { methods: {
back(){ back(){
console.log('back')
// #ifdef H5 // #ifdef H5
history.back() history.back()
// #endif // #endif
@ -46,11 +45,20 @@
} }
</script> </script>
<style> <style scoped lang="scss">
.item{
text-transform: capitalize;
font-size: 28rpx;
text-align: center;
width: 234rpx;
line-height: 72rpx;
}
.nav-head{ .nav-head{
line-height: 108rpx; line-height: 170rpx;
background-color: #34026BFF; background-color: #34026B;
text-align: center; text-align: center;
font-size: 36rpx; font-size: 36rpx;
color: #fff; color: #fff;
@ -62,6 +70,8 @@
flex-direction: row-reverse; flex-direction: row-reverse;
align-items: center; align-items: center;
} }
.back{ .back{
width: 42rpx; width: 42rpx;
height: 42rpx; height: 42rpx;
@ -69,5 +79,33 @@
left:36rpx; left:36rpx;
top: 50%; top: 50%;
transform: translateY(-50%) rotate(-180deg) ; transform: translateY(-50%) rotate(-180deg) ;
}
/* #ifdef APP-PLUS */
.nav-head{
line-height: 170rpx;
background-color: #34026B;
text-align: center;
font-size: 36rpx;
color: #fff;
position: relative;
text-transform: capitalize;
padding: 0 36rpx;
padding-top: 50rpx;
display: flex;
justify-content: center;
flex-direction: row-reverse;
align-items: center;
}
.back{
width: 42rpx;
height: 42rpx;
position: absolute;
left:36rpx;
top: 60%;
transform: translateY(-50%) rotate(-180deg) ;
} }
/* #endif */
</style> </style>

10
components/switch/switch.vue

@ -1,10 +1,10 @@
<template> <template>
<view class="index-header"> <view class="index-header">
<view class="item" :class="switNum==1?'active':''" @click="goColor()"> <view class="item" :class="switNum==1?'active':''" @click="goColor()">
Real Dish Real Account
</view> </view>
<view class="item" :class="switNum==2?'active':''" @click="goMoniColor()"> <view class="item" :class="switNum==2?'active':''" @click="goMoniColor()">
Virtual Disk Demo Account
</view> </view>
</view> </view>
</template> </template>
@ -15,7 +15,11 @@
props:{ props:{
switNum: { switNum: {
type: Number, type: Number,
} default () {
return 0
}
},
}, },
data() { data() {
return { return {

202
components/tabBar/tabBar.vue

@ -0,0 +1,202 @@
<template>
<view class="index-header ">
<view class="con">
<view class="tabbar_item" @click="goToPage(1)">
<view class="uni-tabbar_bd">
<view class="uni-tabbar_icon">
<image :src="'/static/tabbar/'+(selectActive==1?'meun_icon_home_sel@3x':'meun_icon_home_nor@3x')+'.png'" mode="aspectFit" class="img1"></image>
</view>
<view class="uni-tabbar_label" :class="['text', selectActive==1?'active':'']">
Home
</view>
</view>
</view>
<view class="tabbar_item" @click="goToPage(2)">
<view class="uni-tabbar_bd">
<view class="uni-tabbar_icon">
<image :src="'/static/tabbar/'+(selectActive==2?'meun_icon_search_sel@3x':'meun_icon_search_nor@3x')+'.png'" mode="aspectFit" class="img1"></image>
</view>
<view class="uni-tabbar_label" :class="['text', selectActive==2?'active':'']">
Search
</view>
</view>
</view>
<view class="tabbar_item" @click="goToPage(3)" v-if="status=='open'">
<view class="uni-tabbar_bd">
<view class="uni-tabbar_icon">
<image :src="'/static/tabbar/'+(selectActive==3?'meun_icon_game_sel@2x':'meun_icon_game_nor@2x')+'.png'" mode="aspectFit" class="img1"></image>
</view>
<view class="uni-tabbar_label" :class="['text', selectActive==3?'active':'']">
Game
</view>
</view>
</view>
<view class="tabbar_item" @click="goToPage(4)">
<view class="uni-tabbar_bd">
<view class="uni-tabbar_icon">
<image :src="'/static/tabbar/'+(selectActive==4?'meun_icon_promotion_sel@2x':'meun_icon_promotion_nor@2x')+'.png'" mode="aspectFit" class="img1"></image>
</view>
<view class="uni-tabbar_label" :class="['text', selectActive==4?'active':'']">
Promotion
</view>
</view>
</view>
<view class="tabbar_item" @click="goToPage(5)">
<view class="uni-tabbar_bd">
<view class="uni-tabbar_icon">
<image :src="'/static/tabbar/'+(selectActive==5?'meun_icon_my_sel@2x':'meun_icon_my_nor@2x')+'.png'" mode="aspectFit" class="img1"></image>
</view>
<view class="uni-tabbar_label" :class="['text', selectActive==5?'active':'']">
My
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import api from '@/utils/api'
import utils from '@/utils'
import md5 from 'js-md5'
import store from '@/store'
const COMPONENT_NAME = 'tabBar'
export default {
name: COMPONENT_NAME,
props: {
selectActive: {
type: Number,
default () {
return 1
}
},
},
data() {
return {
status:''
}
},
computed: {
},
mounted() {
this.openGame()
},
methods: {
openGame() {
const post = api.info()
post.then(d => {
this.status=d.data.gameMenuStatus
})
.catch((e) => {
console.log(e)
})
},
goToPage(num) {
if(num == 1) {
this.selectActive = 1
uni.switchTab({
url: '/pages/menu/goods/index'
})
} else if (num == 2) {
this.selectActive = 2
uni.switchTab({
url:'/pages/menu/search/index'
})
} else if (num == 3) {
this.selectActive = 3
uni.switchTab({
url: '/pages/menu/color/index'
})
}else if (num == 4) {
this.selectActive = 4
uni.switchTab({
url: '/pages/menu/promotion/index'
})
}else if (num == 5) {
this.selectActive = 5
uni.switchTab({
url: '/pages/menu/My/index'
})
}
}
},
}
</script>
<style scoped lang="scss">
.active{
color: rgb(52, 2, 107) !important;
}
.uni-tabbar_label {
color: rgb(153, 153, 153);
font-size: 10px;
line-height: normal;
margin-top: 3px;
position: relative;
text-align: center;
font-size: 20rpx !important;
}
.uni-tabbar_icon{
width: 24px !important;
height: 24px !important;
position: relative;
display: inline-block;
margin-top: 5px;
}
.uni-tabbar_icon image {
width: 100%;
height: 100%;
}
.uni-tabbar_bd{
height: 100rpx;
position: relative;
-webkit-flex-direction: column;
flex-direction: column;
cursor: pointer;
}
.con{
width: 100%;
background-color: rgb(247, 247, 250);
position: fixed;
bottom: 0;
padding-top: 28rpx;
padding-bottom: 30rpx ;
background-image: -webkit-linear-gradient(bottom, #FAF8F8, #FFFFFF) !important;
background-image: linear-gradient(to top, #FAF8F8, #FFFFFF) !important;
border-top: 2rpx solid #F7F4F4;
display: flex;
z-index: 998;
box-sizing: border-box;
}
.tabbar_item{
display: -webkit-box;
width: 150rpx;
height: 100rpx;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
webkit-flex-direction: column;
flex-direction: column;
-webkit-box-flex: 1;
-webkit-flex: 1;
flex: 1;
font-size: 0;
text-align: center;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
</style>

5
main.js

@ -4,15 +4,16 @@ import axios from './utils/axios.js'
import store from './store' import store from './store'
import uView from "uview-ui"; import uView from "uview-ui";
import VueClipboards from 'vue-clipboard2' import VueClipboards from 'vue-clipboard2'
Vue.config.productionTip = false Vue.config.productionTip = false
// 自定义底部导航栏
import tabBar from 'components/tabBar/tabBar.vue'
Vue.use(uView); Vue.use(uView);
Vue.use(VueClipboards); Vue.use(VueClipboards);
Vue.prototype.$axios = axios Vue.prototype.$axios = axios
Vue.prototype.$store = store Vue.prototype.$store = store
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.component('tab-bar', tabBar)
// Vue.prototype.$showDialog = true // Vue.prototype.$showDialog = true
App.mpType = 'app' App.mpType = 'app'

50
manifest.json

@ -1,12 +1,16 @@
{ {
"name" : "first", "name" : "Win Gold",
"appid" : "__UNI__7E21D6D", "appid" : "__UNI__7E21D6D",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {
// h5+runtime
"compatible" : {
"ignoreVersion" : true
},
"usingComponents" : true, "usingComponents" : true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3, "compilerVersion" : 3,
@ -45,6 +49,38 @@
/* SDK */ /* SDK */
"sdkConfigs" : { "sdkConfigs" : {
"ad" : {} "ad" : {}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
} }
} }
}, },
@ -79,7 +115,7 @@
"proxy" : { "proxy" : {
"/start" : { "/start" : {
"ws" : false, "ws" : false,
"target" : "https://apitest.luck-work.com", "target" : "https://api.wingold6.com",
// "target":"https://webtest.luck-work.com/", // "target":"https://webtest.luck-work.com/",
// "target" : "https://api.in-earn.co.ke", // "target" : "https://api.in-earn.co.ke",
"changeOrigin" : true, "changeOrigin" : true,
@ -88,9 +124,13 @@
"^/start" : "" "^/start" : ""
} }
} }
} },
"port" : ""
}, },
"title" : "color", "title" : "color",
"domain" : "webtest.luck-work.com" "domain" : "api.wingold6.com"
} }
} }
// h5+runtime
/* */

385
pages.json

@ -1,162 +1,212 @@
{ {
"easycom": { "easycom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/login/index",
"style": {
}
},
{
"path": "pages/menu/about/RiskDisclosureAGREEMENT",
"style": {
}
},
{
"path": "pages/menu/about/privacyPolicy",
"style": {
}
},
{
"path": "pages/menu/search/index",
"style": {
}
},
{
"path": "pages/menu/goods/index",
"style": {
}
},
{
"path": "pages/menu/goods/goodsDetail/index",
"style": {
}
},
{
"path": "pages/menu/bankCard/addAddress/index",
"style": {
}
},
{
"path": "pages/menu/bankCard/addBankCard/index",
"style": {
}
},
{
"path": "pages/menu/bankCard/index",
"style": {
}
}, },
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/login/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/redenvelopes",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/re/list/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/re/add/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/address/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/order/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/about/RiskDisclosureAGREEMENT",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/about/privacyPolicy",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/search/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/goods/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/goods/goodsDetail/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/address/addAddress/index",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/register/index", "path": "pages/menu/bankCard/addBankCard/index",
"style": { "style": {
} "navigationStyle": "custom"
}, }
{ },
"path": "pages/menu/color/index", {
"style": { "path": "pages/menu/bankCard/index",
"style": {
"navigationStyle": "custom"
}
},
}
},
{
"path": "pages/menu/colorMoni/index",
"style": {
}
},
{
"path": "pages/menu/promotion/applyRecord/index",
"style": {
}
},
{
"path": "pages/menu/promotion/bounsRecord/index",
"style": {
}
},
{
"path": "pages/menu/withdrawl/transactions/index",
"style": {
}
},
{
"path": "pages/menu/recharge/rechargeRule",
"style": {
}
},
{
"path": "pages/register/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/color/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/colorMoni/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/promotion/applyRecord/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/promotion/bounsRecord/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/withdrawl/transactions/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/recharge/rechargeRule",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/withdrawl/transactions/index",
"style": {
}
},
{
"path": "pages/menu/withdrawl/withdrawlRecord/index",
"style": {
}
},
{ {
"path": "pages/menu/recharge/index", "path": "pages/menu/withdrawl/transactions/index",
"style": { "style": {
} "navigationStyle": "custom"
}, }
},
{
"path": "pages/menu/withdrawl/withdrawlRecord/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/recharge/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/recharge/record/index",
"style": {
}
},
{
"path": "pages/menu/recharge/record/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/rule/arules/index",
"style": {
}
},
{
"path": "pages/menu/aplan/index",
"style": {
}
},
{
"path": "pages/menu/rule/arules/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/aplan/index",
"style": {}
},
{
"path": "pages/menu/withdrawl/index",
"style": {
}
},
{
"path": "pages/menu/promotion/promotionRecord/index",
"style": {
}
},
{ {
"path": "pages/menu/recharge/index", "path": "pages/menu/withdrawl/index",
"style": { "style": {
} "navigationStyle": "custom"
}, }
},
{
"path": "pages/menu/promotion/promotionRecord/index",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/menu/My/index", "path": "pages/menu/recharge/index",
"style": { "style": {
"navigationStyle": "custom"
}
},
} {
}, "path": "pages/menu/My/index",
"style": {
}
},
{ {
"path": "pages/menu/promotion/index", "path": "pages/menu/promotion/index",
"style": { "style": {
"navigationStyle": "custom"
} }
}, },
@ -166,7 +216,7 @@
{ {
"path": "pages/menu/index/index", "path": "pages/menu/index/index",
"style": { "style": {
"navigationStyle": "custom"
} }
}, },
@ -175,20 +225,21 @@
{ {
"path": "pages/login/resetPassword/index", "path": "pages/login/resetPassword/index",
"style": { "style": {
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/menu/rule/index", "path": "pages/menu/rule/index",
"style": { "style": {
"navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/menu/rule/inviteRule/index", "path": "pages/menu/rule/inviteRule/index",
"style": { "style": {
"navigationStyle": "custom"
} }
} }
@ -198,41 +249,45 @@
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#34026B" "navigationBarBackgroundColor": "#34026B",
"style": {
"app-plus": {
"titleNView": false
}
}
}, },
"tabBar":{ "tabBar": {
"selectedColor":"#34026B", "selectedColor": "#34026B",
"list":[ "list": [{
{ "text": "Home",
"text":"Home", "pagePath": "pages/menu/goods/index",
"pagePath":"pages/menu/goods/index", "iconPath": "./static/tabbar/[email protected]",
"iconPath":"./static/tabbar/[email protected]", "selectedIconPath": "./static/tabbar/[email protected]"
"selectedIconPath":"./static/tabbar/[email protected]"
}, },
{ {
"text":"Search", "text": "Search",
"pagePath":"pages/menu/search/index", "pagePath": "pages/menu/search/index",
"iconPath":"./static/tabbar/[email protected]", "iconPath": "./static/tabbar/[email protected]",
"selectedIconPath":"./static/tabbar/[email protected]" "selectedIconPath": "./static/tabbar/[email protected]"
}, },
{ {
"text":"Game", "text": "Order",
"pagePath":"pages/menu/color/index", "pagePath":"pages/menu/order/index",
"iconPath":"./static/tabbar/meun_icon_game_nor@2x.png", "iconPath": "./static/tabbar/dorder.png",
"selectedIconPath":"./static/tabbar/meun_icon_game_sel@2x.png" "selectedIconPath": "./static/tabbar/dorderS.png"
}, },
{ {
"text":"Promotion", "text": "Promotion",
"pagePath":"pages/menu/promotion/index", "pagePath": "pages/menu/promotion/index",
"iconPath":"./static/tabbar/[email protected]", "iconPath": "./static/tabbar/[email protected]",
"selectedIconPath":"./static/tabbar/[email protected]" "selectedIconPath": "./static/tabbar/[email protected]"
}, },
{ {
"text":"My", "text": "My",
"pagePath":"pages/menu/My/index", "pagePath": "pages/menu/My/index",
"iconPath":"./static/tabbar/[email protected]", "iconPath": "./static/tabbar/[email protected]",
"selectedIconPath":"./static/tabbar/[email protected]" "selectedIconPath": "./static/tabbar/[email protected]"
} }
] ]
} }

9
pages/login/index.css

@ -23,9 +23,8 @@
.input-item input{ .input-item input{
line-height: 96rpx; line-height: 96rpx;
width: 500rpx; width: 500rpx;
text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.login-sigh{ .login-sigh{
width: 172rpx; width: 172rpx;
@ -36,7 +35,7 @@
content: ''; content: '';
width: 4rpx; width: 4rpx;
height: 26rpx; height: 26rpx;
background-color: #BFC2CCFF; background-color: #BFC2CC;
position: absolute; position: absolute;
right: 16rpx; right: 16rpx;
top: 50%; top: 50%;
@ -58,11 +57,11 @@
} }
.login-sigh .quhao{ .login-sigh .quhao{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
margin-left: 20rpx; margin-left: 20rpx;
} }
.rePass{ .rePass{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
float: right; float: right;
} }

27
pages/login/index.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<navigation> <navigation :showBack="false">
<image :src="logoUrl" mode="aspectFit" class="logo" slot="logo"></image> <image :src="logoUrl" mode="aspectFit" class="logo" slot="logo"></image>
Login Login
</navigation> </navigation>
@ -59,11 +59,15 @@
}, },
onLoad() { onLoad() {
const ticket= uni.getStorageSync('logInfo').data;
if(ticket!=''&&ticket!=undefined&&ticket!=null){
uni.reLaunch({
url:'../menu/goods/index'
})
}
// console.log(uni.getSystemInfoSync().platform)
this.siteInfoData = uni.getStorageSync('siteInfo') this.siteInfoData = uni.getStorageSync('siteInfo')
this.countryCode = uni.getStorageSync('countryCode') this.countryCode = uni.getStorageSync('countryCode')
console.log(this.siteInfoData, 9999)
console.log(this.countryCode, 99999)
const siteInfo = api.siteInfo() const siteInfo = api.siteInfo()
siteInfo.then(d => { siteInfo.then(d => {
let that = this let that = this
@ -71,7 +75,6 @@
key: 'siteInfo', key: 'siteInfo',
data: d.data, data: d.data,
success: function() { success: function() {
console.log('success')
that.logoUrl = d.data.siteDomain + d.data.siteLogo that.logoUrl = d.data.siteDomain + d.data.siteLogo
that.siteName = d.data.siteName that.siteName = d.data.siteName
that.areacode = d.data.areaCode that.areacode = d.data.areaCode
@ -87,8 +90,7 @@
this.siteName = this.siteInfoData.siteName this.siteName = this.siteInfoData.siteName
// const ticket = this.$store.state.ticket // const ticket = this.$store.state.ticket
const ticket= uni.getStorageSync('logInfo').data;
console.log(ticket,7777777777777777777)
// if(ticket != ''){ // if(ticket != ''){
// uni.navigateTo({ // uni.navigateTo({
// url: '../menu/index/index' // url: '../menu/index/index'
@ -164,6 +166,15 @@
var that = this; var that = this;
if (res.errCode == "SUCCESS") { if (res.errCode == "SUCCESS") {
// #ifdef H5
var url = uni.getStorageSync('url');
if(url){
location.href=url
}
// #endif
uni.setStorage({ uni.setStorage({
key: 'logInfo', key: 'logInfo',
data: res, data: res,
@ -185,7 +196,7 @@
}) })
setTimeout(function() { setTimeout(function() {
uni.reLaunch({ uni.reLaunch({
url: '../menu/color/index' url: '../menu/goods/index'
}) })
}, 1500) }, 1500)
console.log(uni.getStorageSync('logInfo').data, 66666666666666666666) console.log(uni.getStorageSync('logInfo').data, 66666666666666666666)

13
pages/login/resetPassword/index.css

@ -31,9 +31,8 @@
.input-item input{ .input-item input{
line-height: 96rpx; line-height: 96rpx;
width: 500rpx; width: 500rpx;
text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.login-sigh{ .login-sigh{
width: 172rpx; width: 172rpx;
@ -45,10 +44,10 @@
.otp{ .otp{
width: 80rpx; width: 80rpx;
line-height: 40rpx; line-height: 40rpx;
border: 2rpx solid #954DE3FF; border: 2rpx solid #954DE3;
border-radius: 8rpx; border-radius: 8rpx;
text-align: center; text-align: center;
color:#954DE3FF ; color:#954DE3 ;
} }
.input_pcod{ .input_pcod{
padding-left: 20rpx; padding-left: 20rpx;
@ -57,7 +56,7 @@
content: ''; content: '';
width: 4rpx; width: 4rpx;
height: 26rpx; height: 26rpx;
background-color: #BFC2CCFF; background-color: #BFC2CC;
position: absolute; position: absolute;
right: 16rpx; right: 16rpx;
top: 50%; top: 50%;
@ -79,11 +78,11 @@
} }
.login-sigh .quhao{ .login-sigh .quhao{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
margin-left: 20rpx; margin-left: 20rpx;
} }
.rePass{ .rePass{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
float: right; float: right;
} }

17
pages/login/resetPassword/index.vue

@ -10,7 +10,7 @@
<span class="quhao">+{{areacode}}</span> <span class="quhao">+{{areacode}}</span>
</view> </view>
<input type="text" value="" placeholder="mobile number" <input type="text" value="" placeholder="mobile number"
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" v-model="mobile" placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile"
@input="btnControl" /> @input="btnControl" />
</view> </view>
<view class="input-item flex"> <view class="input-item flex">
@ -20,7 +20,7 @@
</view> </view>
</view> </view>
<input class="input_pcod" value="" placeholder="Picture Code" <input class="input_pcod" value="" placeholder="Picture Code"
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" v-model="picCode" /> placeholder-style="color: #BFC2CC;font-size:14px;" v-model="picCode" />
<view class="login-sigh3 flex"> <view class="login-sigh3 flex">
<image :src="imgcodeUrl" mode="scaleToFill" class="img1"></image> <image :src="imgcodeUrl" mode="scaleToFill" class="img1"></image>
<image src="../../../static/login/[email protected]" mode="" class="img2" @click="getPicCode()"> <image src="../../../static/login/[email protected]" mode="" class="img2" @click="getPicCode()">
@ -52,15 +52,16 @@
</view> </view>
</view> </view>
<input type="password" value="" placeholder="new password" <input type="password" value="" placeholder="new password"
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" placeholder-style="color: #BFC2CCFF;font-size:14px;"
v-model="newPassword" /> v-model="newPassword" />
</view> </view>
<button class="login-btn" @click="resetPassword()" :class="btnNum==1?'on':''" <button class="login-btn" @click="resetPassword()" :class="btnNum==1?'on':''"
:disabled="btnNum==1?false:true"> :disabled="btnNum==1?false:true">
Continue Confirm
</button> </button>
</view> </view>
<tab-bar :selectActive="5"></tab-bar>
</view> </view>
</template> </template>
@ -149,10 +150,11 @@
post.then(res => { post.then(res => {
var that = this; var that = this;
uni.showToast({ uni.showToast({
title: res.errMsg, title: 'Successfully',
icon: 'none', icon: 'none',
duration: 2500 duration: 2500
}) })
this.getPicCode();
}) })
.catch(e => { .catch(e => {
uni.showToast({ uni.showToast({
@ -160,6 +162,7 @@
icon: 'none', icon: 'none',
duration: 2500 duration: 2500
}) })
this.getPicCode();
}) })
} else { } else {
this.$u.toast('Send after the countdown'); this.$u.toast('Send after the countdown');
@ -167,8 +170,8 @@
}, },
getPicCode() { getPicCode() {
this.imgcodeUrl = "/start/api/home/imgCode?uuid=" + this.$u.guid(20);
console.log(this.imgcodeUrl) this.imgcodeUrl = "https://apitest.luck-work.com/api/home/imgCode?uuid=" + this.$u.guid(20);
}, },
resetPassword() { resetPassword() {

10
pages/menu/My/index.css

@ -1,7 +1,7 @@
.content{ .content{
padding-bottom: 254rpx; padding-bottom: 254rpx;
background-color: #F5F7FAFF !important; background-color: #F5F7FA !important;
position: relative; position: relative;
} }
.flex{ .flex{
@ -57,7 +57,7 @@ margin-left: 24rpx;
.my-ap{ .my-ap{
width: 118rpx; width: 118rpx;
line-height: 44rpx; line-height: 44rpx;
background-color: #491C7AFF; background-color: #491C7A;
border-radius: 16rpx; border-radius: 16rpx;
text-align: center; text-align: center;
margin-left: 26rpx; margin-left: 26rpx;
@ -93,7 +93,7 @@ margin-left: 24rpx;
width: 100%; width: 100%;
line-height: 108rpx; line-height: 108rpx;
border-bottom: 2rpx solid #F5F7FA; border-bottom: 2rpx solid #F5F7FA;
color: #303133FF; color: #303133;
font-size: 30rpx; font-size: 30rpx;
text-transform: capitalize; text-transform: capitalize;
position: relative; position: relative;
@ -136,7 +136,7 @@ margin-left: 24rpx;
} }
.my-body-out{ .my-body-out{
text-align: center; text-align: center;
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
background-color: #fff; background-color: #fff;
text-transform: capitalize; text-transform: capitalize;
@ -190,5 +190,5 @@ margin-left: 24rpx;
margin: 0 auto; margin: 0 auto;
} }
.pupler{ .pupler{
color: #954DE3FF; color: #954DE3;
} }

147
pages/menu/My/index.vue

@ -21,8 +21,8 @@
Mobile: +{{areaCode}} {{MyInfo.mobile}} Mobile: +{{areaCode}} {{MyInfo.mobile}}
</view> </view>
<view class="my-bal flex"> <view class="my-bal flex">
<view>Available Balance: {{currentBalance}}</view> <view>Available Balance: {{currencySymbol}}{{currentBalance}}</view>
<!-- <view class="my-ap"> <!-- <view class="my-ap" @click="goAplan()">
A+ Plan A+ Plan
</view> --> </view> -->
</view> </view>
@ -31,9 +31,9 @@
<view class="my-btn1" @click="goRecharge()"> <view class="my-btn1" @click="goRecharge()">
recharge recharge
</view> </view>
<view class="my-btn2" @click="go(3)"> <!-- <view class="my-btn2" @click="go(3)">
Change Nick Name Change Nick Name
</view> </view> -->
</view> </view>
</view> </view>
@ -55,13 +55,16 @@
<view class="text" @click="goTransactions()"> <view class="text" @click="goTransactions()">
Transactions Transactions
</view> </view>
<view class="text" @click="gorEDenvelope()">
Red Envelope
</view>
</view> </view>
</view> </view>
<view class="my-body-item" v-for="(item,index) in myAList" :key="item.id" @click="go(item.id)"> <view class="my-body-item" v-for="(item,index) in myAList" :key="item.id" @click="go(item.id)">
{{item.text}} {{item.text}}
</view> </view>
<view class="fuji" :class="fujiNum2==2?'activeErji':''" @click="fuji2()"> <view class="fuji" :class="fujiNum2==2?'activeErji':''" @click="fuji2()">
<view class="my-body-item"> <view class="my-body-item">
About About
</view> </view>
@ -118,32 +121,30 @@
data() { data() {
return { return {
// //
i:0, i: 0,
i2:0, i2: 0,
fujiNum:-1, fujiNum: -1,
fujiNum2:-1, fujiNum2: -1,
// mask // mask
mCode:-1, mCode: -1,
list: [ list: [{
{ name: 'male',
name: 'male', value: 1,
value:1, disabled: false
disabled: false },
}, {
{ name: 'female',
name: 'female', value: 2,
value:2, disabled: false
disabled: false },
}, ],
],
newName: '', newName: '',
MyInfo: {}, MyInfo: {},
transferCode: 0, transferCode: 0,
currentBalance: '', currentBalance: '',
areaCode: '', areaCode: '',
androidUrl: '', androidUrl: '',
myAList: [ myAList: [{
{
id: '1', id: '1',
text: 'Bank card' text: 'Bank card'
}, },
@ -168,6 +169,7 @@
}, },
onLoad() { onLoad() {
this.openGame()
this.areaCode = uni.getStorageSync('siteInfo').areaCode; this.areaCode = uni.getStorageSync('siteInfo').areaCode;
this.androidUrl = uni.getStorageSync('siteInfo').androidUrl; this.androidUrl = uni.getStorageSync('siteInfo').androidUrl;
this.currentBalance = uni.getStorageSync('currentBalance'); this.currentBalance = uni.getStorageSync('currentBalance');
@ -177,7 +179,6 @@
}) })
post.then(res => { post.then(res => {
this.MyInfo = res.data; this.MyInfo = res.data;
console.log(this.MyInfo, 9990);
uni.setStorage({ uni.setStorage({
key: 'MyInfo', key: 'MyInfo',
data: res.data, data: res.data,
@ -185,7 +186,6 @@
console.log('success') console.log('success')
} }
}); });
console.log(res.data)
}) })
.catch(e => { .catch(e => {
uni.showToast({ uni.showToast({
@ -196,42 +196,77 @@
}) })
}, },
methods: { methods: {
goPrivacy(){ openGame() {
uni.navigateTo({ const post = api.info()
url:'../about/privacyPolicy' post.then(d => {
}) // uni.setStorage({
// key: 'Gamestatus',
// data: d.data.gameMenuStatus,
// });
if (d.data.gameMenuStatus == 'close') {
uni.setTabBarItem({
index: 2,
text: 'Order',
pagePath: '/pages/menu/order/index',
iconPath: '/static/tabbar/dorder.png',
selectedIconPath: '/static/tabbar/dorderS.png'
})
} else if (d.data.gameMenuStatus == 'open') {
uni.setTabBarItem({
index: 2,
text: 'Game',
pagePath: "/pages/menu/color/index",
iconPath: "/static/tabbar/[email protected]",
selectedIconPath: "/static/tabbar/[email protected]"
})
}
})
.catch((e) => {
console.log(e)
})
}, },
goRisk(){ goPrivacy() {
uni.navigateTo({ uni.navigateTo({
url:'../about/RiskDisclosureAGREEMENT' url: '../about/privacyPolicy'
}) })
},
goRisk() {
uni.navigateTo({
url: '../about/RiskDisclosureAGREEMENT'
})
}, },
// //
fuji(){ fuji() {
this.fujiNum=1; this.fujiNum = 1;
this.i++; this.i++;
if(this.i%2==0){ if (this.i % 2 == 0) {
this.i=0; this.i = 0;
this.fujiNum=-1; this.fujiNum = -1;
} }
}, },
fuji2(){ fuji2() {
this.fujiNum2=2; this.fujiNum2 = 2;
this.i2++; this.i2++;
if(this.i2%2==0){ if (this.i2 % 2 == 0) {
this.i2=0; this.i2 = 0;
this.fujiNum2=-1; this.fujiNum2 = -1;
} }
}, },
// //
go(i) { go(i) {
if (i == 3) { if (i == 3) {
this.transferCode = 1 console.log(12313)
this.mCode=1 uni.reLaunch({
url: '/pages/menu/order/index',
fail: (err) => {
console.log(err, 22222)
}
})
} }
if (i == 0) { if (i == 0) {
this.transferCode = 2 this.transferCode = 2
this.mCode=2 this.mCode = 2
} }
if (i == 4) { if (i == 4) {
uni.navigateTo({ uni.navigateTo({
@ -240,7 +275,7 @@
} }
if (i == 2) { if (i == 2) {
uni.navigateTo({ uni.navigateTo({
url: '../bankCard/addAddress/index' url: '../address/index'
}) })
} }
if (i == 1) { if (i == 1) {
@ -249,7 +284,6 @@
}) })
} }
if (i == 5) { if (i == 5) {
console.log(this.androidUrl)
// #ifdef H5 // #ifdef H5
window.location.href = this.androidUrl; window.location.href = this.androidUrl;
// #endif // #endif
@ -259,6 +293,11 @@
} }
}, },
gorEDenvelope() {
uni.navigateTo({
url: '../re/list/index'
})
},
changeName() { changeName() {
uni.showLoading({ uni.showLoading({
title: "loading" title: "loading"
@ -302,7 +341,11 @@
}) })
}, },
goAplan() {
uni.navigateTo({
url: '../aplan/index'
})
},
goRecharge() { goRecharge() {
uni.navigateTo({ uni.navigateTo({
url: '../recharge/index' url: '../recharge/index'
@ -313,7 +356,7 @@
url: '../withdrawl/index' url: '../withdrawl/index'
}) })
}, },
goTransactions(){ goTransactions() {
uni.navigateTo({ uni.navigateTo({
url: '../withdrawl/transactions/index' url: '../withdrawl/transactions/index'
}) })
@ -330,7 +373,7 @@
}) })
if (res.success == true) { if (res.success == true) {
uni.showToast({ uni.showToast({
title: 'Log out successfully', title: 'Exit successful',
icon: 'success', icon: 'success',
duration: 1500 duration: 1500
}) })

33
pages/menu/about/RiskDisclosureAGREEMENT.vue

@ -3,17 +3,8 @@
<navigation> <navigation>
Risk Disclosure AGREEMENT Risk Disclosure AGREEMENT
</navigation> </navigation>
<view class="arcon"> <view class="arcon" v-html="cont">
<view class="record_body">
A+ Plan is an lnternet online wealth manage ment product launched by NGNClub.NGNC lub users can transfer idle funds in NGNClu b account to A+ Plan to obtain daily income of 0.5% to 1%. For example, if you deposit 10,000 today, you will receive tomorrow 50 to100 income. The funds of A+ Plan can be tr ansferred in and out at any time without affe cting your use. You can choose to transfer t he account funds in to obtain income when you are not playing, such as when you are s leeping and resting
</view>
<view class="record_body">
Transfer-in amount: minimum 1000 naira<br>
Income settlement time: After midnight the n ext day
</view>
</view> </view>
</view> </view>
@ -26,18 +17,32 @@
export default{ export default{
data(){ data(){
return{ return{
cont:''
} }
}, },
onLoad() { onLoad() {
this.getText();
}, },
methods:{ methods:{
getText(){
const post = api.article({
"mark":'agreement_betting_risk',
})
post.then(res => {
this.cont=res.data.content;
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}
}, },
} }
@ -49,7 +54,7 @@
padding-top: 70rpx; padding-top: 70rpx;
} }
.record_body{ .record_body{
color: #303133FF; color: #303133;
line-height: 48rpx; line-height: 48rpx;
font-size: 28rpx; font-size: 28rpx;
text-transform: capitalize; text-transform: capitalize;

31
pages/menu/about/privacyPolicy.vue

@ -3,17 +3,10 @@
<navigation> <navigation>
Privacy Policy Privacy Policy
</navigation> </navigation>
<view class="arcon"> <view class="arcon" v-html="cont">
<view class="record_body">
A+ Plan is an lnternet online wealth manage ment product launched by NGNClub.NGNC lub users can transfer idle funds in NGNClu b account to A+ Plan to obtain daily income of 0.5% to 1%. For example, if you deposit 10,000 today, you will receive tomorrow 50 to100 income. The funds of A+ Plan can be tr ansferred in and out at any time without affe cting your use. You can choose to transfer t he account funds in to obtain income when you are not playing, such as when you are s leeping and resting
</view>
<view class="record_body">
Transfer-in amount: minimum 1000 naira<br>
Income settlement time: After midnight the n ext day
</view>
</view> </view>
</view> </view>
@ -26,18 +19,32 @@
export default{ export default{
data(){ data(){
return{ return{
cont:''
} }
}, },
onLoad() { onLoad() {
this.getText()
}, },
methods:{ methods:{
getText(){
const post = api.article({
"mark":'agreement_betting_privacy_policy',
})
post.then(res => {
this.cont=res.data.content;
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}
}, },
} }
@ -49,7 +56,7 @@
padding-top: 70rpx; padding-top: 70rpx;
} }
.record_body{ .record_body{
color: #303133FF; color: #303133;
line-height: 48rpx; line-height: 48rpx;
font-size: 28rpx; font-size: 28rpx;
text-transform: capitalize; text-transform: capitalize;

8
pages/menu/bankCard/addAddress/index.css → pages/menu/address/addAddress/index.css

@ -25,7 +25,7 @@
width: 500rpx; width: 500rpx;
text-transform: capitalize; text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.login-sigh{ .login-sigh{
width: 172rpx; width: 172rpx;
@ -36,7 +36,7 @@
content: ''; content: '';
width: 4rpx; width: 4rpx;
height: 26rpx; height: 26rpx;
background-color: #BFC2CCFF; background-color: #BFC2CC;
position: absolute; position: absolute;
right: 16rpx; right: 16rpx;
top: 50%; top: 50%;
@ -58,11 +58,11 @@
} }
.login-sigh .quhao{ .login-sigh .quhao{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
margin-left: 20rpx; margin-left: 20rpx;
} }
.rePass{ .rePass{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
float: right; float: right;
} }

109
pages/menu/bankCard/addAddress/index.vue → pages/menu/address/addAddress/index.vue

@ -1,12 +1,17 @@
<template> <template>
<view class=""> <view class="">
<navigation> <navigation v-if="form.id==null">
Add Address Add Address
</navigation> </navigation>
<navigation v-if="form.id!=null">
Modify Address
</navigation>
<view class="login-body"> <view class="login-body">
<u-form :model="form" ref="uForm" :rules="rules"> <u-form :model="form" ref="uForm" :rules="rules">
<u-form-item prop="name"> <u-form-item prop="name">
<u-input v-model="form.name" :placeholder="'Full Name'" @input="btnControl()"/> <u-input v-model="form.name" :placeholder="'Full Name'"
/>
</u-form-item> </u-form-item>
<u-form-item prop="mobile"> <u-form-item prop="mobile">
<u-input v-model="form.mobile" :placeholder="'Mobile Number'"/> <u-input v-model="form.mobile" :placeholder="'Mobile Number'"/>
@ -20,12 +25,12 @@
<u-form-item prop="city"> <u-form-item prop="city">
<u-input v-model="form.city" :placeholder="'Town/City'"/> <u-input v-model="form.city" :placeholder="'Town/City'"/>
</u-form-item> </u-form-item>
<u-form-item prop="areaInfo"> <u-form-item prop="areaInfo" >
<u-input v-model="form.areaInfo" :placeholder="'Detail Address'"/> <u-input v-model="form.areaInfo" :placeholder="'Detail Address'"/>
</u-form-item> </u-form-item>
</u-form> </u-form>
<button @click="submit" class="login-btn" :class="btncol==1?'on':''" :disabled="btncol==1?false:true"> <button @click="submit" class="login-btn on">
Continue Confirm
</button> </button>
</view> </view>
</view> </view>
@ -62,28 +67,29 @@
// //
trigger: ['blur'], trigger: ['blur'],
}, },
], ],
code: [ mobile: [
{ {
required: true, required: true,
// min: 5, // min: 5,
message: 'Please enter IFSC Code', message: 'Please enter mobile number',
trigger: 'blur' trigger: 'blur'
} }
], ],
baName: [ zip: [
{ {
required: true, required: true,
// min: 5, // min: 5,
message: 'Please enter Bank Name', message: 'Please enter Pincode',
trigger: 'blur' trigger: 'blur'
} }
], ],
accout: [ province: [
{ {
required: true, required: true,
// min: 5, // min: 5,
message: 'Please enter Bank Accout', message: 'Please enter State',
trigger: 'blur' trigger: 'blur'
} }
], ],
@ -102,27 +108,19 @@
trigger: 'blur' trigger: 'blur'
} }
], ],
mobile: [
{
required:true,
// min: 5,
message: 'Please enter Mobile Number',
trigger: 'blur'
}
],
email: [
{
// min: 5,
message: 'Please enter email',
trigger: 'blur'
}
],
} }
} }
}, },
onLoad() { onLoad(item) {
this.form.ticket= uni.getStorageSync('logInfo').data;
if(JSON.stringify(item) != "{}"){
var data=item.card.replace(/""/g,"");
this.form=JSON.parse(data)
}
this.form.ticket= uni.getStorageSync('logInfo').data;
console.log(this.form.ticket,666666)
}, },
// onReadyonLoad // onReadyonLoad
onReady() { onReady() {
@ -136,10 +134,53 @@
} }
}, },
submit() {
submit() { this.$refs.uForm.validate(valid => {
if (valid) {
} uni.showLoading({})
const post = api.addressSave(this.form)
post.then(res => {
if(res.errCode=='SUCCESS'){
if(this.form.id!=null){
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 2500
})
}else{
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 2500
})
}
setTimeout(()=>{
uni.navigateTo({
url:'../index'
})
},2000)
}else{
uni.hideLoading()
uni.showToast({
title: 'Fail',
icon: 'none',
duration: 2500,
})
}
})
.catch(e => {
uni.hideLoading()
uni.showToast({
title: 'Fail',
icon: 'none',
duration: 2500
})
})
} else {
console.log('验证失败');
}
});
}
} }

73
pages/menu/address/index.css

@ -0,0 +1,73 @@
.record_body{
padding: 0 36rpx;
}
.flex{
display: flex;
justify-content: space-between;
align-items: center;
}
.record_item{
min-height: 200rpx;
border-bottom: 2rpx solid #F5F7FA;
word-break: break-word;
}
.numcon .img1{
width: 40rpx;
height: 40rpx;
}
.num{
width: 550rpx;
margin-left: 20rpx;
text-transform: capitalize;
}
.rec{
color: #303133;
font-size: 32rpx;
}
.cpay{
color: #909399;
font-size: 28rpx;
}
.time{
width: 48rpx;
line-height: 48rpx;
text-align: center;
border-radius: 50%;
background-color: #BFC2CC;
color: #fff;
font-size: 28rpx;
}
.select_con{
width: 750rpx;
height: 446rpx;
background-color: #fff;
border-radius: 40rpx 40rpx 0 0;
position: fixed;
bottom: 0;
left: 0;
z-index: 999;
padding-top: 48rpx;
}
.select{
text-align: center;
color: #303133;
font-size: 36rpx;
}
.ed_con{
margin-top: 48rpx;
padding: 0 36rpx;
}
.ed{
line-height: 96rpx;
}
.img{
width: 48rpx;
height: 48rpx;
vertical-align: text-bottom;
}
.text{
font-size: 32rpx;
margin-left: 24rpx;
}

185
pages/menu/address/index.vue

@ -0,0 +1,185 @@
<template>
<view class="">
<navigation>
Address
<view class="bread" slot="bread">
<image src="../../../static/bankCard/[email protected]" mode="aspectFit"
@click="goAddAddress()"></image>
</view>
</navigation>
<!-- v-for="item,index in record_list" :key="item.id" -->
<view class="record_body">
<view class="record_item flex" v-for="item,index in record_list" :key="index">
<view class="numcon flex">
<image src="../../../static/bankCard/dizhi.png" mode="aspectFit" class="img1">
</image>
<view class="num">
<view class="flex">
<view class="rec">
{{item.name}}
</view>
<view class="">
+{{areacode}} {{item.mobile}}
</view>
</view>
<view class="cpay">
{{item.areaInfo}}
</view>
</view>
</view>
<view class="time" @click="keepId(item,item.id)">
i
</view>
</view>
<u-mask :z-index="10" :show="show" @click="show = false"></u-mask>
<!-- 涓嬫媺閫夋嫨 -->
<view class="select_con" v-show="show">
<view class="select">
Select
</view>
<view class="ed_con" >
<view class="ed">
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image>
<text class="text" @click="goAddCard2(card)">Edit</text>
</view>
<view class="ed">
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image>
<text class="text" @click="deleCard()">Delete</text>
</view>
</view>
</view>
<u-modal cancel-text="cancel" confirm-color="#954DE3" confirm-text="confirm" :show-title="false" :show-cancel-button="true" v-model="show2" :content="content" @confirm="confirm"></u-modal>
</view>
<tab-bar :selectActive="5"></tab-bar>
</view>
</template>
<script>
import cont from "@/components/navigation/navigation.vue"
import Vue from 'vue';
import api from '@/utils/api'
export default {
data() {
return {
show2: false,
content: 'Are you sure to delete',
record_list: [],
show: false,
// item
card:null,
cardId:'',
areacode: '',
}
},
onLoad() {
this.areacode = uni.getStorageSync('siteInfo').areaCode
this.init();
},
methods: {
init(){
const post = api.addressList({
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
this.record_list=res.data
for(var i=0;i<res.data.length;i++){
// #ifdef H5
res.data[i].name=res.data[i].name.replaceAll('%20',' ')
res.data[i].areaInfo=res.data[i].areaInfo.replaceAll('%20',' ')
// #endif
// #ifdef APP-PLUS
res.data[i].name=res.data[i].name.replace(new RegExp('%20',"gm"),' ')
res.data[i].areaInfo=res.data[i].areaInfo.replace(new RegExp('%20',"gm"),' ')
// #endif
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
// id
keepId(i,c){
this.show=true;
this.card=i;
this.cardId=c;
},
deleCard(){
this.show2=true;
},
confirm(){
const post = api.delAddress({
"ticket": uni.getStorageSync('logInfo').data,
"addressId":this.cardId
})
uni.showLoading({})
post.then(res => {
if(res.errCode=='SUCCESS'){
uni.showToast({
title: 'Succeeded',
icon: 'success',
duration: 2500
})
this.show=false;
this.init();
}else{
uni.showToast({
title: 'Failed',
icon: 'none',
duration: 2500
})
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
goAddAddress() {
uni.navigateTo({
url:'addAddress/index',
})
},
// edit
goAddCard2(i) {
var data=JSON.stringify(i)
uni.navigateTo({
url:'addAddress/index?card='+data,
})
},
}
}
</script>
<style scoped lang="scss">
@import './index.css';
.bread image {
width: 28rpx;
height: 28rpx;
position: absolute;
right: 36rpx;
top: 60%;
transform: translateY(-50%);
}
</style>

14
pages/menu/aplan/index.css

@ -3,7 +3,7 @@
.pro-head{ .pro-head{
padding: 0 68rpx; padding: 0 68rpx;
background-color: #34026BFF; background-color: #34026B;
padding-bottom: 36rpx; padding-bottom: 36rpx;
} }
.pro-body-p1{ .pro-body-p1{
@ -32,7 +32,7 @@
right: 36rpx; right: 36rpx;
} }
.ab{ .ab{
color: #FFFFFFFF; color: #FFFFFF;
font-size: 28rpx; font-size: 28rpx;
text-align: center; text-align: center;
margin-top: 36rpx; margin-top: 36rpx;
@ -64,20 +64,20 @@
line-height: 72rpx; line-height: 72rpx;
text-align: center; text-align: center;
border-radius: 16rpx; border-radius: 16rpx;
border: 2rpx #954DE3FF solid; border: 2rpx #954DE3 solid;
color: #fff; color: #fff;
margin-top: 24rpx; margin-top: 24rpx;
font-size: 28rpx; font-size: 28rpx;
} }
.mon_btn:hover{ .mon_btn:hover{
background-color: #954DE3FF; background-color: #954DE3;
} }
.ap_body{ .ap_body{
padding: 0 36rpx; padding: 0 36rpx;
} }
.fde{ .fde{
padding: 24rpx 0; padding: 24rpx 0;
color: #909399FF; color: #909399;
font-size: 32rpx; font-size: 32rpx;
} }
.record_item{ .record_item{
@ -102,11 +102,11 @@
} }
.time_mon{ .time_mon{
color: #00B977FF; color: #00B977;
font-size: 32rpx; font-size: 32rpx;
} }
.mon2{ .mon2{
color: #909399FF; color: #909399;
font-size: 28rpx; font-size: 28rpx;
} }
.content{ .content{

8
pages/menu/bankCard/addBankCard/index.css

@ -25,7 +25,7 @@
width: 500rpx; width: 500rpx;
text-transform: capitalize; text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.login-sigh{ .login-sigh{
width: 172rpx; width: 172rpx;
@ -36,7 +36,7 @@
content: ''; content: '';
width: 4rpx; width: 4rpx;
height: 26rpx; height: 26rpx;
background-color: #BFC2CCFF; background-color: #BFC2CC;
position: absolute; position: absolute;
right: 16rpx; right: 16rpx;
top: 50%; top: 50%;
@ -58,11 +58,11 @@
} }
.login-sigh .quhao{ .login-sigh .quhao{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
margin-left: 20rpx; margin-left: 20rpx;
} }
.rePass{ .rePass{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
float: right; float: right;
} }

328
pages/menu/bankCard/addBankCard/index.vue

@ -1,38 +1,43 @@
<template> <template>
<view class=""> <view class="">
<navigation> <navigation v-if="form.id==null">
Add Bank Card Add Bank Card
</navigation> </navigation>
<navigation v-if="form.id!=null">
Modify Bank Card
</navigation>
<view class="login-body"> <view class="login-body">
<u-form :model="form" ref="uForm" :rules="rules"> <u-form :model="form" ref="uForm" :rules="rules">
<u-form-item prop="acctName"> <u-form-item prop="acctName">
<u-input v-model="form.acctName" :placeholder="'Actual Name'" @input="btnControl()"/> <u-input v-model="form.acctName" :placeholder="'Actual Name'" @input="btnControl()" />
</u-form-item> </u-form-item>
<u-form-item prop="bankCode"> <u-form-item prop="bankCode">
<u-input v-model="form.bankCode" :placeholder="'IFSC Code'"/> <u-input v-model="form.bankCode" :placeholder="'IFSC Code'" />
</u-form-item> </u-form-item>
<u-form-item prop="bankName"> <u-form-item prop="bankName">
<u-input v-model="form.bankName" :placeholder="'Bank Name'"/> <u-input v-model="form.bankName" :placeholder="'Bank Name'" />
</u-form-item> </u-form-item>
<u-form-item prop="acctId"> <u-form-item prop="acctId">
<u-input v-model="form.acctId" :placeholder="'Bank Accout'"/> <u-input v-model="form.acctId" :placeholder="'Bank Account'" />
</u-form-item> </u-form-item>
<u-form-item prop="certId"> <u-form-item prop="certId">
<u-input v-model="form.certId" :placeholder="'State/Territory'"/> <u-input v-model="form.certId" :placeholder="'State/Territory'" />
</u-form-item> </u-form-item>
<u-form-item prop="city"> <u-form-item prop="city">
<u-input v-model="form.city" :placeholder="'City'"/> <u-input v-model="form.city" :placeholder="'City'" />
</u-form-item> </u-form-item>
<u-form-item prop="mobile"> <u-form-item prop="mobile">
<u-input v-model="form.mobile" :placeholder="'Mobile Number'"/> +{{areaCode}}
</u-form-item> <u-input v-model="form.mobile" :placeholder="'Mobile Number'" />
<u-form-item prop="email"> </u-form-item>
<u-input v-model="form.email" :placeholder="'Email'"/> <u-form-item prop="email">
</u-form-item> <u-input v-model="form.email" :placeholder="'Email'" />
</u-form> </u-form-item>
<button @click="submit" class="login-btn" :class="btncol==1?'on':''" :disabled="btncol==1?false:true"> </u-form>
Continue <!-- :class="btncol==1?'on':''" :disabled="btncol==1?false:true" -->
</button> <button @click="submit" class="login-btn on">
Confirm
</button>
</view> </view>
</view> </view>
</template> </template>
@ -46,94 +51,122 @@
export default { export default {
data() { data() {
return { return {
// //
btncol: 0, btncol: 0,
areaCode: '',
//
wit:'',
form: {
id: null,
acctName: '',
bankCode: '',
acctId: '',
city: '',
mobile: '',
email: '',
ticket: '',
},
rules: {
acctName: [{
required: true,
message: 'Please enter your name',
//
trigger: ['change', 'blur'],
},
],
bankCode: [{
required: true,
// min: 5,
message: 'Please enter IFSC Code',
trigger: 'blur'
}],
bankName: [{
required: true,
// min: 5,
message: 'Please enter Bank Name',
trigger: 'blur'
}],
acctId: [{
required: true,
// min: 5,
message: 'Please enter Bank Account',
trigger: 'blur'
},
// {
// min: 12,
// max: 12,
// message: 'Please enter twelve digits',
// trigger: ['change','blur'],
// },
],
certId: [{
required: true,
// min: 5,
message: 'Please enter State/Territory',
trigger: 'blur'
}],
city: [{
required: true,
// min: 5,
message: 'Please enter city',
trigger: 'blur'
}],
mobile: [{
required: true,
// min: 5,
message: 'Please enter Mobile Number',
trigger: 'blur'
},
// {
// min: 9,
// max: 9,
// message: 'Please enter nine digits',
// trigger: ['change','blur'],
// },
form: { ],
acctName: '', email: [{
bankCode: '', required: true,
baName:'', // min: 5,
acctId:'', message: 'Please enter email',
state:'', trigger: 'blur'
city:'', },
mobile:'', {
email:'', //
ticket:'', validator: (rule, value, callback) => {
// truefalse
// this.$u.test.mobile()truefalse
return this.$u.test.email(value);
}, },
rules: { message: 'Mailbox format error',
name: [ // blurchange
{ trigger: ['change', 'blur'],
required: true, }
message: 'Please enter your name', ],
// }
trigger: ['blur'],
},
],
code: [
{
required: true,
// min: 5,
message: 'Please enter IFSC Code',
trigger: 'blur'
}
],
baName: [
{
required: true,
// min: 5,
message: 'Please enter Bank Name',
trigger: 'blur'
}
],
accout: [
{
required: true,
// min: 5,
message: 'Please enter Bank Accout',
trigger: 'blur'
}
],
state: [
{
required: true,
// min: 5,
message: 'Please enter State/Territory',
trigger: 'blur'
}
],
city: [
{
// min: 5,
message: 'Please enter city',
trigger: 'blur'
}
],
mobile: [
{
required:true,
// min: 5,
message: 'Please enter Mobile Number',
trigger: 'blur'
}
],
email: [
{
// min: 5,
message: 'Please enter email',
trigger: 'blur'
}
],
}
} }
}, },
onLoad() { onLoad(item) {
this.form.ticket= uni.getStorageSync('logInfo').data; this.areaCode = uni.getStorageSync('siteInfo').areaCode
this.form.ticket = uni.getStorageSync('logInfo').data;
if (JSON.stringify(item) != '{}') {
if(item.wid=='widthdrawl'){
this.wit=item.wid;
}else{
var data = item.card.replace(/""/g, "");
this.form = JSON.parse(data)
this.form.ticket = uni.getStorageSync('logInfo').data;
}
}
}, },
// onReadyonLoad // onReadyonLoad
onReady() { onReady() {
this.$refs.uForm.setRules(this.rules); this.$refs.uForm.setRules(this.rules);
}, },
methods: { methods: {
btnControl() { btnControl() {
this.btncol = 1; this.btncol = 1;
@ -144,36 +177,65 @@
submit() { submit() {
this.$refs.uForm.validate(valid => { this.$refs.uForm.validate(valid => {
if (valid) { if (valid) {
const post = api.bankcardList(this.form) uni.showLoading({})
post.then(res => { const post = api.bindBank(this.form)
console.log(res,333333) post.then(res => {
uni.showToast({ if (res.errCode == 'SUCCESS') {
title: 'Added successfully', if (this.form.id != null) {
icon: 'success', uni.showToast({
duration: 2500 title: 'Successfully',
}) icon: 'success',
duration: 2500
})
} else {
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 2500
})
}
if(this.wit=='widthdrawl'){
setTimeout(() => {
uni.navigateTo({
url: '../../withdrawl/index'
}) })
.catch(e => { }, 2000)
uni.showToast({ }else{
title: e, setTimeout(() => {
icon: 'none', uni.navigateTo({
duration: 2500 url: '../index'
})
}) })
} else { }, 2000)
console.log('验证失败'); }
}
});
}
}
} else {
uni.hideLoading()
uni.showToast({
title: 'Fail',
icon: 'none',
duration: 2500,
})
}
})
.catch(e => {
uni.hideLoading()
uni.showToast({
title: 'Fail',
icon: 'none',
duration: 2500,
})
})
} else {
console.log('验证失败');
}
});
} }
}
}
</script> </script>
<style> <style>

111
pages/menu/bankCard/index.vue

@ -23,7 +23,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="time" @click="show=true"> <view class="time" @click="keepId(item,item.id)">
i i
</view> </view>
</view> </view>
@ -39,19 +39,20 @@
<view class="ed_con" > <view class="ed_con" >
<view class="ed"> <view class="ed">
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image> <image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image>
<text class="text">Edit</text> <text class="text" @click="goAddCard2(card)">Edit</text>
</view> </view>
<view class="ed"> <view class="ed">
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image> <image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image>
<text class="text">Delete</text> <text class="text" @click="deleCard()">Delete</text>
</view> </view>
</view> </view>
</view> </view>
<u-modal cancel-text="cancel" confirm-color="#954DE3" confirm-text="confirm" :show-title="false" :show-cancel-button="true" v-model="show2" :content="content" @confirm="confirm"></u-modal>
</view> </view>
<tab-bar :selectActive="5"></tab-bar>
</view> </view>
</template> </template>
@ -63,33 +64,105 @@
export default { export default {
data() { data() {
return { return {
show2: false,
content: 'Are you sure to delete',
record_list: [], record_list: [],
show: true show: false,
// ÄÃÒøÐп¨item
card:null,
cardId:'',
} }
}, },
onLoad() { onLoad() {
const post = api.bankcardList({ this.init();
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
this.record_list=res.data
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}, },
methods: { methods: {
init(){
const post = api.bankcardList({
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
for(var i=0;i<res.data.length;i++){
// #ifdef H5
res.data[i].acctId=res.data[i].acctId.replaceAll('%20',' ')
res.data[i].acctName=res.data[i].acctName.replaceAll('%20',' ')
// #endif
// #ifdef APP-PLUS
res.data[i].acctId=res.data[i].acctId.replace(new RegExp('%20',"gm"),' ')
res.data[i].bankName=res.data[i].acctName.replace(new RegExp('%20',"gm"),' ')
// #endif
}
this.record_list=res.data
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
// Äÿ¨id
keepId(i,c){
this.show=true;
this.card=i;
this.cardId=c;
},
deleCard(){
this.show2=true;
},
confirm(){
const post = api.delBankCard({
"ticket": uni.getStorageSync('logInfo').data,
"cardId":this.cardId
})
uni.showLoading({})
post.then(res => {
if(res.errCode=='SUCCESS'){
uni.showToast({
title: 'Succeeded',
icon: 'success',
duration: 2500
})
this.show=false;
this.init();
}else{
uni.showToast({
title: 'Failed',
icon: 'none',
duration: 2500
})
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
goAddCard() { goAddCard() {
uni.navigateTo({ uni.navigateTo({
url:'addBankCard/index', url:'addBankCard/index',
}) })
}, },
// ¸øeditרÓÃ
goAddCard2(i) {
console.log(i,22222)
var data=JSON.stringify(i)
console.log(data,22222)
uni.navigateTo({
url:'addBankCard/index?card='+data,
})
},
} }
} }
</script> </script>
@ -102,7 +175,7 @@
height: 28rpx; height: 28rpx;
position: absolute; position: absolute;
right: 36rpx; right: 36rpx;
top: 50%; top: 60%;
transform: translateY(-50%); transform: translateY(-50%);
} }
</style> </style>

139
pages/menu/color/index.css

@ -15,12 +15,12 @@
} }
.p2{ .p2{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
margin-left: 20rpx; margin-left: 20rpx;
} }
.p1{ .p1{
font-size: 28rpx; font-size: 28rpx;
color: #606266FF; color: #606266;
} }
.colseKefu{ .colseKefu{
position: absolute; position: absolute;
@ -38,7 +38,7 @@
.title{ .title{
text-transform: capitalize; text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #954DE3FF; color: #954DE3;
text-align: center; text-align: center;
} }
.title p{ .title p{
@ -80,7 +80,7 @@
transform: translateX(-50%); transform: translateX(-50%);
width: 100%; width: 100%;
height: 2rpx; height: 2rpx;
background-color: #EDEFF2FF; background-color: #EDEFF2;
} }
.my-cont{ .my-cont{
width: 180rpx; width: 180rpx;
@ -373,14 +373,14 @@ margin-bottom: 16rpx;
.xiazhu .title{ .xiazhu .title{
font-size: 36rpx; font-size: 36rpx;
text-align: center; text-align: center;
color: #303133FF; color: #303133;
text-transform: capitalize; text-transform: capitalize;
} }
.contract{ .contract{
margin-top: 80rpx; margin-top: 80rpx;
} }
.xname{ .xname{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
} }
.contract .numcon{ .contract .numcon{
@ -388,19 +388,20 @@ margin-bottom: 16rpx;
} }
.contract .numcon .num{ .contract .numcon .num{
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
border: 2rpx solid #EDEFF2FF; border: 2rpx solid #EDEFF2;
color: #303133FF; color: #303133;
font-size: 28rpx; font-size: 28rpx;
text-align: center; text-align: center;
color: #303133;
} }
.active{ .active{
border-color: #954DE3FF !important; border-color: #954DE3 !important;
} }
.bujin,.TotalMoney,.agree,.btn_con{ .bujin,.TotalMoney,.agree,.btn_con{
margin-top: 60rpx; margin-top: 60rpx;
} }
.agree{ .agree{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
text-transform: capitalize; text-transform: capitalize;
display: flex; display: flex;
@ -412,7 +413,7 @@ margin-bottom: 16rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
.agree .s2{ .agree .s2{
color: #954DE3FF; color: #954DE3;
} }
.agree .s1{ .agree .s1{
margin-right:10rpx ; margin-right:10rpx ;
@ -420,9 +421,9 @@ margin-bottom: 16rpx;
.btn_con .btn{ .btn_con .btn{
line-height: 108rpx; line-height: 108rpx;
text-align: center; text-align: center;
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
background-color: #F5F7FAFF; background-color: #F5F7FA;
text-transform: capitalize; text-transform: capitalize;
} }
.btn_con .btn1{ .btn_con .btn1{
@ -430,8 +431,8 @@ margin-bottom: 16rpx;
} }
.btn_con .btn2{ .btn_con .btn2{
width: 510rpx; width: 510rpx;
background-color: #954DE3FF; background-color: #954DE3;
opacity: .5; opacity: 1;
color: #fff; color: #fff;
} }
@ -508,7 +509,7 @@ margin-bottom: 16rpx;
} }
.gaactive{ .gaactive{
color: #954DE3FF !important; color: #954DE3 !important;
} }
.gaactive::before{ .gaactive::before{
width: 80rpx; width: 80rpx;
@ -520,9 +521,12 @@ margin-bottom: 16rpx;
} }
.ico{ .ico{
width: 210rpx; width: 210rpx;
height: 80rpx; line-height: 80rpx;
border: 2rpx solid #EDEFF2; text-align: center;
border-radius: 16rpx; border-radius: 8rpx;
color: #fff;
box-shadow: 0 10rpx 10rpx #C1C1C1;
font-size: 32rpx;
position: relative; position: relative;
} }
.ico image{ .ico image{
@ -662,14 +666,21 @@ margin-bottom: 16rpx;
} }
.gaactive{ .gaactive{
color: #954DE3FF !important; color: #954DE3 !important;
} }
.gaactive::before{ .gaactive::before{
width: 80rpx; width: 80rpx;
} }
.greenbg{
background-color: #4CAF50;
}
.purple{
background-color:#9C27B0;
}
.redbg{
background-color: #F44336;
}
@ -715,13 +726,7 @@ margin-bottom: 16rpx;
.icon-con{ .icon-con{
justify-content: space-between; justify-content: space-between;
} }
.ico{
width: 210rpx;
height: 80rpx;
border: 2rpx solid #EDEFF2;
border-radius: 16rpx;
position: relative;
}
.ico image{ .ico image{
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
@ -842,12 +847,84 @@ margin-bottom: 16rpx;
text-align: center; text-align: center;
} }
.ok{ .ok{
color: #954DE3FF; color: #954DE3;
line-height: 108rpx; line-height: 108rpx;
border-top: 2rpx solid #F7F9FCFF; border-top: 2rpx solid #F7F9FC;
font-size: 32rpx; font-size: 32rpx;
} }
.color_icon{ .color_icon{
width: 36rpx; width: 36rpx;
height: 36rpx; height: 36rpx;
} }
.logout-div-bg {
width: 100%;
height: 100%;
background: #000000;
opacity: 0.4;
position: fixed;
top: 0rpx;
left: 0rpx;
z-index: 1999;
}
.task-div {
height: 772rpx;
width: 600rpx;
opacity: 1;
border-radius: 24rpx;
z-index: 999999;
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
margin: auto;
}
.upgrade-bg {
width: 600rpx;
height: 500rpx;
z-index: 1998;
}
.upgrade-div {
width: 600rpx;
height: 720rpx;
background: #FFFFFF;
position: absolute;
bottom: 0rpx;
left: 0rpx;
border-radius: 24rpx;
}
.upgrade-desc {
width: 504rpx;
height: 176rpx;
font-size: 28rpx;
font-family: SF Pro;
font-weight: 400;
color: #303133;
opacity: 1;
position: absolute;
bottom: 168rpx;
left: 50rpx;
}
.task-div .task-start {
width: 500rpx;
height: 88rpx;
background: linear-gradient(360deg, #084EBD 0%, #1E7BE7 100%);
opacity: 1;
border-radius: 12rpx;
position: absolute;
bottom: 50rpx;
left: 50rpx;
line-height: 88rpx;
text-align: center;
display: block;
font-size: 28rpx;
font-family: SF Pro;
font-weight: 400;
color: #FFFFFF;
opacity: 1;
}
.gray{
background-color: #E0E0E0 !important;
}

385
pages/menu/color/index.vue

@ -1,14 +1,14 @@
<template> <template>
<view class="content"> <view class="content">
<navigation :showBack="showBack">color</navigation> <navigation :showBack="showBack">{{siteName}}</navigation>
<swit :switNum="1"/> <swit :switNum="1" />
<balance @send="getSonValue" :currencySymbol="currencySymbol" :currentBalance="currentBalance"> <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">
<view class="gNum flex"> <view class="gNum flex">
<view class="ga" v-for="(item,index) in colorList" :key="item.id" :class="index==ganum?'gaactive':''" <view class="ga" v-for="(item,index) in colorList" :key="item.id" :class="index==ganum?'gaactive':''"
@click="gaClick(index,item.name)"> @click="gaClick(index,item.name,item),myLottertRecord()">
{{item.name}} {{item.name}}
</view> </view>
</view> </view>
@ -30,27 +30,27 @@
{{nextBttingValue.period}} {{nextBttingValue.period}}
</view> </view>
<view class="count"> <view class="count">
<u-count-down :timestamp="nextBttingValue.remain" :show-days="false" :show-hours="false" <u-count-down :timestamp="nextBttingValue.remain" :show-days="false" :show-hours="false">
></u-count-down> </u-count-down>
</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" :class="{'greenbg': item.id === 1, 'purple': item.id === 2, redbg: item.id === 3}">
<image :src="'../../../static/color/ico_apple_'+item.color+'@3x.png'" mode=""></image> {{item.color2}}
</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"
@click="xiazhu(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"
@click="xiazhu(item.num)" :key="item.num" :class="item.cla"> @click="xiazhu(item.num)" :key="item.num" :class="item.cla">
{{item.num}} {{item.num}}
</view> </view>
</view> </view>
@ -58,8 +58,9 @@
</view> </view>
<view class="canBuy" v-show="!canBuy"> <view class="canBuy" v-show="!canBuy">
<view class="flex icon-con"> <view class="flex icon-con">
<view class="ico" v-for="item,index in gameColor" :key="item.id"> <view class="ico gray" v-for="item,index in gameColor" :key="item.id">
<image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> <!-- <image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> -->
{{item.color2}}
</view> </view>
</view> </view>
<view class="multiple"> <view class="multiple">
@ -76,7 +77,7 @@
</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>
@ -103,11 +104,12 @@
{{item.text}} {{item.text}}
</view> </view>
</view> </view>
<gamecont v-if="gameNavNum==0" :gameRecordCont="gameRecordCont" :missingFrequency="missingFrequency"></gamecont> <gamecont v-if="gameNavNum==0" :gameRecordCont="gameRecordCont" :missingFrequency="missingFrequency">
</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">
@ -278,12 +280,12 @@
<view class="btn1 btn" @click="xiazhuCode=false"> <view class="btn1 btn" @click="xiazhuCode=false">
cancel cancel
</view> </view>
<view class="btn2 btn" @click="toLotter" :class="bettingNumber!=0?'on':''"> <view class="btn2 btn" @click="toLotter">
comfierm Confirm
</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>
@ -303,23 +305,25 @@
<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>
<u-mask :z-index="10" :show="keCode==1"></u-mask> <u-mask :z-index="10" :show="keCode==1"></u-mask>
<view class="tc" v-show="keCode==1"> <view class="tc" v-show="keCode==1">
<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>Customer Service</p> <p>Customer Service</p>
</view> </view>
<view class="tc_body"> <view class="tc_body">
<view class="p1"> <view class="p1">
{{serviceTime}} {{serviceTime}}
</view> </view>
<scroll-view class="item" style="height:380rpx" scroll-y="true" show-scrollbar="true" scroll-with-animation="true" scroll-top="0" > <scroll-view class="item" style="height:380rpx" scroll-y="true" show-scrollbar="true"
scroll-with-animation="true" scroll-top="0">
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in whatAppList" <view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in whatAppList"
:key="item"> :key="item">
<image src="../../../static/color/[email protected]" mode="aspectFit" class="img2"></image> <image src="../../../static/color/[email protected]" mode="aspectFit" class="img2">
</image>
<view class="p2"> <view class="p2">
{{getName(item)}} {{getName(item)}}
</view> </view>
@ -335,12 +339,21 @@
</view> </view>
<image src="../../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0"></image> <image src="../../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu"
@click="keCode=0"></image>
</view> </view>
</view> </view>
<view v-if="upgrade" class="logout-div-bg">
</view>
<view class="task-div" v-if="upgrade">
<image class="upgrade-bg" src="../../../static/bankCard/upgrade.png"></image>
<view class="upgrade-div">
<textarea class="upgrade-desc" disable v-html="upgradeInfo.info" />
<span class="task-start" @click="toUpgrade()">Upgrade</span>
</view>
</view>
</view> </view>
@ -359,29 +372,33 @@
import gamecont3 from "@/components/gamecont3/gamecont3.vue" import gamecont3 from "@/components/gamecont3/gamecont3.vue"
export default { export default {
components: { components: {
swit swit
}, },
data() { data() {
return { return {
siteName: '',
// rules
ruleDescription: '',
// back // back
showBack:false, showBack: false,
// //
keCode:0, keCode: 0,
teList:[], teList: [],
whatAppList:[], whatAppList: [],
serviceTime:'', serviceTime: '',
touzhuMoney: 0,
touzhuMoney:0, currencySymbol: '',
currencySymbol:'', currentBalance: '',
currentBalance:'',
gameNavNum: 0, gameNavNum: 0,
xiaSul: 0, xiaSul: 0,
gsxia: 0, gsxia: 0,
xia_body: [1, 2, 3], xia_body: [1, 2, 3],
follow_xiazhu_conOn: 0, follow_xiazhu_conOn: 0,
bettingPrice: '', bettingPrice: '',
bettingNumber: 0, bettingNumber: 1,
show: false, show: false,
showWhite: true, showWhite: true,
myName: '', myName: '',
@ -410,22 +427,27 @@
totalPage: 1, totalPage: 1,
gameNav: [], gameNav: [],
gNum: 'G2', gNum: 'G2',
gameColor: [{ gameColor: [{
id: 1, id: 1,
color: 'GREEN' color: 'GREEN',
color2: 'Join Green'
}, },
{ {
id: 2, id: 2,
color: 'VIOLET' color: 'VIOLET',
color2: 'Join Violet'
}, },
{ {
id: 3, id: 3,
color: 'RED' color: 'RED',
color2: 'Join Red'
}, },
], ],
gameColorNumber1: [{ gameColorNumber1: [{
num: 0, num: 0,
cla: 'bg_jb2' cla: 'bg_jb1'
}, },
{ {
num: 1, num: 1,
@ -446,7 +468,7 @@
], ],
gameColorNumber2: [{ gameColorNumber2: [{
num: 5, num: 5,
cla: 'bg_jb1' cla: 'bg_jb2'
}, },
{ {
num: 6, num: 6,
@ -462,12 +484,12 @@
}, },
{ {
num: 9, num: 9,
cla: 'bg_red' cla: 'bg_green'
}, },
], ],
bettingValue: '', bettingValue: '',
nextBttingValue: [], nextBttingValue: [],
numindex: -1, numindex: 0,
ganumArr: [], ganumArr: [],
gg: 3, gg: 3,
lotteryData: {}, lotteryData: {},
@ -484,32 +506,101 @@
text: '' text: ''
}, },
], ],
totalPage2:'', totalPage2: '',
lotteryNum:[], lotteryNum: [],
missingFrequency:{} missingFrequency: {},
upgrade: false,
close_mask: true,
upgradeInfo: {},
logoUrl: '',
} }
}, },
onLoad() { onLoad() {
const siteInfo = api.siteInfo()
siteInfo.then(d => {
this.logoUrl = d.data.siteDomain + d.data.siteLogo
})
this.siteName = uni.getStorageSync('siteInfo').siteName;
this.currencySymbol = uni.getStorageSync('siteInfo').currencySymbol;
const post = api.withdrawConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
if (res.data != undefined) {
this.currentBalance = res.data.currentBalance;
this.currentBalance = parseFloat(this.currentBalance).toFixed(2)
uni.setStorage({
key: 'currentBalance',
data: this.currentBalance,
success: function() {
console.log('success')
}
});
}
})
.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
})
})
this.initializationMissingFrequency(); this.initializationMissingFrequency();
// //
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime; 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(',')
} }
if (siteWhatsapp != undefined && siteWhatsapp != '') { if (siteWhatsapp != undefined && siteWhatsapp != '') {
this.whatAppList = siteWhatsapp.split(',') this.whatAppList = siteWhatsapp.split(',')
} }
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; this.currencySymbol = uni.getStorageSync('siteInfo').currencySymbol;
this.currentBalance=uni.getStorageSync('currentBalance'); 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;
@ -530,12 +621,16 @@
}, },
methods: { methods: {
initializationMissingFrequency(){ toUpgrade() {
for(var i=0; i<10;i++){ plus.runtime.openURL(this.upgradeInfo.appUrl)
this.missingFrequency[i.toString()]={ },
"missing":0,
"frequency":0 initializationMissingFrequency() {
} for (var i = 0; i < 10; i++) {
this.missingFrequency[i.toString()] = {
"missing": 0,
"frequency": 0
}
} }
}, },
@ -544,32 +639,32 @@
// //
gotoWeb(gotoUrl) { gotoWeb(gotoUrl) {
// #ifdef H5 // #ifdef H5
window.location.href = gotoUrl window.location.href = gotoUrl
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
var networkType = '' var networkType = ''
uni.getNetworkType({ uni.getNetworkType({
success: function(res) { success: function(res) {
networkType = res.networkType networkType = res.networkType
} }
}); });
if (networkType == 'none') { if (networkType == 'none') {
uni.showToast({ uni.showToast({
title: 'no Network', title: 'no Network',
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
} else { } else {
var param = { var param = {
url: gotoUrl url: gotoUrl
}
uni.navigateTo({
url: '/pages/menu/me/rechange/topay/index?' + qs.stringify(param)
})
} }
// #endif uni.navigateTo({
}, url: '/pages/menu/me/rechange/topay/index?' + qs.stringify(param)
})
}
// #endif
},
getLink(item) { getLink(item) {
return item.replace(item.split(':')[0] + ':', '') return item.replace(item.split(':')[0] + ':', '')
@ -578,17 +673,18 @@
return item.split(':')[0] return item.split(':')[0]
}, },
tmoney(){ tmoney() {
this.touzhuMoney=this.bettingNumber*this.bettingPrice; 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,
}) })
post.then(res => { post.then(res => {
this.betting_amount = res.data.betting_amount.split(','); this.betting_amount = res.data.betting_amount.split(',');
this.bettingPrice = this.betting_amount[0];
this.betting_rule = res.data.tips; this.betting_rule = res.data.tips;
this.tmoney();
}) })
.catch(e => { .catch(e => {
console.log(e) console.log(e)
@ -603,9 +699,10 @@
this.colorData = this.colorList[0]; this.colorData = this.colorList[0];
this.gameNav2[1].text = this.colorData.name + " record" this.gameNav2[1].text = this.colorData.name + " record"
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" this.gameNav2[2].text = 'My ' + this.colorData.name + " record"
this.ruleDescription = this.colorList[0].description;
this.gNum = this.colorList[0].name this.gNum = this.colorList[0].name
this.setlotteryData(); this.setlotteryData();
this.gg=this.colorData.id this.gg = this.colorData.id
this.getLottertRecord(); this.getLottertRecord();
}) })
.catch(e => { .catch(e => {
@ -616,7 +713,7 @@
timeChange(timestamp) { timeChange(timestamp) {
// if(timestamp==0){ // if(timestamp==0){
// this.ganum+=1; // this.ganum+=1;
// this.gNum="G"+ Number(this.gNum.substring(1)+1) ; // this.gNum="G"+ Number(this.gNum.substring(1)+1) ;
// console.log(this.gNum,5555555555555) // console.log(this.gNum,5555555555555)
// this.gaClick(this.ganum,this.gNum); // this.gaClick(this.ganum,this.gNum);
// } // }
@ -624,7 +721,7 @@
// console.log(123) // console.log(123)
if (timestamp <= this.colorData.lottery) { if (timestamp <= this.colorData.lottery) {
this.canBuy = false this.canBuy = false
this.xiazhuCode=false this.xiazhuCode = false
} else { } else {
this.canBuy = true this.canBuy = true
} }
@ -632,12 +729,12 @@
}, },
reckonTime(){ reckonTime() {
for (var key in this.lotteryData) { for (var key in this.lotteryData) {
this.lotteryData[key].remain = this.lotteryData[key].remain - 1 this.lotteryData[key].remain = this.lotteryData[key].remain - 1
if(this.lotteryData[key].remain==0){ if (this.lotteryData[key].remain == 0) {
this.nextBtting(key) this.nextBtting(key)
if(key==this.gNum){ if (key == this.gNum) {
this.getLottertRecord(); this.getLottertRecord();
@ -646,13 +743,12 @@
} }
this.timeChange(this.lotteryData[this.gNum].remain); this.timeChange(this.lotteryData[this.gNum].remain);
} },
,
setlotteryData() { setlotteryData() {
for (let i = 0; i < this.colorList.length; i++) { for (let i = 0; i < this.colorList.length; i++) {
this.nextBtting(this.colorList[i].name) this.nextBtting(this.colorList[i].name)
} }
setInterval(this.reckonTime,"1000"); setInterval(this.reckonTime, "1000");
}, },
gameNavMe(i) { gameNavMe(i) {
this.gameNavNum = i; this.gameNavNum = i;
@ -660,17 +756,18 @@
xiazhu(val) { xiazhu(val) {
this.xiazhuCode = true; this.xiazhuCode = true;
this.bettingValue = val; this.bettingValue = val;
this.numindex = -1; this.numindex = 0;
this.list[0].checked = false; this.list[0].checked = true;
}, },
folLisNumFn(i) { folLisNumFn(i) {
this.folLisNum = i; this.folLisNum = i;
}, },
numColor(i, j) { numColor(i, j) {
console.log(i, j, 5555555)
this.numindex = i; this.numindex = i;
this.bettingPrice = j; this.bettingPrice = j;
this.touzhuMoney=j; this.touzhuMoney = j;
this.bettingNumber=1; this.bettingNumber = 1;
}, },
nextBtting(gNum) { nextBtting(gNum) {
const post = api.nextLotteryPeriod({ const post = api.nextLotteryPeriod({
@ -690,6 +787,9 @@
}, },
toLotter() { toLotter() {
uni.showLoading({
title: 'loading'
})
if (this.bettingPrice == 0) { if (this.bettingPrice == 0) {
uni.showToast({ uni.showToast({
title: 'Please select bet amount', title: 'Please select bet amount',
@ -724,9 +824,6 @@
"bettingNumber": this.bettingNumber, "bettingNumber": this.bettingNumber,
}) })
post.then(res => { post.then(res => {
uni.showLoading({
title:'loading'
})
if (res.success == true) { if (res.success == true) {
// this.xiaSul = 1; // this.xiaSul = 1;
uni.showToast({ uni.showToast({
@ -734,13 +831,15 @@
icon: 'success', icon: 'success',
duration: 1500 duration: 1500
}) })
this.xiazhuCode = false
// //
const post = api.withdrawConfig({ const post = api.withdrawConfig({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
}) })
post.then(res => { post.then(res => {
if(res.data){ if (res.data) {
this.currentBalance=res.data.currentBalance; res.data.currentBalance = parseFloat(res.data.currentBalance).toFixed(2)
this.currentBalance = res.data.currentBalance;
uni.setStorage({ uni.setStorage({
key: 'currentBalance', key: 'currentBalance',
data: this.currentBalance, data: this.currentBalance,
@ -749,8 +848,8 @@
} }
}); });
} }
uni.hideLoading()
}) })
} else { } else {
uni.showToast({ uni.showToast({
@ -779,14 +878,29 @@
if (res.data == '' || res.data.content == null) { if (res.data == '' || res.data.content == null) {
return return
} }
this.myGameRecord = res.data.content; // console.log(res.data.content,5555555555888)
this.totalPage = res.data.totalElements; if (res.data.content != '' || res.data.content != undefined) {
for (var i = 0; i < this.myGameRecord.length; i++) { this.myGameRecord = res.data.content;
// this.myGameRecord[i].period = this.myGameRecord[i].period.substring(2, 13); for (var i = 0; i < this.myGameRecord.length; i++) {
this.myGameRecord[i].addTime = index.formatyymmddhhmmss(this.myGameRecord[i] // this.myGameRecord[i].period = this.myGameRecord[i].period.substring(2, 13);
.addTime); this.myGameRecord[i].addTime = index.formatyymmddhhmmss(this.myGameRecord[i]
.addTime);
this.myGameRecord[i].bettingFee = parseFloat(this.myGameRecord[i].bettingFee).toFixed(
2)
this.myGameRecord[i].bettingPrice = parseFloat(this.myGameRecord[i].bettingPrice)
.toFixed(2)
this.myGameRecord[i].bettingAmount = parseFloat(this.myGameRecord[i].bettingAmount)
.toFixed(2)
this.myGameRecord[i].realAmount = parseFloat(this.myGameRecord[i].realAmount).toFixed(
2)
}
} else {
this.myGameRecord = '';
} }
}) })
.catch(e => { .catch(e => {
console.log(e) console.log(e)
@ -808,24 +922,28 @@
this.totalPage = res.data.totalElements; this.totalPage = res.data.totalElements;
this.totalPage2 = res.data.totalPages; 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(0, 2)+'...'+this.gameRecordCont[i].period.substring(10, 17);
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 if (!this.gameRecordCont[i].lotteryResult && this.gameRecordCont[i].lotteryColor !=
} undefined) {
this.gameRecordCont[i].lotteryResult = 0
}
} }
this.initializationMissingFrequency() this.initializationMissingFrequency()
for(var i=0; i<this.gameRecordCont.length;i++){ for (var i = 0; i < this.gameRecordCont.length; i++) {
if(i>100){ if (i > 100) {
break; break;
} }
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency=this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency+1; this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency = this
if(!this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].isOpen){ .missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency + 1;
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].missing=i if (!this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].isOpen) {
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].isOpen=true this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].missing = i
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].isOpen = true
} }
} }
@ -839,7 +957,7 @@
gaClick(i, j) { gaClick(i, j, item) {
this.ganum = i this.ganum = i
this.gNum = j; this.gNum = j;
this.colorData = this.colorList[i]; this.colorData = this.colorList[i];
@ -847,14 +965,15 @@
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" this.gameNav2[2].text = 'My ' + this.colorData.name + " record"
this.ganumArr = this.gNum.split(',') this.ganumArr = this.gNum.split(',')
this.nextBttingValue = this.lotteryData[j] this.nextBttingValue = this.lotteryData[j]
this.gg=this.colorList[i].id this.gg = this.colorList[i].id
this.getLottertRecord(); this.getLottertRecord();
this.timeChange(this.lotteryData[j].remain) this.timeChange(this.lotteryData[j].remain)
this.ruleDescription = item.description;
}, },
goRule() { goRule() {
uni.navigateTo({ uni.navigateTo({
url: '../rule/index' url: '../rule/index?des=' + this.ruleDescription
}) })
}, },
showMas() { showMas() {

68
pages/menu/colorMoni/index.css

@ -15,12 +15,12 @@
} }
.p2{ .p2{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
margin-left: 20rpx; margin-left: 20rpx;
} }
.p1{ .p1{
font-size: 28rpx; font-size: 28rpx;
color: #606266FF; color: #606266;
} }
.colseKefu{ .colseKefu{
position: absolute; position: absolute;
@ -38,7 +38,7 @@
.title{ .title{
text-transform: capitalize; text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #954DE3FF; color: #954DE3;
text-align: center; text-align: center;
} }
.title p{ .title p{
@ -80,7 +80,7 @@
transform: translateX(-50%); transform: translateX(-50%);
width: 100%; width: 100%;
height: 2rpx; height: 2rpx;
background-color: #EDEFF2FF; background-color: #EDEFF2;
} }
.my-cont{ .my-cont{
width: 180rpx; width: 180rpx;
@ -373,14 +373,14 @@ margin-bottom: 16rpx;
.xiazhu .title{ .xiazhu .title{
font-size: 36rpx; font-size: 36rpx;
text-align: center; text-align: center;
color: #303133FF; color: #303133;
text-transform: capitalize; text-transform: capitalize;
} }
.contract{ .contract{
margin-top: 80rpx; margin-top: 80rpx;
} }
.xname{ .xname{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
} }
.contract .numcon{ .contract .numcon{
@ -388,19 +388,19 @@ margin-bottom: 16rpx;
} }
.contract .numcon .num{ .contract .numcon .num{
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
border: 2rpx solid #EDEFF2FF; border: 2rpx solid #EDEFF2;
color: #303133FF; color: #303133;
font-size: 28rpx; font-size: 28rpx;
text-align: center; text-align: center;
} }
.active{ .active{
border-color: #954DE3FF !important; border-color: #954DE3 !important;
} }
.bujin,.TotalMoney,.agree,.btn_con{ .bujin,.TotalMoney,.agree,.btn_con{
margin-top: 60rpx; margin-top: 60rpx;
} }
.agree{ .agree{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
text-transform: capitalize; text-transform: capitalize;
display: flex; display: flex;
@ -412,7 +412,7 @@ margin-bottom: 16rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
.agree .s2{ .agree .s2{
color: #954DE3FF; color: #954DE3;
} }
.agree .s1{ .agree .s1{
margin-right:10rpx ; margin-right:10rpx ;
@ -420,9 +420,9 @@ margin-bottom: 16rpx;
.btn_con .btn{ .btn_con .btn{
line-height: 108rpx; line-height: 108rpx;
text-align: center; text-align: center;
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
background-color: #F5F7FAFF; background-color: #F5F7FA;
text-transform: capitalize; text-transform: capitalize;
} }
.btn_con .btn1{ .btn_con .btn1{
@ -430,7 +430,7 @@ margin-bottom: 16rpx;
} }
.btn_con .btn2{ .btn_con .btn2{
width: 510rpx; width: 510rpx;
background-color: #954DE3FF; background-color: #954DE3;
opacity: .5; opacity: .5;
color: #fff; color: #fff;
} }
@ -508,7 +508,7 @@ margin-bottom: 16rpx;
} }
.gaactive{ .gaactive{
color: #954DE3FF !important; color: #954DE3 !important;
} }
.gaactive::before{ .gaactive::before{
width: 80rpx; width: 80rpx;
@ -518,13 +518,7 @@ margin-bottom: 16rpx;
.icon-con{ .icon-con{
justify-content: space-between; justify-content: space-between;
} }
.ico{
width: 210rpx;
height: 80rpx;
border: 2rpx solid #EDEFF2;
border-radius: 16rpx;
position: relative;
}
.ico image{ .ico image{
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
@ -558,7 +552,15 @@ margin-bottom: 16rpx;
.bg_jb2{ .bg_jb2{
background-image: linear-gradient(-30deg,#954DE3 50% , #00B977 50% ); background-image: linear-gradient(-30deg,#954DE3 50% , #00B977 50% );
} }
.greenbg{
background-color: #4CAF50;
}
.purple{
background-color:#9C27B0;
}
.redbg{
background-color: #F44336;
}
.donna{ .donna{
background-color: #34026B; background-color: #34026B;
border-radius: 16rpx; border-radius: 16rpx;
@ -662,7 +664,7 @@ margin-bottom: 16rpx;
} }
.gaactive{ .gaactive{
color: #954DE3FF !important; color: #954DE3 !important;
} }
.gaactive::before{ .gaactive::before{
width: 80rpx; width: 80rpx;
@ -715,11 +717,14 @@ margin-bottom: 16rpx;
.icon-con{ .icon-con{
justify-content: space-between; justify-content: space-between;
} }
.ico{ .ico{
width: 210rpx; width: 210rpx;
height: 80rpx; line-height: 80rpx;
border: 2rpx solid #EDEFF2; text-align: center;
border-radius: 16rpx; border-radius: 8rpx;
color: #fff;
box-shadow: 0 10rpx 10rpx #C1C1C1;
font-size: 32rpx;
position: relative; position: relative;
} }
.ico image{ .ico image{
@ -842,12 +847,15 @@ margin-bottom: 16rpx;
text-align: center; text-align: center;
} }
.ok{ .ok{
color: #954DE3FF; color: #954DE3;
line-height: 108rpx; line-height: 108rpx;
border-top: 2rpx solid #F7F9FCFF; border-top: 2rpx solid #F7F9FC;
font-size: 32rpx; font-size: 32rpx;
} }
.color_icon{ .color_icon{
width: 36rpx; width: 36rpx;
height: 36rpx; height: 36rpx;
} }
.gray{
background-color: #E0E0E0 !important;
}

108
pages/menu/colorMoni/index.vue

@ -1,14 +1,14 @@
<template> <template>
<view class="content"> <view class="content">
<navigation :showBack="showBack">color</navigation> <navigation :showBack="showBack">{{siteName}}</navigation>
<swit :switNum="2"/> <swit :switNum="2"/>
<balance @send="getSonValue" :currencySymbol="currencySymbol" :currentBalance="currentBalance"> <balance @send="getSonValue" :showRechange="false" :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">
<view class="gNum flex"> <view class="gNum flex">
<view class="ga" v-for="(item,index) in colorList" :key="item.id" :class="index==ganum?'gaactive':''" <view class="ga" v-for="(item,index) in colorList" :key="item.id" :class="index==ganum?'gaactive':''"
@click="gaClick(index,item.name)"> @click="gaClick(index,item.name,item),myLottertRecord()">
{{item.name}} {{item.name}}
</view> </view>
</view> </view>
@ -36,11 +36,11 @@
</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" :class="{'greenbg': item.id === 1, 'purple': item.id === 2, redbg: item.id === 3}">
<image :src="'../../../static/color/ico_apple_'+item.color+'@3x.png'" mode=""></image> {{item.color2}}
</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"
@ -58,9 +58,10 @@
</view> </view>
<view class="canBuy" v-show="!canBuy"> <view class="canBuy" v-show="!canBuy">
<view class="flex icon-con"> <view class="flex icon-con">
<view class="ico" v-for="item,index in gameColor" :key="item.id"> <view class="ico gray" v-for="item,index in gameColor" :key="item.id">
<image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> <!-- <image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> -->
</view> {{item.color2}}
</view>
</view> </view>
<view class="multiple"> <view class="multiple">
<view class="multiple-con flex"> <view class="multiple-con flex">
@ -340,7 +341,7 @@
</view> </view>
<tab-bar :selectActive="3"></tab-bar>
</view> </view>
@ -363,6 +364,11 @@
}, },
data() { data() {
return { return {
siteName:'',
// rules
ruleDescription:'',
// back // back
showBack:false, showBack:false,
@ -381,7 +387,7 @@
xia_body: [1, 2, 3], xia_body: [1, 2, 3],
follow_xiazhu_conOn: 0, follow_xiazhu_conOn: 0,
bettingPrice: '', bettingPrice: '',
bettingNumber: 0, bettingNumber: 1,
show: false, show: false,
showWhite: true, showWhite: true,
myName: '', myName: '',
@ -410,22 +416,25 @@
totalPage: 1, totalPage: 1,
gameNav: [], gameNav: [],
gNum: 'G2', gNum: 'G2',
gameColor: [{ gameColor: [{
id: 1, id: 1,
color: 'GREEN' color: 'GREEN',
color2: 'Join Green'
}, },
{ {
id: 2, id: 2,
color: 'VIOLET' color: 'VIOLET',
color2: 'Join Violet'
}, },
{ {
id: 3, id: 3,
color: 'RED' color: 'RED',
color2: 'Join Red'
}, },
], ],
gameColorNumber1: [{ gameColorNumber1: [{
num: 0, num: 0,
cla: 'bg_jb2' cla: 'bg_jb1'
}, },
{ {
num: 1, num: 1,
@ -446,7 +455,7 @@
], ],
gameColorNumber2: [{ gameColorNumber2: [{
num: 5, num: 5,
cla: 'bg_jb1' cla: 'bg_jb2'
}, },
{ {
num: 6, num: 6,
@ -462,7 +471,7 @@
}, },
{ {
num: 9, num: 9,
cla: 'bg_red' cla: 'bg_green'
}, },
], ],
bettingValue: '', bettingValue: '',
@ -493,7 +502,7 @@
}, },
onLoad() { onLoad() {
this.siteName=uni.getStorageSync('siteInfo').siteName;
this.initializationMissingFrequency(); this.initializationMissingFrequency();
// //
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime; this.serviceTime = uni.getStorageSync('siteInfo').serviceTime;
@ -509,7 +518,6 @@
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; 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;
@ -586,9 +594,12 @@
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
}) })
post.then(res => { post.then(res => {
this.betting_amount = res.data.betting_amount.split(','); this.betting_amount = res.data.betting_amount.split(',');
this.betting_rule = res.data.tips; this.betting_rule = res.data.tips;
this.bettingPrice=this.betting_amount[0];
this.tmoney();
this.currentBalance=parseFloat(res.data.balance).toFixed(2)
}) })
.catch(e => { .catch(e => {
console.log(e) console.log(e)
@ -603,6 +614,7 @@
this.colorData = this.colorList[0]; this.colorData = this.colorList[0];
this.gameNav2[1].text = this.colorData.name + " record" this.gameNav2[1].text = this.colorData.name + " record"
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" this.gameNav2[2].text = 'My ' + this.colorData.name + " record"
this.ruleDescription=this.colorList[0].description;
this.gNum = this.colorList[0].name this.gNum = this.colorList[0].name
this.setlotteryData(); this.setlotteryData();
this.gg=this.colorData.id this.gg=this.colorData.id
@ -660,8 +672,8 @@
xiazhu(val) { xiazhu(val) {
this.xiazhuCode = true; this.xiazhuCode = true;
this.bettingValue = val; this.bettingValue = val;
this.numindex = -1; this.numindex = 0;
this.list[0].checked = false; this.list[0].checked = true;
}, },
folLisNumFn(i) { folLisNumFn(i) {
this.folLisNum = i; this.folLisNum = i;
@ -690,6 +702,9 @@
}, },
toLotter() { toLotter() {
uni.showLoading({
title:'loading'
})
if (this.bettingPrice == 0) { if (this.bettingPrice == 0) {
uni.showToast({ uni.showToast({
title: 'Please select bet amount', title: 'Please select bet amount',
@ -724,9 +739,7 @@
"bettingNumber": this.bettingNumber, "bettingNumber": this.bettingNumber,
}) })
post.then(res => { post.then(res => {
uni.showLoading({
title:'loading'
})
if (res.success == true) { if (res.success == true) {
// this.xiaSul = 1; // this.xiaSul = 1;
uni.showToast({ uni.showToast({
@ -734,23 +747,8 @@
icon: 'success', icon: 'success',
duration: 1500 duration: 1500
}) })
// this.xiazhuCode=false
const post = api.withdrawConfig({ this.getBettingConfig();
"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')
}
});
}
})
} else { } else {
uni.showToast({ uni.showToast({
@ -759,6 +757,7 @@
duration: 1500 duration: 1500
}) })
} }
uni.hideLoading()
}) })
.catch(e => { .catch(e => {
console.log(e) console.log(e)
@ -768,6 +767,7 @@
myLottertRecord() { myLottertRecord() {
const post = api.myLotteryRecordsM({ const post = api.myLotteryRecordsM({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
"classId": this.gg, "classId": this.gg,
@ -775,17 +775,23 @@
"pageSize": this.pageSize, "pageSize": this.pageSize,
}) })
post.then(res => { post.then(res => {
if (res.data == '' || res.data.content == null) {
return
}
this.myGameRecord = res.data.content; this.myGameRecord = res.data.content;
this.totalPage = res.data.totalElements; this.totalPage = res.data.totalElements;
if(res.data.content!=''||res.data.content!=undefined){
this.myGameRecord = res.data.content;
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);
this.myGameRecord[i].bettingFee = parseFloat(this.myGameRecord[i].bettingFee).toFixed(2)
this.myGameRecord[i].bettingPrice = parseFloat(this.myGameRecord[i].bettingPrice).toFixed(2)
this.myGameRecord[i].bettingAmount = parseFloat(this.myGameRecord[i].bettingAmount).toFixed(2)
this.myGameRecord[i].realAmount = parseFloat(this.myGameRecord[i].realAmount).toFixed(2)
} }
}else{
this.myGameRecord='';
}
}) })
.catch(e => { .catch(e => {
@ -839,7 +845,7 @@
gaClick(i, j) { gaClick(i, j,item) {
this.ganum = i this.ganum = i
this.gNum = j; this.gNum = j;
this.colorData = this.colorList[i]; this.colorData = this.colorList[i];
@ -850,11 +856,11 @@
this.gg=this.colorList[i].id this.gg=this.colorList[i].id
this.getLottertRecord(); this.getLottertRecord();
this.timeChange(this.lotteryData[j].remain) this.timeChange(this.lotteryData[j].remain)
this.ruleDescription=item.description;
}, },
goRule() { goRule() {
uni.navigateTo({ uni.navigateTo({
url: '../rule/index' url: '../rule/index?des='+this.ruleDescription
}) })
}, },
showMas() { showMas() {

6
pages/menu/goods/goodsDetail/index.vue

@ -24,6 +24,7 @@
<text class="text text2">{{item.goodsPropertyValue}}</text> <text class="text text2">{{item.goodsPropertyValue}}</text>
</view> </view>
</view> </view>
<tab-bar></tab-bar>
</view> </view>
</template> </template>
@ -48,14 +49,15 @@
}) })
.then(res =>{ .then(res =>{
if(res.success){ if(res.success){
res.data.goodsPrice=parseFloat(res.data.goodsPrice).toFixed(2)
this.goods_Detail=res.data; this.goods_Detail=res.data;
this.list=res.data.goodsImgMainUrl.split(','); this.list=res.data.goodsImgMainUrl.split(',');
for(var i=0;i<this.list.length;i++){ for(var i=0;i<this.list.length;i++){
this.list[i]='https://apitest.luck-work.com'+this.list[i] this.list[i]='https://apitest.luck-work.com'+this.list[i]
} }
this.table=JSON.parse(this.goods_Detail.goodsProperty) this.table=JSON.parse(this.goods_Detail.goodsProperty)
console.log(this.goods_Detail.goodsProperty,4444444)
console.log(this.table,5555555)
} }
}).catch(err =>{ }).catch(err =>{

40
pages/menu/goods/index.css

@ -10,7 +10,7 @@
flex-wrap: wrap; flex-wrap: wrap;
} }
.good_item{ .good_item{
width: 320rpx; width: 330rpx;
background-color: #fff; background-color: #fff;
border-radius: 20rpx; border-radius: 20rpx;
margin-bottom: 36rpx; margin-bottom: 36rpx;
@ -19,12 +19,13 @@
width: 100%; width: 100%;
} }
.text{ .text{
padding: 24rpx; padding: 0 24rpx;
font-size: 26rpx; font-size: 26rpx;
color: #303133; color: #303133;
height: 200rpx; display: -webkit-box;
overflow-x: hidden; -webkit-box-orient: vertical;
overflow-y: scroll; -webkit-line-clamp: 3;
overflow: hidden;
} }
.price{ .price{
padding: 18rpx 24rpx 36rpx 24rpx; padding: 18rpx 24rpx 36rpx 24rpx;
@ -32,3 +33,32 @@
color: #954DE3; color: #954DE3;
text-align: left; text-align: left;
} }
.top_item{
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 36rpx;
line-height: 108rpx;
background-color: #954DE3;
}
.one{
display: flex;
align-items: center;
}
.dimg{
width: 36rpx;
height: 36rpx;
}
.white{
width: 76rpx;
height: 76rpx;
}
.white image{
width: 100%;
height: 100%;
border-radius: 10rpx;
}
.dtext{
color: #fff;
margin-left: 16rpx;
}

142
pages/menu/goods/index.vue

@ -3,6 +3,19 @@
<navigation :showBack="false"> <navigation :showBack="false">
Home Home
</navigation> </navigation>
<!-- #ifdef H5 -->
<view class="top_item" @click="goDown()">
<view class="one">
<view class="white">
<image :src="logoUrl" mode="aspectFit"></image>
</view>
<view class="dtext">
Open With An App
</view>
</view>
<image src="../../../static/home/[email protected]" mode="aspectFit" class="dimg"></image>
</view>
<!-- #endif -->
<u-swiper :list="list" height="1000" mode="none"></u-swiper> <u-swiper :list="list" height="1000" mode="none"></u-swiper>
<view class="goods_list_con"> <view class="goods_list_con">
@ -12,7 +25,7 @@
{{item.goodsName}} {{item.goodsName}}
</view> </view>
<view class="price"> <view class="price">
{{item.goodsPrice}} {{currencySymbol}} {{item.goodsPrice}}
</view> </view>
</view> </view>
</view> </view>
@ -28,15 +41,50 @@
export default { export default {
data() { data() {
return { return {
logoUrl:'',
androidUrl: '',
// banner // banner
list: [], list: [],
// //
goods_list:[], goods_list:[],
ticket:'', ticket:'',
currencySymbol:'',
currentBalance:'',
} }
}, },
onLoad() { onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
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,
success: function() {
console.log('success')
}
});
}
})
.catch(e => {
console.log(e)
})
// #ifdef APP-PLUS
this.appVersion();
// #endif
this.openGame();
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
this.androidUrl = uni.getStorageSync('siteInfo').androidUrl;
this.ticket= uni.getStorageSync('logInfo').data; this.ticket= uni.getStorageSync('logInfo').data;
this.init(); this.init();
}, },
@ -45,6 +93,77 @@
}, },
methods: { methods: {
//
appVersion() {
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
console.log('当前版本号' + wgtinfo.versionCode)
console.log('服务器版本号:'+ res.data.versionId)
console.log((wgtinfo.versionCode < res.data.versionId))
var param = {
'appId': 'android',
'versionCode': wgtinfo.versionName,
}
console.log(param,"版本号版本号版本号")
const post = api.appVersion(param)
post.then(d => {
console.log('zzzzzzzzzzzzzz')
console.log(d)
this.upgradeInfo = d.data
if (d.data.isUpgrade != undefined && d.data.isUpgrade) {
this.upgrade = true
this.close_mask = false
} else {
this.upgrade = false
//this.isFirstLogin()
}
})
.catch((e) => {
console.log(e)
})
});
},
openGame() {
const post = api.info()
post.then(d => {
// uni.setStorage({
// key: 'Gamestatus',
// data: d.data.gameMenuStatus,
// });
if (d.data.gameMenuStatus == 'close') {
uni.setTabBarItem({
index: 2,
text: 'Order',
pagePath:'/pages/menu/order/index',
iconPath: '/static/tabbar/dorder.png',
selectedIconPath: '/static/tabbar/dorderS.png'
})
}else if (d.data.gameMenuStatus == 'open'){
uni.setTabBarItem({
index: 2,
text: 'Game',
pagePath: "/pages/menu/color/index",
iconPath: "/static/tabbar/[email protected]",
selectedIconPath: "/static/tabbar/[email protected]"
})
}
})
.catch((e) => {
console.log(e)
})
},
goDown(){
// #ifdef H5
window.location.href = this.androidUrl;
// #endif
// #ifdef APP-PLUS
plus.runtime.openURL(this.androidUrl);
// #endif
},
goGoodsDetail(i){ goGoodsDetail(i){
uni.navigateTo({ uni.navigateTo({
url:'goodsDetail/index?id='+i url:'goodsDetail/index?id='+i
@ -65,9 +184,30 @@
const post2 = api.goodsList({}) const post2 = api.goodsList({})
.then(res =>{ .then(res =>{
this.goods_list=res.data; this.goods_list=res.data;
for(var i=0;i<this.goods_list.length;i++){
this.goods_list[i].goodsPrice=parseFloat(this.goods_list[i].goodsPrice).toFixed(2)
}
}).catch(err =>{ }).catch(err =>{
console.log(err) console.log(err)
}) })
// logo
const siteInfo = api.siteInfo()
siteInfo.then(d => {
let that = this
uni.setStorage({
key: 'siteInfo',
data: d.data,
success: function() {
console.log('success')
that.logoUrl = d.data.siteDomain + d.data.siteLogo
}
});
})
.catch((e) => {
console.log(e)
})
}, },
}, },

2
pages/menu/index/index.css

@ -10,7 +10,7 @@
} }
.index-body-p1{ .index-body-p1{
padding-top: 48rpx; padding-top: 48rpx;
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
} }
.index-body-img{ .index-body-img{

0
unpackage/dist/dev/.automator/app-plus/.automator.json → pages/menu/order/index.css

108
pages/menu/order/index.vue

@ -0,0 +1,108 @@
<template>
<view class="">
<navigation :showBack="false">
Orders
<image src="../../../static/color/[email protected]" mode="aspectFit" class="back" @click="back()"></image>
</navigation>
<view class="">
<u-tabs :bold="false" active-color="#fff" inactive-color="rgba(135,109,164)" bg-color="#300261" height="108" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
</view>
<tab-bar :selectActive="5"></tab-bar>
</view>
</template>
<script>
import Vue from 'vue';
import balance from "@/components/balance/balance.vue"
import api from '@/utils/api'
export default {
data() {
return {
list: [{
name: 'All'
}, {
name: 'Undeliver'
}, {
name: 'Unreceive',
},
{
name: 'Success',
},
],
current: 0
}
},
onLoad() {
this.openGame()
},
methods: {
openGame() {
const post = api.info()
post.then(d => {
// uni.setStorage({
// key: 'Gamestatus',
// data: d.data.gameMenuStatus,
// });
if (d.data.gameMenuStatus == 'close') {
uni.setTabBarItem({
index: 2,
text: 'Order',
pagePath:'/pages/menu/order/index',
iconPath: '/static/tabbar/dorder.png',
selectedIconPath: '/static/tabbar/dorderS.png'
})
}else if (d.data.gameMenuStatus == 'open'){
uni.setTabBarItem({
index: 2,
text: 'Game',
pagePath: "/pages/menu/color/index",
iconPath: "./static/tabbar/[email protected]",
selectedIconPath: "./static/tabbar/[email protected]"
})
}
})
.catch((e) => {
console.log(e)
})
},
change(index) {
this.current = index;
},
back(){
uni.switchTab({
url:'/pages/menu/My/index'
})
},
}
}
</script>
<style>
/deep/ .u-tab-bar{
background-color: #954DE3 !important;
}
/* #ifdef APP-PLUS */
.back{
width: 42rpx;
height: 42rpx;
position: absolute;
left:36rpx;
top: 60%;
transform: translateY(-50%) rotate(-180deg) ;
}
/* #endif */
.back{
width: 42rpx;
height: 42rpx;
position: absolute;
left:36rpx;
top: 50%;
transform: translateY(-50%) rotate(-180deg) ;
}
</style>

8
pages/menu/promotion/applyRecord/index.css

@ -92,20 +92,20 @@ align-items: center;
font-size: 28rpx; font-size: 28rpx;
} }
.Nop1{ .Nop1{
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
} }
.Nop2{ .Nop2{
color: #909399FF; color: #909399;
font-size: 28rpx; font-size: 28rpx;
} }
.money{ .money{
color: #00B977FF; color: #00B977;
font-size: 32rpx; font-size: 32rpx;
text-align: right; text-align: right;
} }
.nickname{ .nickname{
text-align: right; text-align: right;
color: #909399FF; color: #909399;
font-size: 28rpx; font-size: 28rpx;
} }

8
pages/menu/promotion/bounsRecord/index.css

@ -92,20 +92,20 @@ align-items: center;
font-size: 28rpx; font-size: 28rpx;
} }
.Nop1{ .Nop1{
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
} }
.Nop2{ .Nop2{
color: #909399FF; color: #909399;
font-size: 28rpx; font-size: 28rpx;
} }
.money{ .money{
color: #00B977FF; color: #00B977;
font-size: 32rpx; font-size: 32rpx;
text-align: right; text-align: right;
} }
.nickname{ .nickname{
text-align: right; text-align: right;
color: #909399FF; color: #909399;
font-size: 28rpx; font-size: 28rpx;
} }

28
pages/menu/promotion/index.css

@ -4,12 +4,13 @@
.pro-head{ .pro-head{
text-align: center; text-align: center;
color: #fff; color: #fff;
line-height: 108rpx; line-height: 158rpx;
font-size: 36rpx; font-size: 36rpx;
text-transform: capitalize; text-transform: capitalize;
background-color: #34026B; background-color: #34026B;
position: relative; position: relative;
padding: 0 36rpx; padding: 0 36rpx;
padding-top: 20rpx;
} }
.pro-hea-rig{ .pro-hea-rig{
position: absolute; position: absolute;
@ -38,7 +39,7 @@ align-items: center;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 44rpx; font-size: 44rpx;
color: #303133FF; color: #303133;
text-align: center; text-align: center;
padding: 60rpx 0; padding: 60rpx 0;
text-transform: capitalize; text-transform: capitalize;
@ -72,22 +73,22 @@ font-family: 'din';
padding-bottom: 80rpx; padding-bottom: 80rpx;
} }
.lea-item .p1{ .lea-item .p1{
color: #909399FF; color: #909399;
line-height: 96rpx; line-height: 96rpx;
font-size: 32rpx; font-size: 32rpx;
} }
.lea-item .p2{ .lea-item .p2{
color: #909399FF; color: #909399;
margin-top: 36rpx; margin-top: 36rpx;
font-size: 28rpx; font-size: 28rpx;
} }
.lea-item .p3{ .lea-item .p3{
color: #303133FF; color: #303133;
margin-top: 20rpx; margin-top: 20rpx;
font-size: 36rpx; font-size: 36rpx;
} }
.lea-item .p1.on{ .lea-item .p1.on{
color: #34026BFF; color: #34026B;
border-bottom: 4rpx solid #34026B; border-bottom: 4rpx solid #34026B;
} }
.pro-body-code{ .pro-body-code{
@ -103,6 +104,7 @@ font-family: 'din';
font-size: 32rpx; font-size: 32rpx;
margin-top: 16rpx; margin-top: 16rpx;
color: rgba(255,255,255,1); color: rgba(255,255,255,1);
word-wrap:break-word;
} }
.code-item1:nth-child(2){ .code-item1:nth-child(2){
@ -114,7 +116,7 @@ font-family: 'din';
color: #fff; color: #fff;
border-radius: 16rpx; border-radius: 16rpx;
margin-top: 36rpx; margin-top: 36rpx;
background-color: #954DE3FF; background-color: #954DE3;
} }
.invite-more{ .invite-more{
@ -164,7 +166,7 @@ z-index: 9999;
padding: 48rpx 48rpx 0 48rpx; padding: 48rpx 48rpx 0 48rpx;
} }
.appl_Ba .title{ .appl_Ba .title{
color: #303133FF; color: #303133;
font-size: 36rpx; font-size: 36rpx;
text-align: center; text-align: center;
@ -177,11 +179,11 @@ z-index: 9999;
} }
.appl_Ba .input input{ .appl_Ba .input input{
height: 100%; height: 100%;
border-bottom: 2rpx solid #EDEFF2FF; border-bottom: 2rpx solid #EDEFF2;
} }
.appl_Ba .all{ .appl_Ba .all{
line-height: 96rpx; line-height: 96rpx;
background-color: #34026BFF; background-color: #34026B;
border-radius: 16rpx; border-radius: 16rpx;
text-align: center; text-align: center;
color: #fff; color: #fff;
@ -189,7 +191,7 @@ z-index: 9999;
} }
.appl_Ba .btn_con{ .appl_Ba .btn_con{
margin-top: 48rpx; margin-top: 48rpx;
border-top: 2rpx solid #F7F9FCFF; border-top: 2rpx solid #F7F9FC;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
text-transform: capitalize; text-transform: capitalize;
@ -202,8 +204,8 @@ z-index: 9999;
line-height: 108rpx; line-height: 108rpx;
} }
.appl_Ba .btn_con .btn1:nth-child(1){ .appl_Ba .btn_con .btn1:nth-child(1){
border-right: 2rpx solid #F7F9FCFF; border-right: 2rpx solid #F7F9FC;
} }
.puple{ .puple{
color: #954DE3FF !important; color: #954DE3 !important;
} }

72
pages/menu/promotion/index.vue

@ -129,13 +129,13 @@
} }
}, },
onLoad() { onLoad() {
this.openGame();
const post = api.inviteCode({ const post = api.inviteCode({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
}) })
post.then(res => { post.then(res => {
this.inviteRule = res.data; this.inviteRule = res.data;
this.copyText = this.inviteRule.qrcodeUrl; this.copyText = this.inviteRule.qrcodeUrl;
console.log(res.data, 9999);
}) })
.catch(e => { .catch(e => {
uni.showToast({ uni.showToast({
@ -147,6 +147,36 @@
}, },
methods: { methods: {
openGame() {
const post = api.info()
post.then(d => {
// uni.setStorage({
// key: 'Gamestatus',
// data: d.data.gameMenuStatus,
// });
if (d.data.gameMenuStatus == 'close') {
uni.setTabBarItem({
index: 2,
text: 'Order',
pagePath:'/pages/menu/order/index',
iconPath: '/static/tabbar/dorder.png',
selectedIconPath: '/static/tabbar/dorderS.png'
})
}else if (d.data.gameMenuStatus == 'open'){
uni.setTabBarItem({
index: 2,
text: 'Game',
pagePath: "/pages/menu/color/index",
iconPath: "/static/tabbar/[email protected]",
selectedIconPath: "/static/tabbar/[email protected]"
})
}
})
.catch((e) => {
console.log(e)
})
},
goInviteRule() { goInviteRule() {
uni.navigateTo({ uni.navigateTo({
url: '../rule/inviteRule/index' url: '../rule/inviteRule/index'
@ -203,12 +233,25 @@
}, },
copyTextMethod() { copyTextMethod() {
this.$copyText(this.copyText).then(res => { // #ifdef H5
uni.showToast({ this.$copyText(this.copyText).then(res => {
title: 'Copy succeeded', uni.showToast({
icon: 'success' title: 'Copy Success',
}) icon: 'success'
}) })
})
// #endif
// #ifdef APP-PLUS
uni.setClipboardData({
data: this.copyText,
success() {
uni.showToast({
title: 'Copy Success',
icon: 'success'
})
}
})
// #endif
}, },
leaIdChange(index) { leaIdChange(index) {
this.leaId = index; this.leaId = index;
@ -217,6 +260,19 @@
} }
</script> </script>
<style> <style lang="scss" scoped>
/* #ifdef APP-PLUS */
.pro-head{
padding-top: 30rpx;
}
.pro-hea-rig{
position: absolute;
right: 36rpx;
top: 60%;
transform: translateY(-50%);
display: flex;
align-items: center;
}
/* #endif */
@import url("./index.css"); @import url("./index.css");
</style> </style>

2
pages/menu/promotion/promotionRecord/index.css

@ -93,7 +93,7 @@ align-items: center;
font-size: 28rpx; font-size: 28rpx;
} }
.time{ .time{
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
} }
.recordTou{ .recordTou{

28
pages/menu/re/add/index.css

@ -0,0 +1,28 @@
.big{
position: relative;
}
.login-body{
padding: 36rpx 36rpx;
}
.login-body .big .text{
color: #BFC2CC;
font-size: 24rpx;
position: absolute;
top: 16rpx;
}
.login-btn{
margin-top: 60rpx;
background-color: #34026B;
color: #fff;
font-size: 28rpx;
line-height: 96rpx;
border-radius: 20rpx;
}
.u-form-item{
height: 110rpx !important;
}
/deep/ .u-input__right-icon{
display: none !important;
}

115
pages/menu/re/add/index.vue

@ -0,0 +1,115 @@
<template>
<view class="goods_con">
<navigation>
ADD Red Envelope
</navigation>
<view class="login-body">
<u-form :model="form" ref="uForm" :rules="rules">
<view class="big">
<view class="text">
Fixed Money
</view>
<u-form-item prop="amount">
<u-input v-model="form.amount" :placeholder="''" />
</u-form-item>
</view>
<view class="big">
<view class="text">
Enter Your Login Password
</view>
<u-form-item prop="password">
<u-input type="password" v-model="form.password" :placeholder="''" />
</u-form-item>
</view>
</u-form>
<button @click="submit" class="login-btn">
Confirm
</button>
</view>
<tab-bar></tab-bar>
</view>
</template>
<script>
import api from '@/utils/api'
import utils from '@/utils'
import md5 from 'js-md5'
import store from '@/store'
export default {
data() {
return {
form: {
password: '',
amount: '',
ticket: '',
},
rules: {
amount: [{
amount: true,
message: 'Please enter your amount',
//
trigger: ['blur'],
},
],
password: [{
required: true,
// min: 5,
message: 'Please enter password',
trigger: 'blur'
}],
}
}
},
onLoad(i) {
this.form.ticket = uni.getStorageSync('logInfo').data
},
onReady() {
},
methods: {
submit() {
this.$refs.uForm.validate(valid => {
if (valid) {
uni.showLoading({})
const post = api.launchRedEnvelop(this.form)
post.then(res => {
if(res.errCode=='SUCCESS'){
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 2500
})
setTimeout(()=>{
uni.navigateTo({
url:'../list/index'
})
},1500)
}
}).catch((e)=>{
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
} else {
console.log('验证失败');
}
});
}
},
}
</script>
<style>
@import './index.css';
</style>

117
pages/menu/re/list/index.css

@ -0,0 +1,117 @@
.flex{
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.bread image {
width: 28rpx;
height: 28rpx;
position: absolute;
right: 36rpx;
top: 60%;
transform: translateY(-50%);
}
.record_item{
height: 144rpx;
margin-top: 30rpx;
}
.numcon .img1{
width: 40rpx;
height: 40rpx;
vertical-align: middle;
margin-right: 20rpx;
}
.num{
margin-left: 20rpx;
}
.rec{
color: #303133;
font-size: 32rpx;
}
.time{
color: #909399;
font-size: 28rpx;
margin-top: 16rpx;
}
.status{
font-size: 28rpx;
}
.red{
color: #F25B5B !important;
}
.green{
color:#00B977 !important;
}
.noRes{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
}
.noRes .imgcon{
width: 72rpx;
height: 72rpx;
margin: 0 auto;
}
.noRes .imgcon image{
width: 100%;
height: 100%;
}
.noRes .res{
text-align: center;
color: #BFC2CC;
font-size: 28rpx;
margin-top: 24rpx;
}
page{
height: 100% !important;
}
.content{
padding-bottom: 200rpx;
background-color: #F5F7FA;
}
.record_body{
height: 100%;
background-color: #F5F7FA;
}
.item{
margin-bottom: 20rpx;
background-color: #fff;
padding: 36rpx;
}
.link{
color: #909399;
font-size: 28rpx;
margin-top: 16rpx;
word-break: break-all;
}
.copy{
text-align: center;
width: 88rpx;
line-height: 40rpx;
border: 3rpx solid #954DE3;
border-radius: 8rpx;
color: #954DE3;
font-size: 24rpx;
}
.top{
border-bottom: 2rpx solid #EDEFF2;
padding-bottom: 20rpx;
}
.no{
display: none;
}
.bottom{
text-align: center;
color: #303133;
line-height: 52rpx;
border-radius: 25rpx;
margin-top: 15rpx;
}
.bg{
background-color: #F5F7FA;
}

200
pages/menu/re/list/index.vue

@ -0,0 +1,200 @@
<template>
<view class="content">
<navigation>
Red Envelope
<view class="bread" slot="bread">
<image src="../../../../static/bankCard/[email protected]" mode="aspectFit"
@click="goAdd()"></image>
</view>
</navigation>
<view class="record_body" >
<view class="item" v-for="item,index in record_list" :key:="index">
<view class="top">
<view class="flex">
<view class="money">
{{currencySymbol}} {{item.amount}}
</view>
<view class="status" :class="item.status=='unreceive'?'green':'red'">
{{item.status}}
</view>
</view>
<view class="time">
{{item.addTime}}
</view>
<view class="flex">
<view class="link">
https://apitest.luck-work.com/#/pages/redenvelopes?code={{item.no}}
<!-- https://localhost:8080/#/pages/redenvelopes?code={{item.no}} -->
</view>
<view class="copy" @click="copyTextMethod(item)">
Copy
</view>
</view>
</view>
<view class="bottom flex" :class="item.status=='unreceive'?'no':''">
<view class="time">
{{item.operatorName}}
</view>
<view class="time">
{{item.addTime}}
</view>
</view>
<view class="bottom bg" :class="item.status!='unreceive'?'no':''" @click="showModel(item)">
Cancel
</view>
</view>
<u-modal v-model="show" confirm-color="#954DE3" @confirm="cancel()" confirm-text='confirm' cancel-text="cancel" :show-cancel-button="true" :show-title="false" :content="content"></u-modal>
</view>
<tab-bar :selectActive="5"></tab-bar>
</view>
</template>
<script>
import api from '@/utils/api'
import utils from '@/utils'
import cont from "@/components/navigation/navigation.vue"
import index from '@/utils/index.js'
export default{
data(){
return{
content:'Are you sure to cancel',
show:false,
pageNumber:1,
pageSize:10,
record_list:[],
totalPage:0,
currencySymbol:'',
copyText:'',
lingshi:{},
}
},
onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
this.getRechardRecord()
},
onReachBottom() {
this.pageSize += 8;
if(this.pageSize>this.totalPage){
return;
}
this.getRechardRecord();
},
methods:{
showModel(i){
this.show=true;
this.lingshi=i
},
cancel(){
const post2 = api.cancelRedEnvelop({
"ticket": uni.getStorageSync('logInfo').data,
"code":this.lingshi.no,
})
post2.then(res => {
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 2500
})
window.location.reload()
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
// #ifdef APP-PLUS
setTimeout(()=>{
uni.navigateTo({
url:"/pages/menu/re/list/index"
})
},2000)
// #endif
// #ifdef H5
setTimeout(()=>{
window.location.reload();
},2000)
// #endif
})
},
copyTextMethod(i) {
// https://apitest.luck-work.com
// #ifdef H5
this.copyText="https:localhost:8080/#/pages/redenvelopes?code="+i.no;
this.$copyText(this.copyText).then(res => {
uni.showToast({
title: 'Copy Success',
icon: 'success'
})
})
// #endif
// #ifdef APP-PLUS
this.copyText="https://apitest.luck-work.com/#/pages/redenvelopes?code="+i.no;
uni.setClipboardData({
data: this.copyText,
success() {
uni.showToast({
title: 'Copy Success',
icon: 'success'
})
}
})
// #endif
},
goAdd(){
uni.navigateTo({
url:'../add/index'
})
},
getRechardRecord(){
const post2 = api.redEnvelopList({
"ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber,
"pageSize":this.pageSize,
})
post2.then(res => {
if(res.data.content!=undefined){
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);
this.record_list[i].amount=this.record_list[i].amount.toFixed(2);
}
this.totalPage=res.data.totalElements;
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
},
onReachBottom(){
this.pageSize+=10;
this.getRechardRecord()
}
}
</script>
<style>
@import './index.css';
</style>

14
pages/menu/recharge/index.css

@ -6,7 +6,7 @@
height: 24rpx; height: 24rpx;
position: absolute; position: absolute;
right: 36rpx; right: 36rpx;
top: 50%; top: 60%;
transform: translateY(-50%); transform: translateY(-50%);
} }
.rech-body{ .rech-body{
@ -17,7 +17,7 @@ display: flex;
font-size: 22px; font-size: 22px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: #303133FF; color: #303133;
text-align: center; text-align: center;
padding: 30px 0; padding: 30px 0;
text-transform: capitalize; text-transform: capitalize;
@ -43,7 +43,7 @@ display: flex;
width: 500rpx; width: 500rpx;
text-transform: capitalize; text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.login-sigh{ .login-sigh{
width: 110rpx; width: 110rpx;
@ -54,7 +54,7 @@ display: flex;
content: ''; content: '';
width: 4rpx; width: 4rpx;
height: 26rpx; height: 26rpx;
background-color: #BFC2CCFF; background-color: #BFC2CC;
position: absolute; position: absolute;
right: 16rpx; right: 16rpx;
top: 50%; top: 50%;
@ -76,7 +76,7 @@ display: flex;
} }
.login-sigh .quhao{ .login-sigh .quhao{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.flex{ .flex{
display: flex; display: flex;
@ -105,7 +105,7 @@ display: flex;
margin-bottom: 24rpx; margin-bottom: 24rpx;
} }
.mount:hover{ .mount:hover{
border-color: #34026BFF; border-color: #34026B;
} }
.rech-capy{ .rech-capy{
display: flex; display: flex;
@ -116,7 +116,7 @@ display: flex;
} }
.payment{ .payment{
font-size: 28rpx; font-size: 28rpx;
color: #909399; color: #333;
text-transform: capitalize; text-transform: capitalize;
} }

124
pages/menu/recharge/index.vue

@ -19,24 +19,6 @@
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="tranAmt" /> placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="tranAmt" />
</view> </view>
<view class="rech-input-con">
<!-- <view class="input-item flex">
<input type="text" value="" placeholder="Name"
placeholder-style="color: #BFC2CCFF;font-size:14px;" />
</view> -->
<view class="input-item flex" v-show="pd==0">
<view class="login-sigh flex">
<span class="quhao">+{{areacode}}</span>
</view>
<input type="text" value="" placeholder="mobile number"
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile" />
</view>
<!-- <view class="input-item flex">
<input type="text" value="" placeholder="email"
placeholder-style="color: #BFC2CCFF;font-size:14px;" />
</view> -->
</view>
</view> </view>
@ -52,8 +34,8 @@
</view> </view>
<view class="paymentType"> <view class="paymentType">
<u-radio-group @change="radioGroupChange" class="payTypenName"> <u-radio-group @change="radioGroupChange" class="payTypenName">
<u-radio @change="radioChange(item)" v-for="(item, index) in paymentType" :key="index" <u-radio @change="radioChange(item)" v-for="(item, index) in paymentType" :key="index"
:name="item.typeName" :disabled="item.disabled" active-color="#954DE3FF"> active-color="#954DE3FF">
{{item.typeName}} {{item.typeName}}
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
@ -128,7 +110,7 @@
rechangeInfo: [], rechangeInfo: [],
recharge_amount: [], recharge_amount: [],
paymentType: [], paymentType: [],
payType: '', payType: 'pay.online.paxs',
currencySymbol:'', currencySymbol:'',
currentBalance:'', currentBalance:'',
userId:'', userId:'',
@ -139,12 +121,34 @@
}, },
onLoad() { onLoad() {
this.ba();
this.copyText=uni.getStorageSync('loginMobile'); this.copyText=uni.getStorageSync('loginMobile');
this.mobile=uni.getStorageSync('loginMobile'); this.mobile=uni.getStorageSync('loginMobile');
this.currentBalance=uni.getStorageSync('currentBalance'); this.currentBalance=uni.getStorageSync('currentBalance');
this.areacode = uni.getStorageSync('siteInfo').areaCode; this.areacode = uni.getStorageSync('siteInfo').areaCode;
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
this.userId=uni.getStorageSync('MyInfo').userId; this.userId=uni.getStorageSync('MyInfo').userId;
const post3 = api.withdrawConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post3.then(res => {
if(res.data){
this.currentBalance=res.data.currentBalance;
this.currentBalance=parseFloat(this.currentBalance).toFixed(2)
uni.setStorage({
key: 'currentBalance',
data: this.currentBalance,
success: function() {
console.log('success')
}
});
}
})
const post = api.rechargeConfig({ const post = api.rechargeConfig({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
}) })
@ -173,7 +177,6 @@
}) })
post2.then(res => { post2.then(res => {
this.paymentType = res.data; this.paymentType = res.data;
console.log(res.data);
}) })
.catch(e => { .catch(e => {
uni.showToast({ uni.showToast({
@ -191,6 +194,23 @@
url:'record/index' url:'record/index'
}) })
}, },
ba(){
//
const post3 = api.withdrawConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post3.then(res=>{
res.data.currentBalance= parseFloat(res.data.currentBalance).toFixed(2)
uni.setStorage({
key: 'currentBalance',
data: res.data.balance,
success: function() {
console.log('success')
}
});
})
},
goRerule(){ goRerule(){
uni.navigateTo({ uni.navigateTo({
url:'./rechargeRule' url:'./rechargeRule'
@ -216,23 +236,8 @@
}) })
return; 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.tranAmt==''){ if(this.tranAmt==''){
uni.showToast({ uni.showToast({
title: 'Please input recharge amount', title: 'Please input recharge amount',
@ -241,48 +246,39 @@
}) })
return; return;
} }
if(this.tranAmt<100){ if(this.tranAmt<0){
uni.showToast({ uni.showToast({
title: 'Recharge amount cannot be less than 100', title: 'Recharge amount cannot be less than 0',
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
return; return;
} }
const post2 = api.recharge({ const post2 = api.recharge({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
"payType":this.payType, "payType":this.payType,
"tranAmt":this.tranAmt, "tranAmt":this.tranAmt,
"mobile":this.mobile,
}) })
post2.then(res => { post2.then(res => {
if(res.success==true){ if(res.success==true&&res.data.msg){
uni.showToast({ uni.showToast({
title: 'Recharge success', title: 'Recharge success',
icon: 'success', icon: 'success',
duration: 1500 duration: 1500
}) })
// // #ifdef H5
const post = api.withdrawConfig({ window.location.href = res.data.msg;
"ticket": uni.getStorageSync('logInfo').data, // #endif
}) // #ifdef APP-PLUS
post.then(res => { plus.runtime.openURL(res.data.msg);
if(res.data){ // #endif
this.currentBalance=res.data.currentBalance;
uni.setStorage({
key: 'currentBalance',
data: this.currentBalance,
success: function() {
console.log('success')
}
});
}
})
}else{ }else{
uni.showToast({ uni.showToast({
title: 'Payment failed', title: res.errMsg,
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
@ -298,7 +294,7 @@
}, },
radioChange(e) { radioChange(e) {
if(e.payType=='pay.offline'){ if(e.payType=='pay.offline.paxs'){
this.pd=1; this.pd=1;
this.payType=e.payType this.payType=e.payType
}else{ }else{
@ -310,11 +306,11 @@
}, },
// radioradio-group // radioradio-group
radioGroupChange(e) { radioGroupChange(e) {
console.log(this.payType,8888888888888)
}, },
getMonVal(m) { getMonVal(m) {
this.tranAmt = m this.tranAmt = m
console.log(this.tranAmt,222)
} }
}, },

2
pages/menu/recharge/rechargeRule.vue

@ -53,7 +53,7 @@
padding-top: 70rpx; padding-top: 70rpx;
} }
.record_body{ .record_body{
color: #303133FF; color: #303133;
line-height: 48rpx; line-height: 48rpx;
font-size: 28rpx; font-size: 28rpx;
text-transform: capitalize; text-transform: capitalize;

21
pages/menu/recharge/record/index.css

@ -9,14 +9,17 @@
.flex{ .flex{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
} }
.record_item{ .record_item{
height: 144rpx; height: 144rpx;
margin-top: 30rpx;
} }
.numcon .img1{ .numcon .img1{
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
vertical-align: middle;
margin-right: 20rpx;
} }
.num{ .num{
margin-left: 20rpx; margin-left: 20rpx;
@ -26,15 +29,27 @@
font-size: 32rpx; font-size: 32rpx;
} }
.cpay{ .cpay{
color: #954DE3; text-align: right;
color: #909399;
font-size: 28rpx; font-size: 28rpx;
} }
.time{ .time{
color: #909399; color: #909399;
font-size: 28rpx; font-size: 28rpx;
text-align: left;
} }
.status{
margin-bottom: 18rpx;
text-align: right;
font-size: 28rpx;
}
.red{
color: #F25B5B !important;
}
.green{
color:#00B977 !important;
}
.noRes{ .noRes{
position: absolute; position: absolute;
left: 50%; left: 50%;

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

@ -2,22 +2,37 @@
<view class="content"> <view class="content">
<navigation> <navigation>
Recharge Record Recharge Record
<!-- -->
</navigation> </navigation>
<view class="record_body" :class="totalPage>0?'auto':''"> <view class="record_body" :class="totalPage>0?'auto':''">
<view class="record_item flex" v-for="(item,index) in record_list" :key="item.orderNo"> <view class="record_item flex" v-for="(item,index) in record_list" :key="index">
<view class="numcon flex"> <view class="numcon">
<image src="../../../../static/login/[email protected]" mode="aspectFit" class="img1"></image>
<view class="num"> <view class="">
<view class="rec"> <view class="rec">
{{item.tranAmt}} Wait <view class="">
<!-- <image src="../../../../static/login/[email protected]" mode="aspectFit" class="img1"></image> -->
{{currencySymbol}}{{item.tranAmt}}
</view>
<view class="time">
{{item.orderNo}}
</view>
<view class="time">
{{item.addTime}}
</view>
</view> </view>
<view class="cpay">
CPAY
</view>
</view> </view>
</view> </view>
<view class="time"> <!-- -->
{{item.addTime}} <view class="status_con">
<view class="status" :class="item.orderStatus=='pay_unpaid'?'red':'green'">
<text v-if="item.orderStatus=='pay_unpaid'">Unpaid</text>
<text v-if="item.orderStatus=='pay_success'">Paid</text>
</view>
<view class="cpay">
{{item.payTypeName}}
</view>
</view> </view>
</view> </view>
<view class="noRes" v-show="totalPage<0"> <view class="noRes" v-show="totalPage<0">
@ -29,7 +44,7 @@
</view> </view>
</view> </view>
</view> </view>
<tab-bar :selectActive="5"></tab-bar>
</view> </view>
</template> </template>
@ -43,13 +58,15 @@
data(){ data(){
return{ return{
pageNumber:1, pageNumber:1,
pageSize:8, pageSize:10,
record_list:[], record_list:[],
totalPage:0, totalPage:0,
currencySymbol:'',
} }
}, },
onLoad() { onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
this.getRechardRecord() this.getRechardRecord()
}, },
onReachBottom() { onReachBottom() {
@ -63,21 +80,20 @@
methods:{ methods:{
getRechardRecord(){ getRechardRecord(){
const post2 = api.rechargeList({ const post2 = api.rechargeList({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber, "pageNumber":this.pageNumber,
"pageSize":this.pageSize, "pageSize":this.pageSize,
}) })
post2.then(res => { post2.then(res => {
if(res.data.content){ if(res.data.content!=undefined){
this.record_list=res.data.content; this.record_list=res.data.content;
for(var i=0;i<this.record_list[i].addTime;i++){ for(var i=0;i<this.record_list.length;i++){
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime); this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime);
this.record_list[i].tranAmt=this.record_list[i].tranAmt.toFixed(2);
} }
this.totalPage=res.data.totalElements; this.totalPage=res.data.totalElements;
console.log(this.record_list,3333333333)
} }
@ -93,6 +109,10 @@
}, },
}, },
onReachBottom(){
this.pageSize+=10;
this.getRechardRecord()
}
} }
</script> </script>

2
pages/menu/rule/arules/index.vue

@ -49,7 +49,7 @@
padding-top: 70rpx; padding-top: 70rpx;
} }
.record_body{ .record_body{
color: #303133FF; color: #303133;
line-height: 48rpx; line-height: 48rpx;
font-size: 28rpx; font-size: 28rpx;
text-transform: capitalize; text-transform: capitalize;

8
pages/menu/rule/index.css

@ -22,7 +22,7 @@
padding-top: 48rpx; padding-top: 48rpx;
} }
.ru-body-p1{ .ru-body-p1{
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
} }
.ru-table{ .ru-table{
@ -32,7 +32,7 @@
} }
.ru-body-p1{ .ru-body-p1{
font-size: 32rpx; font-size: 32rpx;
color: #303133FF; color: #303133;
text-transform: capitalize; text-transform: capitalize;
} }
.ru-table{ .ru-table{
@ -47,7 +47,7 @@ border-bottom: 2rpx solid #EDEFF2;
} }
.ru-table tbody{ .ru-table tbody{
color: #909399FF; color: #909399;
} }
.ru-table tr .t1{ .ru-table tr .t1{
width: 200rpx; width: 200rpx;
@ -57,7 +57,7 @@ border-bottom: 2rpx solid #EDEFF2;
width: 476rpx; width: 476rpx;
} }
.ru-cont{ .ru-cont{
color: #303133FF; color: #303133;
font-size: 28rpx; font-size: 28rpx;
line-height: 54rpx; line-height: 54rpx;
padding: 48rpx 0; padding: 48rpx 0;

9
pages/menu/rule/index.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="content"> <view class="content">
<navigation>Rules</navigation> <navigation>Rules</navigation>
<view class="p1" v-html="betting_rule"> <view class="p1" v-html="dse">
</view> </view>
@ -19,17 +19,16 @@
data() { data() {
return { return {
betting_rule:'', betting_rule:'',
dse:null,
} }
}, },
onLoad(){ onLoad(des){
this.dse=des.des
const post2 = api.bettingConfig({ const post2 = api.bettingConfig({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
}) })
post2.then(res => { post2.then(res => {
this.betting_rule=res.data.tips; this.betting_rule=res.data.tips;
}) })
.catch(e => { .catch(e => {
uni.showToast({ uni.showToast({

9
pages/menu/rule/inviteRule/index.css

@ -4,13 +4,14 @@
background-color: #34026B; background-color: #34026B;
position: relative; position: relative;
padding: 0 36rpx; padding: 0 36rpx;
padding-top: 20rpx;
} }
.ru-imgcon{ .ru-imgcon{
width: 44rpx; width: 44rpx;
height: 44rpx; height: 44rpx;
position: absolute; position: absolute;
left: 36rpx; left: 36rpx;
top: 50%; top: 60%;
transform: translateY(-50%); transform: translateY(-50%);
} }
.ru-imgcon image{ .ru-imgcon image{
@ -22,7 +23,7 @@
padding-top: 48rpx; padding-top: 48rpx;
} }
.ru-body-p1{ .ru-body-p1{
color: #303133FF; color: #303133;
font-size: 32rpx; font-size: 32rpx;
} }
.ru-table{ .ru-table{
@ -47,7 +48,7 @@ border-bottom: 2rpx solid #EDEFF2;
} }
.ru-table tbody{ .ru-table tbody{
color: #909399FF; color: #909399;
} }
.ru-table tr .t1{ .ru-table tr .t1{
width: 200rpx; width: 200rpx;
@ -57,7 +58,7 @@ border-bottom: 2rpx solid #EDEFF2;
width: 476rpx; width: 476rpx;
} }
.ru-cont{ .ru-cont{
color: #303133FF; color: #303133;
font-size: 28rpx; font-size: 28rpx;
line-height: 54rpx; line-height: 54rpx;
padding: 48rpx 0; padding: 48rpx 0;

98
pages/menu/search/index.css

@ -14,7 +14,105 @@
left: 20rpx; left: 20rpx;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
z-index: 10;
} }
/deep/ .item_input{ /deep/ .item_input{
padding-left: 76rpx !important; padding-left: 76rpx !important;
} }
.goods_list_con{
width: 100%;
background-color: #F5F7FA;
padding:36rpx 36rpx 140rpx 36rpx;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.good_item{
width: 320rpx;
background-color: #fff;
border-radius: 20rpx;
margin-bottom: 36rpx;
}
.good_item image{
width: 100%;
}
.text{
padding: 24rpx;
font-size: 26rpx;
color: #303133;
}
.price{
padding: 18rpx 24rpx 36rpx 24rpx;
font-size: 28rpx;
color: #954DE3;
text-align: left;
}
.goods_con{
background-color: #F5F7FA;
}
.goods_list_con{
width: 100%;
padding:36rpx 36rpx 140rpx 36rpx;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.good_item{
width: 330rpx;
background-color: #fff;
border-radius: 20rpx;
margin-bottom: 36rpx;
}
.good_item image{
width: 100%;
}
.text{
padding: 0 24rpx;
font-size: 26rpx;
color: #303133;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.price{
padding: 18rpx 24rpx 36rpx 24rpx;
font-size: 28rpx;
color: #954DE3;
text-align: left;
}
.top_item{
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 36rpx;
line-height: 108rpx;
background-color: #954DE3;
}
.one{
display: flex;
align-items: center;
}
.dimg{
width: 36rpx;
height: 36rpx;
}
.white{
width: 76rpx;
height: 76rpx;
}
.white image{
width: 100%;
height: 100%;
border-radius: 10rpx;
}
.dtext{
color: #fff;
margin-left: 16rpx;
}

92
pages/menu/search/index.vue

@ -5,10 +5,25 @@
</navigation> </navigation>
<view class="sea_con"> <view class="sea_con">
<u-form-item :border-bottom="false" class="sea_item"> <u-form-item :border-bottom="false" class="sea_item">
<image src="../../../static/home/[email protected]" mode="aspectFit" class="img"></image> <image src="../../../static/home/[email protected]" mode="aspectFit" class="img" ></image>
<u-input :placeholder="'Search'" :border="false" :height="80" class="item_input"/></u-form-item> <u-input v-model="name" :placeholder="'Search'" :border="false" :height="80" class="item_input" @input="search()"/></u-form-item>
</view> </view>
<view class="goods_list_con">
<view class="good_item" v-for="item,index in goods_list" :key="item.index" @click="goGoodsDetail(item.id)">
<image :src="'https://apitest.luck-work.com'+item.goodsImgThumbUrl" mode="aspectFit"></image>
<view class="text">
{{item.goodsName}}
</view>
<view class="price">
{{currencySymbol}} {{item.goodsPrice}}
</view>
</view>
</view>
</view> </view>
</template> </template>
@ -20,19 +35,90 @@
export default { export default {
data() { data() {
return { return {
name:"",
goods_list:[],
currencySymbol:'',
} }
}, },
onLoad() { onLoad() {
this.openGame()
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
const post2 = api.goodsList({})
.then(res =>{
this.goods_list=res.data;
for(var i=0;i<this.goods_list.length;i++){
this.goods_list[i].goodsPrice=parseFloat(this.goods_list[i].goodsPrice).toFixed(2)
}
}).catch(err =>{
console.log(err)
})
}, },
onReady() { onReady() {
}, },
methods: { methods: {
openGame() {
const post = api.info()
post.then(d => {
// uni.setStorage({
// key: 'Gamestatus',
// data: d.data.gameMenuStatus,
// });
if (d.data.gameMenuStatus == 'close') {
uni.setTabBarItem({
index: 2,
text: 'Order',
pagePath:'/pages/menu/order/index',
iconPath: '/static/tabbar/dorder.png',
selectedIconPath: '/static/tabbar/dorderS.png'
})
}else if (d.data.gameMenuStatus == 'open'){
uni.setTabBarItem({
index: 2,
text: 'Game',
pagePath: "/pages/menu/color/index",
iconPath: "/static/tabbar/[email protected]",
selectedIconPath: "/static/tabbar/[email protected]"
})
}
})
.catch((e) => {
console.log(e)
})
},
goGoodsDetail(i){
uni.navigateTo({
url:'../goods/goodsDetail/index?id='+i
})
},
search(){
const post = api.goodsList({
"name": this.name,
})
post.then(res => {
var that = this;
if (res.errCode == "SUCCESS") {
this.goods_list=res.data;
for(var i=0;i<this.goods_list.length;i++){
this.goods_list[i].goodsPrice=parseFloat(this.goods_list[i].goodsPrice).toFixed(2)
}
}
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
}
}, },
} }

22
pages/menu/withdrawl/index.css

@ -15,13 +15,12 @@
} }
.pro-body-p1{ .pro-body-p1{
font-size: 22px; font-size: 22px;
color: #303133FF; color: #303133;
text-align: center; text-align: center;
padding: 30px 0; padding: 30px 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
text-transform: capitalize;
} }
.category-sigh{ .category-sigh{
font-size: 18px; font-size: 18px;
@ -42,9 +41,8 @@
.input-item input{ .input-item input{
line-height: 96rpx; line-height: 96rpx;
width: 500rpx; width: 500rpx;
text-transform: capitalize;
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.login-sigh{ .login-sigh{
width: 110rpx; width: 110rpx;
@ -55,7 +53,7 @@
content: ''; content: '';
width: 4rpx; width: 4rpx;
height: 26rpx; height: 26rpx;
background-color: #BFC2CCFF; background-color: #BFC2CC;
position: absolute; position: absolute;
right: 16rpx; right: 16rpx;
top: 50%; top: 50%;
@ -77,7 +75,7 @@
} }
.login-sigh .quhao{ .login-sigh .quhao{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.flex{ .flex{
display: flex; display: flex;
@ -106,7 +104,7 @@
margin-bottom: 24rpx; margin-bottom: 24rpx;
} }
.mount:hover{ .mount:hover{
border-color: #34026BFF; border-color: #34026B;
} }
.rech-capy{ .rech-capy{
margin-top: 25rpx; margin-top: 25rpx;
@ -114,7 +112,6 @@
.payment{ .payment{
font-size: 28rpx; font-size: 28rpx;
color: #909399; color: #909399;
text-transform: capitalize;
margin-bottom: 24rpx; margin-bottom: 24rpx;
} }
.capy{ .capy{
@ -136,7 +133,6 @@
font-size: 28rpx; font-size: 28rpx;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
text-transform: capitalize;
text-align: center; text-align: center;
opacity: .5; opacity: .5;
} }
@ -169,7 +165,6 @@ bottom: 0;
z-index: 9999; z-index: 9999;
} }
.more-a{ .more-a{
text-transform: capitalize;
font-size: 32rpx; font-size: 32rpx;
color: #303133; color: #303133;
text-align: center; text-align: center;
@ -224,6 +219,7 @@ z-index: 9999;
align-items: center; align-items: center;
padding: 0 24rpx; padding: 0 24rpx;
margin-top: 70rpx; margin-top: 70rpx;
position: relative;
} }
.img1{ .img1{
width: 40rpx; width: 40rpx;
@ -237,8 +233,10 @@ z-index: 9999;
.text2{ .text2{
color: #909399; color: #909399;
font-size: 28rpx; font-size: 28rpx;
margin-left: 16rpx; position: absolute;
margin-left: 120rpx; top: 50%;
right: 50rpx;
transform: translateY(-50%);
} }
.img2{ .img2{
width: 28rpx; width: 28rpx;

176
pages/menu/withdrawl/index.vue

@ -4,12 +4,12 @@
withdrawal withdrawal
<view class="bread" slot="bread"> <view class="bread" slot="bread">
<image src="../../../static/promo/[email protected]" mode="aspectFit" <image src="../../../static/promo/[email protected]" mode="aspectFit"
@click="invMore=true,msShow=true"></image> @click="goWithRecord()"></image>
</view> </view>
</navigation> </navigation>
<view class="rech-body"> <view class="rech-body">
<view class="pro-body-p1">Balance:<span data-v-642729fd="" <view class="pro-body-p1">Balance:<span data-v-642729fd=""
class="category-sigh">{{currentBalance}}</span><span class="s1"></span></view> class="category-sigh">{{currencySymbol}}{{currentBalance}}</span><span class="s1"></span></view>
<view> <view>
<u-modal v-model="show" width="80%" :show-title="false" confirm-text="Confirm" <u-modal v-model="show" width="80%" :show-title="false" confirm-text="Confirm"
confirm-color="#954DE3FF"> confirm-color="#954DE3FF">
@ -19,9 +19,7 @@
<view class="input-item flex"> <view class="input-item flex">
<view class="login-sigh login-sigh2 flex"> <view class="login-sigh login-sigh2 flex">
<view class="imgcon"> {{currencySymbol}}
<image src="../../../static/promo/[email protected]" mode="aspectFit"></image>
</view>
</view> </view>
<input value="" placeholder="enter withdrawal amount" <input value="" placeholder="enter withdrawal amount"
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform:capital" v-model="tranAmt" placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform:capital" v-model="tranAmt"
@ -29,10 +27,10 @@
</view> </view>
<view class="p_con"> <view class="p_con">
<view class="fee"> <view class="fee">
FEE:{{this.fee}}, TO ACCOUNT {{this.trueMoney}} FEE: {{currencySymbol}}{{this.fee}}, TO ACCOUNT: {{currencySymbol}}{{this.trueMoney}}
</view> </view>
<view class="minnum"> <view class="minnum">
MINIMUM WITHDRAWAL AMOUNT: {{withdrawConfig.withdraw_limit_min}} MINIMUM WITHDRAWAL AMOUNT: {{currencySymbol}}{{withdrawConfig.withdraw_limit_min}}
</view> </view>
</view> </view>
<view class="rech-capy"> <view class="rech-capy">
@ -52,11 +50,11 @@
</view> </view>
</view> --> </view> -->
<view class="xiala_con" :class="fujiNum==1?'activeErji':''" > <view class="xiala_con" :class="fujiNum==1?'activeErji':''" v-if="BankValue">
<view class="fuji " @click="fuji()"> <view class="fuji " @click="fuji()">
<image src="../../../static/login/[email protected]" mode="aspectFit" class="img1"></image> <image src="../../../static/login/[email protected]" mode="aspectFit" class="img1"></image>
<text class="text1"> <text class="text1">
My Card3480****6675 {{nameOne}}{{cardOne}}
</text> </text>
<text class="text2"> <text class="text2">
Select Select
@ -64,21 +62,20 @@
</text> </text>
</view> </view>
<view class="erji"> <view class="erji">
<view class="item item-active"> <view class="item" v-for="item,index in itemList" :key="index" :class="index==itemActive?'item-active':''" @click="toCardOne(item.id,item.acctName,item.acctId,index)">
My Card3480****6675 <text v-if="index==0?true:false">My Card</text>
</view> <text v-if="index!=0?true:false">Card{{index+1}}</text>
<view class="item"> {{item.acctId}}
Card 2:9200****4028
</view> </view>
<view class="item" @click="goAddBankCard()"> <view class="item" @click="goAddBankCard()" >
Add Bank Card Add Bank Card
</view> </view>
</view> </view>
</view> </view>
<view class="longey_item" @click="goAddBankCard()"> <view class="longey_item" @click="goAddBankCard()" v-if="BankValue==false">
<image src="../../../static/bankCard/[email protected]" mode="aspectFit" class="img1"></image> <image src="../../../static/bankCard/[email protected]" mode="aspectFit" class="img1"></image>
<text class="text1">Add Bank Card</text> <text class="text1" @click="goAddBankCard()" >Add Bank Card</text>
</view> </view>
<view class="input-item flex"> <view class="input-item flex">
@ -127,6 +124,7 @@
</view> </view>
<view class="msg-box-bg" v-show="invMore"> <view class="msg-box-bg" v-show="invMore">
</view> </view>
<tab-bar :selectActive="5"></tab-bar>
</view> </view>
</template> </template>
@ -138,35 +136,82 @@
export default { export default {
data() { data() {
return { return {
// id
cid:-1,
//
BankValue:false,
//
itemActive:0,
//
cardOne:'',
//
nameOne:'',
currencySymbol:'',
fujiNum:-1, fujiNum:-1,
i:0, i:0,
// //
itemList:[],
currentBalance: '', currentBalance: '',
currencySymbol: '',
withdrawConfig: [], withdrawConfig: [],
show: false, show: false,
content: '', content: '',
password: '', password: '',
tranAmt: '', tranAmt: '',
mobile: '', mobile: '',
fee: '', fee: 0.00,
trueMoney: '', trueMoney: 0.00,
btncol: 0, btncol: 0,
invMore: false, invMore: false,
} }
}, },
onLoad() { onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
this.currentBalance = uni.getStorageSync('currentBalance'); this.currentBalance = uni.getStorageSync('currentBalance');
this.mobile = uni.getStorageSync('loginMobile'); this.mobile = uni.getStorageSync('loginMobile');
this.init(); this.init();
this.calulate()
}, },
methods: { methods: {
ba(){
//
const post3 = api.withdrawConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post3.then(res=>{
res.data.currentBalance= parseFloat(res.data.currentBalance).toFixed(2)
this.currentBalance=res.data.currentBalance;
uni.setStorage({
key: 'currentBalance',
data: res.data.balance,
success: function() {
console.log('success')
}
});
})
},
goWithRecord(){
uni.navigateTo({
url:'withdrawlRecord/index'
})
},
//
toCardOne(a,b,i,d){
this.itemActive=i;
this.cardOne=i;
this.nameOne=b;
this.cid=d;
},
goGoodsDetail(i){
uni.navigateTo({
url:'goodsDetail/index?id='+i
})
},
goAddBankCard(){ goAddBankCard(){
uni.navigateTo({ uni.navigateTo({
url:'../bankCard/addAddress/index' url:'../bankCard/addBankCard/index?wid='+'widthdrawl'
}) })
}, },
// //
@ -184,9 +229,8 @@
}) })
post2.then(res => { post2.then(res => {
this.withdrawConfig = res.data; this.withdrawConfig = res.data;
this.withdrawConfig.withdraw_limit_min=parseFloat(this.withdrawConfig.withdraw_limit_min).toFixed(2)
this.content = this.withdrawConfig.tips; this.content = this.withdrawConfig.tips;
console.log(res.data, 8880);
console.log(this.withdrawConfig, 9990);
this.show = true; this.show = true;
}) })
@ -202,7 +246,29 @@
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
}) })
post.then(res => { post.then(res => {
// this.itemList=res.data if(res.data.length!=0){
for(var i=0;i<res.data.length;i++){
// #ifdef H5
res.data[i].acctId=res.data[i].acctId.replaceAll('%20',' ')
res.data[i].acctName=res.data[i].acctName.replaceAll('%20',' ')
// #endif
// #ifdef APP-PLUS
res.data[i].acctId=res.data[i].acctId.replace(new RegExp('%20',"gm"),' ')
res.data[i].acctName=res.data[i].acctName.replace(new RegExp('%20',"gm"),' ')
// #endif
}
this.BankValue=true;
this.cardOne=res.data[0].acctId
this.nameOne=res.data[0].acctName
this.cid=res.data[0].id;
this.itemList=res.data;
}else{
this.BankValue=false;
}
}) })
.catch(e => { .catch(e => {
uni.showToast({ uni.showToast({
@ -231,6 +297,7 @@
this.fee = this.tranAmt * 0.1; this.fee = this.tranAmt * 0.1;
this.fee = parseFloat(this.fee).toFixed(2) this.fee = parseFloat(this.fee).toFixed(2)
this.trueMoney = this.tranAmt - this.fee; this.trueMoney = this.tranAmt - this.fee;
this.trueMoney= parseFloat(this.trueMoney).toFixed(2)
this.btncol = 1; this.btncol = 1;
if (this.tranAmt == '') { if (this.tranAmt == '') {
this.btncol = 0; this.btncol = 0;
@ -240,58 +307,6 @@
this.show = true; this.show = true;
}, },
widthDrawl() { widthDrawl() {
// 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.password == '') {
// uni.showToast({
// title: 'password is empty',
// icon: 'none',
// duration: 1500
// })
// return;
// }
// var a= /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,19}$/;
// if(!a.test(this.password)){
// uni.showToast({
// title: 'Incorrect password format,a password requires a combination of numbers and letters',
// icon: 'none',
// duration: 1500
// })
// return;
// }
// if(this.tranAmt<withdrawConfig.withdraw_min_amt){
// uni.showToast({
// title: 'The withdrawal amount cannot be less than the minimum withdrawal amount',
// icon: 'none',
// duration: 1500
// })
// return;
// }
// if(this.tranAmt<withdrawConfig.withdraw_max_amt){
// uni.showToast({
// title: 'The withdrawal amount cannot be greater than the maximum withdrawal amount',
// icon: 'none',
// duration: 1500
// })
// return;
// }
uni.showLoading({ uni.showLoading({
title: 'loading' title: 'loading'
}); });
@ -309,7 +324,8 @@
const post2 = api.withdraw({ const post2 = api.withdraw({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
// 'password': md5(this.password), 'password': md5(this.password),
'cardId':this.cid,
"tranAmt": this.tranAmt, "tranAmt": this.tranAmt,
}) })
post2.then(res => { post2.then(res => {
@ -319,15 +335,13 @@
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
this.ba();
const post = api.withdrawServiceCharge({ const post = api.withdrawServiceCharge({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
// 'password': md5(this.password), // 'password': md5(this.password),
"tranAmt": this.tranAmt, "tranAmt": this.tranAmt,
"ticket": uni.getStorageSync('logInfo').data,
}) })
post.then(res => { post.then(res => {
console.log(res.data, '45464654646446');
}) })
.catch(e => { .catch(e => {

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

@ -2,25 +2,26 @@
<view class="content"> <view class="content">
<navigation> <navigation>
transactions transactions
<view class="bread" slot="bread"> <!-- <view class="bread" slot="bread">
<image src="../../../../static/promo/[email protected]" mode="" @click="invMore=true"></image> <image src="../../../../static/promo/[email protected]" mode="" @click="invMore=true"></image>
</view> </view> -->
</navigation> </navigation>
<view class="record_body"> <view class="record_body">
<!-- -->
<view class="record_item flex" v-for="item,index in record_list" :key="item.id"> <view class="record_item flex" v-for="item,index in record_list" :key="item.id">
<view class="numcon flex"> <view class="numcon flex">
<image src="../../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image> <!-- <image src="../../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image> -->
<view class="num"> <view class="num" >
<view class="rec"> <view class="rec">
Join period {{item.witTypeName}}
</view> </view>
<view class="cpay"> <view class="cpay">
{{item.addTime}} {{item.addTime}}
</view> </view>
</view> </view>
</view> </view>
<view class="time"> <view class="time" :class="item.type=='out'?'red':'green'">
-{{item.tranAmt}} <text v-if="item.type=='out'">-</text><text v-if="item.type=='in'">+</text>{{currencySymbol}}<span>{{k}}</span>{{item.tranAmt}}
</view> </view>
</view> </view>
</view> </view>
@ -46,6 +47,7 @@
</view> </view>
<view class="msg-box-bg" v-show="invMore"> <view class="msg-box-bg" v-show="invMore">
</view> </view>
<tab-bar :selectActive="5"></tab-bar>
</view> </view>
</template> </template>
@ -57,16 +59,17 @@
export default{ export default{
data(){ data(){
return{ return{
k:' ',
pageNumber:1, pageNumber:1,
pageSize:20, pageSize:20,
record_list:[], record_list:[],
invMore:false, invMore:false,
currencySymbol:'',
} }
}, },
onLoad() { onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
const post = api.billList({ const post = api.billList({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber, "pageNumber":this.pageNumber,
@ -77,6 +80,7 @@
this.record_list=res.data.content; this.record_list=res.data.content;
for(var i=0;i<this.record_list.length;i++){ for(var i=0;i<this.record_list.length;i++){
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime); this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime);
this.record_list[i].tranAmt=parseFloat(this.record_list[i].tranAmt).toFixed(2);
} }
} }
@ -184,7 +188,6 @@
height: 40rpx; height: 40rpx;
} }
.num{ .num{
margin-left: 20rpx;
text-transform: capitalize; text-transform: capitalize;
} }
.rec{ .rec{
@ -196,7 +199,12 @@
font-size: 28rpx; font-size: 28rpx;
} }
.time{ .time{
color: #F25B5B;
font-size: 28rpx; font-size: 28rpx;
} }
.red{
color: #F25B5B;
}
.green{
color:green;
}
</style> </style>

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

@ -1,26 +1,36 @@
<template> <template>
<view class="content"> <view class="content">
<navigation> <navigation>
withdrawal withdrawal Record
<view class="bread" slot="bread"> <!-- <view class="bread" slot="bread">
<image src="../../../../static/promo/[email protected]" mode="" @click="invMore=true"></image> <image src="../../../../static/promo/[email protected]" mode="" @click="invMore=true"></image>
</view> </view> -->
</navigation> </navigation>
<!-- -->
<view class="record_body"> <view class="record_body">
<view class="record_item flex" v-for="(item,index) in record_list" :key="item.id"> <view class="record_item flex" v-for="(item,index) in record_list" :key="item.id">
<view class="numcon flex"> <view class="numcon flex">
<image src="../../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image>
<view class="num"> <view class="num">
<view class="rec"> <view class="rec">
{{item.tranAmt}} Wait {{currencySymbol}}{{item.tranAmt}}
</view> </view>
<view class="cpay" @click="goBalance"> <view class="cpay">
Back to balance {{item.acctName}}
</view> </view>
<view class="cpay">
{{item.createTime}}
</view>
</view> </view>
</view> </view>
<view class="time"> <view class="time">
{{item.createTime}} <view class="wait">
Wait
</view>
<view>
{{item.orderNo}}
</view>
</view> </view>
</view> </view>
</view> </view>
@ -45,6 +55,7 @@
</view> </view>
<view class="msg-box-bg" v-show="invMore"> <view class="msg-box-bg" v-show="invMore">
</view> </view>
<tab-bar :selectActive="5"></tab-bar>
</view> </view>
</template> </template>
@ -65,6 +76,7 @@
}, },
onLoad() { onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
const post = api.withdrawList({ const post = api.withdrawList({
"ticket": uni.getStorageSync('logInfo').data, "ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber, "pageNumber":this.pageNumber,
@ -73,9 +85,10 @@
post.then(res => { post.then(res => {
if(res.data.content){ if(res.data.content){
this.record_list=res.data.content; this.record_list=res.data.content;
for(var i=0;i<this.record_list.length;i++){ for(var i=0;i<this.record_list.length;i++){
this.record_list[i].createTime=index.formatyymmddhhmmss(this.record_list[i].createTime); this.record_list[i].createTime=index.formatyymmddhhmmss(this.record_list[i].createTime);
} this.record_list[i].tranAmt=parseFloat(this.record_list[i].tranAmt).toFixed(2)
}
} }
@ -123,6 +136,11 @@ goBalance(){
</script> </script>
<style> <style>
.wait{
color: #303133;
margin-bottom: 20rpx;
text-align: right;
}
.invite-more{ .invite-more{
width: 750rpx; width: 750rpx;
height: 480rpx; height: 480rpx;
@ -175,14 +193,13 @@ goBalance(){
} }
.record_item{ .record_item{
height: 144rpx; height: 144rpx;
margin-bottom: 30rpx;
} }
.numcon .img1{ .numcon .img1{
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
} }
.num{
margin-left: 20rpx;
}
.rec{ .rec{
color: #303133; color: #303133;
font-size: 32rpx; font-size: 32rpx;

138
pages/redenvelopes.vue

@ -0,0 +1,138 @@
<template>
<view class="content">
<navigation :showBack="false">
Red Envelopes
<image src="../static/color/[email protected]" mode="aspectFit" class="back" @click="back()"></image>
</navigation>
<view class="money">
{{bo.currencySymbol}}{{k}}{{bo.amount}}
</view>
<view class="btn" @click="receive()">
Continue
</view>
</view>
</template>
<script>
import api from '@/utils/api'
import utils from '@/utils'
import cont from "@/components/navigation/navigation.vue"
import index from '@/utils/index.js'
export default{
data(){
return{
code:'',
k:' ',
ticket:'',
bo:{},
}
},
onLoad(i) {
this.ticket=uni.getStorageSync('logInfo').data;
this.code=i.code
this.getRedInfo();
},
methods:{
back(){
uni.switchTab({
url:'/pages/menu/My/index'
})
},
receive(){
const post2 = api.receiveRedEnvelop({
"ticket": uni.getStorageSync('logInfo').data,
"code":this.code,
})
post2.then(res => {
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 2500
})
})
.catch(e => {
uni.showToast({
title: e,
icon: 'none',
duration: 2500
})
})
},
getRedInfo(){
const post2 = api.redEnvelop({
"ticket": uni.getStorageSync('logInfo').data,
"code":this.code,
})
post2.then(res => {
this.bo=res.data;
})
.catch(e => {
})
}
},
}
</script>
<style lang="scss" scoped>
page{
height: 100%;
}
/* #ifdef APP-PLUS */
.back{
width: 42rpx;
height: 42rpx;
position: absolute;
left:36rpx;
top: 60%;
transform: translateY(-50%) rotate(-180deg) ;
}
/* #endif */
.back{
width: 42rpx;
height: 42rpx;
position: absolute;
left:36rpx;
top: 50%;
transform: translateY(-50%) rotate(-180deg) ;
}
.content{
width: 100%;
height: 100%;
background: url('../static/bankCard/redBJ.png')no-repeat;
background-position: center center;
background-size: cover;
position: relative;
}
.money{
font-size: 100rpx;
color: #fff;
text-align: center;
margin-top: 60rpx;
}
.btn{
width: 678rpx;
line-height: 96rpx;
text-align: center;
color: 28rpx;
background-color: #EED19E;
border-radius: 24rpx;
position: absolute;
bottom: 360rpx;
left: 50%;
transform: translateX(-50%);
}
</style>

12
pages/register/index.css

@ -21,7 +21,7 @@
line-height: 96rpx; line-height: 96rpx;
width: 500rpx; width: 500rpx;
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
} }
.login-sigh{ .login-sigh{
width: 172rpx; width: 172rpx;
@ -32,7 +32,7 @@
content: ''; content: '';
width: 4rpx; width: 4rpx;
height: 26rpx; height: 26rpx;
background-color: #BFC2CCFF; background-color: #BFC2CC;
position: absolute; position: absolute;
right: 16rpx; right: 16rpx;
top: 50%; top: 50%;
@ -67,11 +67,11 @@
} }
.login-sigh .quhao{ .login-sigh .quhao{
font-size: 28rpx; font-size: 28rpx;
color: #303133FF; color: #303133;
margin-left: 20rpx; margin-left: 20rpx;
} }
.rePass{ .rePass{
color: #606266FF; color: #606266;
font-size: 28rpx; font-size: 28rpx;
float: right; float: right;
} }
@ -123,10 +123,10 @@
.otp{ .otp{
width: 80rpx; width: 80rpx;
line-height: 40rpx; line-height: 40rpx;
border: 2rpx solid #954DE3FF; border: 2rpx solid #954DE3;
border-radius: 8rpx; border-radius: 8rpx;
text-align: center; text-align: center;
color:#954DE3FF ; color:#954DE3 ;
} }
.input_pcod{ .input_pcod{
padding-left: 20rpx; padding-left: 20rpx;

35
pages/register/index.vue

@ -13,38 +13,6 @@
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile" placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile"
@input="btnControl" /> @input="btnControl" />
</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>
<input class="input_pcod" value="" placeholder="Picture Code"
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" v-model="picCode" />
<view class="login-sigh3 flex">
<image :src="imgcodeUrl" mode="scaleToFill" class="img1"></image>
<image src="../../static/login/[email protected]" mode="" class="img2" @click="getPicCode()">
</image>
</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>
<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>
</view>
<view class="input-item flex"> <view class="input-item flex">
<view class="login-sigh login-sigh2 flex"> <view class="login-sigh login-sigh2 flex">
<view class="imgcon"> <view class="imgcon">
@ -114,7 +82,8 @@
} }
}, },
onLoad() { onLoad(invite) {
this.inviteCode=invite.inviteCode
this.getPicCode(); this.getPicCode();
this.areacode = uni.getStorageSync('siteInfo').areaCode; this.areacode = uni.getStorageSync('siteInfo').areaCode;
}, },

BIN
static/bankCard/dizhi.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
static/bankCard/redBJ.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
static/bankCard/upgrade.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
static/home/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 881 B

BIN
static/tabbar/dorder.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

BIN
static/tabbar/dorderS.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 834 B

8
uni.scss

@ -74,8 +74,14 @@ $uni-color-subtitle: #555555; // 二级标题颜色
$uni-font-size-subtitle:36rpx; $uni-font-size-subtitle:36rpx;
$uni-color-paragraph: #3F536E; // 文章段落颜色 $uni-color-paragraph: #3F536E; // 文章段落颜色
$uni-font-size-paragraph:30rpx; $uni-font-size-paragraph:30rpx;
uni-app.inapp uni-page-head{
display: none;
}
input{ input{
height: 50px; height: 50px;
} }
uni-page-head {
display: none;
}

BIN
unpackage.rar

Binary file not shown.

BIN
unpackage/cache/apk/__UNI__7E21D6D_cm.apk

Binary file not shown.

2
unpackage/cache/apk/apkurl

@ -1 +1 @@
https://service.dcloud.net.cn/build/download/eb346f90-00d6-11ec-976e-dfd868741ab5 https://service.dcloud.net.cn/build/download/2e81c670-1169-11ec-8f72-fb2a1f12c767

2
unpackage/cache/apk/cmManifestCache.json

File diff suppressed because one or more lines are too long

2
unpackage/cache/certdata

@ -1,3 +1,3 @@
andrCertfile=C:/Users/Administrator/Desktop/zwf88z andrCertfile=D:/zwf88z
andrCertAlias=zwf88z andrCertAlias=zwf88z
andrCertPass=zYkNtsJvQswSIoDx0UnmWw== andrCertPass=zYkNtsJvQswSIoDx0UnmWw==

BIN
unpackage/cache/wgt/__UNI__7E21D6D/.manifest/icon-android-hdpi.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
unpackage/cache/wgt/__UNI__7E21D6D/.manifest/icon-android-xhdpi.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 15 KiB

BIN
unpackage/cache/wgt/__UNI__7E21D6D/.manifest/icon-android-xxhdpi.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 30 KiB

BIN
unpackage/cache/wgt/__UNI__7E21D6D/.manifest/icon-android-xxxhdpi.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 49 KiB

2
unpackage/cache/wgt/__UNI__7E21D6D/__uniappquill.js

File diff suppressed because one or more lines are too long

2
unpackage/cache/wgt/__UNI__7E21D6D/__uniappquillimageresize.js

File diff suppressed because one or more lines are too long

4
unpackage/cache/wgt/__UNI__7E21D6D/app-config-service.js

@ -1,8 +1,8 @@
var isReady=false;var onReadyCallbacks=[]; var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[]; var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/login/index","pages/register/index","pages/menu/color/index","pages/menu/promotion/applyRecord/index","pages/menu/promotion/bounsRecord/index","pages/menu/withdrawl/transactions/index","pages/menu/recharge/rechargeRule","pages/menu/withdrawl/transactions/index","pages/menu/withdrawl/withdrawlRecord/index","pages/menu/recharge/index","pages/menu/recharge/record/index","pages/menu/rule/arules/index","pages/menu/aplan/index","pages/menu/withdrawl/index","pages/menu/promotion/promotionRecord/index","pages/menu/recharge/index","pages/menu/My/index","pages/menu/promotion/index","pages/menu/index/index","pages/login/resetPassword/index","pages/menu/rule/index","pages/menu/rule/inviteRule/index"],"window":{"navigationBarTextStyle":"white","navigationBarBackgroundColor":"#34026B"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Game","pagePath":"pages/menu/color/index","iconPath":"./static/tabbar/meun_icon_game_nor@2x.png","selectedIconPath":"./static/tabbar/meun_icon_game_sel@2x.png"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"first","compilerVersion":"3.1.13","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; var __uniConfig = {"pages":["pages/login/index","pages/redenvelopes","pages/menu/re/list/index","pages/menu/re/add/index","pages/menu/address/index","pages/menu/order/index","pages/menu/about/RiskDisclosureAGREEMENT","pages/menu/about/privacyPolicy","pages/menu/search/index","pages/menu/goods/index","pages/menu/goods/goodsDetail/index","pages/menu/address/addAddress/index","pages/menu/bankCard/addBankCard/index","pages/menu/bankCard/index","pages/register/index","pages/menu/color/index","pages/menu/colorMoni/index","pages/menu/promotion/applyRecord/index","pages/menu/promotion/bounsRecord/index","pages/menu/withdrawl/transactions/index","pages/menu/recharge/rechargeRule","pages/menu/withdrawl/transactions/index","pages/menu/withdrawl/withdrawlRecord/index","pages/menu/recharge/index","pages/menu/recharge/record/index","pages/menu/rule/arules/index","pages/menu/aplan/index","pages/menu/withdrawl/index","pages/menu/promotion/promotionRecord/index","pages/menu/recharge/index","pages/menu/My/index","pages/menu/promotion/index","pages/menu/index/index","pages/login/resetPassword/index","pages/menu/rule/index","pages/menu/rule/inviteRule/index"],"window":{"navigationBarTextStyle":"white","navigationBarBackgroundColor":"#34026B","style":{"app-plus":{"titleNView":false}}},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Home","pagePath":"pages/menu/goods/index","iconPath":"./static/tabbar/meun_icon_home_nor@3x.png","selectedIconPath":"./static/tabbar/meun_icon_[email protected]g"},{"text":"Search","pagePath":"pages/menu/search/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/meun_icon_search_sel@3x.png"},{"text":"Order","pagePath":"pages/menu/order/index","iconPath":"./static/tabbar/dorder.png","selectedIconPath":"./static/tabbar/dorderS.png"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"Win Gold","compilerVersion":"3.1.18","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{}},{"path":"/pages/register/index","meta":{},"window":{}},{"path":"/pages/menu/color/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/applyRecord/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/bounsRecord/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/transactions/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/rechargeRule","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/withdrawlRecord/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/record/index","meta":{},"window":{}},{"path":"/pages/menu/rule/arules/index","meta":{},"window":{}},{"path":"/pages/menu/aplan/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/promotionRecord/index","meta":{},"window":{}},{"path":"/pages/menu/My/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/index/index","meta":{},"window":{}},{"path":"/pages/login/resetPassword/index","meta":{},"window":{}},{"path":"/pages/menu/rule/index","meta":{},"window":{}},{"path":"/pages/menu/rule/inviteRule/index","meta":{},"window":{}}]; var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/redenvelopes","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/re/list/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/re/add/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/address/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/order/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/about/RiskDisclosureAGREEMENT","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/about/privacyPolicy","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/search/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/goods/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/goods/goodsDetail/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/address/addAddress/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/bankCard/addBankCard/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/bankCard/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/register/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/color/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/colorMoni/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/promotion/applyRecord/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/promotion/bounsRecord/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/withdrawl/transactions/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/recharge/rechargeRule","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/withdrawl/withdrawlRecord/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/recharge/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/recharge/record/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/rule/arules/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/aplan/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/promotion/promotionRecord/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/My/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/index/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/login/resetPassword/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/rule/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/rule/inviteRule/index","meta":{},"window":{"navigationStyle":"custom"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

24
unpackage/cache/wgt/__UNI__7E21D6D/app-service.js

File diff suppressed because one or more lines are too long

2
unpackage/cache/wgt/__UNI__7E21D6D/app-view.js

File diff suppressed because one or more lines are too long

2
unpackage/cache/wgt/__UNI__7E21D6D/manifest.json

@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7E21D6D","name":"first","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#34026B"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"packagename":"uni.UNI7E21D6D","password":"zYkNtsJvQswSIoDx0UnmWw==","aliasname":"zwf88z","keystore":"google-keystore","custompermissions":true},"apple":{"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}},"orientation":["portrait-primary"],"icons":{"ios":{"prerendered":"false","iphone":{"app@2x":"","app@3x":"","spotlight@2x":"","spotlight@3x":"","settings@2x":"","settings@3x":"","notification@2x":"","notification@3x":""},"appstore":"","ipad":{"app":"","app@2x":"","proapp@2x":"","spotlight":"","spotlight@2x":"","settings":"","settings@2x":"","notification":"","notification@2x":""}},"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"}},"splashscreen":{}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.1.13","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Game","pagePath":"pages/menu/color/index","iconPath":"./static/tabbar/meun_icon_game_nor@2x.png","selectedIconPath":"./static/tabbar/meun_icon_game_sel@2x.png"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html","adid":"127964190008"}} {"@platforms":["android","iPhone","iPad"],"id":"__UNI__7E21D6D","name":"Win Gold","version":{"name":"1.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#34026B"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","proapp@2x":"unpackage/res/icons/167x167.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png"},"prerendered":"false"}},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"packagename":"uni.UNI7E21D6D","password":"zYkNtsJvQswSIoDx0UnmWw==","aliasname":"zwf88z","keystore":"google-keystore","custompermissions":true},"apple":{"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}},"orientation":["portrait-primary"],"splashscreen":{}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.1.18","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Home","pagePath":"pages/menu/goods/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Search","pagePath":"pages/menu/search/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Order","pagePath":"pages/menu/order/index","iconPath":"./static/tabbar/dorder.png","selectedIconPath":"./static/tabbar/dorderS.png"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html","adid":"127964190008"}}

BIN
unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/dizhi.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

0
unpackage/dist/dev/app-plus/static/bankCard/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

0
unpackage/dist/dev/app-plus/static/bankCard/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]

Before

Width:  |  Height:  |  Size: 424 B

After

Width:  |  Height:  |  Size: 424 B

0
unpackage/dist/dev/app-plus/static/bankCard/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
unpackage/dist/dev/app-plus/static/bankCard/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/redBJ.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/upgrade.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
unpackage/cache/wgt/__UNI__7E21D6D/static/fonts/DIN-Bold.otf

Binary file not shown.

0
unpackage/dist/dev/app-plus/static/home/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/home/[email protected]

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
unpackage/cache/wgt/__UNI__7E21D6D/static/home/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 881 B

BIN
unpackage/cache/wgt/__UNI__7E21D6D/static/tabbar/dorder.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

BIN
unpackage/cache/wgt/__UNI__7E21D6D/static/tabbar/dorderS.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 834 B

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save