Browse Source

feat: page-partner;

pull/2/head
Fox-33 2 weeks ago
parent
commit
4ae352dca0
5 changed files with 55 additions and 13 deletions
  1. +7
    -0
      components/base/tabbar.vue
  2. +3
    -13
      components/growing/userCard.vue
  3. +18
    -0
      components/member/styles/tag.scss
  4. +6
    -0
      pages.json
  5. +21
    -0
      pages/index/partner.vue

+ 7
- 0
components/base/tabbar.vue View File

@ -50,6 +50,13 @@
"title": "成长档案", "title": "成长档案",
key: 'growing', key: 'growing',
}, },
{
"selectedIconPath": "/static/image/tabbar/partner-active.png",
"iconPath": "/static/image/tabbar/partner.png",
"pagePath": "/pages/index/partner",
"title": "合伙人",
key: 'partner',
},
{ {
"selectedIconPath": "/static/image/tabbar/user-center-active.png", "selectedIconPath": "/static/image/tabbar/user-center-active.png",
"iconPath": "/static/image/tabbar/user-center.png", "iconPath": "/static/image/tabbar/user-center.png",


+ 3
- 13
components/growing/userCard.vue View File

@ -17,7 +17,7 @@
<view class="flex info"> <view class="flex info">
<view class="avatar"> <view class="avatar">
<image class="img" src="@/static/image/temp-30.png" mode="scaleToFill"></image> <image class="img" src="@/static/image/temp-30.png" mode="scaleToFill"></image>
<view class="tag">学生</view>
<view :class="['tag', `tag-0`]">学生</view>
</view> </view>
<view class="flex summary"> <view class="flex summary">
<view class="flex flex-column summary-item name"> <view class="flex flex-column summary-item name">
@ -78,6 +78,8 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
@import '../member/styles/tag.scss';
.card { .card {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
@ -155,18 +157,6 @@ export default {
height: 100%; height: 100%;
} }
.tag {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
padding: 2rpx 0;
box-sizing: border-box;
text-align: center;
font-size: 24rpx;
color: #03C25C;
background: #E9FFF5;
}
} }
.summary { .summary {


+ 18
- 0
components/member/styles/tag.scss View File

@ -0,0 +1,18 @@
.tag {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
padding: 2rpx 0;
box-sizing: border-box;
text-align: center;
font-size: 24rpx;
color: #03C25C;
background: #E9FFF5;
&-1 {
color: #00A9FF;
background: #E5F2F9;
}
}

+ 6
- 0
pages.json View File

@ -21,6 +21,12 @@
} }
} }
}, },
{
"path": "pages/index/partner",
"style": {
"navigationBarTitleText": ""
}
},
{ {
"path": "pages/index/center", "path": "pages/index/center",
"style": { "style": {


+ 21
- 0
pages/index/partner.vue View File

@ -0,0 +1,21 @@
<template>
<view class="page__view">
<tabber select="partner" />
</view>
</template>
<script>
import tabber from '@/components/base/tabbar.vue'
export default {
components: {
tabber,
},
}
</script>
<style scoped lang="scss">
@import '/components/member/styles/tag.scss';
</style>

Loading…
Cancel
Save