index.vue 1.8 KB

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