index.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="page" :style="{'min-height':(h-th)+'px','padding-top':mt+'px'}">
  3. <c-nav-bar title="扫码核销"></c-nav-bar>
  4. <view class="list">
  5. <view class="item" v-for="(i,index) in data" :key="index" @click="check()">
  6. <text>08A</text>
  7. <text>核销</text>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. date: new Date().Format('yyyy-MM-dd'),
  17. show: false,
  18. h: uni.getSystemInfoSync().windowHeight - 87,
  19. mt: uni.getSystemInfoSync().statusBarHeight + 44,
  20. data: [1, 2, 3, 4, 5, 6, 7],
  21. }
  22. },
  23. onLoad() {},
  24. methods: {
  25. check() {
  26. uni.navigateTo({
  27. url: '/pagesHouse/Verification/check'
  28. })
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="less" scoped>
  34. .page {
  35. background: #F5F8FA;
  36. padding-bottom: 40rpx;
  37. box-sizing: border-box;
  38. }
  39. .list {
  40. box-sizing: border-box;
  41. padding: 30rpx 30rpx 0;
  42. .item {
  43. height: 160rpx;
  44. display: flex;
  45. justify-content: space-between;
  46. padding: 0 24rpx;
  47. background-color: #fff;
  48. align-items: center;
  49. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  50. margin-bottom: 20rpx;
  51. text {
  52. &:first-child {
  53. font-size: 54rpx;
  54. font-weight: bold;
  55. color: #111;
  56. }
  57. &:last-child {
  58. display: inline-block;
  59. width: 168rpx;
  60. height: 88rpx;
  61. line-height: 88rpx;
  62. text-align: center;
  63. background-color: #007A69;
  64. color: #fff;
  65. font-size: 32rpx;
  66. border-radius: 44rpx;
  67. }
  68. }
  69. }
  70. }
  71. </style>