details.vue 775 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" :title="title" background-color="#F7F9FA"
  4. color="#000" @clickLeft="back"></uni-nav-bar>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. title: '',
  12. dataObj: {
  13. },
  14. }
  15. },
  16. onLoad(options) {
  17. this.title = options.taskName ? options.taskName + '-投料' : '投料'
  18. },
  19. methods: {
  20. // 相机扫码
  21. HandlScanCode() {
  22. let _this = this
  23. uni.scanCode({
  24. success: function(res) {
  25. console.log(res)
  26. }
  27. })
  28. //_this.Scancodedate('res')
  29. },
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. .content-box {
  35. height: 100vh;
  36. overflow: hidden;
  37. display: flex;
  38. flex-direction: column;
  39. }
  40. </style>