Files
crm-uni/pages/index/mine.vue
T

204 lines
4.8 KiB
Vue
Raw Normal View History

2025-03-14 16:55:12 +08:00
<template>
<view class="contents">
<view class="navbar">我的</view>
<view class="content">
<view class="contop">
<view class="">
<!-- <image class="userimg" :src="userinfo.avatar" mode=""></image> -->
<image class="userimg" src="/static/image/mine/user.png" mode=""></image>
</view>
<view class="right" @click="changinfo">
<view class="">
<text>迪士尼公主</text>
<image src="/static/image/mine/edit.png" mode=""></image>
</view>
<view class="">
ID:080427
</view>
</view>
</view>
<view class="bottomCon">
<view class="sonContent" @click="navTo('/pages/mine/mycarSource')">
<image class="son-img-bg" src="/static/image/mine/icon1.png"></image>
<span>消息通知</span>
<view class="">
<u-badge :value="9" type="error" style="display: inline-block;"></u-badge>
<uni-icons type="right" size="18"></uni-icons>
</view>
</view>
<view class="sonContent" @click="navTo('/pages/mine/drafts')">
<image class="son-img-bg" src="/static/image/mine/icon2.png"></image>
<span>修改密码</span>
<uni-icons type="right" size="18"></uni-icons>
</view>
<view class="sonContent" @click="navTo('/pages/mine/soldList')">
<image class="son-img-bg" src="/static/image/mine/icon3.png"></image>
<span>联系客服</span>
<uni-icons type="right" size="18"></uni-icons>
</view>
<view class="sonContent" @click="navTo('/pages/mine/mycarSource')">
<image class="son-img-bg" src="/static/image/mine/icon4.png"></image>
<span>意见反馈</span>
<uni-icons type="right" size="18"></uni-icons>
</view>
<view class="sonContent" @click="navTo('/pages/mine/drafts')">
<image class="son-img-bg" src="/static/image/mine/icon5.png"></image>
<span>关于我们</span>
<uni-icons type="right" size="18"></uni-icons>
</view>
<view class="sonContent" @click="navTo('/pages/mine/soldList')">
<image class="son-img-bg" src="/static/image/mine/icon6.png"></image>
<span>注销账户</span>
<uni-icons type="right" size="18"></uni-icons>
</view>
<view class="sonContent" @click="navTo('/pages/mine/soldList')">
<image class="son-img-bg" src="/static/image/mine/icon7.png"></image>
<span>退出登录</span>
<uni-icons type="right" size="18"></uni-icons>
</view>
<!-- <view class="sonContent1" @click="goout">
<span>退出当前账号</span>
</view> -->
<!-- <button v-else="is_login" class="logobtn" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">一键登录</button> -->
</view>
</view>
</view>
</template>
<script>
import { request,showToast } from '@/api/apiT.js'
export default {
data() {
return {
userinfo:'',
is_login:uni.getStorageSync('is_login'),
show: false
}
},
onLoad() {
},
onShow() {
},
methods: {
changinfo(){
uni.navigateTo({
url: '/pages/mine/changinfo'
});
}
}
}
</script>
<style lang="scss">
.u-badge--not-dot{
padding: 5px 8px;
margin-right: 20px;
}
.contents{
background-image: url("/static/image/mine/bg.png");
background-size: 100%;
background-repeat: no-repeat;
}
.navbar{
height: 50px;
line-height: 50px;
text-align: center;
color: #fff;
font-size: 32rpx;
}
.content{
padding:20px 15px 15px;
.contop{
display: flex;
align-items: center;
margin: 25px 0px 50px;
font-size: 34rpx;
color: white;
.right{
margin-left: 15px;
image{
width: 32rpx;
height:32rpx;
}
}
}
}
.slot-image {
/* #ifndef APP-NVUE */
display: block;
/* #endif */
margin-right: 10px;
width: 20px;
height: 20px;
}
.userimg{
width: 60px;
height: 60px;
border-radius: 50%;
}
.timg{
width: 100%;
height: 220rpx;
}
.bottomCon {
margin-top: 40rpx;
color: #000;
font-weight: 400;
// padding: 0 24rpx 20rpx;
box-sizing: border-box;
// border-radius: 22rpx;
// background: #FFFFFF;
display: flex;
box-sizing: border-box;
flex-direction: column;
.sonTitle {
height: 80rpx;
line-height: 80rpx;
font-size: 36rpx;
border-bottom: 2rpx solid #F3F3F3;
}
.sonContent1{
background: #FFFFFF;
border-radius: 22rpx;
text-align: center;
font-size: 28rpx;
font-weight: 400;
padding: 32rpx 28rpx;
color: #515151;
margin-bottom: 10px;
}
.sonContent {
background: #FFFFFF;
border-radius: 22rpx;
position: relative;
flex: 1;
// border-bottom: 2rpx solid #F3F3F3;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
font-weight: 500;
padding: 32rpx 28rpx;
color: #000;
margin-bottom: 10px;
.son-img-bg {
width: 24px;
height: 24px;
position: absolute;
top: 50%;
margin-top: -20rpx;
left: 12;
}
span {
margin-left: 68rpx;
font-size: 28rpx;
}
}
}
</style>