1
This commit is contained in:
parent
783a6d8ab2
commit
70a543b4c7
@ -1,29 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- header -->
|
<!-- header -->
|
||||||
<view :style="{ backgroundColor, paddingTop: homeHeaderPaddingTop + 'px' }" class="navigationBar"
|
<view :style="{ backgroundColor:backgroundColor }" class="navigationBar">
|
||||||
:class="{leftTitle: leftTitle}">
|
<template>
|
||||||
<template v-if="leftTitle">
|
|
||||||
<view class="navigationBarTitle" :style="{ color: titleColor }">
|
|
||||||
{{ title ? title : '' }}
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
<template v-else>
|
|
||||||
<view class="navigationBarBack" @click="back">
|
<view class="navigationBarBack" @click="back">
|
||||||
<slot name="back">
|
|
||||||
<uni-icons size="24" type="left" :color="titleColor"></uni-icons>
|
<uni-icons size="24" type="left" :color="titleColor"></uni-icons>
|
||||||
</slot>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="navigationBarTitle" :style="{ color: titleColor }">
|
<view class="navigationBarTitle" :style="{ color: titleColor }">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</view>
|
</view>
|
||||||
<view v-if="showClear" @click="clearNoReadFun" class="navigationBarIcon" :style="{ color: titleColor }">
|
<view class="navigationBarIcon" :style="{ color: titleColor }">
|
||||||
<image src="@/static/images/clear.png" mode="" class="clear-icon"></image>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<view class="navigationBarBackExtra">
|
|
||||||
<slot name="extra">
|
|
||||||
</slot>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -44,40 +31,10 @@
|
|||||||
type: String,
|
type: String,
|
||||||
default: '#fff'
|
default: '#fff'
|
||||||
},
|
},
|
||||||
leftTitle: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false
|
|
||||||
},
|
|
||||||
showClear: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
// #ifdef MP
|
|
||||||
const {
|
|
||||||
barHeight,
|
|
||||||
barTop,
|
|
||||||
menuButtonLeft
|
|
||||||
} = getWXStatusHeight()
|
|
||||||
console.log('barHeight, barTop, menuButtonLeft: ', barHeight, barTop, menuButtonLeft);
|
|
||||||
this.homeHeaderPaddingTop = barTop || 0
|
|
||||||
this.homeHeaderMenuHeight = barHeight
|
|
||||||
this.homeHeaderMenuLeft = menuButtonLeft - 6
|
|
||||||
// #endif
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// #ifdef MP
|
|
||||||
homeHeaderPaddingTop: 0,
|
|
||||||
homeHeaderMenuHeight: 0,
|
|
||||||
homeHeaderMenuLeft: 0,
|
|
||||||
// #endif
|
|
||||||
// #ifdef APP || H5
|
|
||||||
homeHeaderPaddingTop: 20,
|
|
||||||
homeHeaderMenuHeight: 50,
|
|
||||||
homeHeaderMenuLeft: 0
|
|
||||||
// #endif
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -93,37 +50,27 @@
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.navigationBar {
|
.navigationBar {
|
||||||
|
position: absolute;
|
||||||
|
top: var(--status-bar-height);
|
||||||
|
height: 90rpx;
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
font-size: 30rpx;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
z-index: 999;
|
||||||
&.leftTitle {
|
|
||||||
justify-content: start;
|
|
||||||
padding-left: 28rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navigationBarBack {
|
.navigationBarBack {
|
||||||
position: absolute;
|
width: 200rpx;
|
||||||
left: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navigationBarBackExtra {
|
|
||||||
position: absolute;
|
|
||||||
right: 20rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationBarTitle {
|
.navigationBarTitle {
|
||||||
font-size: 36rpx;
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationBarIcon {
|
.navigationBarIcon {
|
||||||
display: flex;
|
width: 200rpx;
|
||||||
}
|
|
||||||
|
|
||||||
.clear-icon {
|
|
||||||
width: 40rpx;
|
|
||||||
height: 40rpx;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
28
pages.json
28
pages.json
@ -7,7 +7,8 @@
|
|||||||
"componentPlaceholder": {
|
"componentPlaceholder": {
|
||||||
"mine-index": "view",
|
"mine-index": "view",
|
||||||
"notice-index": "view",
|
"notice-index": "view",
|
||||||
"subscribe": "view"
|
"subscribe": "view",
|
||||||
|
"my-notice": "view"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@ -47,6 +48,13 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "订阅设置"
|
"navigationBarTitleText": "订阅设置"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "report",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "报名",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
@ -66,7 +74,20 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "订阅"
|
"navigationBarTitleText": "订阅"
|
||||||
}
|
}
|
||||||
}]
|
},
|
||||||
|
{
|
||||||
|
"path": "my-notice",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "我的通告"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "my-notice-item",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "我的通告组件"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}, {
|
}, {
|
||||||
"root": "pages/mine",
|
"root": "pages/mine",
|
||||||
"pages": [{
|
"pages": [{
|
||||||
@ -110,6 +131,7 @@
|
|||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "多点通告",
|
"navigationBarTitleText": "多点通告",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -110,6 +110,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dl-menu-box {
|
.dl-menu-box {
|
||||||
|
border-bottom: 1rpx solid #EEEEEE;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -74,9 +74,6 @@
|
|||||||
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
||||||
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
||||||
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
||||||
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
|
||||||
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
|
||||||
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
|
|
||||||
<view style="text-align: center" v-if="dataList.length==0">
|
<view style="text-align: center" v-if="dataList.length==0">
|
||||||
<image class="" src="@/static/images/nothing.png"></image>
|
<image class="" src="@/static/images/nothing.png"></image>
|
||||||
</view>
|
</view>
|
||||||
@ -505,6 +502,7 @@
|
|||||||
transition: 1s;
|
transition: 1s;
|
||||||
|
|
||||||
.dl-text {
|
.dl-text {
|
||||||
|
font-size: 32rpx;
|
||||||
line-height: 78rpx;
|
line-height: 78rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@ -577,10 +575,10 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 35rpx;
|
border-radius: 35rpx;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 120rpx;
|
height: 100rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: url('/static/index/member-bg.png');
|
background: url('/static/index/member-bg.png');
|
||||||
background-size: contain;
|
background-size: 100% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
/* 图片居中显示 */
|
/* 图片居中显示 */
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -612,10 +610,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dl-item-box {
|
.dl-item-box {
|
||||||
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 607rpx);
|
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 586rpx);
|
||||||
isplay: flex;
|
isplay: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding-top: 15rpx;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,47 @@
|
|||||||
<image class="right-image" :src="imageUrl+item.mainImage" mode="aspectFit"></image>
|
<image class="right-image" :src="imageUrl+item.mainImage" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 单个数据 -->
|
||||||
|
<view v-if="null!=dataObj" class="dl-notice-box no-bg" @click="goDetail(item)">
|
||||||
|
<view class="dl-notice-title">
|
||||||
|
<image class="dl-image" :src="'/static/platform/'+dataObj.platformCode+'.png'" mode="aspectFit"></image>
|
||||||
|
<view class="dl-text">{{dataObj.title}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="dl-notice-content">
|
||||||
|
<view class="left-text">
|
||||||
|
<view class="text-item">
|
||||||
|
<image class="dl-icon" src="@/static/index/money.png" mode="aspectFit"></image>
|
||||||
|
<view v-if="null==dataObj.feeUp" class="dl-content">奖励:无稿费</view>
|
||||||
|
<view v-else class="dl-content">奖励:¥{{dataObj.feeDown}}-{{dataObj.feeUp}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-item">
|
||||||
|
<image class="dl-icon" src="@/static/index/my.png" mode="aspectFit"></image>
|
||||||
|
<view class="dl-content">
|
||||||
|
粉丝:{{formatNumberWithUnits(dataObj.fansDown)}}-{{formatNumberWithUnits(dataObj.fansUp)}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-item" style="border-bottom: 1rpx solid #F4F4F4;padding-bottom: 10rpx;">
|
||||||
|
<image class="dl-icon" src="@/static/index/xing.png" mode="aspectFit"></image>
|
||||||
|
<view class="dl-content">类型:{{dataObj.bloggerTypesText}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-item" style="padding-top: 10rpx;">
|
||||||
|
<view class="item-box" style="width: 40%;">
|
||||||
|
<image class="dl-icon2" :src="imageUrl+dataObj.avatar" mode="aspectFit"></image>
|
||||||
|
<view class="dl-item-right">{{dataObj.userNickName}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-box">
|
||||||
|
<image class="dl-icon3" src="@/static/index/person.png" mode="aspectFit"></image>
|
||||||
|
<view class="dl-item-right dl-number">{{dataObj.reportNum}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-box">
|
||||||
|
<image class="dl-icon3" src="@/static/index/eye.png" mode="aspectFit"></image>
|
||||||
|
<view class="dl-item-right dl-number">{{dataObj.viewNum}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<image class="right-image" :src="imageUrl+dataObj.mainImage" mode="aspectFit"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -52,6 +93,10 @@
|
|||||||
dataList: {
|
dataList: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: []
|
default: []
|
||||||
|
},
|
||||||
|
dataObj: {
|
||||||
|
type: Object,
|
||||||
|
default: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -80,6 +125,15 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.dl-components {
|
.dl-components {
|
||||||
|
.dl-notice-box:first-child {
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-bg {
|
||||||
|
background: none !important;
|
||||||
|
margin-bottom: 0 !important;
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.dl-notice-box {
|
.dl-notice-box {
|
||||||
font-size: 29rpx;
|
font-size: 29rpx;
|
||||||
|
@ -106,7 +106,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.dl-title {
|
.dl-title {
|
||||||
font-size: 38rpx;
|
font-size: 32rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -146,6 +146,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.seting {
|
.seting {
|
||||||
|
font-size: 30rpx;
|
||||||
width: 180rpx;
|
width: 180rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<notice-index v-show="'home'==menuCode"></notice-index>
|
<notice-index v-show="'home'==menuCode"></notice-index>
|
||||||
<mine-index v-show="'my'==menuCode"></mine-index>
|
<mine-index v-show="'my'==menuCode"></mine-index>
|
||||||
<subscribe v-show="'dingyue'==menuCode"></subscribe>
|
<subscribe v-show="'dingyue'==menuCode"></subscribe>
|
||||||
|
<my-notice v-show="'myNotice'==menuCode"></my-notice>
|
||||||
</view>
|
</view>
|
||||||
<tabBarVue :menuCode="menuCode" ref="tarBar" @changeMenu="changeMenu"></tabBarVue>
|
<tabBarVue :menuCode="menuCode" ref="tarBar" @changeMenu="changeMenu"></tabBarVue>
|
||||||
</view>
|
</view>
|
||||||
@ -16,12 +17,14 @@
|
|||||||
import noticeIndex from '@/pages/components/notice-index.vue'
|
import noticeIndex from '@/pages/components/notice-index.vue'
|
||||||
import subscribe from '@/pages/components/subscribe.vue'
|
import subscribe from '@/pages/components/subscribe.vue'
|
||||||
import mineIndex from '@/pages/mine/mine-index.vue'
|
import mineIndex from '@/pages/mine/mine-index.vue'
|
||||||
|
import myNotice from '@/pages/components/my-notice.vue'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
tabBarVue,
|
tabBarVue,
|
||||||
noticeIndex,
|
noticeIndex,
|
||||||
subscribe,
|
subscribe,
|
||||||
mineIndex
|
mineIndex,
|
||||||
|
myNotice
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="member-card-box">
|
<view class="member-card-box">
|
||||||
<navigation-bar-vue title="会员中心" background-color="#262626" title-color="#FFFFFF"></navigation-bar-vue>
|
<navigation-bar-vue title="会员中心" style="width: 100%;" background-color="#262626"
|
||||||
|
title-color="#FFFFFF"></navigation-bar-vue>
|
||||||
<view class="main-body">
|
<view class="main-body">
|
||||||
<!-- 会员卡展示区 -->
|
<!-- 会员卡展示区 -->
|
||||||
<view class="vip-box">
|
<view class="vip-box">
|
||||||
@ -61,6 +62,66 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="rights-item item-bg" v-for="(item,index) in rightsList">
|
||||||
|
<view class="title-left">{{item.name}}</view>
|
||||||
|
<view :class="[i==cardList.length-1?'value-item yellow-bg':'value-item']"
|
||||||
|
v-for="(card,i) in cardList">
|
||||||
|
<view v-if="'02'==item.rightsType">
|
||||||
|
<!-- 数量限制 -->
|
||||||
|
<text v-if="0==item.cardRights[card.id]">无限</text>
|
||||||
|
<text v-else>{{item.cardRights[card.id]}}条</text>
|
||||||
|
</view>
|
||||||
|
<view v-else-if="'01'==item.rightsType">
|
||||||
|
<!-- 是否支持 -->
|
||||||
|
<text v-if="0==item.cardRights[card.id]">-</text>
|
||||||
|
<view v-else>
|
||||||
|
<uni-icons v-if="i==cardList.length-1" color="#3A3A38" type="checkmarkempty"
|
||||||
|
size="18"></uni-icons>
|
||||||
|
<uni-icons v-else color="#E8CEAD" type="checkmarkempty" size="18"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rights-item item-bg" v-for="(item,index) in rightsList">
|
||||||
|
<view class="title-left">{{item.name}}</view>
|
||||||
|
<view :class="[i==cardList.length-1?'value-item yellow-bg':'value-item']"
|
||||||
|
v-for="(card,i) in cardList">
|
||||||
|
<view v-if="'02'==item.rightsType">
|
||||||
|
<!-- 数量限制 -->
|
||||||
|
<text v-if="0==item.cardRights[card.id]">无限</text>
|
||||||
|
<text v-else>{{item.cardRights[card.id]}}条</text>
|
||||||
|
</view>
|
||||||
|
<view v-else-if="'01'==item.rightsType">
|
||||||
|
<!-- 是否支持 -->
|
||||||
|
<text v-if="0==item.cardRights[card.id]">-</text>
|
||||||
|
<view v-else>
|
||||||
|
<uni-icons v-if="i==cardList.length-1" color="#3A3A38" type="checkmarkempty"
|
||||||
|
size="18"></uni-icons>
|
||||||
|
<uni-icons v-else color="#E8CEAD" type="checkmarkempty" size="18"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rights-item item-bg" v-for="(item,index) in rightsList">
|
||||||
|
<view class="title-left">{{item.name}}</view>
|
||||||
|
<view :class="[i==cardList.length-1?'value-item yellow-bg':'value-item']"
|
||||||
|
v-for="(card,i) in cardList">
|
||||||
|
<view v-if="'02'==item.rightsType">
|
||||||
|
<!-- 数量限制 -->
|
||||||
|
<text v-if="0==item.cardRights[card.id]">无限</text>
|
||||||
|
<text v-else>{{item.cardRights[card.id]}}条</text>
|
||||||
|
</view>
|
||||||
|
<view v-else-if="'01'==item.rightsType">
|
||||||
|
<!-- 是否支持 -->
|
||||||
|
<text v-if="0==item.cardRights[card.id]">-</text>
|
||||||
|
<view v-else>
|
||||||
|
<uni-icons v-if="i==cardList.length-1" color="#3A3A38" type="checkmarkempty"
|
||||||
|
size="18"></uni-icons>
|
||||||
|
<uni-icons v-else color="#E8CEAD" type="checkmarkempty" size="18"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="rights-item item-bg">
|
<view class="rights-item item-bg">
|
||||||
<view class="title-left">每日报名上限</view>
|
<view class="title-left">每日报名上限</view>
|
||||||
<view class="value-item">20条</view>
|
<view class="value-item">20条</view>
|
||||||
@ -191,6 +252,7 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.member-card-box {
|
.member-card-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
padding-top: calc(90rpx + var(--status-bar-height));
|
||||||
color: #363636;
|
color: #363636;
|
||||||
font-size: 29rpx;
|
font-size: 29rpx;
|
||||||
background-color: #262626;
|
background-color: #262626;
|
||||||
@ -203,7 +265,8 @@
|
|||||||
|
|
||||||
.main-body {
|
.main-body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 57rpx);
|
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 90rpx);
|
||||||
|
overflow-y: scroll;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -310,10 +310,10 @@
|
|||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
border-radius: 35rpx;
|
border-radius: 35rpx;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 120rpx;
|
height: 100rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: url('/static/index/member-bg.png');
|
background: url('/static/index/member-bg.png');
|
||||||
background-size: contain;
|
background-size: 100% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
/* 图片居中显示 */
|
/* 图片居中显示 */
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -352,6 +352,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.points-box {
|
.points-box {
|
||||||
|
margin-top: 10rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="dl-detail-box">
|
<view class="dl-detail-box">
|
||||||
|
<navigation-bar-vue title="会员中心" style="width: 100%;" background-color="#ffffff"
|
||||||
|
title-color="#000000"></navigation-bar-vue>
|
||||||
|
<view class="notice-detail-last-box">
|
||||||
<!-- 博主信息 -->
|
<!-- 博主信息 -->
|
||||||
<view class="info-box">
|
<view class="info-box">
|
||||||
<image class="image" :src="userDetail.avatar?imageUrl+userDetail.avatar :'/static/images/profile.jpg'"
|
<image class="image" :src="userDetail.avatar?imageUrl+userDetail.avatar :'/static/images/profile.jpg'"
|
||||||
@ -136,7 +139,7 @@
|
|||||||
<image src="@/static/detail/share.png" mode="aspectFit"></image>
|
<image src="@/static/detail/share.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="null==userInfo" class="join-report">请登录后报名</view>
|
<view v-if="null==userInfo" class="join-report">请登录后报名</view>
|
||||||
<view v-else-if="ifBz" class="join-report">报名参加</view>
|
<view v-else-if="ifBz" @click="goReport()" class="join-report">报名参加</view>
|
||||||
<view v-else class="join-report" @click="changeUserType()">切换博主后报名</view>
|
<view v-else class="join-report" @click="changeUserType()">切换博主后报名</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 通告发布人能操作的 -->
|
<!-- 通告发布人能操作的 -->
|
||||||
@ -165,9 +168,11 @@
|
|||||||
:goodsTitle="goodsTitle" :shareImage="shareImage" :qrSize="qrSize" :qrUrl="qrUrl"
|
:goodsTitle="goodsTitle" :shareImage="shareImage" :qrSize="qrSize" :qrUrl="qrUrl"
|
||||||
@success="shareSuccess()" />
|
@success="shareSuccess()" />
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||||
import html2canvas from 'html2canvas';
|
import html2canvas from 'html2canvas';
|
||||||
import shareImages from '@/components/hj-placard/shareImages.vue'
|
import shareImages from '@/components/hj-placard/shareImages.vue'
|
||||||
import constant from '@/utils/constant';
|
import constant from '@/utils/constant';
|
||||||
@ -191,7 +196,8 @@
|
|||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
shareImages
|
shareImages,
|
||||||
|
navigationBarVue
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -424,6 +430,12 @@
|
|||||||
goHome() {
|
goHome() {
|
||||||
this.$tab.reLaunch('/pages/index')
|
this.$tab.reLaunch('/pages/index')
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 报名
|
||||||
|
*/
|
||||||
|
goReport() {
|
||||||
|
this.$tab.navigateTo('/pages/notice/report')
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 分享
|
* 分享
|
||||||
*/
|
*/
|
||||||
@ -482,8 +494,9 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.dl-detail-box {
|
.dl-detail-box {
|
||||||
padding: 20rpx 25rpx 130rpx 25rpx;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
padding-top: calc(90rpx + var(--status-bar-height));
|
||||||
|
background-color: white;
|
||||||
color: #363636;
|
color: #363636;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -493,6 +506,17 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
.notice-detail-last-box {
|
||||||
|
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 90rpx);
|
||||||
|
overflow-y: scroll;
|
||||||
|
padding: 30rpx 30rpx 115rpx 30rpx;
|
||||||
|
background-color: #F6F6F6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: self-start;
|
||||||
|
justify-content: start;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
.info-box {
|
.info-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 28rpx;
|
padding: 28rpx;
|
||||||
@ -797,4 +821,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -1,11 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="dingyue-box">
|
<view class="dingyue-box">
|
||||||
|
<navigation-bar-vue style="width: 100%;" title="报名" background-color="#FFFFFF"
|
||||||
|
title-color="#3D3D3D"></navigation-bar-vue>
|
||||||
|
<view class="select-box-dom">
|
||||||
<view class="line-box">
|
<view class="line-box">
|
||||||
<view class="dl-title">领域</view>
|
<view class="dl-title">领域</view>
|
||||||
<view class="dl-content">
|
<view class="dl-content">
|
||||||
<view class="line-row" v-for="(item,index) in bloggerTypeList">
|
<view class="line-row" v-for="(item,index) in bloggerTypeList">
|
||||||
<view v-for="(t,i) in item" :class="t.code==dataObj.bloggerTypeCode?'line-item click':'line-item'"
|
<view v-for="(t,i) in item"
|
||||||
|
:class="t.code==dataObj.bloggerTypeCode?'line-item click':'line-item'"
|
||||||
@click="changeChooseValue(t,'bloggerTypeCode')">
|
@click="changeChooseValue(t,'bloggerTypeCode')">
|
||||||
{{t.title}}
|
{{t.title}}
|
||||||
</view>
|
</view>
|
||||||
@ -29,7 +32,8 @@
|
|||||||
<view class="dl-title">通告类型</view>
|
<view class="dl-title">通告类型</view>
|
||||||
<view class="dl-content">
|
<view class="dl-content">
|
||||||
<view class="line-row" v-for="(item,index) in noticeTypeList">
|
<view class="line-row" v-for="(item,index) in noticeTypeList">
|
||||||
<view v-for="(t,i) in item" :class="t.code==dataObj.noticeTypeCode?'line-item click':'line-item'"
|
<view v-for="(t,i) in item"
|
||||||
|
:class="t.code==dataObj.noticeTypeCode?'line-item click':'line-item'"
|
||||||
@click="changeChooseValue(t,'noticeTypeCode')">
|
@click="changeChooseValue(t,'noticeTypeCode')">
|
||||||
{{t.title}}
|
{{t.title}}
|
||||||
</view>
|
</view>
|
||||||
@ -72,7 +76,8 @@
|
|||||||
<view class="dl-title">奖励</view>
|
<view class="dl-title">奖励</view>
|
||||||
<view class="dl-content">
|
<view class="dl-content">
|
||||||
<view class="line-row" v-for="(item,index) in rewardTypeList">
|
<view class="line-row" v-for="(item,index) in rewardTypeList">
|
||||||
<view v-for="(t,i) in item" :class="t.code==dataObj.rewardTypeCode?'line-item click':'line-item'"
|
<view v-for="(t,i) in item"
|
||||||
|
:class="t.code==dataObj.rewardTypeCode?'line-item click':'line-item'"
|
||||||
@click="changeChooseValue(t,'rewardTypeCode')">
|
@click="changeChooseValue(t,'rewardTypeCode')">
|
||||||
{{t.title}}
|
{{t.title}}
|
||||||
</view>
|
</view>
|
||||||
@ -107,8 +112,8 @@
|
|||||||
@change="switchChange($event,'newNotice')" />
|
@change="switchChange($event,'newNotice')" />
|
||||||
</view>
|
</view>
|
||||||
<view class="seting-view"><text>订阅通告主新通告</text>
|
<view class="seting-view"><text>订阅通告主新通告</text>
|
||||||
<switch v-if="dataObj.forkNotice" style="float: right;display: flex;" checked color="#FC1F3E"
|
<switch v-if="dataObj.forkNotice" style="float: right;display: flex;" checked
|
||||||
@change="switchChange($event,'forkNotice')" />
|
color="#FC1F3E" @change="switchChange($event,'forkNotice')" />
|
||||||
<switch v-else style="float: right;display: flex;" color="#FC1F3E"
|
<switch v-else style="float: right;display: flex;" color="#FC1F3E"
|
||||||
@change="switchChange($event,'forkNotice')" />
|
@change="switchChange($event,'forkNotice')" />
|
||||||
</view>
|
</view>
|
||||||
@ -118,6 +123,7 @@
|
|||||||
<view class="line-box" style="align-items: center;">
|
<view class="line-box" style="align-items: center;">
|
||||||
<view class="submit-box" @click="saveSet()">保存</view>
|
<view class="submit-box" @click="saveSet()">保存</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
<!-- 输入框示例 -->
|
<!-- 输入框示例 -->
|
||||||
<uni-popup ref="inputDialog" type="dialog" :key="keywordsValue">
|
<uni-popup ref="inputDialog" type="dialog" :key="keywordsValue">
|
||||||
<uni-popup-dialog ref="inputClose" mode="input" title="新增关键词" placeholder="请输入关键词"
|
<uni-popup-dialog ref="inputClose" mode="input" title="新增关键词" placeholder="请输入关键词"
|
||||||
@ -134,7 +140,11 @@
|
|||||||
getSubscribeSet,
|
getSubscribeSet,
|
||||||
saveSubscribe
|
saveSubscribe
|
||||||
} from '@/api/business/subscribeSet.js'
|
} from '@/api/business/subscribeSet.js'
|
||||||
|
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
navigationBarVue
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
//一行显示几个
|
//一行显示几个
|
||||||
@ -327,6 +337,7 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.dingyue-box {
|
.dingyue-box {
|
||||||
|
padding-top: calc(90rpx + var(--status-bar-height));
|
||||||
border-top: 1rpx solid #F4F4F4;
|
border-top: 1rpx solid #F4F4F4;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: #363636;
|
color: #363636;
|
||||||
@ -339,13 +350,18 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
.select-box-dom {
|
||||||
|
width: 100%;
|
||||||
|
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 90rpx);
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
.line-box {
|
.line-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 30rpx 30rpx 20rpx 30rpx;
|
padding: 30rpx 30rpx 20rpx 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: self-start;
|
align-items: self-start;
|
||||||
justify-content: inherit;
|
justify-content: flex-start;
|
||||||
|
|
||||||
.submit-box {
|
.submit-box {
|
||||||
padding: 15rpx 0;
|
padding: 15rpx 0;
|
||||||
@ -457,4 +473,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Binary file not shown.
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 29 KiB |
@ -462,10 +462,10 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
/* #ifdef APP-NVUE */
|
/* #ifdef APP-NVUE */
|
||||||
// 在 nvue 中,使用 margin-bottom error 信息会被隐藏
|
// 在 nvue 中,使用 margin-bottom error 信息会被隐藏
|
||||||
padding-bottom: 22px;
|
padding-bottom: 20rpx;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
/* #ifndef APP-NVUE */
|
/* #ifndef APP-NVUE */
|
||||||
margin-bottom: 22px;
|
margin-bottom: 20rpx;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user