|
@@ -16,7 +16,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view v-else>
|
|
<view v-else>
|
|
|
- <view class="loveCard" v-for="(item,index) in gotList" :key="index" @click="jumpToDetail(item)">
|
|
|
|
|
|
|
+ <view class="loveCard" v-for="(item,index) in gotList" :key="index" @click="jumpToDetail(item,2)">
|
|
|
<image src="/static/familyCard/shoudaoLove.png" class="imgBack"></image>
|
|
<image src="/static/familyCard/shoudaoLove.png" class="imgBack"></image>
|
|
|
<view class="loveCardMsg">
|
|
<view class="loveCardMsg">
|
|
|
<view class="flex-row">
|
|
<view class="flex-row">
|
|
@@ -69,7 +69,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view v-else>
|
|
<view v-else>
|
|
|
- <view class="loveCard" v-for="(item, index) in giveList" :key="index" @click="jumpToDetail(item)">
|
|
|
|
|
|
|
+ <view class="loveCard" v-for="(item, index) in giveList" :key="index" @click="jumpToDetail(item,1)">
|
|
|
<image src="/static/familyCard/zengsLove.png" class="imgBack"></image>
|
|
<image src="/static/familyCard/zengsLove.png" class="imgBack"></image>
|
|
|
<view class="loveCardMsg">
|
|
<view class="loveCardMsg">
|
|
|
<view class="flex-row">
|
|
<view class="flex-row">
|
|
@@ -165,30 +165,30 @@
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- jumpToDetail(item) {
|
|
|
|
|
|
|
+ jumpToDetail(item,number) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: '/myPages/familyCard/unbindFamilyCard/unbindFamilyCard?data=' + JSON.stringify(item)
|
|
|
|
|
|
|
+ url: '/myPages/familyCard/unbindFamilyCard/unbindFamilyCard?data=' + JSON.stringify(item) + '&type=' + number
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getImgUrlByOssId(list, number) {
|
|
getImgUrlByOssId(list, number) {
|
|
|
if (list) {
|
|
if (list) {
|
|
|
- list.forEach((e) => {
|
|
|
|
|
|
|
+ for (let i=0;i<list.length;i++){
|
|
|
let data = null
|
|
let data = null
|
|
|
if (number == 1) {
|
|
if (number == 1) {
|
|
|
- data = e.presentUserPhoto
|
|
|
|
|
-
|
|
|
|
|
|
|
+ data = list[i].userPhoto
|
|
|
} else {
|
|
} else {
|
|
|
- data = e.userPhoto
|
|
|
|
|
|
|
+ data = list[i].presentUserPhoto
|
|
|
}
|
|
}
|
|
|
if (data) {
|
|
if (data) {
|
|
|
this.$api.getImage(data).then(res => {
|
|
this.$api.getImage(data).then(res => {
|
|
|
- e.url = res.data.data[0].url.replace(/^http:/, "https:")
|
|
|
|
|
|
|
+ list[i].url = res.data.data[0].url.replace(/^http:/, "https:")
|
|
|
|
|
+ this.$set(list,i,list[i])
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- this.$forceUpdate()
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //获取我赠送的亲情卡列表
|
|
|
getGiveList() {
|
|
getGiveList() {
|
|
|
this.$api.getMyPresentList().then((res) => {
|
|
this.$api.getMyPresentList().then((res) => {
|
|
|
this.giveList = res.data.data
|
|
this.giveList = res.data.data
|
|
@@ -196,10 +196,11 @@
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ //查询我收到的情亲卡列表
|
|
|
getGotList() {
|
|
getGotList() {
|
|
|
this.$api.getMyReceiveList().then((res) => {
|
|
this.$api.getMyReceiveList().then((res) => {
|
|
|
this.gotList = res.data.data
|
|
this.gotList = res.data.data
|
|
|
- this.getImgUrlByOssId(this.giveList, 2)
|
|
|
|
|
|
|
+ this.getImgUrlByOssId(this.gotList, 2)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|