2022-06-01 18:18:33 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<!-- 邀请师傅模态框 -->
|
|
|
|
|
|
<view class="cu-modal" :class="isShow?'show':''">
|
|
|
|
|
|
<view class="cu-dialog bg-white">
|
|
|
|
|
|
<view class="cu-bar bg-white justify-end solid-bottom">
|
|
|
|
|
|
<view class="content">邀请</view>
|
|
|
|
|
|
<view class="action" @click="hideModal">
|
|
|
|
|
|
<text class="cuIcon-close text-red"></text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2022-06-28 17:12:15 +08:00
|
|
|
|
<view class="padding-xl text-left bg-white">
|
|
|
|
|
|
<!-- <view class="margin-top-sm">
|
2022-06-01 18:18:33 +08:00
|
|
|
|
<text>团队成员师傅ID:</text>
|
|
|
|
|
|
<input class="radius-input margin-top-sm" type="text" v-model="workerId"></input>
|
2022-06-28 17:12:15 +08:00
|
|
|
|
</view> -->
|
|
|
|
|
|
<!-- <view>
|
2022-06-01 18:18:33 +08:00
|
|
|
|
<text>成员师傅备注:</text>
|
|
|
|
|
|
<input class="radius-input margin-top-sm" type="text" v-model="workerName"></input>
|
2022-06-28 17:12:15 +08:00
|
|
|
|
</view> -->
|
|
|
|
|
|
<view>
|
|
|
|
|
|
是否确认加入{{inviteMasterObj.name}}的团队?
|
2022-06-01 18:18:33 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="cu-bar bg-white solid-top">
|
|
|
|
|
|
<view class="action margin-0 flex-sub text-black" @tap="hideModal">取消</view>
|
|
|
|
|
|
<view class="action margin-0 flex-sub text-main-color solid-left" @tap="hideModal"
|
2022-06-28 17:12:15 +08:00
|
|
|
|
@click="confirm">确定</view>
|
2022-06-01 18:18:33 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: 'invite-master',
|
|
|
|
|
|
emits: ['confirm'],
|
2022-06-28 17:12:15 +08:00
|
|
|
|
props: {
|
|
|
|
|
|
inviteMasterObj: {
|
|
|
|
|
|
type: Object,
|
|
|
|
|
|
default: {}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2022-06-01 18:18:33 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
isShow: false,
|
2022-06-28 17:12:15 +08:00
|
|
|
|
workerId: null,
|
|
|
|
|
|
// workerName: ''
|
2022-06-01 18:18:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2022-08-16 23:26:51 +08:00
|
|
|
|
showModal() {
|
2022-06-01 18:18:33 +08:00
|
|
|
|
this.isShow = true
|
|
|
|
|
|
},
|
2022-08-16 23:26:51 +08:00
|
|
|
|
hideModal() {
|
2022-06-01 18:18:33 +08:00
|
|
|
|
this.isShow = false;
|
|
|
|
|
|
this.resetData();
|
|
|
|
|
|
},
|
|
|
|
|
|
resetData() {
|
2022-06-28 17:12:15 +08:00
|
|
|
|
this.workerId = null
|
|
|
|
|
|
// this.workerName = ''
|
2022-06-01 18:18:33 +08:00
|
|
|
|
},
|
|
|
|
|
|
confirm() {
|
|
|
|
|
|
this.$emit('confirm', {
|
2022-06-28 17:12:15 +08:00
|
|
|
|
leaderId: this.inviteMasterObj.workerId,
|
|
|
|
|
|
workerId: this.$request.getCurUserInfo().workerId,
|
|
|
|
|
|
// workerName: this.workerName
|
2022-06-01 18:18:33 +08:00
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
</style>
|