You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
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");
|
|
}
|
|
}
|
|
};
|
|
|
|
}); |