|
|
@@ -0,0 +1,162 @@
|
|
|
+<template>
|
|
|
+ <div id="packPage">
|
|
|
+ <img src="@/assets/img/a88848d9321bc1706685815ea2103b5.png" alt="" />
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in listComputer(screenWidth)"
|
|
|
+ :key="index"
|
|
|
+ @click="jump(item)"
|
|
|
+ :style="item.style"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ screenWidth: 0
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ listComputer: function() {
|
|
|
+ return function(floats) {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 360 * floats + "px",
|
|
|
+ top: 1440 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/bank-list"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 770 * floats + "px",
|
|
|
+ top: 1440 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/bank-list"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 1180 * floats + "px",
|
|
|
+ top: 1440 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/handout-list"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 360 * floats + "px",
|
|
|
+ top: 1730 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/bank-list"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 770 * floats + "px",
|
|
|
+ top: 1730 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/handout-list"
|
|
|
+ },
|
|
|
+ ////--------------------------------
|
|
|
+
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 360 * floats + "px",
|
|
|
+ top: 2655 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/bank-list"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 770 * floats + "px",
|
|
|
+ top: 2655 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/bank-list"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 1180 * floats + "px",
|
|
|
+ top: 2655 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/bank-list"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 360 * floats + "px",
|
|
|
+ top: 2945 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/handout-list"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: {
|
|
|
+ position: "absolute",
|
|
|
+ left: 770 * floats + "px",
|
|
|
+ top: 2945 * floats + "px",
|
|
|
+ width: 380 * floats + "px",
|
|
|
+ height: 260 * floats + "px",
|
|
|
+ cursor: "pointer"
|
|
|
+ },
|
|
|
+ url: "/handout-list"
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ };
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.screenWidth = (document.body.clientWidth / 1920).toFixed(4);
|
|
|
+ window.onresize = () => {
|
|
|
+ return (() => {
|
|
|
+ this.screenWidth = (document.body.clientWidth / 1920).toFixed(4);
|
|
|
+ })();
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ jump(item) {
|
|
|
+ window.open(item.url, "_blank");
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+#packPage {
|
|
|
+ & > img {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|