Browse Source

计算提交2

master
fan 4 years ago
parent
commit
5835447d35
  1. 4
      App.vue
  2. 17
      components/navigation/navigation.vue
  3. 6
      pages/login/index.vue
  4. 16
      pages/menu/My/index.vue
  5. 9
      pages/menu/color/index.vue
  6. 4
      pages/menu/index/index.vue
  7. 10
      pages/menu/promotion/index.vue
  8. 35
      pages/menu/recharge/index.css
  9. 57
      pages/menu/recharge/index.vue
  10. 1
      pages/menu/rule/index.vue
  11. 1
      pages/menu/rule/inviteRule/index.vue
  12. 2
      pages/menu/withdrawl/index.vue
  13. 3
      pages/register/index.vue

4
App.vue

@ -17,7 +17,11 @@
</script>
<style lang="scss">
.uni-btn-icon{
display: none;
}
uni-tabbar {
.uni-tabbar { // tab
padding-top:28rpx;
padding-bottom: 50rpx !important;

17
components/navigation/navigation.vue

@ -25,15 +25,16 @@
},
methods: {
back(){
console.log('back')
history.back()
// uni.navigateBack()
uni.switchTab({
url:'../../pages/menu/promotion/index',
// url:'../../pages/menu/index/index',
// url:'../../pages/menu/My/index',
})
}
// #ifdef H5
history.back()
// #endif
// #ifdef APP-PLUS
uni.navigateBack()
// #endif
}
},
}
</script>

6
pages/login/index.vue

