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> </script>
<style lang="scss"> <style lang="scss">
.uni-btn-icon{
display: none;
}
uni-tabbar { uni-tabbar {
.uni-tabbar { // tab .uni-tabbar { // tab
padding-top:28rpx; padding-top:28rpx;
padding-bottom: 50rpx !important; padding-bottom: 50rpx !important;

17
components/navigation/navigation.vue

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

6
pages/login/index.vue

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

16
pages/menu/My/index.vue

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

9
pages/menu/color/index.vue

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

4
pages/menu/index/index.vue

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

10
pages/menu/promotion/index.vue

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

35
pages/menu/recharge/index.css

@ -160,3 +160,38 @@ display: flex;
padding: 0; padding: 0;
color: rgb(149, 77, 227); 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"> <view class="content">
<navigation> <navigation>
Recharge Recharge
<view class="bread" slot="bread"> <view class="bread" slot="bread" @click="invMore=true,msShow=true">
<image src="../../../static/promo/[email protected]" mode=""></image> <image src="../../../static/promo/[email protected]" mode=""></image>
</view> </view>
</navigation> </navigation>
@ -87,6 +87,28 @@
</view> </view>
</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> </view>
</template> </template>
@ -110,6 +132,9 @@
currencySymbol:'', currencySymbol:'',
currentBalance:'', currentBalance:'',
userId:'', userId:'',
invMore: false,
appl: false,
msShow: false,
} }
}, },
@ -161,6 +186,16 @@
}, },
methods: { methods: {
goRecod(){
uni.navigateTo({
url:'record/index'
})
},
goRerule(){
uni.navigateTo({
url:'./rechargeRule'
})
},
copyTextMethod() { copyTextMethod() {
this.$copyText(this.copyText).then(res => { this.$copyText(this.copyText).then(res => {
uni.showToast({ uni.showToast({
@ -228,9 +263,23 @@
icon: 'success', icon: 'success',
duration: 1500 duration: 1500
}) })
setTimeout(function(){ //
location.reload() const post = api.withdrawConfig({
},1000) "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({
title: 'Payment failed', title: 'Payment failed',

1
pages/menu/rule/index.vue

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

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

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

2
pages/menu/withdrawl/index.vue

@ -266,7 +266,7 @@
"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('MyInfo').data, "ticket": uni.getStorageSync('logInfo').data,
}) })
post.then(res => { post.then(res => {
console.log(res.data, '45464654646446'); console.log(res.data, '45464654646446');

3
pages/register/index.vue

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

Loading…
Cancel
Save