update 用户详情开启隐身访问
This commit is contained in:
parent
5689cedd28
commit
d14beeda94
@ -589,15 +589,10 @@ page {
|
||||
<image src="https://images.ufutx.com/202011/26/7645858a1ae55dd7c3ef90ec7a42bfa3.png" mode="aspectFill" class="icon"></image>
|
||||
<span class="font_30 bold color333">兴趣爱好</span>
|
||||
</view>
|
||||
<view class="m_idCon f-fc">
|
||||
<block v-for="(item,index) in interestLabel" :key="index">
|
||||
<view class="u_idCon font_26 color333" v-if="item">{{ item }}</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="font_26 color333 _text">{{ userInfo.other_profile.interest_hobby || 'ta什么也没有留下' }}</view>
|
||||
</view>
|
||||
<!-- 兴趣标签 -->
|
||||
<view class="font_26 color666 ui-pt-20">
|
||||
<view class="font_26 color666 ui-pt-20" v-if="interestLabel && interestLabel.length > 0">
|
||||
<view class="_title">
|
||||
<image src="https://images.ufutx.com/202011/26/7645858a1ae55dd7c3ef90ec7a42bfa3.png" mode="aspectFill" class="icon"></image>
|
||||
<span class="font_30 bold color333">兴趣标签</span>
|
||||
@ -607,7 +602,6 @@ page {
|
||||
<view class="u_idCon font_26 color333" v-if="item">{{ item }}</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="font_26 color333 _text">{{ userInfo.other_profile.interest_hobby || 'ta什么也没有留下' }}</view>
|
||||
</view>
|
||||
<!-- 期望对方 -->
|
||||
<view class="font_26 color666 ui-pt-20">
|
||||
@ -615,7 +609,7 @@ page {
|
||||
<image src="https://images.ufutx.com/202011/26/7645858a1ae55dd7c3ef90ec7a42bfa3.png" mode="aspectFill" class="icon"></image>
|
||||
<span class="font_30 bold color-333">期望对方</span>
|
||||
</view>
|
||||
<view class="m_idCon f-fc" v-if="showCondition">
|
||||
<view class="m_idCon f-fc" v-if="conditionArr && conditionArr.length > 0">
|
||||
<block v-for="(item,index) in conditionArr" :key="index">
|
||||
<view class="u_idCon font_26 color333" v-if="item">{{ item }}</view>
|
||||
</block>
|
||||
@ -625,7 +619,7 @@ page {
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<block v-if="userInfo.base_profile.type == 'single' && userInfo.base_profile.id && userInfo.other_info.is_self != 1">
|
||||
<block v-if="userInfo.base_profile.type == 'single' && !userInfo.other_info.is_self && !userInfo.other_info.hidden">
|
||||
<!-- 隐身访问 -->
|
||||
<view class="boxStyleList f-fcc f-fdc ui-pt-30 ui-pb-30" @tap="hiddenChange">
|
||||
<view class="font_32 color-theme">想要隐身访问Ta?</view>
|
||||
@ -633,7 +627,7 @@ page {
|
||||
<view class="u_box_bu font_28">开启隐身访问</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="userInfo.base_profile.id && userInfo.other_info.is_self != 1">
|
||||
<block v-if="userInfo.base_profile.id && !userInfo.other_info.is_self">
|
||||
<view class="boxStyleList">
|
||||
<view class="_item border text-center recommend" v-if="userInfo.other_info.is_friend == 1" @tap="deletefriend">
|
||||
<image src="https://images.ufutx.com/202103/11/0f148a7763958c65dac1a5ce929163dc.png" mode="aspectFit" class="icon"></image>
|
||||
@ -651,7 +645,7 @@ page {
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="userInfo.other_info.is_self != 1">
|
||||
<block v-if="!userInfo.other_info.is_self">
|
||||
<view class="ui-bottom-operation">
|
||||
<image class="ui-mask-icon" src="https://image.fulllinkai.com/202407/30/dca7024d347433e1aa893ce15a056b10.png" mode="widthFix"></image>
|
||||
<view class="f-fbc ui-operation">
|
||||
@ -688,7 +682,7 @@ page {
|
||||
<poster type="2d" id="poster" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig}}" bind:success="onPosterSuccess" bind:fail="onPosterFail">
|
||||
</poster>
|
||||
</block>
|
||||
<!-- <wxShareCom :modalName.sync="modalName" :sharePic.sync="shareImg" @modalFn="modalFn"></wxShareCom>-->
|
||||
|
||||
<view class="cu-modal bottom-modal {{modalName == 'praise' ? 'show' : ''}}">
|
||||
<view class="cu-dialog ui-pb-40 ui-praise-box ui-pl-30">
|
||||
<image class="cancelIcon" src="https://images.ufutx.com/202106/01/e536a423a145ae12ab4f6dc57f58588d.png" mode="widthFix" @tap="modalName = ''"></image>
|
||||
@ -730,7 +724,7 @@ page {
|
||||
<view class="cu-modal {{modalName == 'purchase' ? 'show' : ''}}">
|
||||
<view class="open_confirm_box ui-pb-36">
|
||||
<view class="confirm_prompt font_32">购买会员服务后可使用此功能,请及时购买</view>
|
||||
<image class="cancelIcon" src="https://images.ufutx.com/202103/12/4281e92bc8b727bae08099a3015225b1.png" mode="widthFix" @tap="purchaseShow = false"></image>
|
||||
<image class="cancelIcon" src="https://images.ufutx.com/202103/12/4281e92bc8b727bae08099a3015225b1.png" mode="widthFix" @tap="modalName = ''"></image>
|
||||
<image v-if="isIos" class="determineIcon" src="https://images.ufutx.com/202103/12/91fea69fdff1cfeaac369ddd5dd591f0.png" mode="widthFix" @tap="modalName = 'purchaseTips'"></image>
|
||||
<image v-else class="determineIcon" src="https://images.ufutx.com/202103/12/91fea69fdff1cfeaac369ddd5dd591f0.png" mode="widthFix" @tap="determine('vipModal')"></image>
|
||||
</view>
|
||||
@ -789,7 +783,6 @@ wepy.page({
|
||||
praisePage: 1,
|
||||
selectPraise: [],
|
||||
interestLabel: [],
|
||||
showCondition: false,
|
||||
conditionArr: [],
|
||||
myData: {},
|
||||
isIos: false,
|
||||
@ -963,9 +956,6 @@ wepy.page({
|
||||
})
|
||||
}
|
||||
}
|
||||
if (vm.conditionArr && vm.conditionArr.length > 0) {
|
||||
vm.showCondition = true
|
||||
}
|
||||
|
||||
if (data.profile_photos && data.profile_photos.length == 0) {
|
||||
data.profile_photos.push(data.base_profile.photo)
|
||||
@ -1040,7 +1030,7 @@ wepy.page({
|
||||
return
|
||||
}
|
||||
vm.$showLoading('')
|
||||
vm.$post({url: `${service.host}/follow/users/${vm.id}`}).then(({code, data}) => {
|
||||
vm.$post({url: `${service.host}/follow/user/${vm.id}`}).then(({code, data}) => {
|
||||
if (code == 0) {
|
||||
if (data.is_followed) {
|
||||
vm.$showToast(`已关注`)
|
||||
@ -1162,9 +1152,14 @@ wepy.page({
|
||||
vm.loginShow = true
|
||||
return
|
||||
}
|
||||
if (!vm.userData.is_rank) {
|
||||
vm.modalName = 'purchase'
|
||||
return
|
||||
}
|
||||
vm.$post({url: `${service.host}/other/user/${vm.id}/hidden`}).then(({code, data}) => {
|
||||
if (code == 0) {
|
||||
vm.$showToast(`已开启隐身访问`)
|
||||
vm.userInfo.other_info.hidden = true
|
||||
}
|
||||
wx.hideLoading()
|
||||
}).catch(() => {
|
||||
|
||||
@ -463,7 +463,7 @@ page {
|
||||
</view>
|
||||
<view class="ui-reject-btn font_32 bold" @tap.stop="submit(0)">{{ rejectDisabled ? '我知道了' : '确认' }}</view>
|
||||
</view>
|
||||
<image class="actions" src="https://images.ufutx.com/202103/15/1033c7b52cacddcebe999cefc6ad2c9b.png" mode="widthFix" @tap.stop="rejectShow = false"></image>
|
||||
<image class="actions" src="https://images.ufutx.com/202103/15/1033c7b52cacddcebe999cefc6ad2c9b.png" mode="widthFix" @tap.stop="initReject"></image>
|
||||
</view>
|
||||
</view>
|
||||
<pageScroll ref="pageScroll"></pageScroll>
|
||||
@ -541,21 +541,6 @@ wepy.page({
|
||||
if (vm.list.length < 15 || data.data.length < 15) {
|
||||
vm.no_more = true
|
||||
}
|
||||
// let obj = {}
|
||||
// let peon = []
|
||||
// 去除重复数据保留最后一条
|
||||
// if (vm.tabBarIndex == 0) {
|
||||
// peon = vm.list.reduce((cur, next) => {
|
||||
// obj[next.user_linking_id] ? '' : obj[next.user_linking_id] = true && cur.push(next)
|
||||
// return cur
|
||||
// }, [])
|
||||
// } else {
|
||||
// peon = vm.list.reduce((cur, next) => {
|
||||
// obj[next.user_id] ? '' : obj[next.user_id] = true && cur.push(next)
|
||||
// return cur
|
||||
// }, [])
|
||||
// }
|
||||
// vm.list = peon
|
||||
setTimeout(() => {
|
||||
vm.loading = true
|
||||
}, 500)
|
||||
@ -574,7 +559,7 @@ wepy.page({
|
||||
let data = {}
|
||||
// 已经处理过的就关闭弹框
|
||||
if (vm.rejectDisabled) {
|
||||
vm.rejectShow = false
|
||||
vm.initReject()
|
||||
return
|
||||
}
|
||||
if (e) {
|
||||
@ -641,6 +626,21 @@ wepy.page({
|
||||
vm.page = 1
|
||||
vm.getList()
|
||||
},
|
||||
initReject() {
|
||||
let vm = this
|
||||
vm.rejectShow = false
|
||||
setTimeout(() => {
|
||||
vm.rejectText = ''
|
||||
vm.rejectDisabled = false
|
||||
vm.rejectList = [
|
||||
{label: '年龄不合适', labelSel: false},
|
||||
{label: '身高不合适', labelSel: false},
|
||||
{label: '地域不合适', labelSel: false},
|
||||
{label: '信仰不合适', labelSel: false},
|
||||
{label: '学历不合适', labelSel: false}
|
||||
]
|
||||
}, 200)
|
||||
},
|
||||
jumpPath(e) {
|
||||
let vm = this
|
||||
let url = ``
|
||||
|
||||
@ -238,10 +238,10 @@ page {
|
||||
<block v-else>
|
||||
<view class="m_vc_lst">
|
||||
<block v-for="(item,index) in list" :key="index">
|
||||
<view class="u_vc_lst {{index >= 3 && !userInfo.rank_id ? 'ui-filter' : ''}}" @longpress="deleteRecord(item, index)" @tap="jumpPath(item, index)">
|
||||
<view class="u_vc_lst {{index >= 3 && !userInfo.rank_id ? 'ui-filter' : ''}}" @tap="jumpPath(item, index)">
|
||||
<view class="f-fc u_box">
|
||||
<view class="f-fc">
|
||||
<image class="u_vclst_img" :src="item.photo" mode="aspectFill" @tap.stop="gotofriends(item, index)"></image>
|
||||
<image class="u_vclst_img" :src="item.photo" mode="aspectFill"></image>
|
||||
<view class="u_vclst_t_box">
|
||||
<view class="f-fc">
|
||||
<view class="u_vclst_name">{{item.nickname}}</view>
|
||||
|
||||
@ -260,9 +260,9 @@ wepy.page({
|
||||
data.data.forEach((item) => {
|
||||
item.isTouchMove = false
|
||||
})
|
||||
if (vm.list.length === 0 || vm.page === 1) {
|
||||
if (vm.list.length == 0 || vm.page == 1) {
|
||||
vm.list = data.data
|
||||
} else if (vm.cachePage != vm.page) {
|
||||
} else {
|
||||
data.data.map(function (item) {
|
||||
vm.list.push(item)
|
||||
})
|
||||
@ -288,9 +288,9 @@ wepy.page({
|
||||
}
|
||||
}
|
||||
}
|
||||
vm.cachePage = vm.page
|
||||
setTimeout(() => {
|
||||
vm.loading = true
|
||||
vm.cachePage = vm.page
|
||||
}, 500)
|
||||
wx.hideLoading()
|
||||
}).catch(err => {
|
||||
@ -475,7 +475,9 @@ wepy.page({
|
||||
onShow() {
|
||||
let vm = this
|
||||
vm.getNewCount()
|
||||
vm.getList()
|
||||
if (vm.cachePage != vm.page) {
|
||||
vm.getList()
|
||||
}
|
||||
},
|
||||
onLoad() {}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user