From 9670c89121cae9a30bf279c3bf40b3a0401f0a7d Mon Sep 17 00:00:00 2001 From: lanzhihui <503792708@qq.com> Date: Wed, 16 Oct 2024 18:11:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B4=E8=B6=A3=E7=88=B1=E5=A5=BD=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=A0=87=E7=AD=BE=E5=B1=95=E7=A4=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E6=9C=9F=E6=9C=9B=E5=AF=B9=E6=96=B9=E6=96=87?= =?UTF-8?q?=E5=AD=97=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=AE=8C=E6=88=90=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=B5=84=E6=96=99=E5=90=8E=E7=BC=93=E5=AD=98=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home/registration.wpy | 6 +++++- src/pages/users/selfTextarea.wpy | 15 +++++++++++++++ src/pages/users/unmarriV2.wpy | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/pages/home/registration.wpy b/src/pages/home/registration.wpy index a1bf102..5b5498d 100644 --- a/src/pages/home/registration.wpy +++ b/src/pages/home/registration.wpy @@ -238,7 +238,7 @@ wepy.page({ belief: '', beliefList: ['基督教', '佛教', '伊斯兰教', '其他'], - beliefIndex: 3, + beliefIndex: 0, jumpString: 'basicData', throttle: true, unionid: '', @@ -323,6 +323,10 @@ wepy.page({ } vm.$put({url: `${service.host}/user/register/profile`, data}).then(({code, data}) => { if (code == 0) { + let userInfo = wx.getStorageSync('userInfo') + console.log(userInfo, '===') + userInfo.is_base_profile = true + wx.setStorageSync('userInfo', userInfo) wx.switchTab({url: '/pages/tabBar/home'}) } wx.hideLoading() diff --git a/src/pages/users/selfTextarea.wpy b/src/pages/users/selfTextarea.wpy index 59cf613..0c0004e 100644 --- a/src/pages/users/selfTextarea.wpy +++ b/src/pages/users/selfTextarea.wpy @@ -335,12 +335,27 @@ import base from '../../mixins/base' show: data.interest_label.includes(item.title) } }) + let objectValue = that.hobbiesList.map(item => { return item.title }) + let newHobbies = data.interest_label.filter(item => { + console.log(objectValue.includes(item), 'obj===') + return !objectValue.includes(item) + }) + console.log(objectValue, newHobbies, 'newHobbies===') that.customHobbiesList = that.customHobbiesList.map(item => { return { title: item, show: data.interest_label.includes(item) } }) + if (newHobbies && newHobbies.length > 0) { + newHobbies = newHobbies.map(item => { + return { + title: item, + show: true + } + }) + that.customHobbiesList = [...new Set([...that.customHobbiesList, ...newHobbies])] + } } else { that.customHobbiesList = that.customHobbiesList.map(item => { return { diff --git a/src/pages/users/unmarriV2.wpy b/src/pages/users/unmarriV2.wpy index a8fd986..13d100c 100644 --- a/src/pages/users/unmarriV2.wpy +++ b/src/pages/users/unmarriV2.wpy @@ -823,7 +823,7 @@ - 期望对方 + 期望结婚 {{mylibs.marry_by_time || '--'}}