scan.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div id="index_login_container" class="animation-slide-right">
  3. <view class="solid-bottom text-xl padding text-center">
  4. <text class=" text-bold title_color">欢迎来到水母星球!</text>
  5. </view>
  6. <view class="text-df text-center slogen">在此你将会体验到操控专注力的神奇感觉</view>
  7. <div class="sub_slogen_sm text-center sub_slogen_ext">
  8. <span class="text-center">水母星球小程序需要会员卡或者邀请卡使用 </span><br>
  9. <span class="text-center">如你手上已有会员卡或邀请卡,请扫卡上的二维码</span>
  10. </div>
  11. <div class="text-center padding">
  12. <button class="cu-btn lg cu-btn-primary text-white text-center" @click="open_scan"><text class="cuIcon-scan"></text>扫码</button>
  13. </div>
  14. <view class="text-center text-xs">
  15. <text class="text-gray">如果您在我们的实体店,请在店员的指导下链接脑环</text>
  16. </view>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name:'scan_container',
  22. methods:{
  23. open_scan(){
  24. wx.scanCode({
  25. onlyFromCamera:true
  26. })
  27. },
  28. toLogin(){
  29. this.$emit('changeStatus','login')
  30. }
  31. }
  32. }
  33. </script>
  34. <style>
  35. .sub_slogen_ext {
  36. width: 290px;
  37. }
  38. </style>