update
This commit is contained in:
parent
9047f40c97
commit
02fa61d94b
@ -368,7 +368,7 @@ page {
|
|||||||
<view class="ui-list-items" v-for="(item, index) in list" :key="index">
|
<view class="ui-list-items" v-for="(item, index) in list" :key="index">
|
||||||
<view class="ui-item-data" @tap="jumpPath(item)">
|
<view class="ui-item-data" @tap="jumpPath(item)">
|
||||||
<view class="weuis" @tap.stop="jumpDetailPath(item)">
|
<view class="weuis" @tap.stop="jumpDetailPath(item)">
|
||||||
<view class="dist dot" v-if="item.status == 0"></view>
|
<view class="dist dot" v-if="item.status == 0 && tabBarIndex == 0"></view>
|
||||||
<image :src="item.user.photo" mode="aspectFill" class="bc_acatar"></image>
|
<image :src="item.user.photo" mode="aspectFill" class="bc_acatar"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="rit weuis">
|
<view class="rit weuis">
|
||||||
@ -376,10 +376,10 @@ page {
|
|||||||
<view class="font_32 color333 bold name">
|
<view class="font_32 color333 bold name">
|
||||||
{{item.user.nickname }}
|
{{item.user.nickname }}
|
||||||
</view>
|
</view>
|
||||||
<block v-if="item.user.type !== 'single'">
|
<!-- <block v-if="item.user.type !== 'single'">-->
|
||||||
<image class="referencesIcon" src="https://image.fulllinkai.com/202207/15/7e78a1dd367f1250d4cba4e85bfd60f1.png" mode="widthFix"></image>
|
<!-- <image class="referencesIcon" src="https://image.fulllinkai.com/202207/15/7e78a1dd367f1250d4cba4e85bfd60f1.png" mode="widthFix"></image>-->
|
||||||
</block>
|
<!-- </block>-->
|
||||||
<view class="font_24 time">{{ item.create_time }}</view>
|
<view class="font_24 time">{{ item.update_time }}</view>
|
||||||
<block v-if="item.user.type == 'single'">
|
<block v-if="item.user.type == 'single'">
|
||||||
<image v-if="item.user.rank_id == 0" class="Vip flo_l bg-img" src="https://images.ufutx.com/202102/04/bfad7e2a8e86cf7912ff280234a35606.png"></image>
|
<image v-if="item.user.rank_id == 0" class="Vip flo_l bg-img" src="https://images.ufutx.com/202102/04/bfad7e2a8e86cf7912ff280234a35606.png"></image>
|
||||||
<image v-else class="Vip flo_l bg-img" src="https://images.ufutx.com/202102/04/d0913df8b234057229ab3dd102497a50.png"></image>
|
<image v-else class="Vip flo_l bg-img" src="https://images.ufutx.com/202102/04/d0913df8b234057229ab3dd102497a50.png"></image>
|
||||||
@ -387,7 +387,7 @@ page {
|
|||||||
<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 v-if="item.user.age == null">0</view>
|
||||||
<view v-else>{{ item.user.age }}</view>
|
<view v-else>{{ item.profile.age }}</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
@ -528,7 +528,8 @@ wepy.page({
|
|||||||
vm.$get({url: url, data}).then(({code, data}) => {
|
vm.$get({url: url, data}).then(({code, data}) => {
|
||||||
if (code === 0) {
|
if (code === 0) {
|
||||||
data.data.forEach((item) => {
|
data.data.forEach((item) => {
|
||||||
item.create_time = item.create_time.split(' ', 1)
|
item.update_time = item.update_time.split(' ', 1)
|
||||||
|
item.refuse_tag = item.refuse_tag ? JSON.parse(item.refuse_tag) : []
|
||||||
})
|
})
|
||||||
if (vm.list.length === 0 || vm.page === 1) {
|
if (vm.list.length === 0 || vm.page === 1) {
|
||||||
vm.list = data.data
|
vm.list = data.data
|
||||||
@ -540,21 +541,21 @@ wepy.page({
|
|||||||
if (vm.list.length < 15 || data.data.length < 15) {
|
if (vm.list.length < 15 || data.data.length < 15) {
|
||||||
vm.no_more = true
|
vm.no_more = true
|
||||||
}
|
}
|
||||||
let obj = {}
|
// let obj = {}
|
||||||
let peon = []
|
// let peon = []
|
||||||
// 去除重复数据保留最后一条
|
// 去除重复数据保留最后一条
|
||||||
if (vm.tabBarIndex == 0) {
|
// if (vm.tabBarIndex == 0) {
|
||||||
peon = vm.list.reduce((cur, next) => {
|
// peon = vm.list.reduce((cur, next) => {
|
||||||
obj[next.user_linking_id] ? '' : obj[next.user_linking_id] = true && cur.push(next)
|
// obj[next.user_linking_id] ? '' : obj[next.user_linking_id] = true && cur.push(next)
|
||||||
return cur
|
// return cur
|
||||||
}, [])
|
// }, [])
|
||||||
} else {
|
// } else {
|
||||||
peon = vm.list.reduce((cur, next) => {
|
// peon = vm.list.reduce((cur, next) => {
|
||||||
obj[next.user_id] ? '' : obj[next.user_id] = true && cur.push(next)
|
// obj[next.user_id] ? '' : obj[next.user_id] = true && cur.push(next)
|
||||||
return cur
|
// return cur
|
||||||
}, [])
|
// }, [])
|
||||||
}
|
// }
|
||||||
vm.list = peon
|
// vm.list = peon
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
vm.loading = true
|
vm.loading = true
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|||||||
@ -303,6 +303,7 @@ page {
|
|||||||
<view class="ui-prefecture-mask font_28 colorF bold f-fcc">{{item.title}}</view>
|
<view class="ui-prefecture-mask font_28 colorF bold f-fcc">{{item.title}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<block v-if="referrals && referrals.length > 0">
|
||||||
<view class="f-fbc ui-referrals-box">
|
<view class="f-fbc ui-referrals-box">
|
||||||
<view class="font_34 color333 bold">为你推荐</view>
|
<view class="font_34 color333 bold">为你推荐</view>
|
||||||
<image class="ui-require-icon" src="https://image.fulllinkai.com/202409/24/4f52d791e75a7e89a5696754f37e51f7.png" mode="widthFix" @tap="jumpPath('/pages/users/selfTextarea?text=期望对方&placeText=写下你心中理想的对象')"></image>
|
<image class="ui-require-icon" src="https://image.fulllinkai.com/202409/24/4f52d791e75a7e89a5696754f37e51f7.png" mode="widthFix" @tap="jumpPath('/pages/users/selfTextarea?text=期望对方&placeText=写下你心中理想的对象')"></image>
|
||||||
@ -368,6 +369,7 @@ page {
|
|||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
|
</block>
|
||||||
<view class="ui-prefecture-title font_34 color333 bold" v-if="squareList && squareList.length > 0">单身广场</view>
|
<view class="ui-prefecture-title font_34 color333 bold" v-if="squareList && squareList.length > 0">单身广场</view>
|
||||||
<block v-for="(item,index) in squareList" :key="index">
|
<block v-for="(item,index) in squareList" :key="index">
|
||||||
<view class="box_swiper ui-pl-30 ui-pr-30 ui-mb-40">
|
<view class="box_swiper ui-pl-30 ui-pr-30 ui-mb-40">
|
||||||
|
|||||||
@ -326,7 +326,7 @@ wepy.page({
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
wx.removeTabBarBadge({
|
wx.removeTabBarBadge({
|
||||||
index: 0
|
index: 2
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -153,7 +153,7 @@ const IM = (account, token) => {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
wx.removeTabBarBadge({
|
wx.removeTabBarBadge({
|
||||||
index: 0
|
index: 2
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user