index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. <div>
  7. <div style="font-size: 30rpx;font-weight: bold;">订单号:{{i.ORDER_CODE}}</div>
  8. <div style="margin-top: 8rpx;">
  9. 商品名称:{{i.GOODS_NAME}}
  10. </div>
  11. <div style="font-size: 24rpx;font-weight: normal;margin-top: 8rpx;">
  12. 游玩时间:{{i.PLAY_DATE}} {{i.PLAY_TIME}}
  13. </div>
  14. </div>
  15. <text>核销</text>
  16. </view>
  17. </view>
  18. <Tabbares :tabbarid="1" :value="1"></Tabbares>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. date: new Date().Format('yyyy-MM-dd'),
  26. show: false,
  27. data: [],
  28. }
  29. },
  30. onLoad() {
  31. this.getList();
  32. },
  33. methods: {
  34. jj(){
  35. uni.navigateTo({
  36. url:'/pagesHouse/Verification/success'
  37. })
  38. },
  39. dd(){
  40. uni.navigateTo({
  41. url:'/pagesHouse/Verification/record'
  42. })
  43. },
  44. getList(){
  45. this.$api.get('/scenic/order/queryCurBoatNo/'+ uni.getStorageSync('merchantId')).then(res=>{
  46. if(res.data.code==0){
  47. console.log(res)
  48. this.data=res.data.data;
  49. }
  50. })
  51. },
  52. check(item) {
  53. uni.navigateTo({
  54. url: '/pagesHouse/Verification/checkApp?=&boatNo='+item.BOAT_NO +'&playDate='+item.PLAY_DATE
  55. })
  56. // // #ifdef APP-PLUS
  57. // uni.navigateTo({
  58. // url: '/pagesHouse/Verification/checkApp?=&boatNo='+item.BOAT_NO +'&playDate='+item.PLAY_DATE
  59. // })
  60. // // #endif
  61. // // #ifdef MP-WEIXIN
  62. // uni.navigateTo({
  63. // url: '/pagesHouse/Verification/check?=&boatNo='+item.BOAT_NO+'&playDate='+item.PLAY_DATE
  64. // })
  65. // // #endif
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="less" scoped>
  71. .page {
  72. background: #F5F8FA;
  73. padding-bottom: 40rpx;
  74. box-sizing: border-box;
  75. }
  76. .list {
  77. box-sizing: border-box;
  78. padding: 30rpx 30rpx 0;
  79. .item {
  80. height: 160rpx;
  81. display: flex;
  82. justify-content: space-between;
  83. padding: 0 24rpx;
  84. background-color: #fff;
  85. align-items: center;
  86. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  87. margin-bottom: 20rpx;
  88. border-radius: 16rpx;
  89. text {
  90. &:first-child {
  91. font-size: 54rpx;
  92. font-weight: bold;
  93. color: #111;
  94. }
  95. &:last-child {
  96. display: inline-block;
  97. width: 168rpx;
  98. height: 88rpx;
  99. line-height: 88rpx;
  100. text-align: center;
  101. background-color: #007A69;
  102. color: #fff;
  103. font-size: 32rpx;
  104. border-radius: 44rpx;
  105. }
  106. }
  107. }
  108. }
  109. </style>