Files
crm-uni/pages/index/mine.vue
T
2025-03-14 17:32:45 +08:00

219 lines
5.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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="mineid">
ID:080427
</view>
</view>
</view>
<view class="bottomCon">
<view class="sonContent" @click="navTo('/pages/mine/massege')">
<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'
});
},
navTo(url) {
uni.navigateTo({
url: url
});
},
}
}
</script>
<style lang="scss">
uni-page-body {
background-color: #F6F6F6 !important;
}
.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;
margin-left: 10px;
}
view{
line-height: 30px;
}
.mineid{
font-size: 24rpx;
}
}
}
}
.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>