handiwork.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="page">
  3. <view class="hander">
  4. <view class="content">
  5. <view class="" style="display: flex; justify-content: space-between;">
  6. <view class="">
  7. </view>
  8. <view class="one">
  9. <image src="https://i.ringzle.com/file/20240225/dc4ab62598874a89ae24f26d30d631d1.png" mode="">
  10. </image>
  11. </view>
  12. </view>
  13. <view class="two">
  14. <u--input type='number' placeholder="请输入核销码" border="none" v-model="value" @change="change"
  15. color='#FFFFFF' size='36'></u--input>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="btn" @click="handleDetail">
  20. 验证
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. h: uni.getSystemInfoSync().windowHeight - 87,
  29. mt: uni.getSystemInfoSync().statusBarHeight + 44,
  30. value: ''
  31. }
  32. },
  33. methods: {
  34. // 核销
  35. // handleDetail(item) {
  36. // let dto = {
  37. // writeOffCode: this.value
  38. // }
  39. // this.$api.post('/merchant/merchantFisherman/home/writeOffOrder?dto=', dto).then(res => {
  40. // console.log(res);
  41. // })
  42. // },
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. * {
  48. margin: 0;
  49. padding: 0;
  50. box-sizing: border-box;
  51. }
  52. .page {
  53. height: 100%;
  54. box-sizing: border-box;
  55. background-color: #f0f0f0;
  56. .hander {
  57. box-sizing: border-box;
  58. background-color: #fff;
  59. height: 436rpx;
  60. .content {
  61. height: 320rpx;
  62. background-color: #4E6088;
  63. // width: 100%;
  64. padding: 27rpx 30rpx;
  65. .one {
  66. width: 54rpx;
  67. height: 54rpx;
  68. image {
  69. width: 100%;
  70. height: 100%;
  71. }
  72. }
  73. }
  74. }
  75. }
  76. .btn {
  77. position: fixed;
  78. bottom: 0;
  79. width: 100%;
  80. height: 118rpx;
  81. background-color: #8E939C;
  82. line-height: 118rpx;
  83. text-align: center;
  84. font-size: 30rpx;
  85. color: #FFFFFF;
  86. font-weight: Regular;
  87. }
  88. </style>