evaluation.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div class="maturity-game-page">
  3. <head-component :headinfo=headinfo></head-component>
  4. <div class="page-content">
  5. <div></div>
  6. <div>
  7. <div class="content-img">
  8. <img src="@/assets/images/wakeup/maturity/shadow-bg.png" >
  9. </div>
  10. <div>
  11. <img src="@/assets/images/wakeup/maturity/shadow-bg.png" >
  12. <img src="@/assets/images/wakeup/maturity/shadow-bg.png" >
  13. <img src="@/assets/images/wakeup/maturity/shadow-bg.png" >
  14. <img src="@/assets/images/wakeup/maturity/shadow-bg.png" >
  15. <img src="@/assets/images/wakeup/maturity/shadow-bg.png" >
  16. </div>
  17. </div>
  18. <div></div>
  19. <!-- <div class="top">-->
  20. <!-- <img src="@/assets/images/wakeup/maturity/maturity-game-title.png" >-->
  21. <!-- </div>-->
  22. <!-- <div class="bottom">-->
  23. <!-- <img src="@/assets/images/wakeup/maturity/maturity-game-left.png" >-->
  24. <!-- <img src="@/assets/images/wakeup/maturity/maturity-game-right.png" >-->
  25. <!-- </div>-->
  26. </div>
  27. </div>
  28. </template>
  29. <script setup>
  30. import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
  31. const router = useRouter()
  32. const headinfo = ref({})
  33. const draggedItem = ref(null);
  34. function dragStart(event) {
  35. draggedItem.value = event.target;
  36. }
  37. function drop(event) {
  38. event.preventDefault(); // 防止默认处理(例如打开链接)
  39. if (event.target !== draggedItem.value) {
  40. const target = event.target; // 获取放置的目标元素
  41. const item = draggedItem.value; // 获取被拖拽的元素
  42. // 交换位置或进行其他操作
  43. item.parentNode.insertBefore(item, target); // 将被拖拽的元素插入到目标元素之前
  44. }
  45. }
  46. function setHeadinfo(){
  47. headinfo.value = {
  48. title: '生涯成熟度测评',
  49. user: {
  50. avatar: '头像路径',
  51. nickName: '张三'
  52. },
  53. backUrl : '/index'
  54. }
  55. }
  56. function jumpTo(path) {
  57. router.push({
  58. path: path,
  59. query: {name: 123}
  60. })
  61. }
  62. onMounted(() => {
  63. setHeadinfo()
  64. })
  65. </script>
  66. <style scoped lang="scss">
  67. .maturity-game-page{
  68. background: url('@/assets/images/wakeup/maturity/maturity-game-bg.png') no-repeat;
  69. background-size: 1920px 1080px;
  70. z-index:10;
  71. width: 100%;
  72. height: 1080px;
  73. .page-content{
  74. width: 100%;
  75. position: absolute;
  76. top: 123px;
  77. bottom: 0;
  78. .content-img{
  79. width: 1187px;
  80. height: 345px;
  81. border: 1px solid;
  82. img{
  83. width: 1187px;
  84. height: 345px;
  85. }
  86. }
  87. }
  88. }
  89. </style>