update 问题修复
This commit is contained in:
parent
049ab03da5
commit
2b853aea1d
@ -201,7 +201,6 @@ scroll-view {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<block v-if="item.type != 'vote'">
|
|
||||||
<block v-for="(item,index) in list" :key="index">
|
<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="~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>
|
<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}}
|
{{item.work_user_tag}}
|
||||||
</view>
|
</view>
|
||||||
</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 class="~font_24 ~ui-ml-24 ~color-theme" v-if="item.vote_id > 0">
|
||||||
参与了投票:
|
参与了投票:
|
||||||
</view>
|
</view>
|
||||||
@ -282,7 +281,6 @@ scroll-view {
|
|||||||
</view>
|
</view>
|
||||||
<view class="ui-line"></view>
|
<view class="ui-line"></view>
|
||||||
</block>
|
</block>
|
||||||
</block>
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import wepy from '@wepy/core'
|
import wepy from '@wepy/core'
|
||||||
@ -415,7 +413,8 @@ scroll-view {
|
|||||||
vm.$emit('signInVerify')
|
vm.$emit('signInVerify')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (vm.from != 'dynamic' && type != 'vote') {
|
console.log(vm.from, url, type, '7777')
|
||||||
|
if (vm.from != 'dynamic' && type != 'vote' && vm.from != 'hotTopic') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
wx.navigateTo({url: url})
|
wx.navigateTo({url: url})
|
||||||
|
|||||||
@ -66,6 +66,7 @@ wepy.page({
|
|||||||
vm.$showLoading('加载中...')
|
vm.$showLoading('加载中...')
|
||||||
vm.$get({url: `${service.host}/moment/${vm.id}/comment/list?type=moment&nopage=1`}).then(({code, data}) => {
|
vm.$get({url: `${service.host}/moment/${vm.id}/comment/list?type=moment&nopage=1`}).then(({code, data}) => {
|
||||||
if (code === 0) {
|
if (code === 0) {
|
||||||
|
if (data && data.length > 0) {
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.created_at = commentTimeHandle(item.created_at)
|
item.created_at = commentTimeHandle(item.created_at)
|
||||||
item.comment = item.comment.split('?')[0]
|
item.comment = item.comment.split('?')[0]
|
||||||
@ -74,6 +75,7 @@ wepy.page({
|
|||||||
vm.list = data
|
vm.list = data
|
||||||
console.log(vm.list, '////')
|
console.log(vm.list, '////')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
wx.hideLoading()
|
wx.hideLoading()
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
wx.hideLoading()
|
wx.hideLoading()
|
||||||
|
|||||||
@ -348,9 +348,13 @@ wepy.page({
|
|||||||
topic_id: vm.id * 1,
|
topic_id: vm.id * 1,
|
||||||
content: vm.value,
|
content: vm.value,
|
||||||
photos: vm.imgList,
|
photos: vm.imgList,
|
||||||
address: vm.address,
|
address: vm.address == '我在哪里' ? '' : vm.address,
|
||||||
is_hot: vm.hot * 1
|
is_hot: vm.hot * 1
|
||||||
}
|
}
|
||||||
|
if (!vm.value) {
|
||||||
|
vm.$showToast('请输入动态内容')
|
||||||
|
return
|
||||||
|
}
|
||||||
if (vm.throttle) {
|
if (vm.throttle) {
|
||||||
vm.throttle = false
|
vm.throttle = false
|
||||||
vm.$post({url: `${service.host}/moment/add`, data}).then(({code}) => {
|
vm.$post({url: `${service.host}/moment/add`, data}).then(({code}) => {
|
||||||
|
|||||||
@ -191,6 +191,7 @@ wepy.page({
|
|||||||
vm.$showLoading('加载中...')
|
vm.$showLoading('加载中...')
|
||||||
vm.$get({url: `${service.host}/vote/${vm.id}/comment/list`}).then(({code, data}) => {
|
vm.$get({url: `${service.host}/vote/${vm.id}/comment/list`}).then(({code, data}) => {
|
||||||
if (code === 0) {
|
if (code === 0) {
|
||||||
|
if (data && data.length > 0) {
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.created_at = commentTimeHandle(item.created_at)
|
item.created_at = commentTimeHandle(item.created_at)
|
||||||
item.comment = item.comment.split('?')[0]
|
item.comment = item.comment.split('?')[0]
|
||||||
@ -199,6 +200,7 @@ wepy.page({
|
|||||||
vm.list = data
|
vm.list = data
|
||||||
console.log(vm.list, '////')
|
console.log(vm.list, '////')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
wx.hideLoading()
|
wx.hideLoading()
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
wx.hideLoading()
|
wx.hideLoading()
|
||||||
|
|||||||
@ -386,8 +386,7 @@ page {
|
|||||||
<view class="age {{item.user.sex == 1?'sex1':''}}">
|
<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-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=""/>
|
<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>{{ item.profile.age || 0 }}</view>
|
||||||
<view v-else>{{ item.profile.age }}</view>
|
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -197,8 +197,6 @@ page {
|
|||||||
<dynamicList :dynamicList="dynamicList" @changeSelect="changeSelect" @signInVerify="signInVerify" :from="'dynamic'"></dynamicList>
|
<dynamicList :dynamicList="dynamicList" @changeSelect="changeSelect" @signInVerify="signInVerify" :from="'dynamic'"></dynamicList>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</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>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user