@ -90,7 +90,7 @@
const ticket= uni.getStorageSync('logInfo').data;
console.log(ticket,7777777777777777777)
// if(ticket != ''){
// uni.reLaunch({
// uni.navigateTo({
// url: '../menu/index/index'
// })
@ -105,12 +105,12 @@
},
gores() {
uni.reLaunch({
uni.navigateTo({
url: './resetPassword/index'
})
},
goReg() {
uni.reLaunch({
uni.navigateTo({
url: '../register/index'
})
},

16
pages/menu/My/index.vue

@ -174,9 +174,13 @@
}
if (i == 2) {
console.log(this.androidUrl)
uni.navigateTo({
url: this.androidUrl
})
// #ifdef H5
window.location.href=this.androidUrl;
// #endif
// #ifdef APP-PLUS
plus.runtime.openURL(this.androidUrl);
// #endif
}
},
changeName() {
@ -227,7 +231,7 @@
},
goRecharge() {
uni.reLaunch({
uni.navigateTo({
url: '../recharge/index'
})
},
@ -246,7 +250,7 @@
uni.showLoading({
title: 'loading'
})
if (res.data.success == true) {
if (res.success == true) {
uni.showToast({
title: 'Log out successfully',
icon: 'success',
@ -255,7 +259,7 @@
uni.removeStorageSync('logInfo');
uni.removeStorageSync('ticket')
setTimeout(function() {
uni.reLaunch({
uni.navigateTo({
url: '../../login/index'
})
}, 2000)

9
pages/menu/color/index.vue

@ -787,12 +787,9 @@
})
setTimeout(function(){
location.reload();
},2000)
} else {
uni.showToast({
title: res.data.errMsg,
title: res.errMsg,
icon: 'none',
duration: 1500
})
@ -880,7 +877,7 @@
},
goRule() {
uni.reLaunch({
uni.navigateTo({
url: '../rule/index'
})
},
@ -890,7 +887,7 @@
},
getSonValue() {
uni.reLaunch({
uni.navigateTo({
url: '../recharge/index'
})
},

4
pages/menu/index/index.vue

@ -73,13 +73,13 @@
},
methods: {
getSonValue(){
uni.reLaunch({
uni.navigateTo({
url:'../recharge/index'
})
},
goColor(){
uni.reLaunch({
uni.navigateTo({
url:'../color/index'
})
},

10
pages/menu/promotion/index.vue

@ -161,7 +161,7 @@
"tranAmt": this.tranAmt,
})
post.then(res => {
if (res != undefined) {
if (res) {
if (res.success == true) {
uni.showToast({
title: 'Commission successfully transferred out to balance',
@ -170,7 +170,7 @@
})
} else {
uni.showToast({
title: res.data.errMsg,
title: res.errMsg,
icon: 'none',
duration: 1500
})
@ -187,17 +187,17 @@
},
goProRe() {
uni.reLaunch({
uni.navigateTo({
url: './promotionRecord/index'
})
},
goBouns() {
uni.reLaunch({
uni.navigateTo({
url: './bounsRecord/index'
})
},
applyRecord() {
uni.reLaunch({
uni.navigateTo({
url: './applyRecord/index'
})
},

35
pages/menu/recharge/index.css

@ -160,3 +160,38 @@ display: flex;
padding: 0;
color: rgb(149, 77, 227);
}
.invite-more{
width: 750rpx;
height: 480rpx;
background: #FFFFFF;
border-radius: 48rpx 48rpx 0px 0px;
position: fixed;
bottom: 0;
z-index: 9999;
}
.more-a{
text-transform: capitalize;
font-size: 32rpx;
color: #303133;
text-align: center;
line-height: 108rpx;
}
.invite-con{
padding: 24rpx 0;
}
.invite-con2{
background-color: #F5F7FA;
}
.msg-box-bg {
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
z-index: 1001;
background-color: rgba(0,0,0,.5);
}

57
pages/menu/recharge/index.vue

@ -2,7 +2,7 @@
<view class="content">
<navigation>
Recharge
<view class="bread" slot="bread">
<view class="bread" slot="bread" @click="invMore=true,msShow=true">
<image src="../../../static/promo/[email protected]" mode=""></image>
</view>
</navigation>
@ -87,6 +87,28 @@
</view>
</view>
<view class="invite-more" v-show="invMore">
<view class="invite-con">
<view class="more-a" @click="goRecod()">
recharge record
</view>
<view class="more-a" @click="goRerule()">
recharge rules
</view>
</view>
<view class="invite-con2">
<view class="more-a" @click="invMore=false,msShow=false">
cancel
</view>
</view>
</view>
<view class="msg-box-bg" v-show="msShow" @click="invMore=false,msShow=false,appl=false">
</view>
</view>
</template>
@ -110,6 +132,9 @@
currencySymbol:'',
currentBalance:'',
userId:'',
invMore: false,
appl: false,
msShow: false,
}
},
@ -161,6 +186,16 @@
},
methods: {
goRecod(){
uni.navigateTo({
url:'record/index'
})
},
goRerule(){
uni.navigateTo({
url:'./rechargeRule'
})
},
copyTextMethod() {
this.$copyText(this.copyText).then(res => {
uni.showToast({
@ -228,9 +263,23 @@
icon: 'success',
duration: 1500
})
setTimeout(function(){
location.reload()
},1000)
//
const post = api.withdrawConfig({
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
if(res.data){
this.currentBalance=res.data.currentBalance;
uni.setStorage({
key: 'currentBalance',
data: this.currentBalance,
success: function() {
console.log('success')
}
});
}
})
}else{
uni.showToast({
title: 'Payment failed',

1
pages/menu/rule/index.vue

@ -13,6 +13,7 @@
</template>
<script>
import api from '@/utils/api'
import cont from "@/components/navigation/navigation.vue"
export default {
data() {

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

@ -37,6 +37,7 @@
</template>
<script>
import api from '@/utils/api'
export default {
data() {
return {

2
pages/menu/withdrawl/index.vue

@ -266,7 +266,7 @@
"ticket": uni.getStorageSync('logInfo').data,
// 'password': md5(this.password),
"tranAmt": this.tranAmt,
"ticket": uni.getStorageSync('MyInfo').data,
"ticket": uni.getStorageSync('logInfo').data,
})
post.then(res => {
console.log(res.data, '45464654646446');

3
pages/register/index.vue

@ -119,8 +119,6 @@
this.areacode = uni.getStorageSync('siteInfo').areaCode;
},
methods: {
codeChange(text) {
this.tips = text;
},
@ -207,6 +205,7 @@
console.log();
console.log(this.imgcodeUrl)
},
regist() {
if (this.mobile == '') {
uni.showToast({

Loading…
Cancel
Save