|
@@ -67,7 +67,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="bg" v-if="deleteDialog"></div>
|
|
<div class="bg" v-if="deleteDialog"></div>
|
|
|
|
|
|
- <div class="feedBack">
|
|
|
|
|
|
+ <div class="feedBack" @click="feedback">
|
|
<a href="mailto:service@cybertogether.net">
|
|
<a href="mailto:service@cybertogether.net">
|
|
<div class="mail">
|
|
<div class="mail">
|
|
<img src="../../static/img/icon-feedback.svg" alt="" />
|
|
<img src="../../static/img/icon-feedback.svg" alt="" />
|
|
@@ -83,6 +83,8 @@ import { ElMessage } from 'element-plus'
|
|
import Api from '../../static/http/api';
|
|
import Api from '../../static/http/api';
|
|
import { postRequest } from '../../static/http'
|
|
import { postRequest } from '../../static/http'
|
|
import { getStorage, storageKey, removeStorage } from '../../static/utils/storage'
|
|
import { getStorage, storageKey, removeStorage } from '../../static/utils/storage'
|
|
|
|
+import { Report } from '../../static/report'
|
|
|
|
+import { businessType, pageSource, objectType } from '../../static/report/enum'
|
|
|
|
|
|
const userInfo: any = ref({})
|
|
const userInfo: any = ref({})
|
|
|
|
|
|
@@ -96,6 +98,15 @@ const deleteDialog = ref(false)
|
|
const pageNum = ref(1)
|
|
const pageNum = ref(1)
|
|
const pageSize = 1000
|
|
const pageSize = 1000
|
|
const pageList = ref([])
|
|
const pageList = ref([])
|
|
|
|
+const buttonType = {
|
|
|
|
+ publish: 'publish-button',
|
|
|
|
+ delete: 'delete-button',
|
|
|
|
+ unlist: 'unlist-button',
|
|
|
|
+ view: 'view-button',
|
|
|
|
+ feedback: 'feedback-button',
|
|
|
|
+ cancel: 'cancel-button',
|
|
|
|
+ continue: 'continue-button',
|
|
|
|
+}
|
|
|
|
|
|
const logout = () => {
|
|
const logout = () => {
|
|
removeStorage(storageKey.userInfo)
|
|
removeStorage(storageKey.userInfo)
|
|
@@ -109,18 +120,54 @@ const add = () => {
|
|
const remove = (item: any) => {
|
|
const remove = (item: any) => {
|
|
deleteItem.value = JSON.parse(JSON.stringify(item));
|
|
deleteItem.value = JSON.parse(JSON.stringify(item));
|
|
showDeleteLayer()
|
|
showDeleteLayer()
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.managerPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.buttonClick,
|
|
|
|
+ objectType: buttonType.delete,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
const publish = (item: any) => {
|
|
const publish = (item: any) => {
|
|
publishType.value = 1;
|
|
publishType.value = 1;
|
|
publishItem.value = item;
|
|
publishItem.value = item;
|
|
showPublishLayer()
|
|
showPublishLayer()
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.managerPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.buttonClick,
|
|
|
|
+ objectType: buttonType.publish,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
const unpublish = (item: any) => {
|
|
const unpublish = (item: any) => {
|
|
publishType.value = 2;
|
|
publishType.value = 2;
|
|
publishItem.value = item;
|
|
publishItem.value = item;
|
|
showPublishLayer()
|
|
showPublishLayer()
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.managerPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.buttonClick,
|
|
|
|
+ objectType: buttonType.unlist,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
const view = () => {
|
|
const view = () => {
|
|
@@ -128,6 +175,33 @@ const view = () => {
|
|
let nickName = userInfo && userInfo.nickName || '';
|
|
let nickName = userInfo && userInfo.nickName || '';
|
|
// open
|
|
// open
|
|
window.open(`https://twitter.com/${nickName}`);
|
|
window.open(`https://twitter.com/${nickName}`);
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.managerPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.buttonClick,
|
|
|
|
+ objectType: buttonType.view,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const feedback = () => {
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.managerPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.buttonClick,
|
|
|
|
+ objectType: buttonType.feedback,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
const getList = () => {
|
|
const getList = () => {
|
|
@@ -171,6 +245,7 @@ const confirmDeleteLayer = () => {
|
|
type: 'success',
|
|
type: 'success',
|
|
message: 'Delete Success!',
|
|
message: 'Delete Success!',
|
|
})
|
|
})
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
ElMessage({
|
|
ElMessage({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -181,8 +256,22 @@ const confirmDeleteLayer = () => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-const hidePublishLayer = () => {
|
|
|
|
|
|
+const hidePublishLayer = (ifReport = true) => {
|
|
publishDialog.value = false;
|
|
publishDialog.value = false;
|
|
|
|
+ if (publishType.value === 1 && ifReport) {
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.confirmationPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.buttonClick,
|
|
|
|
+ objectType: buttonType.cancel,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
const showPublishLayer = () => {
|
|
const showPublishLayer = () => {
|
|
@@ -211,13 +300,47 @@ const confirmPublishLayer = () => {
|
|
type: 'success',
|
|
type: 'success',
|
|
message: publishType.value === 1 ? 'Published Successfully!' : 'We have listed your NFT collection!',
|
|
message: publishType.value === 1 ? 'Published Successfully!' : 'We have listed your NFT collection!',
|
|
})
|
|
})
|
|
|
|
+ if (publishType.value === 1) {
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.confirmationPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.buttonClick,
|
|
|
|
+ objectType: buttonType.continue,
|
|
|
|
+ },
|
|
|
|
+ extParams: {
|
|
|
|
+ Publish: 'success'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
ElMessage({
|
|
ElMessage({
|
|
type: 'error',
|
|
type: 'error',
|
|
message: msg
|
|
message: msg
|
|
})
|
|
})
|
|
|
|
+ if (publishType.value === 1) {
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.confirmationPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.buttonClick,
|
|
|
|
+ objectType: buttonType.continue,
|
|
|
|
+ },
|
|
|
|
+ extParams: {
|
|
|
|
+ Publish: 'fail'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- hidePublishLayer()
|
|
|
|
|
|
+ hidePublishLayer(false)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -225,6 +348,17 @@ onMounted(() => {
|
|
userInfo.value = getStorage(storageKey.userInfo);
|
|
userInfo.value = getStorage(storageKey.userInfo);
|
|
// 获取列表
|
|
// 获取列表
|
|
getList()
|
|
getList()
|
|
|
|
+ // Report
|
|
|
|
+ Report({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ pageSource: pageSource.managerPage,
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: businessType.pageView,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|