index.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="page" :style="{'min-height':(h)+'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(i)">
  6. <text>{{i.BOAT_NO}}</text>
  7. <text>核销</text>
  8. </view>
  9. </view>
  10. <view @tap="jj()">111</view>
  11. <view @tap="dd()">222</view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. date: new Date().Format('yyyy-MM-dd'),
  19. show: false,
  20. data: [1, 2, 3, 4, 5, 6, 7],
  21. }
  22. },
  23. onLoad() {
  24. this.getList();
  25. },
  26. methods: {
  27. jj(){
  28. uni.navigateTo({
  29. url:'/pagesHouse/Verification/success'
  30. })
  31. },
  32. dd(){
  33. uni.navigateTo({
  34. url:'/pagesHouse/Verification/record'
  35. })
  36. },
  37. getList(){
  38. this.$api.get('/scenic/order/queryCurBoatNo/'+ uni.getStorageSync('merchantId')).then(res=>{
  39. if(res.data.code==0){
  40. console.log(res)
  41. this.data=res.data.data;
  42. }
  43. })
  44. },
  45. check(item) {
  46. uni.navigateTo({
  47. url: '/pagesHouse/Verification/check?=&boatNo='+item.BOAT_NO
  48. })
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="less" scoped>
  54. .page {
  55. background: #F5F8FA;
  56. padding-bottom: 40rpx;
  57. box-sizing: border-box;
  58. }
  59. .list {
  60. box-sizing: border-box;
  61. padding: 30rpx 30rpx 0;
  62. .item {
  63. height: 160rpx;
  64. display: flex;
  65. justify-content: space-between;
  66. padding: 0 24rpx;
  67. background-color: #fff;
  68. align-items: center;
  69. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  70. margin-bottom: 20rpx;
  71. border-radius: 16rpx;
  72. text {
  73. &:first-child {
  74. font-size: 54rpx;
  75. font-weight: bold;
  76. color: #111;
  77. }
  78. &:last-child {
  79. display: inline-block;
  80. width: 168rpx;
  81. height: 88rpx;
  82. line-height: 88rpx;
  83. text-align: center;
  84. background-color: #007A69;
  85. color: #fff;
  86. font-size: 32rpx;
  87. border-radius: 44rpx;
  88. }
  89. }
  90. }
  91. }
  92. </style>