index.vue 1.8 KB

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