2023-12-05 16:45:28 +08:00
|
|
|
<template>
|
2024-01-27 16:37:52 +08:00
|
|
|
<view class="page">
|
|
|
|
<u-navbar :is-back="false" title="我的" :border-bottom="false" :background="bgc" title-color='#fff' title-size='36'
|
|
|
|
height='36'
|
|
|
|
id="navbar">
|
|
|
|
</u-navbar>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="userpage" v-if="userType=='00'">
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="top_box">
|
|
|
|
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="bot_box">
|
|
|
|
<view class="userinfo">
|
|
|
|
<view class="userimg_box">
|
2024-04-27 17:20:50 +08:00
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uGvS4RQvbw7OOfhzy6xf" mode=""></image>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="nickname">
|
|
|
|
用户昵称
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" style="margin-top: 116rpx;" @click="topages(0)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uFzwAtuoU63FHMXE2P6I" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">充值记录</view>
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" @click="topages(1)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uj4DT6WructS782RY0J7" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">抄表记录</view>
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" @click="topages(2)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/u6qVTFXdkQKEqE1y0J4o" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">常见问题</view>
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" @click="topages(3)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uGlrjkSOTDXMFuuRb03l" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">意见反馈</view>
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" @click="topages(4)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/ubxoYVnbIK1rk0cfoL3j"></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">设置</view>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="fdpage" style="padding-bottom: 200rpx;" v-if="userType=='01'">
|
2024-01-27 16:37:52 +08:00
|
|
|
<view class="top_box">
|
|
|
|
<view class="userinfo">
|
|
|
|
<view class="img">
|
2024-04-27 17:20:50 +08:00
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uGvS4RQvbw7OOfhzy6xf" mode=""></image>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
<view class="info">
|
|
|
|
<view class="username">
|
|
|
|
用户昵称
|
|
|
|
</view>
|
|
|
|
<view class="num">
|
2024-04-27 17:20:50 +08:00
|
|
|
共{{userinfo.deviceCount}}台设备
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="tit">
|
|
|
|
我的钱包
|
|
|
|
</view>
|
|
|
|
<view class="cont_box">
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="cont" @click="topage(8)">
|
2024-01-27 16:37:52 +08:00
|
|
|
<view class="top" >
|
|
|
|
<view class="txt" style="font-size: 24rpx;">
|
|
|
|
¥
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
{{userinfo.balance}}
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
<view class="bot">
|
|
|
|
钱包余额
|
|
|
|
</view>
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="cont" @click="topage(6)">
|
|
|
|
<view class="top" >
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/u9VRzUjhkZHj4ExkXC10" mode="" style="width: 61.83rpx;height: 46.35rpx;"></image>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
<view class="bot">
|
2024-04-27 17:20:50 +08:00
|
|
|
收款账户
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="cont" @click="topage(7)">
|
2024-01-27 16:37:52 +08:00
|
|
|
<view class="top" >
|
2024-04-27 17:20:50 +08:00
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/utQedWhwW39J2qbeWvn8" mode="" style="width: 45rpx;height: 55rpx;"></image>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
<view class="bot">
|
2024-04-27 17:20:50 +08:00
|
|
|
收支明细
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="bot_box">
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" @click="topage(0)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uFzwAtuoU63FHMXE2P6I" mode=""></image>
|
|
|
|
<view class="txt">提现记录</view>
|
2024-03-13 10:54:22 +08:00
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<!-- <view class="botcard" @click="topage(1)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uj4DT6WructS782RY0J7" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">抄表记录</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
</view> -->
|
|
|
|
<view class="botcard" @click="topage(2)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/u6qVTFXdkQKEqE1y0J4o" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">常见问题</view>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" @click="topage(3)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uGlrjkSOTDXMFuuRb03l" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">意见反馈</view>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" @click="topage(4)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uGaAuulryhDmaDwWLuwo" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">归零记录</view>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="botcard" @click="topage(5)">
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uYWpW30vIQ6M4svb7Vnb"></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">设置</view>
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<tab-bar :indexs='2' style=""></tab-bar>
|
|
|
|
|
|
|
|
|
2023-12-05 16:45:28 +08:00
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-01-27 16:37:52 +08:00
|
|
|
bgc: {
|
2024-04-27 17:20:50 +08:00
|
|
|
backgroundColor: " #8883F0",
|
2024-01-27 16:37:52 +08:00
|
|
|
},
|
2024-04-27 17:20:50 +08:00
|
|
|
userType:'',
|
|
|
|
userinfo:''
|
2024-01-23 19:15:52 +08:00
|
|
|
}
|
|
|
|
},
|
2024-04-27 17:20:50 +08:00
|
|
|
onLoad() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
this.logins()
|
|
|
|
},
|
2024-01-23 19:15:52 +08:00
|
|
|
methods: {
|
2024-01-27 16:37:52 +08:00
|
|
|
topage(num){
|
2024-04-27 17:20:50 +08:00
|
|
|
if(num==0){
|
2024-01-27 16:37:52 +08:00
|
|
|
uni.navigateTo({
|
2024-04-27 17:20:50 +08:00
|
|
|
url:"/page_user/txrecord",
|
2024-01-27 16:37:52 +08:00
|
|
|
animationType: 'slide-in-top',
|
|
|
|
animationDuration: 200
|
|
|
|
})
|
2024-04-27 17:20:50 +08:00
|
|
|
}else if(num==1){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/cbRecord'
|
|
|
|
})
|
|
|
|
}else if(num==2){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/aske'
|
|
|
|
})
|
|
|
|
}else if(num==3){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/Feedback'
|
|
|
|
})
|
|
|
|
}else if(num==4){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/glRecord'
|
|
|
|
})
|
|
|
|
}else if(num==5){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/userSet'
|
|
|
|
})
|
|
|
|
}else if(num==6){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/skzh'
|
|
|
|
})
|
|
|
|
}else if(num==7){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/shouzhi'
|
|
|
|
})
|
|
|
|
}else if(num==8){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/yetx'
|
|
|
|
})
|
2024-01-27 16:37:52 +08:00
|
|
|
}
|
2024-04-27 17:20:50 +08:00
|
|
|
},
|
|
|
|
topages(num){
|
|
|
|
if(num==0){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/usercz'
|
|
|
|
})
|
|
|
|
}else if(num==1){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/cbRecord'
|
|
|
|
})
|
|
|
|
}else if(num==2){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/aske'
|
|
|
|
})
|
|
|
|
}else if(num==3){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/Feedback'
|
|
|
|
})
|
|
|
|
}else if(num==4){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:'/page_user/userSet'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
logins(){
|
|
|
|
if (uni.getStorageSync('userType')) {
|
|
|
|
this.userType = uni.getStorageSync('userType')
|
|
|
|
this.userType='01'
|
|
|
|
if (this.userType == '01') {
|
|
|
|
// this.getDeviceList()
|
|
|
|
} else if (this.userType == '00') {
|
|
|
|
// this.getdevice()
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getuserinfo()
|
|
|
|
},
|
|
|
|
getuserinfo() {
|
|
|
|
this.$u.get("/app/user/userInfo").then((res) => {
|
|
|
|
// this.$forceUpdate()
|
|
|
|
if (res.code == 200) {
|
|
|
|
this.userinfo=res.data
|
|
|
|
uni.setStorageSync('userType', res.data.userType)
|
|
|
|
this.userType = res.data.userType
|
|
|
|
if (this.userType == '01') {
|
|
|
|
|
|
|
|
} else if (this.userType == '00') {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
2024-01-23 19:15:52 +08:00
|
|
|
}
|
|
|
|
}
|
2023-12-05 16:45:28 +08:00
|
|
|
</script>
|
|
|
|
|
2024-01-27 16:37:52 +08:00
|
|
|
<style lang="scss" >
|
|
|
|
page{
|
|
|
|
background-color: #F7FAFE;
|
|
|
|
}
|
|
|
|
.page{
|
|
|
|
// position: relative;
|
|
|
|
width: 750rpx;
|
|
|
|
height: 100vh;
|
|
|
|
.userpage{
|
2024-03-13 10:54:22 +08:00
|
|
|
.top_box{
|
|
|
|
padding-top: 40rpx;
|
2024-01-27 16:37:52 +08:00
|
|
|
width: 750rpx;
|
2024-03-13 10:54:22 +08:00
|
|
|
height: 352rpx;
|
2024-01-27 16:37:52 +08:00
|
|
|
background-color: #8883F0;
|
2024-03-13 10:54:22 +08:00
|
|
|
|
2024-01-27 16:37:52 +08:00
|
|
|
}
|
2024-03-13 10:54:22 +08:00
|
|
|
.bot_box{
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
padding: 40rpx 50rpx ;
|
|
|
|
margin-top: -50rpx;
|
2024-01-27 16:37:52 +08:00
|
|
|
width: 750rpx;
|
2024-03-13 10:54:22 +08:00
|
|
|
// min-height: 500rpx;
|
2024-01-27 16:37:52 +08:00
|
|
|
background: #F7FAFE;
|
2024-03-13 10:54:22 +08:00
|
|
|
border-radius: 50rpx 50rpx 0 0;
|
|
|
|
.userinfo{
|
2024-01-27 16:37:52 +08:00
|
|
|
display: flex;
|
2024-03-13 10:54:22 +08:00
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
|
|
|
top: -100rpx;
|
|
|
|
width: 650rpx;
|
|
|
|
height: 184rpx;
|
2024-01-27 16:37:52 +08:00
|
|
|
background: #FFFFFF;
|
|
|
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(53,140,255,0.1);
|
|
|
|
border-radius: 32rpx 32rpx 32rpx 32rpx;
|
2024-03-13 10:54:22 +08:00
|
|
|
.userimg_box{
|
2024-01-27 16:37:52 +08:00
|
|
|
display: flex;
|
2024-03-13 10:54:22 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
|
|
|
top: -36rpx;
|
|
|
|
width: 140rpx;
|
|
|
|
height: 140rpx;
|
|
|
|
background: #FFFFFF;
|
|
|
|
border-radius: 50%;
|
|
|
|
image{
|
|
|
|
width: 120rpx;
|
|
|
|
height: 120rpx;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
2024-01-27 16:37:52 +08:00
|
|
|
}
|
|
|
|
}
|
2024-03-13 10:54:22 +08:00
|
|
|
.nickname{
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 110rpx;
|
|
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 36rpx;
|
|
|
|
color: #262B37;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.botcard{
|
|
|
|
margin-bottom: 32rpx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding-left: 38rpx;
|
|
|
|
width: 650rpx;
|
|
|
|
height: 118rpx;
|
|
|
|
background: #FFFFFF;
|
|
|
|
border-radius: 30rpx;
|
|
|
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42,130,228,0.1);
|
|
|
|
image{
|
|
|
|
width: 52rpx;
|
|
|
|
height: 52rpx;
|
|
|
|
margin-right: 32rpx
|
|
|
|
;
|
|
|
|
}
|
|
|
|
.txt{
|
|
|
|
font-size: 30rpx;
|
|
|
|
font-family: Source Han Sans, Source Han Sans;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #383838;
|
|
|
|
}
|
2024-01-27 16:37:52 +08:00
|
|
|
}
|
|
|
|
}
|
2024-03-13 10:54:22 +08:00
|
|
|
|
2024-01-27 16:37:52 +08:00
|
|
|
}
|
|
|
|
.fdpage{
|
|
|
|
.top_box{
|
|
|
|
padding-top: 40rpx;
|
|
|
|
width: 750rpx;
|
|
|
|
height: 458rpx;
|
|
|
|
background-color: #8883F0;
|
|
|
|
.userinfo{
|
|
|
|
margin-left: 56rpx;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-content: flex-start;
|
|
|
|
.img{
|
|
|
|
width: 100rpx;
|
|
|
|
height: 100rpx;
|
|
|
|
image{
|
|
|
|
width: 100rpx;
|
|
|
|
height: 100rpx;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.info{
|
|
|
|
margin-left: 28rpx;
|
|
|
|
.username{
|
|
|
|
font-size: 32rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
.num{
|
|
|
|
margin-top: 20rpx;
|
|
|
|
font-size: 22rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #ABA8F4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tit{
|
|
|
|
margin-top: 32rpx;
|
|
|
|
margin-left: 56rpx;
|
|
|
|
width: 100%;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
.cont_box{
|
|
|
|
margin-top: 28rpx;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-around;
|
|
|
|
.cont{
|
|
|
|
width: 116rpx;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
.top{
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: baseline;
|
|
|
|
font-size: 36rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
.bot{
|
|
|
|
margin-top: 20rpx;
|
|
|
|
font-size: 22rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.bot_box{
|
|
|
|
padding: 40rpx 50rpx ;
|
|
|
|
margin-top: -50rpx;
|
|
|
|
width: 750rpx;
|
|
|
|
// min-height: 500rpx;
|
|
|
|
background: #F7FAFE;
|
|
|
|
border-radius: 50rpx 50rpx 0 0;
|
|
|
|
.botcard{
|
|
|
|
margin-bottom: 32rpx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding-left: 38rpx;
|
|
|
|
width: 650rpx;
|
|
|
|
height: 118rpx;
|
|
|
|
background: #FFFFFF;
|
|
|
|
border-radius: 30rpx;
|
|
|
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42,130,228,0.1);
|
2024-03-13 10:54:22 +08:00
|
|
|
image{
|
|
|
|
width: 52rpx;
|
|
|
|
height: 52rpx;
|
|
|
|
margin-right: 32rpx
|
|
|
|
;
|
|
|
|
}
|
2024-01-27 16:37:52 +08:00
|
|
|
.txt{
|
|
|
|
font-size: 30rpx;
|
|
|
|
font-family: Source Han Sans, Source Han Sans;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #383838;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-13 10:54:22 +08:00
|
|
|
|
2024-01-27 16:37:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2024-01-23 19:15:52 +08:00
|
|
|
|
2023-12-05 16:45:28 +08:00
|
|
|
</style>
|