define([ 'kefu-assets/api/kefu', 'text!./index.html', 'css!./index.css' ], function (kefuApi, template) { return { template, name: "transfer", props: { userUid: { type: [String, Number], default: '' } }, data() { return { loading: false, currentChoose: '', labelLists: [], name: '', } }, mounted() { this.getList() }, methods: { getList() { kefuApi.transferList({ nickname: this.name, uid: this.userUid }).then(res => { this.labelLists = res.data; }) }, bindActive(item) { this.$socket.then(ws => { ws.send({ data: { kefu_id: item.id, uid: this.userUid }, type: "request_transfer" }); }); this.$emit("close"); } } }; });