index.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. // #ifdef APP-PLUS
  46. uni.navigateTo({
  47. url: '/pagesHouse/Verification/checkApp?=&boatNo='+item.BOAT_NO
  48. })
  49. // #endif
  50. // #ifdef MP-WEIXIN
  51. uni.navigateTo({
  52. url: '/pagesHouse/Verification/check?=&boatNo='+item.BOAT_NO
  53. })
  54. // #endif
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="less" scoped>
  60. .page {
  61. background: #F5F8FA;
  62. padding-bottom: 40rpx;
  63. box-sizing: border-box;
  64. }
  65. .list {
  66. box-sizing: border-box;
  67. padding: 30rpx 30rpx 0;
  68. .item {
  69. height: 160rpx;
  70. display: flex;
  71. justify-content: space-between;
  72. padding: 0 24rpx;
  73. background-color: #fff;
  74. align-items: center;
  75. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  76. margin-bottom: 20rpx;
  77. border-radius: 16rpx;
  78. text {
  79. &:first-child {
  80. font-size: 54rpx;
  81. font-weight: bold;
  82. color: #111;
  83. }
  84. &:last-child {
  85. display: inline-block;
  86. width: 168rpx;
  87. height: 88rpx;
  88. line-height: 88rpx;
  89. text-align: center;
  90. background-color: #007A69;
  91. color: #fff;
  92. font-size: 32rpx;
  93. border-radius: 44rpx;
  94. }
  95. }
  96. }
  97. }
  98. </style>