<template> <view class="content"> <view class="container"> <headers :titles="titles"></headers> <view class="top-box"> <view class="title_top">{{userInfo.storeName || "京博加油站"}}</view> <view class="user_info"> <view class="user_head" v-if="userInfo.avatar"> <image :src="baseUrl + userInfo.avatar" mode=""></image> </view> <view class="user_head" v-else> <image src="../../static/imgs/mm.jpg" mode=""></image> </view> <view class=""> <view class="user_anme">{{userInfo.realName}}</view> <view class="user_num">账号:{{userInfo.accountName}}</view> </view> </view> <view class="jg-box"> <!-- <view class="h-box" @click="golist()"> <view class="">消息通知</view> <u-icon name="arrow-right" size="18"></u-icon> <<<<<<< HEAD </view> <view class="h-box" @click="goServiceList()"> ======= </view> --> <view class="h-box" @click="goServiceList()"> <view class="">服务条款</view> <u-icon name="arrow-right" size="18"></u-icon> </view> <view class="h-box" @click="goMyList()"> <view class="">关于我们</view> <u-icon name="arrow-right" size="18"></u-icon> </view> <view class="h-box" @click="goYinsi()"> <view class="">隐私协议</view> <u-icon name="arrow-right" size="18"></u-icon> </view> <view class="h-box" style="border: none;"> <view class="">当前版本</view> <view class="b_">1.0.0</view> </view> </view> </view> <!-- --> <view class="anniu" @click="gologin()"> 退出登录 </view> </view> <tabbar :msg='msg'></tabbar> </view> </template> <script> import request from "../../utils/request"; import headers from '../../components/header/headers.vue' import tabbar from '../../components/tabbar/tabbar.vue' export default { data() { return { // url信息 baseUrl: this.$baseUrl, titles: "", msg: "1", List: [], show: false, status: 'loading', userInfo: {}, } }, onShow() { // this.actList = ["1", "1", "1", "1", "1", ] // this.status = "nomore" 底部刷新结束 this.getUserInfo() }, onPullDownRefresh() { console.log("刷新"); uni.stopPullDownRefresh() }, onReachBottom() { // this.show = true setTimeout(() => { console.log("加载执行"); }, 2000) }, components: { headers, tabbar }, methods: { golist() { uni.navigateTo({ url: '/pagesHome/messageList/messageList' }) }, // 获取用户登录信息 getUserInfo() { request({ url: 'backendApi/account/info/' + uni.getStorageSync("accountId"), method: 'get', }).then((res) => { this.userInfo = res.data.account }) }, gologin() { uni.reLaunch({ url: '/pages/login/login' }) }, goback() { uni.navigateBack() }, goServiceList() { uni.navigateTo({ url: '/pagesHome/outher/serviceList' }) }, goMyList() { uni.navigateTo({ url: '/pagesHome/outher/my' }) }, goYinsi() { uni.navigateTo({ url: '/pagesHome/outher/yinsi' }) } } } </script> <style scoped lang="scss"> .content { background: #f4f5f6; // background: linear-gradient(180deg, #B2D2FC 0%, #B2D2FC 14%, rgba(255, 255, 255, 0.84) 24%, rgba(255, 255, 255, 0.84) 100%); height: 100vh; } .container { width: 100%; background: #f4f5f6; box-sizing: border-box; padding-top: 88px; } .top-box { width: 100%; height: 185px; background: url('../../static/imgs/homeback.png'); background-size: 100% 100%; box-sizing: border-box; padding: 15px; color: #fff; padding-top: 0px; position: relative; } .title_top { font-weight: bold; font-size: 16px; color: #FFFFFF; margin-bottom: 15px; } .title_centen { width: 100%; text-align: center; margin-bottom: 15px; } .sm-size { font-weight: bold; font-size: 14px; color: #FFFFFF; margin-bottom: 10px; } .big-size { font-weight: 800; font-size: 24px; color: #FFFFFF; } .ds-ab { width: 100%; display: flex; align-items: center; justify-content: space-around; } .jg-box { width: 95%; background: #fff; border-radius: 8px; box-sizing: border-box; padding: 0px 10px; margin: 0 auto; } .b_ { font-size: 16px; color: #999999; } .s-box { width: 33.3%; font-size: 14px; color: #333333; text-align: center; image { width: 40px; height: 40px; margin: 5px auto; } } .ss-box { width: 25%; font-size: 14px; color: #333333; text-align: center; image { width: 40px; height: 40px; margin: 5px auto; } } .gq-box { width: 95%; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; margin-top: 65px; } .bai-box { width: 95%; border-radius: 6px; background: #fff; box-sizing: border-box; padding: 10px 15px; display: flex; align-items: center; font-size: 14px; margin: 15px auto; } .hy-size { width: 80%; overflow: hidden; margin-left: 10px; } .user_info { display: flex; align-items: center; margin-bottom: 25px; } .user_head { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; margin-right: 10px; image { width: 100%; height: 100%; } } .user_anme { font-weight: bold; font-size: 14px; color: #FFFFFF; margin-bottom: 10px; } .user_num { font-weight: bold; font-size: 14px; color: #FFFFFF; } .h-box { width: 100%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #E8E8E8; box-sizing: border-box; padding: 15px 0px; font-size: 16px; color: #333333; } .anniu { width: 90%; height: 40px; background: #FD504E; border-radius: 50px; display: flex; align-items: center; justify-content: center; color: #fff; position: fixed; left: 50%; transform: translate(-50%, 60%); bottom: 15%; } </style>