新用户兴趣标签问题

This commit is contained in:
lanzhihui 2024-11-19 09:55:49 +08:00
parent fd9da9e895
commit 8c7de27215
5 changed files with 27 additions and 11 deletions

View File

@ -215,6 +215,9 @@ import https from '../mixins/https'
// that.getUserData()
that.$emit('toUpdateCut')
that.$Toast_success('支付成功')
let userInfo = wx.getStorageSync('userInfo')
userInfo.rank_id = 9
wx.setStorageSync('userInfo', userInfo)
})
},
fail: function (res) {

View File

@ -1100,6 +1100,8 @@ wepy.page({
vm.throttle = true
}).catch(() => {
vm.throttle = true
}).finally(() => {
vm.throttle = true
})
}
},
@ -1119,9 +1121,7 @@ wepy.page({
wx.navigateBack({delta: 1})
}, 1200)
}
wx.hideLoading()
}).catch(() => {
wx.hideLoading()
})
} else if (res.cancel) {
console.log('用户点击取消')
@ -1148,9 +1148,7 @@ wepy.page({
if (code == 0) {
vm.$showToast('已标记')
}
wx.hideLoading()
}).catch(() => {
wx.hideLoading()
})
} else if (res.cancel) {
console.log('用户点击取消')
@ -1179,9 +1177,7 @@ wepy.page({
wx.navigateBack({delta: 1})
}, 1200)
}
wx.hideLoading()
}).catch(() => {
wx.hideLoading()
})
} else if (res.cancel) {
console.log('用户点击取消')
@ -1217,9 +1213,7 @@ wepy.page({
vm.$showToast(`已开启隐身访问`)
vm.userInfo.other_info.hidden = true
}
wx.hideLoading()
}).catch(() => {
wx.hideLoading()
})
},
// 发送打招呼消息
@ -1243,10 +1237,10 @@ wepy.page({
}
}
vm.throttle = true
wx.hideLoading()
}).catch(() => {
vm.throttle = true
wx.hideLoading()
}).finally(() => {
vm.throttle = true
})
}
},

View File

@ -372,8 +372,21 @@ import base from '../../mixins/base'
show: data.interest_label.includes(item)
}
})
} else {
that.hobbiesList = that.hobbiesList.map(item => {
return {
title: item,
show: false
}
})
that.customHobbiesList = that.customHobbiesList.map(item => {
return {
title: item,
show: false
}
})
}
console.log(that.hobbiesList, 'that.hobbiesList=')
try {
// this.mate_conditon = data.mate_conditon
let ageArr = data.mate_conditon.age.split('-', 2)

View File

@ -382,6 +382,9 @@
that.$post({url: `${service.host}/order/${that.trade_no}/callback`}).then(({code, data}) => {
that.getUserData()
that.$Toast_success('支付成功')
let userInfo = wx.getStorageSync('userInfo')
userInfo.rank_id = 9
wx.setStorageSync('userInfo', userInfo)
})
},
fail: function (res) {

View File

@ -438,6 +438,9 @@
that.$post({url: `${service.host}/order/${that.trade_no}/callback`}).then(({code, data}) => {
that.getUserData()
that.$Toast_success('支付成功')
let userInfo = wx.getStorageSync('userInfo')
userInfo.rank_id = 9
wx.setStorageSync('userInfo', userInfo)
})
},
fail: function (res) {