chenkun 11 months ago
parent
commit
58fd2553f4
2 changed files with 33 additions and 21 deletions
  1. +28
    -19
      pages/index/center.vue
  2. +5
    -2
      pages/mine/releaseRecord.vue

+ 28
- 19
pages/index/center.vue View File

@ -7,9 +7,11 @@
</view>
<!--中部 用户信息-->
<view style="border-radius: 20rpx;position: absolute;top: 20%;left: 10%; width:80%;height: 12%;z-index: 1;background: white;">
<view
style="border-radius: 20rpx;position: absolute;top: 20%;left: 10%; width:80%;height: 12%;z-index: 1;background: white;">
<!--头像-->
<view style="position: absolute;z-index:2;width:33%;height:100%;border-radius: 50%;overflow: hidden;top: -32%;left: 0%;">
<view
style="position: absolute;z-index:2;width:33%;height:100%;border-radius: 50%;overflow: hidden;top: -32%;left: 0%;">
<image src="/static/image/center/椭圆形.png" style="width: 100%;height: 100%;"></image>
</view>
<!--福利中心-->
@ -32,7 +34,8 @@
</view>
</view>
<!-- 点赞量 -->
<view style="display: flex;flex-direction: column;gap:2rpx ;position: absolute;z-index:2;width:15%;height:40%;top: 55%;right: 3%;">
<view
style="display: flex;flex-direction: column;gap:2rpx ;position: absolute;z-index:2;width:15%;height:40%;top: 55%;right: 3%;">
<view style="display: flex;justify-content: center;align-items: center;width: 100%;height: 100%;">
<image src="/static/image/center/dianZan.svg" style="width: 40%;height: 84%;"></image>
</view>
@ -45,8 +48,8 @@
<view>
<!--上GridView-->
<view>
<uv-grid :col="4" @click="click">
<uv-grid-item v-for="(item,index) in baseList" :key="index">
<uv-grid :col="4">
<uv-grid-item v-for="(item,index) in baseList" :key="index" @click="goToPage(item)">
<img :src="item.imageUrl" :alt="item.title"
:style="{ width: '80rpx', height: '80rpx',marginBottom: '10rpx'}"/>
<text style="font-size: 30rpx;color: #333333;">{{ item.title }}
@ -55,13 +58,14 @@
</uv-grid>
</view>
<!--其他-->
<view style="margin:50rpx 0 0 50rpx;font-size: 40rpx;color: #333333;">其他</view>
<!--下GridView-->
<view style="margin-top: 50rpx;">
<uv-grid :col="4" @click="click">
<uv-grid-item v-for="(item,index) in baseList" :key="index">
<uv-grid :col="4" >
<uv-grid-item v-for="(item,index) in otherList" :key="index" @click="goToPage(item)">
<img :src="item.imageUrl" :alt="item.title"
:style="{ width: '80rpx', height: '80rpx',marginBottom: '10rpx'}"/>
<text style="font-size: 30rpx;color: #333333;">{{ item.title }}
@ -89,25 +93,30 @@ export default {
return {
//
baseList: [
{ name: 'photo', imageUrl: '/static/image/center/1.png', title: '我的发布' },
{ name: 'lock', imageUrl: '/static/image/center/1.png', title: '我的推广' },
{ name: 'star', imageUrl: '/static/image/center/1.png', title: '我的银行卡' },
{ name: 'star', imageUrl: '/static/image/center/1.png', title: '我的钱包' },
{
name: 'photo',
imageUrl: '/static/image/center/1.png',
title: '我的发布',
gotoPageUrl: '/mine/releaseRecord'
},
{name: 'lock', imageUrl: '/static/image/center/1.png', title: '我的推广'},
{name: 'star', imageUrl: '/static/image/center/1.png', title: '我的银行卡'},
{name: 'star', imageUrl: '/static/image/center/1.png', title: '我的钱包'},
],
//
otherList: [
{ name: 'photo', imageUrl: '/static/image/center/1.png', title: '实名信息' },
{ name: 'lock', imageUrl: '/static/image/center/1.png', title: '帮助反馈' },
{name: 'photo', imageUrl: '/static/image/center/1.png', title: '实名信息'},
{name: 'lock', imageUrl: '/static/image/center/1.png', title: '帮助反馈'},
],
}
},
methods: {
click(name) {
uni.showToast({
icon: 'none',
title: `点击了第${name}`
})
}
//
goToPage(item) {
this.$utils.navigateTo(item.gotoPageUrl)
},
}
}
</script>


+ 5
- 2
pages/mine/releaseRecord.vue View File

@ -1,6 +1,9 @@
<template>
<view>
我的发布
<view class="releaseRecord">
<navbar
leftClick
@leftClick="$utils.navigateBack"
title="我的发布"/>
</view>
</template>


Loading…
Cancel
Save