update 问题修复

This commit is contained in:
zengBin 2024-09-30 10:57:38 +08:00
parent 049ab03da5
commit 2b853aea1d
6 changed files with 96 additions and 92 deletions

View File

@ -201,7 +201,6 @@ scroll-view {
}
</style>
<template>
<block v-if="item.type != 'vote'">
<block v-for="(item,index) in list" :key="index">
<view class="~f-fl ~ui-pl-30 ~ui-pr-30 ~ui-pt-30 ~ui-relative" @tap="jumpPath(`/pages/dynamic/dynamicDetail?id=${item.id}`)">
<view class="ui-user-pic" style="{{'background-image:url(' + (item.user.photo || 'https://image.fulllinkai.com/202203/09/cc1c73eb1a4941fef25a15cd1ff2f9df.png') + ')'}}" @tap.stop="jumpPath(`/pages/home/information?id=${item.user_id}`)"></view>
@ -215,7 +214,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>
@ -282,7 +281,6 @@ scroll-view {
</view>
<view class="ui-line"></view>
</block>
</block>
</template>
<script>
import wepy from '@wepy/core'
@ -415,7 +413,8 @@ scroll-view {
vm.$emit('signInVerify')
return
}
if (vm.from != 'dynamic' && type != 'vote') {
console.log(vm.from, url, type, '7777')
if (vm.from != 'dynamic' && type != 'vote' && vm.from != 'hotTopic') {
return
}
wx.navigateTo({url: url})

View File

@ -66,6 +66,7 @@ wepy.page({
vm.$showLoading('加载中...')
vm.$get({url: `${service.host}/moment/${vm.id}/comment/list?type=moment&nopage=1`}).then(({code, data}) => {
if (code === 0) {
if (data && data.length > 0) {
data.forEach((item) => {
item.created_at = commentTimeHandle(item.created_at)
item.comment = item.comment.split('?')[0]
@ -74,6 +75,7 @@ wepy.page({
vm.list = data
console.log(vm.list, '////')
}
}
wx.hideLoading()
}).catch(err => {
wx.hideLoading()

View File

@ -348,9 +348,13 @@ wepy.page({
topic_id: vm.id * 1,
content: vm.value,
photos: vm.imgList,
address: vm.address,
address: vm.address == '我在哪里' ? '' : vm.address,
is_hot: vm.hot * 1
}
if (!vm.value) {
vm.$showToast('请输入动态内容')
return
}
if (vm.throttle) {
vm.throttle = false
vm.$post({url: `${service.host}/moment/add`, data}).then(({code}) => {

View File

@ -191,6 +191,7 @@ wepy.page({
vm.$showLoading('加载中...')
vm.$get({url: `${service.host}/vote/${vm.id}/comment/list`}).then(({code, data}) => {
if (code === 0) {
if (data && data.length > 0) {
data.forEach((item) => {
item.created_at = commentTimeHandle(item.created_at)
item.comment = item.comment.split('?')[0]
@ -199,6 +200,7 @@ wepy.page({
vm.list = data
console.log(vm.list, '////')
}
}
wx.hideLoading()
}).catch(err => {
wx.hideLoading()

View File

@ -386,8 +386,7 @@ page {
<view class="age {{item.user.sex == 1?'sex1':''}}">
<image v-if="item.user.sex == 1" class="img" src="https://images.ufutx.com/202101/27/1fc8381ccac933612936bb617a5ae906.png" alt=""/>
<image v-else class="img" src="https://images.ufutx.com/202101/27/f17913a8fc57de75dc0046db6c317b35.png" alt=""/>
<view v-if="item.user.age == null">0</view>
<view v-else>{{ item.profile.age }}</view>
<view>{{ item.profile.age || 0 }}</view>
</view>
</block>
</view>

View File

@ -197,8 +197,6 @@ page {
<dynamicList :dynamicList="dynamicList" @changeSelect="changeSelect" @signInVerify="signInVerify" :from="'dynamic'"></dynamicList>
</scroll-view>
</swiper-item>
<swiper-item wx:key="id" style="-webkit-overflow-scrolling:touch"></swiper-item>
<swiper-item wx:key="id" style="-webkit-overflow-scrolling:touch"></swiper-item>
</swiper>
</view>
</view>