hd il y a 3 mois
Parent
commit
c57a8cc114

+ 2 - 2
mini-pro-web/src/router/index.js

@ -95,12 +95,12 @@ const routes = [
  },
  {
    path: '/machine/detail',
    name: 'machineSmall',
    name: 'machineDetail',
    component: () => import('@/views/machine/detail.vue')
  },
  {
    path: '/machine/maxScreen',
    name: 'machineSmall',
    name: 'machineMaxScreen',
    component: () => import('@/views/machine/maxScreen.vue')
  }
]

+ 4 - 1
mini-pro-web/src/views/machine/maxScreen.vue

@ -21,7 +21,7 @@
          <img :src="item" />
        </van-swipe-item>
      </van-swipe>
      <div class="activeWrapper">
      <div class="activeWrapper" @click="toSmallScreen">
        <div class="left">
          <img src="./img/ax.png" style="width: 15px;height: 15px;object-fit: cover;margin-right: 5px;" />
          <div style="font-weight: bold;font-size: 11px;color: #3D92E0;">
@ -1130,6 +1130,9 @@ export default {
        mess: ''
      }
      this.send(obj)
    },
    toSmallScreen(){
      this.$router.push('/machine/small')
    }
  },
  destroyed() {

+ 7 - 3
mini-pro-web/src/views/machine/small.vue

@ -2,7 +2,7 @@
  <div>
    <img src="./img/small_bg.png" alt="" class="bg-img" />
    <img src="./img/small_title.png" alt="" class="title-img" />
    <div class="back">
    <div class="back" @click="backToHome">
      <img src="./img/small_home.png" class="home-img" alt="" />
      返回取药
    </div>
@ -68,7 +68,11 @@ export default {
      ]
    }
  },
  methods: {}
  methods: {
    backToHome(){
      this.$router.push('/machine/maxScreen')
    }
  }
}
</script>
@ -143,7 +147,7 @@ export default {
  position: absolute;
  width: 333px;
  height: 187px;
  top: 19%;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;