Commit 98e7d2b2 authored by liwei's avatar liwei

Merge remote-tracking branch 'origin/master'

parents 1e04794d 6d59b9e3
...@@ -140,8 +140,11 @@ ...@@ -140,8 +140,11 @@
rows: this.queryParam.rows rows: this.queryParam.rows
} }
bannerList(query).then(res =>{ bannerList(query).then(res =>{
//将res.data.rows集合里的bannerPicture取出来,放到集合中 将\替换成/ res.data.data.forEach(item => {
this.bannerList = res.data.data.map(item => item.url.replace(/\\/g, '/')); getOssUrl(item.pictureId).then(imgRes => {
this.bannerList.push(imgRes.data.data)
})
})
}).catch(e => { }).catch(e => {
console.log(e) console.log(e)
}) })
......
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
v-else-if="userData.selfMatchingStatus!=null&&userData.selfMatchingStatus=='LIKE'"> v-else-if="userData.selfMatchingStatus!=null&&userData.selfMatchingStatus=='LIKE'">
<image :src="baseUrl+'/user/mutuallyLike.png'" mode="aspectFill"></image> <image :src="baseUrl+'/user/mutuallyLike.png'" mode="aspectFill"></image>
<view class="t"> <view class="t">
{{ {{'我喜欢过' }}
'我喜欢过'
}}
</view> </view>
</view> </view>
</view> </view>
...@@ -224,6 +222,7 @@ ...@@ -224,6 +222,7 @@
import {parseDate,calculateAge} from '../common/index' import {parseDate,calculateAge} from '../common/index'
import LsSwiper from '../components/ls-swiper/index.vue'; import LsSwiper from '../components/ls-swiper/index.vue';
import myPopup from '@/components/myPopup.vue' import myPopup from '@/components/myPopup.vue'
import {getOssUrl} from "../api/article";
export default { export default {
components: { components: {
LsSwiper, LsSwiper,
...@@ -346,8 +345,10 @@ ...@@ -346,8 +345,10 @@
this.userData = res.data.data this.userData = res.data.data
this.userId = this.userData.userId this.userId = this.userData.userId
//处理头像 //处理头像
if (res.data.data.avatarUrl !== '' && res.data.data.avatarUrl !== null){ if (res.data.data.avatar !== '' && res.data.data.avatar !== null){
this.imgList.push(res.data.data.avatarUrl.replace(/\\/g, '/')) getOssUrl(res.data.data.avatar).then( imgRes =>{
this.imgList.push(imgRes.data.data)
})
} }
//处理星座 //处理星座
if (res.data.data.memConstellation !== '' && res.data.data.memConstellation !== null){ if (res.data.data.memConstellation !== '' && res.data.data.memConstellation !== null){
......
...@@ -246,9 +246,6 @@ import {getOssUrl} from "../../api/article"; ...@@ -246,9 +246,6 @@ import {getOssUrl} from "../../api/article";
baseUrl: this.$IMG_URL, baseUrl: this.$IMG_URL,
//用户资料 //用户资料
userInfo: {}, userInfo: {},
uploadImgJSON:{
id:[]
},
multiple: 100, //倍数 multiple: 100, //倍数
percent: 0, //百分比 percent: 0, //百分比
perceptualScore: 0, perceptualScore: 0,
...@@ -305,6 +302,8 @@ import {getOssUrl} from "../../api/article"; ...@@ -305,6 +302,8 @@ import {getOssUrl} from "../../api/article";
this.singleIndex = 9; this.singleIndex = 9;
} else { } else {
console.log('index',Index) console.log('index',Index)
console.log('this.userInfo.memPictureId',this.userInfo.memPictureId)
console.log('this.userInfo.pictureUrls',this.userInfo.pictureUrls)
this.singleIndex = Index; this.singleIndex = Index;
} }
this.singleNoShow = true; this.singleNoShow = true;
...@@ -389,6 +388,7 @@ import {getOssUrl} from "../../api/article"; ...@@ -389,6 +388,7 @@ import {getOssUrl} from "../../api/article";
title: '操作失败', title: '操作失败',
icon: 'error', icon: 'error',
}) })
this.getUserInfo()
} }
}) })
}, },
......
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