|
|
@@ -178,14 +178,19 @@
|
|
|
<!-- </view>-->
|
|
|
<uni-popup ref="popup" type="bottom">
|
|
|
<view class="addService">
|
|
|
- <view class="popupTitle">
|
|
|
- <text>选择服务对象</text>
|
|
|
+ <view class="flex-row justify-around">
|
|
|
+ <view :class="[type == 1 ? 'confirmButton' : 'cancelButton']" @click="clickPopupTitleBtn(1)">
|
|
|
+ <text>选择服务对象</text>
|
|
|
+ </view>
|
|
|
+ <view :class="[type == 2 ? 'confirmButton' : 'cancelButton']" @click="clickPopupTitleBtn(2)">
|
|
|
+ <text>选择推荐门店</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<scroll-view class="scrollY" scroll-y>
|
|
|
|
|
|
|
|
|
- <view class="flex-row objectItem" v-for="(item,index) in serviceObjectList" :key="index" :class="{'vBackGround': selectServiceObjectIndex === index}" @click="selectServiceObjectIndex = index">
|
|
|
+ <view v-if="type == 1" 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>
|
|
|
@@ -195,6 +200,14 @@
|
|
|
</view>
|
|
|
|
|
|
|
|
|
+ <view v-if="type == 2" class="flex-row objectItem" v-for="(item,index) in storeList" :key="index" :class="{'vBackGround': selectStoreIndex === index}" @click="setSelectStoreIndex(index)">
|
|
|
+ <view class="flex-col objectName ">
|
|
|
+ <text>{{ item.name }}</text>
|
|
|
+ </view>
|
|
|
+ <image v-if="item[index].id === storeId" class="vImage"
|
|
|
+ src="/static/index/xuanzhong.png"></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
|
|
|
</scroll-view>
|
|
|
@@ -221,7 +234,10 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ type:1,
|
|
|
+ storeList: [],
|
|
|
selectServiceObjectIndex: -1,
|
|
|
+ selectStoreIndex: -1,
|
|
|
showRemarkId: '',
|
|
|
userInfo: {},
|
|
|
subOrderNo: '',
|
|
|
@@ -312,6 +328,20 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ setSelectStoreIndex(index){
|
|
|
+ if (this.selectStoreIndex === index){
|
|
|
+ this.storeId = null
|
|
|
+ this.selectStoreIndex = -1
|
|
|
+ }else {
|
|
|
+ this.storeId = this.storeList[index].id
|
|
|
+ this.selectStoreIndex = index
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ clickPopupTitleBtn(type){
|
|
|
+ this.type = type
|
|
|
+ },
|
|
|
+
|
|
|
showRemark(item) {
|
|
|
if (this.showRemarkId == item.id) {
|
|
|
this.showRemarkId = ''
|
|
|
@@ -486,7 +516,7 @@ export default {
|
|
|
orderType: 7,
|
|
|
serviceObjectId: this.serviceObjectId,
|
|
|
activityId: this.activity.id,
|
|
|
- storeId: this.storeId,
|
|
|
+ storeId: this.storeId ,
|
|
|
inviteUserId: this.inviteUserId,
|
|
|
inviteOrderId: this.inviteOrderId,
|
|
|
inviteActivityId: this.inviteActivityId,
|
|
|
@@ -538,6 +568,20 @@ export default {
|
|
|
this.$api.activityDetail(data).then(res => {
|
|
|
console.log(res)
|
|
|
this.activity = res.data.data
|
|
|
+
|
|
|
+ let ids = this.activity.partStoreIds.split(',')
|
|
|
+ let names = this.activity.partStoreName.split(',')
|
|
|
+ console.log(ids,names)
|
|
|
+ for (let i = 0; i < ids.length; i++) {
|
|
|
+ let store = {
|
|
|
+ id: ids[i],
|
|
|
+ name: names[i]
|
|
|
+ }
|
|
|
+ this.storeList.push(store)
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(this.storeList,'+++++++++store_list++++++++++')
|
|
|
+
|
|
|
this.$set(this.activity)
|
|
|
if (this.isShare) {
|
|
|
console.log(this.activity)
|