From d6a4902c441e305d72af1c20612b10444627b3f7 Mon Sep 17 00:00:00 2001 From: lanzhihui <503792708@qq.com> Date: Wed, 9 Oct 2024 09:30:07 +0800 Subject: [PATCH] update --- src/pages/tabBar/user.wpy | 8 +++++--- src/pages/users/friendlist.wpy | 2 +- src/pages/users/selfTextarea.wpy | 12 +++++++++--- src/pages/users/unmarriV2.wpy | 23 ++++++++++++++++++++--- 4 files changed, 35 insertions(+), 10 deletions(-) diff --git a/src/pages/tabBar/user.wpy b/src/pages/tabBar/user.wpy index 0f22487..c29c3e2 100644 --- a/src/pages/tabBar/user.wpy +++ b/src/pages/tabBar/user.wpy @@ -566,7 +566,7 @@ // 小程序分享 self.title = `我是"${data.user.nickname}",这是我的小程序卡片` console.log(self.title, 'title===') - if (data.user.photo || data.user.avatar) { + if (data.user.photo) { let year = '', city = '', degree = '', industry_sub = '' if (data.birthday) { year = data.birthday.slice(2, 4) + '年' @@ -583,8 +583,10 @@ console.log(year, city, degree, industry_sub) self.shareConfig1.texts[0].text = `${year} | ${city}` self.shareConfig1.texts[1].text = `${degree} | ${industry_sub}` - self.shareConfig1.images[0].url = data.user.photo || data.user.avatar + self.shareConfig1.images[0].url = data.user.photo + console.log(self.shareConfig1.images, 'self.shareConfig1.images') self.posterConfig1 = self.shareConfig1 + self.$nextTick(() => { setTimeout(() => { console.log(self.posterConfig1, 'posterConfig1=') @@ -593,7 +595,7 @@ }) } else { // 重新获取分享码 - self.$showToast('分享图片获取失败') + // self.$showToast('分享图片获取失败') } console.log(self.posterConfig1, '7777') this.init = true diff --git a/src/pages/users/friendlist.wpy b/src/pages/users/friendlist.wpy index 2f378b7..f767546 100644 --- a/src/pages/users/friendlist.wpy +++ b/src/pages/users/friendlist.wpy @@ -20,7 +20,7 @@ 资料已关闭 - {{item.birthday}}年 {{item.profile.city || ''}} + {{item.year}} {{item.city || ''}} 发消息 diff --git a/src/pages/users/selfTextarea.wpy b/src/pages/users/selfTextarea.wpy index bcab35e..4ae67f9 100644 --- a/src/pages/users/selfTextarea.wpy +++ b/src/pages/users/selfTextarea.wpy @@ -101,7 +101,7 @@ {{value.length}}/800 - + 兴趣爱好的标签 @@ -379,12 +379,16 @@ import base from '../../mixins/base' for (let i = +statureArr[0] + 1; i < 201; i++) { staturePickerArr.push(i) } - this.heightArray[1] = staturePickerArr + this.heightArray = [this.heightArray[0], staturePickerArr] this.heightArray[1].forEach((item, index) => { + console.log(item, statureArr) if (item == statureArr[1].replace('cm', '')) { + console.log('----9988') + console.log(index, 'index===') this.heightIndex = [this.heightIndex[0], index] } }) + console.log(this.heightIndex, 'heightIndex=') this.regionArray.forEach((item, index) => { if (item == data.mate_conditon.location) { this.regionIndex = index @@ -464,7 +468,7 @@ import base from '../../mixins/base' let data = {} if (that.text == '自我描述') { data.introduction = that.value - } else if (that.text == '兴趣爱好') { + } else if (that.text == '兴趣标签') { let defaultHob = that.hobbiesList.filter(item => { return item.show }).map(item => { return item.title }) @@ -473,6 +477,8 @@ import base from '../../mixins/base' }).map(item => { return item.title }) console.log(defaultHob, customHob, '----999-----') data.interest_label = [...defaultHob, ...customHob] + } else if (that.text == '兴趣爱好') { + data.interest_hobby = that.value } else if (that.text == '期望对方') { data.ideal_mate = that.value if (this.ageIndex.length != 0) { diff --git a/src/pages/users/unmarriV2.wpy b/src/pages/users/unmarriV2.wpy index 3c0b330..eed19ab 100644 --- a/src/pages/users/unmarriV2.wpy +++ b/src/pages/users/unmarriV2.wpy @@ -850,11 +850,11 @@ - 兴趣爱好 + 兴趣标签 - + - + {{item}} @@ -865,6 +865,23 @@ + + + + + + 兴趣爱好 + + + + + + {{mylibs.interest_hobby}} + + 日常生活你有什么爱好?可以写一下 + + +