|
@@ -183,16 +183,20 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<scroll-view class="scrollY" scroll-y>
|
|
<scroll-view class="scrollY" scroll-y>
|
|
|
- <view class="flex-row objectItem" :class="{'vBackGround': selectServiceObjectIndex === index}"
|
|
|
|
|
- v-for="(item,index) in serviceObjectList" :key="index"
|
|
|
|
|
- @click="selectServiceObjectIndex = index">
|
|
|
|
|
- <image class="objectImage" :src="item.facePhotoUrl || '/static/ud4.png'"></image>
|
|
|
|
|
- <view class="flex-col objectName ">
|
|
|
|
|
- <text>{{ item.nickName }}</text>
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <view class="flex-row objectItem" v-for="(item,index) in serviceObjectList" :key="index" :class="{'vBackGround': selectServiceObjectIndex === index}" @click="selectServiceObjectIndex = index">
|
|
|
|
|
+ <image class="objectImage" :src="item.facePhotoUrl || '/static/ud4.png'"></image>
|
|
|
|
|
+ <view class="flex-col objectName ">
|
|
|
|
|
+ <text>{{ item.nickName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <image v-if="selectServiceObjectIndex === index" class="vImage"
|
|
|
|
|
+ src="/static/index/xuanzhong.png"></image>
|
|
|
</view>
|
|
</view>
|
|
|
- <image v-if="selectServiceObjectIndex === index" class="vImage"
|
|
|
|
|
- src="/static/index/xuanzhong.png"></image>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
|
|
|
|
|
<view class="flex-row justify-around">
|
|
<view class="flex-row justify-around">
|
|
@@ -236,6 +240,7 @@ export default {
|
|
|
inviteOrderId: null,
|
|
inviteOrderId: null,
|
|
|
inviteActivityId:null,
|
|
inviteActivityId:null,
|
|
|
isShareMax: false,
|
|
isShareMax: false,
|
|
|
|
|
+ renewServiceObjectId:null
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -249,7 +254,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
|
- console.log(e)
|
|
|
|
|
|
|
+ console.log('+++++++++++e+++++++++++++',e)
|
|
|
|
|
+
|
|
|
|
|
+ if (e.renewServiceObjectId){
|
|
|
|
|
+ this.renewServiceObjectId = e.renewServiceObjectId
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (e.id) {
|
|
if (e.id) {
|
|
|
this.id = e.id
|
|
this.id = e.id
|
|
|
console.log('上一个页面传递过来的活动ID===>', this.id)
|
|
console.log('上一个页面传递过来的活动ID===>', this.id)
|
|
@@ -326,8 +336,17 @@ export default {
|
|
|
return this.$api.listServiceObject(this.reqParm).then((res) => {
|
|
return this.$api.listServiceObject(this.reqParm).then((res) => {
|
|
|
let serviceObjectList = [];
|
|
let serviceObjectList = [];
|
|
|
res.data.data.forEach(i => {
|
|
res.data.data.forEach(i => {
|
|
|
- if (i.isSelf != 1) {
|
|
|
|
|
- serviceObjectList.push(i);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (this.renewServiceObjectId){
|
|
|
|
|
+ if (i.isSelf != 1) {
|
|
|
|
|
+ if (this.renewServiceObjectId == i.id){
|
|
|
|
|
+ serviceObjectList.push(i);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }else {
|
|
|
|
|
+ if (i.isSelf != 1) {
|
|
|
|
|
+ serviceObjectList.push(i);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
this.$set(this.serviceObjectList, 0, serviceObjectList);
|
|
this.$set(this.serviceObjectList, 0, serviceObjectList);
|
|
@@ -376,7 +395,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
this.isActivityCheck = true
|
|
this.isActivityCheck = true
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- uni.navigateTo({
|
|
|
|
|
|
|
+ uni.reLaunch({
|
|
|
url: '/myPages/myActivity/myActivity'
|
|
url: '/myPages/myActivity/myActivity'
|
|
|
})
|
|
})
|
|
|
}, 2000)
|
|
}, 2000)
|
|
@@ -508,10 +527,14 @@ export default {
|
|
|
console.log(this.id, '活动ID')
|
|
console.log(this.id, '活动ID')
|
|
|
const data = {
|
|
const data = {
|
|
|
id: this.id,
|
|
id: this.id,
|
|
|
- inviteActivityId:this.inviteActivityId,
|
|
|
|
|
inviteUserId:this.inviteUserId,
|
|
inviteUserId:this.inviteUserId,
|
|
|
inviteOrderId:this.inviteOrderId,
|
|
inviteOrderId:this.inviteOrderId,
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (this.inviteActivityId){
|
|
|
|
|
+ data.inviteActivityId = this.inviteActivityId
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.$api.activityDetail(data).then(res => {
|
|
this.$api.activityDetail(data).then(res => {
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
this.activity = res.data.data
|
|
this.activity = res.data.data
|