Browse Source

修改bug

master
fan 4 years ago
parent
commit
9f419480e2
  1. 13
      components/balance/balance.vue
  2. 2
      components/cont/cont.vue
  3. 2
      main.js
  4. 14
      pages/login/index.vue
  5. 61
      pages/menu/My/index.vue
  6. 7
      pages/menu/aplan/index.vue
  7. 5
      pages/menu/color/index.vue
  8. 30
      pages/menu/index/index.vue
  9. 17
      pages/menu/promotion/index.vue
  10. 13
      pages/menu/recharge/index.css
  11. 41
      pages/menu/recharge/index.vue
  12. 6
      pages/menu/rule/inviteRule/index.vue
  13. 71
      pages/menu/withdrawl/index.vue
  14. 20
      utils/axios.js

13
components/balance/balance.vue

@ -6,7 +6,7 @@
</view>
<view class="rq flex">
<view class="index-p1">
<span class="category-sigh"></span>387400.50
<span class="category-sigh">{{currencySymbol}}</span> <span>{{currentBalance}}</span>
</view>
<view class="index-a1" @click="sendMegToIndex">
Recharge
@ -15,12 +15,11 @@
</view>
</template>
<script>
const COMPONENT_NAME = 'balance'
export default {
name: COMPONENT_NAME,
props:["currencySymbol","currentBalance"],
data() {
return {
@ -70,15 +69,11 @@
color: #fff;
text-transform: capitalize;
font-family: 'din';
position: relative;
padding-left: 30rpx;
display: flex;
align-items: center;
}
.category-sigh{
font-size: 36rpx;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
.index-a1{
width: 176rpx;

2
components/cont/cont.vue

@ -3,7 +3,7 @@
<view class="my-cont" @click="keCode=1">
<image src="../../static/home/[email protected]" mode=""></image>
</view>
<!-- <u-mask :z-index="10" v-if="keCode!=1"></u-mask> -->
<u-mask :z-index="10" :show="keCode==1"></u-mask>
<view class="tc" v-show="keCode==1">
<view class="title">

2
main.js

@ -13,7 +13,7 @@ Vue.use(VueClipboards);
Vue.prototype.$axios = axios
Vue.prototype.$store = store
Vue.config.productionTip = false
Vue.prototype.$showDialog = true
// Vue.prototype.$showDialog = true
App.mpType = 'app'
const app = new Vue({

14
pages/login/index.vue

@ -88,15 +88,15 @@
// const ticket = this.$store.state.ticket
const ticket= uni.getStorageSync('logInfo').data;
console.log(ticket,7777777777777777777)
if(ticket != undefined){
uni.reLaunch({
url: '../menu/index/index'
})
// if(ticket != undefined){
// uni.reLaunch({
// url: '../menu/index/index'
// })
}else{
// location.reload()
// }else{
// // location.reload()
}
// }
},
methods: {

61
pages/menu/My/index.vue

@ -19,21 +19,21 @@
</view>
<view class="my-b">
<view class="my-tel">
Mobile: {{MyInfo.mobile}}
Mobile: +{{areaCode}} {{MyInfo.mobile}}
</view>
<view class="my-bal flex">
<view>Available Balance: 385813.55</view>
<view class="my-ap">
<view>Available Balance: {{currentBalance}}</view>
<!-- <view class="my-ap">
A+ Plan
</view>
</view> -->
</view>
</view>
<view class="my-c flex">
<view class="my-btn1" @click="goRecharge()">
recharge
</view>
<view class="my-btn2" @click="transferCode=1">
change nick name
<view class="my-btn2" @click="goWithdraw">
Withdraw
</view>
</view>
</view>
@ -88,19 +88,26 @@
newName:'',
MyInfo:{},
transferCode:0,
currentBalance:'',
areaCode:'',
androidUrl:'',
myAList:[
{
id:'1',
text:'wallet'
},
{
id:'2',
text:'Bank card'
},
{
id:'3',
text:'Address'
text:'Change Nick Name'
},
// {
// id:'1',
// text:'wallet'
// },
// {
// id:'2',
// text:'Bank card'
// },
// {
// id:'3',
// text:'Address'
// },
{
id:'4',
text:'Reset password'
@ -114,6 +121,11 @@
},
onLoad() {
this.areaCode = uni.getStorageSync('siteInfo').areaCode;
this.androidUrl = uni.getStorageSync('siteInfo').androidUrl;
console.log(this.androidUrl,78)
this.currentBalance=uni.getStorageSync('currentBalance');
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
uni.request({
url: '/start/api/user/userInfo',
@ -145,16 +157,18 @@
methods:{
go(i){
if(i==3){
if(i==0){
this.transferCode=1
}
if(i==1){
uni.reLaunch({
url:'../../login/resetPassword/index'
})
}
if(i==4){
const androidUrl= uni.getStorageSync('siteInfo').androidUrl;
console.log(androidUrl)
uni.reLaunch({
url:androidUrl
if(i==2){
console.log(this.androidUrl)
uni.navigateTo({
url:this.androidUrl
})
}
},
@ -216,6 +230,11 @@
url:'../recharge/index'
})
},
goWithdraw(){
uni.navigateTo({
url:'../withdrawl/index'
})
},
logout(){
uni.request({
url: '/start/api/user/loginOut',

7
pages/menu/aplan/index.vue

@ -9,7 +9,7 @@
<view class="pro-head">
<view class="">
<view class="pro-body-p1">
<span class="category-sigh"></span><span class="s1">81166.17</span>
<span class="category-sigh">{{currencySymbol}}</span><span class="s1">{{currentBalance}}</span>
</view>
<view class="ab">
Available Balance
@ -105,6 +105,8 @@
export default {
data() {
return {
currentBalance:'',
currencySymbol:'',
transferCode:0,
leaId:0,
proLeav:[
@ -124,7 +126,8 @@
}
},
onLoad() {
this.currentBalance=uni.getStorageSync('currentBalance');
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
},
methods: {
goArule(){

5
pages/menu/color/index.vue

@ -437,12 +437,9 @@
this.myName = uni.getStorageSync('MyInfo').nickname;
this.myImgUrl = uni.getStorageSync('MyInfo').headImgPath;
this.nextBtting();
this.nextBtting();
uni.request({
url: '/start/api/lottery/lotteryClassList',
data: {

30
pages/menu/index/index.vue

@ -1,6 +1,6 @@
<template>
<view class="">
<balance @send="getSonValue"></balance>
<balance @send="getSonValue" :currencySymbol="currencySymbol" :currentBalance="currentBalance"></balance>
<view class="index-body">
<view class="index-body-p1">
Game
@ -20,11 +20,35 @@
export default {
data() {
return {
currencySymbol:'',
currentBalance:'',
}
},
onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
uni.request({
url: '/start/api/withdraw/withdrawConfig',
data: {
"ticket": uni.getStorageSync('logInfo').data,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //
},
method: 'POST', // GET
success: (res) => {
this.currentBalance=res.data.data.currentBalance;
uni.setStorage({
key: 'currentBalance',
data: this.currentBalance,
success: function() {
console.log('success')
}
});
},
fail: (res) => {
console.log(res.data);
}
});
},
methods: {
getSonValue(){

17
pages/menu/promotion/index.vue

@ -3,14 +3,14 @@
<view class="pro-head">
promotion
<view class="pro-hea-rig">
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image>
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img1" @click="goInviteRule()"></image>
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img2" @click="invMore=true,msShow=true"></image>
</view>
</view>
<view class="pro-body">
<view class="pro-body-p1">
bonus: <span class="category-sigh"></span><span class="s1">{{inviteRule.bonusCapital}}</span>
bonus: <span class="category-sigh">{{currencySymbol}}</span><span class="s1">{{inviteRule.bonusCapital}}</span>
</view>
<view class="pro-body-btn1" @click="appl=true,msShow=true">
@ -88,7 +88,7 @@
</view>
</view>
</view>
<view class="msg-box-bg" v-show="msShow">
<view class="msg-box-bg" v-show="msShow" @click="invMore=false,msShow=false,appl=false">
</view>
</view>
@ -100,6 +100,7 @@
export default {
data() {
return {
currencySymbol:'',
leaId:0,
inviteRule:[],
tranAmt:'',
@ -124,6 +125,8 @@
}
},
onLoad() {
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
uni.request({
url: '/start/api/user/inviteCode',
data: {
@ -135,8 +138,7 @@
method: 'POST', // GET
success: (res) => {
this.inviteRule=res.data.data
this.copyText='http://www.ngnclub.vip/#/register?r_code='+this.inviteRule.inviteCode;
// this.copyText=this.inviteRule.qrcodeUrl+this.inviteRule.inviteCode;
this.copyText=this.inviteRule.qrcodeUrl;
console.log(res.data,9999);
},
fail: (res) => {
@ -152,6 +154,11 @@
},
methods: {
goInviteRule(){
uni.navigateTo({
url:'../rule/inviteRule/index'
})
},
applyAll(){
this.tranAmt=this.inviteRule.bonusCapital;
},

13
pages/menu/recharge/index.css

@ -13,7 +13,10 @@
padding: 0 36rpx;
}
.pro-body-p1{
display: flex;
font-size: 22px;
justify-content: center;
align-items: center;
color: #303133FF;
text-align: center;
padding: 30px 0;
@ -105,6 +108,9 @@
border-color: #34026BFF;
}
.rech-capy{
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 25rpx;
padding: 0 36rpx;
}
@ -112,7 +118,6 @@
font-size: 28rpx;
color: #909399;
text-transform: capitalize;
margin-bottom: 24rpx;
}
.capy{
font-size: 32rpx;
@ -143,12 +148,6 @@
padding-bottom: 170rpx;
}
.paymentType{
display: flex;
justify-content: space-around;
align-items: center;
}
.payTypenName{
text-transform: capitalize;
font-size: 32rpx;

41
pages/menu/recharge/index.vue

@ -7,8 +7,8 @@
</view>
</navigation>
<view class="rech-body">
<view class="pro-body-p1">Balance:<span data-v-642729fd="" class="category-sigh"></span><span
class="s1">385853.5</span></view>
<view class="pro-body-p1">Balance:<span data-v-642729fd="" class="category-sigh">{{currencySymbol}}</span><span
class="s1">{{currentBalance}}</span></view>
<view class="input-item flex">
<view class="login-sigh login-sigh2 flex">
<view class="imgcon">
@ -24,12 +24,12 @@
<input type="text" value="" placeholder="Name"
placeholder-style="color: #BFC2CCFF;font-size:14px;" />
</view> -->
<view class="input-item flex">
<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" disabled />
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile" />
</view>
<!-- <view class="input-item flex">
<input type="text" value="" placeholder="email"
@ -40,9 +40,9 @@
</view>
<view class="rech-mount flex">
<view class="rech-mount flex" v-show="pd==0">
<view class="mount" v-for="(item,index) in recharge_amount" :key="item" @click="getMonVal(item)">
{{item}}
{{currencySymbol}} {{item}}
</view>
</view>
@ -51,23 +51,16 @@
payment
</view>
<view class="paymentType">
<view class="capy">
<image src="../../../static/login/[email protected]" mode=""></image>
CPAY
</view>
<u-radio-group v-model="payType" @change="radioGroupChange" class="payTypenName">
<u-radio @change="radioChange" v-for="(item, index) in paymentType" :key="index"
:name="item.payType" :disabled="item.disabled" active-color="#954DE3FF">
{{item.payType}}
<u-radio @change="radioChange(item)" v-for="(item, index) in paymentType" :key="index"
:name="item.typeName" :disabled="item.disabled" active-color="#954DE3FF">
{{item.typeName}}
</u-radio>
</u-radio-group>
</view>
</view>
<view class="rech-btn-con">
<view class="rech-btn-con" v-show="pd==0">
<view class="rech-btn" @click="PayTo()">
Confirm
</view>
@ -83,6 +76,7 @@
export default {
data() {
return {
pd:0,
mobile:'',
areacode: '',
tranAmt: '',
@ -90,13 +84,16 @@
recharge_amount: [],
paymentType: [],
payType: '',
currencySymbol:'',
currentBalance:''
}
},
onLoad() {
this.mobile=uni.getStorageSync('loginMobile');
this.currentBalance=uni.getStorageSync('currentBalance');
this.areacode = uni.getStorageSync('siteInfo').areaCode;
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol;
uni.request({
url: '/start/api/recharge/rechargeConfig',
data: {
@ -264,11 +261,17 @@
});
},
radioChange(e) {
if(e.payType=='pay.offline'){
this.pd=1;
}else{
this.pd=0;
}
console.log(e)
},
// radioradio-group
radioGroupChange(e) {
// console.log(e);
console.log(this.payType);
},
getMonVal(m) {
this.tranAmt = m

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

@ -2,7 +2,7 @@
<view class="content">
<view class="ru-head">
<view class="ru-imgcon">
<image src="../../../../static/home/[email protected]" mode=""></image>
<image src="../../../../static/home/[email protected]" mode="" @click="back"></image>
</view>
</view>
@ -63,7 +63,9 @@
});
},
methods: {
back(){
uni.navigateBack()
}
}
}
</script>

71
pages/menu/withdrawl/index.vue

@ -3,13 +3,16 @@
<navigation>
withdrawal
<view class="bread" slot="bread">
<image src="../../../static/promo/[email protected]" mode="aspectFit" @click="invMore=true,msShow=true"></image>
<image src="../../../static/promo/[email protected]" mode="aspectFit"
@click="invMore=true,msShow=true"></image>
</view>
</navigation>
<view class="rech-body">
<view class="pro-body-p1">Balance:<span data-v-642729fd="" class="category-sigh"></span><span class="s1">{{withdrawConfig.currentBalance}}</span></view>
<view class="pro-body-p1">Balance:<span data-v-642729fd=""
class="category-sigh">{{currentBalance}}</span><span class="s1"></span></view>
<view>
<u-modal v-model="show" width="80%" :show-title="false" confirm-text="Confirm" confirm-color="#954DE3FF">
<u-modal v-model="show" width="80%" :show-title="false" confirm-text="Confirm"
confirm-color="#954DE3FF">
<view class="" v-html="content" class="p_con"></view>
</u-modal>
</view>
@ -20,14 +23,16 @@
<image src="../../../static/promo/[email protected]" mode="aspectFit"></image>
</view>
</view>
<input value="" placeholder="enter withdrawal amount" placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform:capital" v-model="tranAmt" @input="calulate"/>
<input value="" placeholder="enter withdrawal amount"
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform:capital" v-model="tranAmt"
@input="calulate" />
</view>
<view class="p_con">
<view class="fee">
FEE:{{this.fee}}, TO ACCOUNT {{this.trueMoney}}
</view>
<view class="minnum">
MINIMUM WITHDRAWAL AMOUNT: {{withdrawConfig.withdraw_min_amt}}
MINIMUM WITHDRAWAL AMOUNT: {{withdrawConfig.withdraw_limit_min}}
</view>
</view>
<!-- <view class="rech-capy">
@ -49,9 +54,7 @@
</view>
</view>
<input type="text" value="" placeholder="mobile phone" v-model="mobile" disabled
placeholder-style="color: #BFC2CCFF;font-size:14px;"
/>
placeholder-style="color: #BFC2CCFF;font-size:14px;" />
</view>
<!-- <view class="input-item flex">
<view class="login-sigh login-sigh2 flex">
@ -108,6 +111,8 @@
export default {
data() {
return {
currentBalance: '',
currencySymbol: '',
withdrawConfig: [],
show: false,
content: '',
@ -122,6 +127,7 @@
},
onLoad() {
this.currentBalance = uni.getStorageSync('currentBalance');
this.mobile = uni.getStorageSync('loginMobile');
uni.request({
url: '/start/api/withdraw/withdrawConfig',
@ -174,23 +180,23 @@
this.show = true;
},
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.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',
@ -226,8 +232,17 @@
// })
// return;
// }
uni.showLoading({
title: 'loading'
});
if (this.tranAmt == null) {
uni.showToast({
title: 'Please enter the withdrawal amount',
icon: 'none',
duration: 1500
})
return;
}
@ -243,6 +258,7 @@
},
method: 'POST', // GET
success: (res) => {
if (res.data.success == true) {
uni.showToast({
title: res.data.errMsg,
@ -283,6 +299,7 @@
console.log(res.data);
},
fail: (res) => {
uni.showToast({
title: res.data.errMsg,
icon: 'none',

20
utils/axios.js

@ -20,8 +20,8 @@ const service = axios.create({
})
// request拦截器,在请求之前做一些处理
service.interceptors.request.use(
config => {
// service.interceptors.request.use(
// config => {
// console.log('showDialog' + Vue.prototype.$showDialog)
// if (Vue.prototype.$showDialog) {
// uni.showLoading({
@ -91,14 +91,14 @@ service.interceptors.request.use(
// config.url = config.url + '&sign=' + sign
// }
// }
console.log(config)
return config;
},
error => {
console.log(error); // for debug
return Promise.reject(error);
}
);
// console.log(config)
// return config;
// },
// error => {
// console.log(error); // for debug
// return Promise.reject(error);
// }
// );
//配置成功后的拦截器
service.interceptors.response.use(res => {

Loading…
Cancel
Save