update 问题修改

This commit is contained in:
zengBin 2024-10-18 09:34:14 +08:00
parent bcbd1a0552
commit c5704e6397
13 changed files with 403 additions and 25 deletions

View File

@ -186,6 +186,7 @@ subPackages: [
'review',
'systemNews',
'visitor',
'visitorNum',
]
},
{
@ -231,7 +232,7 @@ navigationBarTextStyle: 'black'
},
tabBar: {
color: '#999999',
selectedColor: '#5AC7A0',
selectedColor: '#333333',
backgroundColor: '#ffffff',
borderStyle: 'black',
list: [

View File

@ -19,7 +19,7 @@
<view class="~cu-bar ~fixed" :style="{height: CustomBar + 'px', paddingTop: StatusBar + 'px', background: bgColor, zIndex: 999}">
<view class="m_search ~f-fcl">
<image class="m_search_icon" src="https://images.ufutx.com/202106/19/c607aaf49440b0df3308d6e048fd9ad7.png" mode="aspectFit" lazy-load="false"></image>
<input disabled type="text" :placeholder="searchName">
<view class="~color999">{{searchName}}</view>
</view>
</view>
</view>

View File

@ -161,7 +161,7 @@ scroll-view {
font-size: 24rpx;
color: #666666;
position: relative;
margin-right: 50rpx;
margin-left: 50rpx;
.ui-like-icon{
width: 30rpx;
@ -191,6 +191,7 @@ scroll-view {
.ui-cuIcon-moreandroid{
width: 6rpx;
height: 26rpx;
display: block;
}
}
@ -214,7 +215,7 @@ scroll-view {
{{item.work_user_tag}}
</view>
</view>
<!-- <image class="referencesIcon" src="https://image.fulllinkai.com/202207/19/7e78a1dd367f1250d4cba4e85bfd60f1.png" mode="widthFix" v-if="item.user.type != 'single'"></image>-->
<image class="referencesIcon" src="https://image.fulllinkai.com/202207/19/7e78a1dd367f1250d4cba4e85bfd60f1.png" mode="widthFix" v-if="item.user.type != 'single'"></image>
<view class="~font_24 ~ui-ml-24 ~color-theme" v-if="item.vote_id > 0">
参与了投票:
</view>
@ -273,8 +274,8 @@ scroll-view {
<image v-else class="ui-img2_gif" src="{{item.is_like ? gifurl : 'https://images.ufutx.com/202106/07/b227f3ecf9cbd080fb814450b667b5ce.gif'}}"></image>
{{ item.liker_count }}
</view>
<view class="~ui-pl-20 ~ui-pr-6" style="margin-right: -20rpx">
<image class="ui-cuIcon-moreandroid" src="https://image.fulllinkai.com/202409/05/fdb58839d1909d75f636941d6aea6cb5.png" mode="widthFix" @tap.stop="changeOperation(item, index)"></image>
<view class="~ui-pl-20 ~ui-pr-20" style="margin-right: -16rpx" @tap.stop="changeOperation(item, index)">
<image class="ui-cuIcon-moreandroid" src="https://image.fulllinkai.com/202409/05/fdb58839d1909d75f636941d6aea6cb5.png" mode="widthFix"></image>
</view>
</view>
</view>
@ -305,9 +306,11 @@ scroll-view {
let vm = this
if (vm.dynamicList && vm.dynamicList.length > 0) {
vm.list = vm.dynamicList
if (vm.from != 'dynamicDetail') {
vm.textAll(vm.dynamicList)
}
}
}
},
data: {
list: [],

View File

@ -283,7 +283,7 @@ page {
</block>
<block v-if="uploadType == 'video'">
<view class="relative_bot">
<!-- <video id="video" referrer-policy="origin" src="{{play_url}}" direction="0" controls="{{true}}" class="videoCenter"></video>-->
<video id="video" referrer-policy="origin" src="{{play_url}}" direction="0" controls="{{true}}" class="videoCenter"></video>
<view class="close_icon" @tap="closeFn"></view>
</view>
</block>
@ -353,7 +353,6 @@ wepy.page({
}
if (!vm.value) {
vm.$showToast('请输入动态内容')
return
}
if (vm.throttle) {
vm.throttle = false
@ -362,6 +361,13 @@ wepy.page({
if (code == 0) {
vm.$showToast('动态已发布')
setTimeout(() => {
// 发布成功后返回列表并且切换到最新tab
const pages = getCurrentPages()
const prevPage = pages[pages.length - 2]
prevPage.$wepy.dynamicTabsIndex = 1
prevPage.$wepy.page = 1
prevPage.$wepy.scrollTopHandle = -1
prevPage.$wepy.getList()
wx.navigateBack({delta: 1})
}, 1200)
}

View File

@ -126,8 +126,8 @@ wepy.page({
vm.$get({url: `${service.host}/moment/topic/list`, data}).then(({code, data}) => {
if (code === 0) {
if (vm.list.length === 0 || vm.page === 1) {
vm.list = data.data
vm.arr = data.data
vm.list = JSON.parse(JSON.stringify(data.data))
vm.arr = JSON.parse(JSON.stringify(data.data))
} else {
data.data.map(function (item) {
vm.list.push(item)

View File

@ -61,7 +61,7 @@ page {
width: 336rpx;
height: 336rpx;
border-radius: 16rpx;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}
.recommended_user_data{
color: #fff;

View File

@ -989,6 +989,9 @@ wepy.page({
// 在当前页面接收到别人发送过来的消息
reception(e) {
let vm = this
if (e.to != vm.otherUserId) {
return
}
// 标记IM消息已读
vm.sendMsgReceipt()
if (e.type == 'text' && /\[[^\]]+\]/.test(e.body)) {
@ -997,7 +1000,6 @@ wepy.page({
app.globalData.nim.user.getUsersNameCardFromServer({
accounts: [e.from]
}).then((res) => {
console.log(res, e, '777222')
vm.msgList.push({
text: e.body,
attach: vm.calculatePic(e.attach, e.type),

View File

@ -308,7 +308,7 @@ page {
</view>
</view>
<view class="color-999">{{item.create_time}}</view>
<view class="ui-visitor-detail-btn font_26 color999" v-if="userInfo.rank_id">来访{{item.count}}次</view>
<view class="ui-visitor-detail-btn font_26 color999" v-if="userInfo.rank_id" @tap.stop="jumpDetail(item)">来访{{item.count}}次</view>
</view>
<view class="u_vertical"></view>
</view>
@ -524,6 +524,9 @@ wepy.page({
return
}
wx.navigateTo({url: `/pages/home/information?id=${e.id}`})
},
jumpDetail(e) {
wx.navigateTo({url: `/pages/news/visitorNum?id=${e.id}`})
}
},
// 上拉获取更多数据

View File

@ -0,0 +1,347 @@
<style lang="less" scoped>
@import url(../../styles/theme.less);
page {
background-color: #ffffff;
}
.ui-container{
.ui-no-data-icon{
width: 250rpx;
height: 250rpx;
display: block;
vertical-align: top;
margin: 36vh auto 0 auto;
}
.m_vc_lst {
padding: 30rpx 30rpx 60rpx;
.u_vc_lst {
border-radius: 16rpx;
margin-bottom: 30rpx;
.u_vclst_img {
width: 100rpx;
height: 100rpx;
border-radius: 200rpx;
}
.u_vclst_t_box {
margin-left: 16rpx;
.u_vclst_name {
max-width:200rpx;
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
.u_vclst_a_box {
margin-left: 6rpx;
padding: 0 12rpx;
height: 36rpx;
border-radius: 16rpx;
}
.age_g {
color: #ED3866;
background: #FFF4F7;
border: 2rpx solid #FFA9C0;
}
.age_b {
color: #2AAFF5;
background: #EEF9FF;
border: 2rpx solid #80D3FF;
}
.a_sex_img {
margin-right: 4rpx;
height: 20rpx;
width: 20rpx;
}
}
.u_vertical {
margin-top: 20rpx;
margin-left: 116rpx;
width: 546rpx;
height: 2rpx;
background-color: #F5F5F5;
}
.u_vclst_img.blur {
-webkit-filter: blur(8px);
-moz-filter: blur(8px);
-ms-filter: blur(8px);
filter: blur(8px);
overflow: hidden;
}
}
.ui-filter{
filter: blur(4px) contrast(.8);
}
}
.m_fans_lst {
padding: 0 30rpx 60rpx;
flex-wrap: wrap;
align-content: stretch;
.u_fans_lst:nth-child(3n+2) {
margin-left: 22rpx;
margin-right: 22rpx;
}
.u_fans_lst {
width: 215rpx;
height: 215rpx;
border-radius: 16rpx;
overflow: hidden;
margin-bottom: 30rpx;
position: relative;
.u_fans_img {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
}
.u_fans_img.blur {
-webkit-filter: blur(8px);
-moz-filter: blur(8px);
-ms-filter: blur(8px);
filter: blur(8px);
overflow: hidden;
}
.ui-fans-icon{
width: 140rpx;
height: 34rpx;
top: 12rpx;
right: 12rpx;
position: absolute;
}
.u_vclst_ct {
position: absolute;
padding: 6rpx 0 0 12rpx;
bottom: 0;
left: 0;
width: 100%;
height: 78rpx;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.4) 100%);
z-index: 99;
.u_vclst_name {
line-height: 28rpx;
width: 190rpx;
}
.u_vclst_add {
width: 150rpx;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
padding-left: 10rpx;
.icon-location {
padding-right: 2rpx;
font-size: 18rpx;
}
}
}
}
}
}
.cu-dialog{
width: 600rpx;
height: 660rpx;
border-radius: 30rpx;
position: relative;
overflow:initial;
.main{
display: flex;
justify-content: center;
align-items: center;
flex-flow: column;
.header{
display: flex;
justify-content: center;
align-items: center;
flex-flow: column;
.header-img{
width: 180rpx;
height: 180rpx;
border-radius: 50%;
vertical-align: middle;
filter:blur(4px) contrast(.8);
overflow: hidden;
}
.ui-city{
height: 40rpx;
font-size: 28rpx;
color: #333333;
line-height: 40rpx;
margin-top: 16rpx;
}
}
.ui-text{
height: 44rpx;
font-size: 32rpx;
font-weight: 600;
color: #333333;
line-height: 44rpx;
text-align: center;
margin-top: 84rpx;
}
.ui-img{
width: 418rpx;
height: 120rpx;
margin-top: 74rpx;
}
}
.actions {
position: absolute;
bottom: -100rpx;
left: 0;
right: 0;
margin: auto;
width: 48rpx;
height: 48rpx;
}
}
.m_unl_bu {
width: 100%;
position: fixed;
bottom: 60rpx;
left: 0;
z-index: 0;
.u_unl_img {
width: 616rpx;
height: 120rpx;
}
}
</style>
<template>
<view class="ui-visitor">
<view class="ui-container">
<image v-if="list.length == 0 && loading" class="ui-no-data-icon" src="https://images.ufutx.com/202104/13/1737964f7c98cbf65d728137dc2792eb.png" mode="aspectFill"></image>
<block v-else>
<view class="m_vc_lst">
<block v-for="(item,index) in list" :key="index">
<view class="u_vc_lst" @longpress="deleteRecord(item, index)" @tap="jumpPath(item, index)">
<view class="f-fbc">
<view class="f-fc">
<image class="u_vclst_img" :src="item.photo" mode="aspectFill" @tap.stop="gotofriends(item, index)"></image>
<view class="u_vclst_t_box">
<view class="f-fc">
<view class="u_vclst_name ellipsis_1">{{item.nickname}}</view>
<view class="u_vclst_a_box f-fc {{ item.sex == 2 ? 'age_g' : 'age_b'}} font_22" v-if="item.sex == 2">
<image v-if="item.sex == 2" class="a_sex_img" src="https://image.fulllinkai.com/202208/09/dfed05b3e1e1880a3a6f81806d99e9de.png" mode="widthFix"></image>
<image v-else class="a_sex_img" src="https://image.fulllinkai.com/202208/09/dfed05b3e1e1880a3a6f81806d99e9de.png" mode="widthFix"></image>
<view>{{item.year}}</view>
</view>
</view>
<view class="f-fc">
<view class="u_state">{{item.stature || ''}} {{item.city || ''}}</view>
</view>
</view>
</view>
<view class="color-999">{{item.create_time}}</view>
</view>
<view class="u_vertical"></view>
</view>
</block>
</view>
</block>
</view>
</view>
</template>
<script>
import wepy from '@wepy/core'
import https from '../../mixins/https'
import base from '../../mixins/base'
import utils from '../../utils/util'
import {service} from '../../config'
wepy.page({
config: {},
mixins: [https, base],
data: {
id: '',
no_more: false,
loading: false,
page: 1,
list: []
},
methods: {
// 访客列表
getList() {
let vm = this
let data = {
page: vm.page,
type: 'single',
size: 15
}
vm.$showLoading('加载中...')
vm.$get({url: `${service.host}/preview/other/${vm.id}/logs`, data}).then(({code, data}) => {
if (code === 0) {
data.data.forEach((item) => {
item.create_time = utils.commentTimeHandle(item.create_time)
})
if (vm.list.length === 0 || vm.page === 1) {
vm.list = data.data
} else {
data.data.map(function (item) {
vm.list.push(item)
})
}
if (vm.list.length < 15 || data.data.length < 15) {
vm.no_more = true
}
setTimeout(() => {
vm.loading = true
}, 500)
vm.page++
}
wx.hideLoading()
}).catch(err => {
wx.hideLoading()
console.log(err)
})
},
// 跳转用户详情没有vip时点击第四个用户弹框提示
jumpPath(e) {
wx.navigateTo({url: `/pages/home/information?id=${e.id}`})
}
},
// 上拉获取更多数据
onReachBottom() {
let vm = this
if (!vm.no_more) {
vm.getList()
}
},
// 下拉刷新
onPullDownRefresh() {
let vm = this
vm.page = 1
vm.no_more = false
vm.getList()
},
onShow() {
},
onLoad(e) {
let vm = this
vm.id = e.id
vm.getList()
}
})
</script>
<config>
{
navigationBarTitleText: '来访记录',
enablePullDownRefresh: true,
backgroundColorTop: '#ffffff',
backgroundColorBottom: '#ffffff',
}
</config>

View File

@ -24,9 +24,9 @@ page {
}
.ui-more {
width: 125rpx;
height: 34rpx;
font-size: 24rpx;
width: fit-content;
height: 36rpx;
font-size: 26rpx;
font-weight: 400;
color: #f33b6c;
line-height: 34rpx;

View File

@ -328,7 +328,7 @@ page {
</view>
</block>
<block v-else>
<view class="t_r_btn text-center f-fcc" @tap="goBackFirst">
<view class="t_r_btn text-center f-fcc" @tap="backFirst">
<image src="https://image.fulllinkai.com/202206/09/c68f69b89269c604a3671b81ff1c14a5.png" class="_icon" mode="widthFix"></image>
回看今日推荐
</view>
@ -383,7 +383,7 @@ page {
<view class="f-fbc d_user_data ui-mt-18">
<view class="f-fbc ">
<span class="bold color333 font_32 ellipsis_1" style="max-width: 30vw;">{{ item.nickname }}</span>
<image src="https://image.fulllinkai.com/202206/10/d0913df8b234057229ab3dd102497a50.png" class="vip_icon" mode="widthFix" v-if="item.rank_id"></image>
<image src="https://image.fulllinkai.com/202206/10/d0913df8b234057229ab3dd102497a50.png" class="vip_icon" mode="widthFix" v-if="item.is_rank"></image>
<image src="https://image.fulllinkai.com/202206/10/bfad7e2a8e86cf7912ff280234a35606.png" class="vip_icon" mode="widthFix" v-else></image>
<image src="https://image.fulllinkai.com/202206/10/5cb84879a0dc81757dc526ebeb61bc0e.png" class="real_icon" mode="widthFix" v-if="item.is_approved == 1"></image>
<image src="https://image.fulllinkai.com/202206/10/279ade8a42810a91eb80a0717823dffa.png" class="reality_icon" mode="widthFix" v-if="item.is_real_approved == 1"></image>
@ -523,7 +523,7 @@ wepy.page({
vm.squareList.push(item)
})
}
if (vm.squareList.length < 15 || data.data.length < 15) {
if (vm.squarePage == data.total_pages) {
vm.no_more = true
}
vm.squarePage++
@ -612,6 +612,16 @@ wepy.page({
vm.cardCur = e.$wx.detail.current
}
},
// 初始化每日推荐
refreshFn() {
let vm = this
vm.getEveryday()
},
// 每日推荐回到第一张
backFirst() {
let vm = this
vm.cardCur = 0
},
jumpPath(url) {
let vm = this
// 校验是否完成注册资料

View File

@ -150,7 +150,7 @@ page {
</style>
<template>
<view class="ui-news">
<cuCustom @tap="jumpPath({path: '/pages/news/newsSearch'})"></cuCustom>
<cuCustom :searchName="'搜索昵称'" @tap="jumpPath({path: '/pages/news/newsSearch'})"></cuCustom>
<view class="ui-top-menu-list f-fbc">
<view class="text-center ui-top-menu-item ui-relative" v-for="(item,index) in menuList" :key="index" @tap="jumpPath(item)">
<image class="ui-top-menu-icon ui-relative" :src="item.icon" mode="aspectFit">
@ -167,7 +167,7 @@ page {
<block v-else>
<view class="ui-touch-item" :class="{'touch-move-active' : item.isTouchMove}" data-index="{{index}}" bindtouchstart="touchstart" bindtouchmove="touchmove" v-for="(item,index) in list" :key="index" @tap="jumpChatPath(item, 'chat')">
<view class="ui-content">
<image class="cu-avatar round lg flo_l" :src="item.other_photo" mode="aspectFit" @tap.stop="jumpChatPath(item, 'user')"></image>
<image class="cu-avatar round lg flo_l" :src="item.other_photo" mode="aspectFill" @tap.stop="jumpChatPath(item, 'user')"></image>
<view class="ui-messageBox flo_l">
<view class="font_30 color333 ui-name ellipsis_1 f-fcl">
{{item.other_nickname}}
@ -279,12 +279,15 @@ wepy.page({
j.new_count = 0
j.muteTeam = i.muteTeam
j.muteState = true
} else if (j.chat_type == 'group_chat') {
}
})
})
}
vm.list.forEach((j) => {
if (j.chat_type == 'group_chat') {
j.new_count = vm.getGroupCount(j.join_to_id)
}
})
})
}
}
}
setTimeout(() => {

View File

@ -81,6 +81,10 @@ const IM = (account, token) => {
let notiTypeData = { muteTeam: false }
if (wx.getStorageSync('muteNotList') && wx.getStorageSync('muteNotList').length > 0) {
notiTypeData = wx.getStorageSync('muteNotList').find((item) => item.teamId == e.to)
if (!notiTypeData) {
notiTypeData = { muteTeam: false }
}
console.log(notiTypeData, '77')
}
if (e.scene == 'team') {
// 判断是否是@功能
@ -100,7 +104,6 @@ const IM = (account, token) => {
if (e.attach && (e.attach.type === 'leaveTeam' || e.attach.type === 'dismissTeam' || e.attach.type === 'removeTeamMembers' || e.attach.type === 'addTeamMembers')) {
} else {
if (newTeamCount.length > 0) {
console.log(newTeamCount, notiTypeData, '2222')
teamCount = teamCount.map(item => {
if (item.id == newTeamCount[0].id && !notiTypeData.muteTeam) {
item.unread += 1