Browse Source

bottom

master
maochaoying 2 years ago
parent
commit
d66d75e4bc
  1. 20
      src/components/Bottom.vue
  2. BIN
      src/static/img/newpage/bottom2.png
  3. BIN
      src/static/img/newpage/bottom3.png

20
src/components/Bottom.vue

@ -1,6 +1,6 @@
<template>
<div :class="isDrag ? 'bottom_container drag' : 'bottom_container'">
<img :src="BottomBackground" class="bottom_img" alt="" />
<img :src="getData()" class="bottom_img" alt="" />
<div class="btn1"></div>
<div class="btn2" @click="toPhone"></div>
<div
@ -15,12 +15,30 @@
import { showSuccessToast, showFailToast } from 'vant'
import Clipboard from 'clipboard'
import BottomBackground from '@/static/img/newpage/bottom.png'
import BottomBackground2 from '@/static/img/newpage/bottom2.png'
import BottomBackground3 from '@/static/img/newpage/bottom3.png'
import { useRoute } from 'vue-router'
const route = useRoute()
const props = defineProps({
isDrag: {
type: Boolean,
},
page: {
type: String,
},
})
const getData = () => {
if (route.path.indexOf('/hardware') != -1) {
return BottomBackground3
}
if (route.path.indexOf('/industry') != -1) {
return BottomBackground2
}
return BottomBackground
}
const addWeChat = () => {
// CPMGC007
let clipboard = new Clipboard('.copy')

BIN
src/static/img/newpage/bottom2.png

After

Width: 1080  |  Height: 120  |  Size: 9.7 KiB

BIN
src/static/img/newpage/bottom3.png

After

Width: 1080  |  Height: 120  |  Size: 9.6 KiB

Loading…
Cancel
Save