Commit 1b600be0 authored by 罗林杰's avatar 罗林杰

修改bug

parent c710132a
...@@ -347,24 +347,24 @@ ...@@ -347,24 +347,24 @@
isFollowed: '0'//0 1无所谓 当未关注的查 isFollowed: '0'//0 1无所谓 当未关注的查
} }
userArticleList(params).then( res =>{ userArticleList(params).then( res =>{
const list = res.data.data if (res.data.data.length > 0){
//处理动态照片 const list = res.data.data
if (list[0].pictureId != null){ //处理动态照片
const urlArray = JSON.parse(list[0].pictureId) if (list[0].pictureId != null){
if (urlArray.id.length > 0){ const urlArray = JSON.parse(list[0].pictureId)
urlArray.id.forEach(item => { if (urlArray.id.length > 0){
getOssUrl(item).then(imgRes => { urlArray.id.forEach(item => {
if (imgRes.data.data != null) { getOssUrl(item).then(imgRes => {
imgRes.data.data = imgRes.data.data.replace(/\\/g, "/"); if (imgRes.data.data != null) {
this.articleUrl.push(imgRes.data.data) imgRes.data.data = imgRes.data.data.replace(/\\/g, "/");
} this.articleUrl.push(imgRes.data.data)
}
})
}) })
}) }
} }
this.userData.articleContent = list[0].content
} }
console.log('111111111111111',list[0].content)
this.userData.articleContent = list[0].content
console.log('222222222222',this.userData.articleContent)
}) })
//处理地址 //处理地址
if (res.data.data.memResidenceProvince !== '' && res.data.data.memResidenceProvince !== null && res.data.data.memResidenceCity !== '' && res.data.data.memResidenceCity !== null){ if (res.data.data.memResidenceProvince !== '' && res.data.data.memResidenceProvince !== null && res.data.data.memResidenceCity !== '' && res.data.data.memResidenceCity !== null){
......
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
* 输入监听 * 输入监听
*/ */
bindKeyInput(e) { bindKeyInput(e) {
this.inputTemp = e.detail.value this.inputTemp = e
}, },
//拉黑 //拉黑
addBlack() { addBlack() {
...@@ -330,10 +330,12 @@ export default { ...@@ -330,10 +330,12 @@ export default {
} }
getWeChatTask(form).then(res=>{ getWeChatTask(form).then(res=>{
if (res.data.code == 200){ if (res.data.code == 200){
this.wxTask = res.data.data if (res.data.data !== null){
if (this.wxTask.type === '2' && this.wxTask.status === '1'){ this.wxTask = res.data.data
//请求已经被回应了.让tabbar变色 if (this.wxTask.type === '2' && this.wxTask.status === '1'){
//请求已经被回应了.让tabbar变色
this.tabbarValue = 1 this.tabbarValue = 1
}
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment