This commit is contained in:
lanzhihui 2024-10-09 15:47:20 +08:00
parent e55309addc
commit 5689cedd28
8 changed files with 52 additions and 73 deletions

View File

@ -86,6 +86,7 @@ page {
margin-left: 16rpx; margin-left: 16rpx;
.u_vclst_name { .u_vclst_name {
max-width:200rpx;
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
@ -294,7 +295,7 @@ page {
<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" @tap.stop="gotofriends(item, index)"></image>
<view class="u_vclst_t_box"> <view class="u_vclst_t_box">
<view class="f-fc"> <view class="f-fc">
<view class="u_vclst_name">{{item.nickname}}</view> <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"> <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-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> <image v-else class="a_sex_img" src="https://image.fulllinkai.com/202208/09/dfed05b3e1e1880a3a6f81806d99e9de.png" mode="widthFix"></image>

View File

@ -642,7 +642,11 @@ wepy.page({
}, },
onShow() { onShow() {
let vm = this let vm = this
console.log('222')
vm.getTimeFn() vm.getTimeFn()
if (wx.getStorageSync('logoutCode')) {
wx.redirectTo({url: '/pages/users/logoutDefault'})
}
}, },
onLoad() { onLoad() {
let vm = this let vm = this

View File

@ -401,7 +401,7 @@
// } // }
async function timi(res) { async function timi(res) {
// await vm.getNewCount() await vm.getNewCount()
await vm.initPageData() await vm.initPageData()
await vm.getIsBaseInfo() await vm.getIsBaseInfo()
} }
@ -441,10 +441,7 @@
}, },
onLoad(e) { onLoad(e) {
// this.realityState = wx.getStorageSync('realityState') || 0
// if (this.realityState == 99) {
// // this.taskList[1].title = '完成实名认证'
// }
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -457,32 +454,12 @@
}, },
methods: { methods: {
// getorderDetail() {
// let that = this
// that.spellGroupList = []
// that.$get({url: `${service.host}/groups`}).then(({code, data}) => {
// data.forEach((item) => {
// that.spellGroupList.push({
// pic: item.pic,
// id: item.m_order_id,
// need_count: item.need_count,
// time: item.deadline.split(' ')[1]
// })
// })
// })
// },
getNewCount() { getNewCount() {
this.$get({ let vm = this
url: `${service.host}/new/message/count` vm.$get({url: `${service.host}/notice/count`}).then(({code, data}) => {
}).then(({ if (code === 0) {
code, let {notice_count} = data
data
}) => {
let {
new_count, order_count
} = data
this.spriteList[1].count = data.order_count
let groupCountList = wx.getStorageSync('teamsSessionsCount') || [] let groupCountList = wx.getStorageSync('teamsSessionsCount') || []
let groupCount = 0 let groupCount = 0
if (groupCountList.length > 0) { if (groupCountList.length > 0) {
@ -490,26 +467,19 @@
groupCount += groupCountList[i].unread groupCount += groupCountList[i].unread
} }
} }
if ((new_count + groupCount) > 0) { if ((notice_count + groupCount) > 0) {
wx.setTabBarBadge({ wx.setTabBarBadge({
index: 3, index: 2,
text: `${new_count + groupCount}` text: `${notice_count + groupCount}`
}) })
} else { } else {
wx.removeTabBarBadge({ wx.removeTabBarBadge({
index: 3 index: 2
}) })
} }
if (order_count > 0) {
wx.setTabBarBadge({
index: 4,
text: `${order_count}`
})
} else {
wx.removeTabBarBadge({
index: 4
})
} }
}).catch(err => {
console.log(err)
}) })
}, },
@ -523,6 +493,10 @@
getApp().$wepy.$options.globalData.is_base_info = is_base_profile getApp().$wepy.$options.globalData.is_base_info = is_base_profile
if (!wx.getStorageSync('mobile')) { if (!wx.getStorageSync('mobile')) {
vm.isShowIphoneBtn = true vm.isShowIphoneBtn = true
}
if (!is_base_profile) {
vm.loginShow = true
return
} }
if (!data.is_complete_profile) { if (!data.is_complete_profile) {
this.modalName = 'ModalEdit' this.modalName = 'ModalEdit'

View File

@ -43,6 +43,7 @@ wepy.page({
onShow() { onShow() {
setTimeout(() => { setTimeout(() => {
if (wx.getStorageSync('logoutCode')) { if (wx.getStorageSync('logoutCode')) {
wx.redirectTo({url: '/pages/users/logoutDefault'})
return return
} }
wx.switchTab({url: `/pages/tabBar/home`}) wx.switchTab({url: `/pages/tabBar/home`})

View File

@ -19,7 +19,7 @@
</view> </view>
</block> </block>
<view class="cu-modal" :class="{'show':modalName=='isExclusiveService'}"> <view class="cu-modal" :class="{'show':modalName=='isExclusiveService'}">
<view class="audit_photo_box ff" style="border-radius: 32rpx;padding: 22rpx;"> <view class="audit_photo_box bg_f" style="border-radius: 32rpx;padding: 22rpx;">
<view class="font_32 bold color-333" style="padding-top:38rpx;">联系专属客服</view> <view class="font_32 bold color-333" style="padding-top:38rpx;">联系专属客服</view>
<image style="width: 240rpx;height: 240rpx;margin: 40rpx;" <image style="width: 240rpx;height: 240rpx;margin: 40rpx;"
src="{{exclusiveService}}" show-menu-by-longpress="true" src="{{exclusiveService}}" show-menu-by-longpress="true"

View File

@ -12,7 +12,7 @@
</radio-group> </radio-group>
</view> </view>
<view class="themes" v-if="selectId==6"> <view class="themes" v-if="selectId==6">
<textarea class="textarea font_28 color-666 text-left" maxlength="50" placeholder="请告诉福恋,你关闭资料的其他原因吧" @input="typing('content')" @blur="typing('content')" adjust-position="true" value="{{content}}" /> <textarea class="textarea font_28 color-666 text-left" maxlength="50" placeholder="请告诉福恋,你关闭资料的其他原因吧" @input="typing('content',$event)" @blur="typing('content',$event)" adjust-position="true" value="{{content}}" />
<view class="font_24 text-right" style="color: #c2c2c2">{{content.length}}/50</view> <view class="font_24 text-right" style="color: #c2c2c2">{{content.length}}/50</view>
</view> </view>
<view class="font_32 sendButton" @tap="ShutDown">关闭资料</view> <view class="font_32 sendButton" @tap="ShutDown">关闭资料</view>
@ -118,7 +118,8 @@
}) })
}, },
typing(type, e) { typing(type, e) {
this[type] = e.detail.value console.log(e, 'e')
this[type] = e.$wx.detail.value
console.log(this[type]) console.log(this[type])
}, },
callPhone (phone) { callPhone (phone) {
@ -141,11 +142,11 @@
hideModal1 () { hideModal1 () {
this.modalName = '' this.modalName = ''
console.log(this.showSecondType, '77777777777') console.log(this.showSecondType, '77777777777')
if (!this.showSecondType) { // if (!this.showSecondType) {
wx.redirectTo({url: '/pages/users/logoutDefault'}) wx.redirectTo({url: '/pages/users/logoutDefault'})
} else { // } else {
wx.redirectTo({url: '/pages/marriedPage/home'}) // wx.redirectTo({url: '/pages/marriedPage/home'})
} // }
}, },
hideModal () { hideModal () {
this.modalName = '' this.modalName = ''

View File

@ -455,7 +455,7 @@ import base from '../../mixins/base'
let that = this let that = this
if (this.throttleShow) { if (this.throttleShow) {
// this.throttleShow = false // this.throttleShow = false
if (!this.value && that.text != '兴趣爱好') { if (!this.value && that.text != '兴趣标签') {
this.$showToast('请输入内容') this.$showToast('请输入内容')
return return
} }
@ -464,7 +464,6 @@ import base from '../../mixins/base'
this.$showToast('你输入的信息可能含有联系方式,请重新填写!') this.$showToast('你输入的信息可能含有联系方式,请重新填写!')
return return
} }
this.$showLoading('提交中..')
let data = {} let data = {}
if (that.text == '自我描述') { if (that.text == '自我描述') {
data.introduction = that.value data.introduction = that.value
@ -477,6 +476,11 @@ import base from '../../mixins/base'
}).map(item => { return item.title }) }).map(item => { return item.title })
console.log(defaultHob, customHob, '----999-----') console.log(defaultHob, customHob, '----999-----')
data.interest_label = [...defaultHob, ...customHob] data.interest_label = [...defaultHob, ...customHob]
console.log(data.interest_label, 'data.interest_label')
if (data.interest_label.length == 0) {
this.$showToast('请至少选择一个标签')
return
}
} else if (that.text == '兴趣爱好') { } else if (that.text == '兴趣爱好') {
data.interest_hobby = that.value data.interest_hobby = that.value
} else if (that.text == '期望对方') { } else if (that.text == '期望对方') {
@ -535,6 +539,7 @@ import base from '../../mixins/base'
} }
wx.setStorageSync('colorData', colorData) wx.setStorageSync('colorData', colorData)
} }
this.$showLoading('提交中..')
this.$put({url: `${service.host}/user/other/profie`, data}).then(({code, data}) => { this.$put({url: `${service.host}/user/other/profie`, data}).then(({code, data}) => {
this.throttleShow = true this.throttleShow = true
wx.hideLoading() wx.hideLoading()

View File

@ -854,7 +854,7 @@
</view> </view>
<image src="https://images.ufutx.com/202004/13/c9505127b21e909aae5a609987f5ac66.png" class="icon flo_r" mode="widthFix" @tap="showModal('interest_label','兴趣标签','日常生活你有什么爱好?可以写一下')"/> <image src="https://images.ufutx.com/202004/13/c9505127b21e909aae5a609987f5ac66.png" class="icon flo_r" mode="widthFix" @tap="showModal('interest_label','兴趣标签','日常生活你有什么爱好?可以写一下')"/>
</view> </view>
<view class="mainPhoto" @tap="showModal('interest_label','兴趣标签','日常生活你有什么爱好?可以写一下')"> <view class="mainPhoto" @tap="showModal('interest_label','兴趣标签','添加兴趣标签遇见合适的Ta')">
<view class="f-fc ui-wrap ui-hobbies-big-box" v-if="mylibs.interest_label"> <view class="f-fc ui-wrap ui-hobbies-big-box" v-if="mylibs.interest_label">
<view class="hobbies-box " v-for="(item,index) in mylibs.interest_label" :key="index"> <view class="hobbies-box " v-for="(item,index) in mylibs.interest_label" :key="index">
{{item}} {{item}}
@ -1237,18 +1237,11 @@
return return
} }
vm.$showLoading('领取中...') vm.$showLoading('领取中...')
this.$post({url: `${service.host}/rank/daily/complete/profile`}, { this.$post({url: `${service.host}/rank/daily/complete/profile`}).then(res => {
success: ({code, data}) => {
console.log('领取成功') console.log('领取成功')
vm.modalName = 'successful' vm.modalName = 'successful'
vm.mylibs.has_get_daily_rank = true vm.mylibs.has_get_daily_rank = true
wx.hideLoading() wx.hideLoading()
},
fail: ({code, data}) => {
},
complete: () => {
}
}) })
}, },
previewImage(imge, list) { previewImage(imge, list) {