You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
364 lines
8.2 KiB
364 lines
8.2 KiB
3 months ago
|
<template>
|
||
|
<view class="user">
|
||
|
<view class="user-navbar" :style="{'height': (statusBarHeight+44)+'px'}">
|
||
|
<u-navbar :bgColor="bgColor" :fixed="false" title="我的">
|
||
|
<view class="u-nav-slot" slot="left"></view>
|
||
|
<view class="u-nav-slot" slot="content">
|
||
|
<view class="nav"></view>
|
||
|
</view>
|
||
|
</u-navbar>
|
||
|
</view>
|
||
|
<view class="blank" :style="{'height': (statusBarHeight+44)+'px'}"></view>
|
||
|
<view class="user-list">
|
||
|
<view class="users">
|
||
|
<view class="a" @click="openPage(1)">
|
||
|
<image class="avater" src="@/static/default.png"></image>
|
||
|
<view class="name">幽默的先生</view>
|
||
|
<image class="edit" src="@/static/icon-edit.png"></image>
|
||
|
</view>
|
||
|
<view class="b" @click="openPage(2)">
|
||
|
<image src="@/static/icon-site.png"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="info">
|
||
|
<view class="item" @click="openPage(3)"><text>222</text>我的发布</view>
|
||
|
<view class="item" @click="openPage(4)"><text>222</text>我的收藏</view>
|
||
|
<view class="item" @click="openPage(5)"><text>222</text>我的关注</view>
|
||
|
<view class="item" @click="openPage(6)"><text>222</text>浏览记录</view>
|
||
|
</view>
|
||
|
<view class="menu">
|
||
|
<view class="item" @click="openPage(7)">
|
||
|
<view class="fl">
|
||
|
<image src="@/static/icon-user-01.png"></image>我的钱包
|
||
|
</view>
|
||
|
<view class="fl">
|
||
|
<image src="@/static/icon-arrow.png"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="item" @click="openPage(8)">
|
||
|
<view class="fl">
|
||
|
<image src="@/static/icon-user-02.png"></image>支付记录
|
||
|
</view>
|
||
|
<view class="fl">
|
||
|
<image src="@/static/icon-arrow.png"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="item" @click="openPage(9)">
|
||
|
<view class="fl">
|
||
|
<image src="@/static/icon-user-03.png"></image>联系客服
|
||
|
</view>
|
||
|
<view class="fl">
|
||
|
<image src="@/static/icon-arrow.png"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="item" @click="openPage(10)">
|
||
|
<view class="fl">
|
||
|
<image src="@/static/icon-user-04.png"></image>意见反馈
|
||
|
</view>
|
||
|
<view class="fl">
|
||
|
<image src="@/static/icon-arrow.png"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<foo-bar @toIndex="toIndex" :home="3"></foo-bar>
|
||
|
<u-popup :show="show" :round="10" mode="center" @close="close" @open="open">
|
||
|
<view class="wechat">
|
||
|
<view class="title">联系客服</view>
|
||
|
<view class="info">
|
||
|
<view class="item">联系电话:<text>13056896369</text></view>
|
||
|
<view class="item">微信号:<text>8698526898</text></view>
|
||
|
<view class="item">微信号:<text>8698526898</text></view>
|
||
|
</view>
|
||
|
<view class="btn" @click="show = false">我知道了</view>
|
||
|
</view>
|
||
|
</u-popup>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import fooBar from '@/components/fooBar/fooBar.vue'
|
||
|
export default {
|
||
|
components: {
|
||
|
fooBar
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
show: false,
|
||
|
current: 0,
|
||
|
list1: [{
|
||
|
name: '热点事件',
|
||
|
}, {
|
||
|
name: '暖心善举',
|
||
|
}, {
|
||
|
name: '恶行曝光'
|
||
|
}],
|
||
|
statusBarHeight: 0,
|
||
|
bannerList: ['https://cdn.uviewui.com/uview/swiper/swiper1.png', 'https://cdn.uviewui.com/uview/swiper/swiper2.png', 'https://cdn.uviewui.com/uview/swiper/swiper3.png'],
|
||
|
goodsList: [],
|
||
|
bgColor: "transparent",
|
||
|
index: 3,
|
||
|
title: ''
|
||
|
}
|
||
|
},
|
||
|
|
||
|
mounted() {
|
||
|
uni.hideTabBar();
|
||
|
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
||
|
|
||
|
},
|
||
|
onShow() {
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
openPage(index,id){
|
||
|
if(index == 1){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/personal"
|
||
|
})
|
||
|
}else if(index == 2){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/site"
|
||
|
})
|
||
|
}else if(index == 3){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/release"
|
||
|
})
|
||
|
}else if(index == 4){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/like"
|
||
|
})
|
||
|
}else if(index == 5){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/collect"
|
||
|
})
|
||
|
}else if(index == 6){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/history"
|
||
|
})
|
||
|
}else if(index == 7){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/wallet"
|
||
|
})
|
||
|
}else if(index == 8){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/payList"
|
||
|
})
|
||
|
}else if(index == 9){
|
||
|
this.show = true
|
||
|
}else if(index == 10){
|
||
|
uni.navigateTo({
|
||
|
url: "/pages/user/feedback"
|
||
|
})
|
||
|
}
|
||
|
},
|
||
|
//官方公告
|
||
|
async queryArticleList2() {
|
||
|
const { code, data } = await this.$api.articleList({type: 3})
|
||
|
if(code == 200){
|
||
|
if(data && data.length > 0){
|
||
|
data.map(a=>{
|
||
|
this.list5.push(a.title)
|
||
|
})
|
||
|
}
|
||
|
this.articleList2 = data
|
||
|
}
|
||
|
},
|
||
|
|
||
|
open() {
|
||
|
// console.log('open');
|
||
|
},
|
||
|
close() {
|
||
|
this.showPopup = false
|
||
|
// console.log('close');
|
||
|
},
|
||
|
async toIndex(index) {
|
||
|
let that = this
|
||
|
that.index = index
|
||
|
if (index == 0) {
|
||
|
uni.switchTab({
|
||
|
url: '/pages/index/index'
|
||
|
})
|
||
|
}else if (index == 2) {
|
||
|
uni.switchTab({
|
||
|
url: '/pages/release/index'
|
||
|
})
|
||
|
} else if (index == 3) {
|
||
|
uni.switchTab({
|
||
|
url: '/pages/user/index'
|
||
|
})
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.user {
|
||
|
min-height: 100vh;
|
||
|
background: url(@/static/bg.png) center top no-repeat;
|
||
|
background-size: 100% auto;
|
||
|
padding-bottom: 150rpx;
|
||
|
overflow: hidden;
|
||
|
box-sizing: border-box;
|
||
|
.wechat{
|
||
|
width: 620rpx;
|
||
|
height: 510rpx;
|
||
|
background: #FFFFFF;
|
||
|
border-radius: 20rpx;
|
||
|
text-align: center;
|
||
|
.title{
|
||
|
font-weight: 500;
|
||
|
font-size: 36rpx;
|
||
|
color: #333333;
|
||
|
padding: 30rpx 0;
|
||
|
border-bottom: 1px solid #EAEAEA;
|
||
|
}
|
||
|
.info{
|
||
|
padding: 30rpx 50rpx;
|
||
|
overflow: hidden;
|
||
|
.item{
|
||
|
text-align: left;
|
||
|
line-height: 60rpx;
|
||
|
font-weight: 500;
|
||
|
font-size: 30rpx;
|
||
|
color: #999999;
|
||
|
text{
|
||
|
color: #333333;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.btn{
|
||
|
width: 300rpx;
|
||
|
height: 90rpx;
|
||
|
background: #FFFFFF;
|
||
|
border-radius: 90rpx;
|
||
|
border: 1px solid #00C6A9;
|
||
|
text-align: center;
|
||
|
font-weight: 500;
|
||
|
font-size: 30rpx;
|
||
|
color: #00C6A9;
|
||
|
line-height: 90rpx;
|
||
|
margin: 0 auto;
|
||
|
margin-top: 20rpx;
|
||
|
}
|
||
|
}
|
||
|
&-navbar{
|
||
|
position: fixed;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
top: 0;
|
||
|
z-index: 12;
|
||
|
width: 100%;
|
||
|
background: url(@/static/bg.png) center top no-repeat;
|
||
|
background-size: 100% auto;
|
||
|
}
|
||
|
&-list{
|
||
|
overflow: hidden;
|
||
|
margin-top: 45rpx;
|
||
|
.menu{
|
||
|
width: 700rpx;
|
||
|
min-height: 462rpx;
|
||
|
background: #FFFFFF;
|
||
|
box-shadow: 0px 3rpx 10rpx 0px rgba(9,44,39,0.05);
|
||
|
border-radius: 20rpx;
|
||
|
margin: 0 auto;
|
||
|
margin-top: 50rpx;
|
||
|
padding: 0 30rpx;
|
||
|
box-sizing: border-box;
|
||
|
.item{
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
border-top: 1px solid #EAEAEA;
|
||
|
padding: 35rpx 0;
|
||
|
overflow: hidden;
|
||
|
position: relative;
|
||
|
&:first-child{
|
||
|
border-color: #FFFFFF;
|
||
|
}
|
||
|
.fl{
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
font-weight: 500;
|
||
|
font-size: 30rpx;
|
||
|
color: #333333;
|
||
|
image{
|
||
|
width: 45rpx;
|
||
|
height: 45rpx;
|
||
|
margin-right: 10rpx;
|
||
|
}
|
||
|
button{
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
z-index: 2;
|
||
|
opacity: 0;
|
||
|
}
|
||
|
}
|
||
|
.fr{
|
||
|
image{
|
||
|
width: 45rpx;
|
||
|
height: 45rpx;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.info{
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
overflow: hidden;
|
||
|
margin-top: 40rpx;
|
||
|
.item{
|
||
|
flex: 1;
|
||
|
font-weight: 500;
|
||
|
font-size: 24rpx;
|
||
|
color: #333333;
|
||
|
text-align: center;
|
||
|
text{
|
||
|
display: block;
|
||
|
font-weight: bold;
|
||
|
font-size: 36rpx;
|
||
|
color: #333333;
|
||
|
margin-bottom: 20rpx;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.users{
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
padding: 0 25rpx;
|
||
|
.a{
|
||
|
font-weight: 400;
|
||
|
font-size: 34rpx;
|
||
|
color: #333333;
|
||
|
line-height: 36rpx;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
.avater{
|
||
|
width: 110rpx;
|
||
|
height: 110rpx;
|
||
|
border-radius: 50%;
|
||
|
margin-right: 25rpx;
|
||
|
}
|
||
|
.edit{
|
||
|
width: 45rpx;
|
||
|
height: 45rpx;
|
||
|
margin-left: 10rpx;
|
||
|
margin-top: 10rpx;
|
||
|
}
|
||
|
}
|
||
|
.b{
|
||
|
image{
|
||
|
width: 45rpx;
|
||
|
height: 45rpx;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|