connected.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div>
  3. <van-row class="padding">
  4. <van-col span="5">
  5. <div class="device_bg flex flex-direction align-center justify-center">
  6. <img src="https://img.shuimuai.com/web/phone.png" alt="" class="device_phone">
  7. <text class="text-gray device_text"> 我的手机</text>
  8. </div>
  9. </van-col>
  10. <van-col span="3" offset="1">
  11. <div class="dot_container flex align-center">
  12. <div class="dot_wait">
  13. <img src="https://img.shuimuai.com/m_sign_gou%402x.png" alt="" class="moving_dot">
  14. </div>
  15. </div>
  16. </van-col>
  17. <van-col span="5" offset="0">
  18. <div class="device_bg flex flex-direction align-center justify-center">
  19. <img src="https://img.shuimuai.com/web/sign_green.png" alt="" class="sign_green">
  20. <img src="https://img.shuimuai.com/web/brain.png" alt="" class="device_brain">
  21. <text class="text-gray device_text"> 水母智能脑环</text>
  22. </div>
  23. </van-col>
  24. </van-row>
  25. <!-- 按钮组合-->
  26. <van-row>
  27. <van-col span="9" offset="1">
  28. <button class="cu-btn bg-red lg text-white" @click="change_status(0)">
  29. <img src="https://img.shuimuai.com/m_duankainaohuan.png" class="cut_brain_icon" alt="">
  30. <text class="padding-lr cut_text">断开脑环</text>
  31. </button>
  32. </van-col>
  33. <van-col span="12" offset="1">
  34. <button class="cu-btn bg-red lg cu-btn-primary" @click="open_choose_toy">
  35. <img src="https://img.shuimuai.com/m_xuanzewanju.png" alt="" class="cut_brain_icon">
  36. <text class="padding-lr cut_text">选择玩具</text>
  37. </button>
  38. </van-col>
  39. </van-row>
  40. <div class="boy_session padding">
  41. <text class="boy_session_text">点击选择你喜欢 的玩具类别就可 以开始玩囖!</text>
  42. </div>
  43. <img src="https://img.shuimuai.com/web/boy.png" alt="" class="connected_boy">
  44. </div>
  45. </template>
  46. <script>
  47. export default {
  48. name: "connected",
  49. methods: {
  50. open_choose_toy() {
  51. this.$emit('open_choose_toy')
  52. },
  53. change_status($status) {
  54. this.$emit('change_brain_status', $status)
  55. }
  56. }
  57. }
  58. </script>
  59. <style scoped>
  60. </style>