1
This commit is contained in:
parent
49269503d1
commit
96f3578fa9
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="dl-notice-box-index">
|
||||
<!-- 标题 -->
|
||||
<view class="dl-title">
|
||||
<view :class="['dl-title','01'==nowUserType?'dl-tgz':'']">
|
||||
<view class="right-text">
|
||||
<text class="dl-text">通告</text>
|
||||
</view>
|
||||
@ -208,6 +208,12 @@
|
||||
treeCity
|
||||
} from '@/api/business/base.js'
|
||||
export default {
|
||||
props: {
|
||||
nowUserType: {
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
components: {
|
||||
noticeItem
|
||||
},
|
||||
@ -616,7 +622,7 @@
|
||||
}
|
||||
|
||||
.dl-notice-box-index {
|
||||
padding-top: var(--status-bar-height);
|
||||
// padding-top: var(--status-bar-height);
|
||||
width: 100%;
|
||||
color: #363636;
|
||||
background-color: white;
|
||||
@ -628,13 +634,20 @@
|
||||
justify-content: start;
|
||||
position: relative;
|
||||
|
||||
.dl-tgz {
|
||||
background-color: #4260ff !important;
|
||||
}
|
||||
|
||||
.dl-title {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
padding: 25rpx 10rpx 10rpx 15rpx;
|
||||
padding-top: calc(var(--status-bar-height) + 25rpx);
|
||||
padding-left: 15rpx;
|
||||
padding-right: 10rpx;
|
||||
padding-bottom: 10rpx;
|
||||
// padding: 25rpx 10rpx 10rpx 15rpx;
|
||||
border-bottom: 1px solid #F4F4F4;
|
||||
|
||||
|
||||
|
||||
@ -3,7 +3,8 @@
|
||||
<!-- 主体区域 -->
|
||||
<view class="content-body">
|
||||
<!-- 通告列表页 -->
|
||||
<notice-index ref="noticeIndex" v-if="'home'==menuCode" @openVip="openVip"></notice-index>
|
||||
<notice-index ref="noticeIndex" :nowUserType="nowUserType" v-if="'home'==menuCode"
|
||||
@openVip="openVip"></notice-index>
|
||||
<mine-index ref="minePage" :key="nowUserType" :nowUserType="nowUserType" v-if="'my'==menuCode"
|
||||
@refreshUserType="refreshUserType()"></mine-index>
|
||||
<subscribe v-if="'dingyue'==menuCode"></subscribe>
|
||||
@ -103,6 +104,7 @@
|
||||
this.refreshUserType()
|
||||
},
|
||||
onShow() {
|
||||
this.$refs.minePage.getDetail()
|
||||
this.refreshUserType()
|
||||
setTimeout(() => {
|
||||
this.checkUserIfLogin()
|
||||
|
||||
@ -342,8 +342,6 @@
|
||||
padding-top: calc(90rpx + var(--status-bar-height));
|
||||
border-top: 1rpx solid #F4F4F4;
|
||||
background-color: white;
|
||||
padding-left: 30rpx;
|
||||
padding-right: 30rpx;
|
||||
width: 100%;
|
||||
color: #363636;
|
||||
font-size: 30rpx;
|
||||
@ -358,7 +356,7 @@
|
||||
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 95rpx);
|
||||
overflow-y: scroll;
|
||||
width: 100%;
|
||||
padding: 20rpx;
|
||||
padding: 20rpx 30rpx;
|
||||
background-color: white;
|
||||
border-radius: 20rpx;
|
||||
display: flex;
|
||||
|
||||
@ -25,10 +25,10 @@
|
||||
<view class="guanzhu" v-if="isLove" @click="forkUser('0')">取消关注</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="bozhu-type-box">-->
|
||||
<!-- <view class="item-dom">好物</view>-->
|
||||
<!-- <view class="item-dom">颜值</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="bozhu-type-box">-->
|
||||
<!-- <view class="item-dom">好物</view>-->
|
||||
<!-- <view class="item-dom">颜值</view>-->
|
||||
<!-- </view>-->
|
||||
<view class="pingjia-box">
|
||||
<view class="pingjia-content">
|
||||
<view class="top-title">
|
||||
@ -36,7 +36,9 @@
|
||||
合作博主评价:
|
||||
</view>
|
||||
<view class="item-box">
|
||||
<view v-for="item in member.evaluates" class="item-dom">{{item.evaluate}}(<text>{{ item.num }}</text>)</view>
|
||||
<view v-for="item in member.evaluates" class="item-dom">
|
||||
{{item.evaluate}}(<text>{{ item.num }}</text>)
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -47,7 +49,7 @@
|
||||
<view class="data-list-box">
|
||||
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower="onReachBottomCus" refresher-enabled
|
||||
@refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered">
|
||||
<notice-item v-if="dataList.length>0" :dataList="dataList" ></notice-item>
|
||||
<notice-item v-if="dataList.length>0" :dataList="dataList"></notice-item>
|
||||
<view style="text-align: center" v-if="dataList.length==0">
|
||||
<image class="" src="@/static/images/nothing.png"></image>
|
||||
</view>
|
||||
@ -58,13 +60,21 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {toast} from '@/utils/common.js'
|
||||
import {queryListByUserId} from '@/api/business/notice.js'
|
||||
import {announcerDetail} from '@/api/business/member.js'
|
||||
import {
|
||||
toast
|
||||
} from '@/utils/common.js'
|
||||
import {
|
||||
queryListByUserId
|
||||
} from '@/api/business/notice.js'
|
||||
import {
|
||||
announcerDetail
|
||||
} from '@/api/business/member.js'
|
||||
import noticeItem from '@/pages/components/notice-item.vue'
|
||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||
import config from '@/config'
|
||||
import {postForkUser} from '@/api/business/base.js'
|
||||
import {
|
||||
postForkUser
|
||||
} from '@/api/business/base.js'
|
||||
export default {
|
||||
components: {
|
||||
navigationBarVue,
|
||||
@ -73,15 +83,15 @@
|
||||
data() {
|
||||
return {
|
||||
imageUrl: '',
|
||||
member:{},
|
||||
member: {},
|
||||
dataList: ['', ''],
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
userId:null,
|
||||
status:'进行中',
|
||||
userId: null,
|
||||
status: '进行中',
|
||||
},
|
||||
userId:null,
|
||||
userId: null,
|
||||
total: 0,
|
||||
//下来刷新状态
|
||||
isTriggered: false,
|
||||
@ -90,7 +100,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(option){
|
||||
onLoad(option) {
|
||||
this.userId = option.userId
|
||||
this.queryParams.userId = option.userId
|
||||
this.isLove = option.isLove
|
||||
@ -127,19 +137,19 @@
|
||||
},
|
||||
|
||||
/**出初始化通告主详情*/
|
||||
initMember(){
|
||||
announcerDetail(this.userId).then(res=>{
|
||||
if (res.code ==200){
|
||||
initMember() {
|
||||
announcerDetail(this.userId).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.member = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**初始化通告列表*/
|
||||
initNotice(){
|
||||
queryListByUserId(this.queryParams).then(res=>{
|
||||
initNotice() {
|
||||
queryListByUserId(this.queryParams).then(res => {
|
||||
this.isTriggered = false
|
||||
if (res.code == 200){
|
||||
if (res.code == 200) {
|
||||
if (this.queryParams.pageNum == 1) {
|
||||
this.dataList = res.data.records
|
||||
} else {
|
||||
@ -192,6 +202,8 @@
|
||||
position: relative;
|
||||
|
||||
.choose-detail {
|
||||
height: calc(100vh - 150rpx);
|
||||
overflow-y: scroll;
|
||||
border-top: 1rpx solid #F4F4F4;
|
||||
width: 100%;
|
||||
background-color: #F2F2F2;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="mine-container">
|
||||
<!-- 切换身份 -->
|
||||
<view :class="['dl-title',ifHasCard?'has-member-card':''] ">
|
||||
<view :class="['dl-title','01'==localUserType?'dl-tgz':''] ">
|
||||
<view class="left-search" @click="changeUserType('01'==localUserType?'02':'01')">
|
||||
<image v-if="!ifHasCard" class="dl-image" src="@/static/mine/qiehuan.png" mode="aspectFit"></image>
|
||||
<image v-else class="dl-image" src="@/static/mine/change_member.png" mode="aspectFit"></image>
|
||||
@ -9,7 +9,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 头像信息 -->
|
||||
<view :class="['dl-person-box',ifHasCard?'has-member-card':''] ">
|
||||
<view :class="['dl-person-box'] ">
|
||||
<view class="user-image-box">
|
||||
<view class="dl-image-box">
|
||||
<image v-if="!userInfo.avatar" class="touxiang" src="@/static/images/profile.jpg"
|
||||
@ -300,7 +300,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
getCommunity(type, key){
|
||||
getCommunity(type, key) {
|
||||
this.type = type
|
||||
this.popupImgUrl = getStrData(key)
|
||||
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
|
||||
@ -393,7 +393,7 @@
|
||||
.userId)
|
||||
},
|
||||
viewNewPeople() {
|
||||
if (this.localUserType == '02'){
|
||||
if (this.localUserType == '02') {
|
||||
uni.downloadFile({
|
||||
url: 'https://www.ddtg.site/bz.docx',
|
||||
success: function(res) {
|
||||
@ -491,6 +491,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.dl-tgz {
|
||||
background-color: #4260ff !important;
|
||||
}
|
||||
|
||||
|
||||
.dl-person-box {
|
||||
width: 100%;
|
||||
@ -611,12 +615,14 @@
|
||||
justify-content: center;
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
background: url('/static/index/member-bg.png');
|
||||
background-size: 100% 100%;
|
||||
background-position: center;
|
||||
/* 图片居中显示 */
|
||||
background-repeat: no-repeat;
|
||||
/* 不重复背景图片 */
|
||||
color: #ffffff;
|
||||
background-color: #1c1c1c;
|
||||
// background: url('/static/index/member-bg.png');
|
||||
// background-size: 100% 100%;
|
||||
// /* 图片居中显示 */
|
||||
// background-position: center;
|
||||
// /* 不重复背景图片 */
|
||||
// background-repeat: no-repeat;
|
||||
|
||||
.dl-left {
|
||||
display: flex;
|
||||
@ -624,7 +630,7 @@
|
||||
padding-left: 30rpx;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color: #623109;
|
||||
// color: #623109;
|
||||
justify-content: left;
|
||||
|
||||
.dl-icon {
|
||||
@ -642,8 +648,8 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #F5D8A5;
|
||||
color: #623109;
|
||||
background: linear-gradient(to right, #f4e6a5, #f2c479);
|
||||
color: #461c00;
|
||||
padding: 10rpx 25rpx;
|
||||
float: right;
|
||||
border-radius: 30rpx;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue
Block a user