Commit 17ca4d6b authored by Mac's avatar Mac

1

parent 9692a66c
......@@ -505,6 +505,8 @@
"path": "appointment"//约课
},{
"path": "personal/pointBalance"//点数余额
},{
"path": "personal/pointRecharge"//充值点数
}
]
},
......
<template>
<view class="pointBalance">
<view class="balancetop">
<view class="topbox">
<span style='font-size: 12px;color: #1B1D1E;'>账户余额(点数)</span>
<span style='font-size: 25px;color: #111111;'>2000</span>
<!-- <view class="recharge" v-if="IsShowRecharge == 1" @click="gopointRecharge">
充值
</view> -->
<view class="recharge" v-if="IsShowRecharge == 0" @click="gopointRecharge">
充值
</view>
</view>
</view>
</view>
</template>
<script>
export default{
data(){
return{
mainColor: '',
secondary: '',
IsShowRecharge:0,
}
},
onLoad() {
},
created() {
this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary;
uni.setNavigationBarTitle({
title: '余额点数'
});
this.IsShowRecharge = uni.getStorageSync("basedata") ? uni.getStorageSync("basedata").mall.setting.IsShowRecharge:0
},
methods:{
gopointRecharge(){
uni.navigateTo({
url: '/pages/appointment/personal/pointRecharge'
});
}
}
}
</script>
<style>
.pointBalance{
width: 100%;
height: 100vh;
background: #FFFFFF;
}
.pointBalance .balancetop{
width: 100%;
padding: 5px 15px;
}
.pointBalance .topbox{
width: 100%;
height: 150px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 10px 0 ;
box-shadow:0 2px 10px 5px #F2F2F2;
}
.pointBalance .recharge{
width: 100px;
height: 30px;
border-radius: 4px;
background-color: #40766E;
font-size: 13px;
color: #FFF;
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<template>
</template>
<script>
</script>
<style>
</style>
......@@ -392,7 +392,9 @@
this.scrollTop = 0;
},
gopointBalance(){//跳转点数余额
uni.navigateTo({
url: '/pages/appointment/personal/pointBalance'
});
},
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment