handiwork.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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" color='#FFFFFF'
  15. 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() {
  36. console.log(this.value);
  37. this.$api.get('/merchant/merchantFisherman/home/getDetails?writeOffCode=' + this.value).then(res => {
  38. if (res.data.code == 0) {
  39. this.value = ''
  40. uni.setStorageSync('list', res.data.data);
  41. uni.navigateTo({
  42. url: '/pagesHouse/Verification/details'
  43. })
  44. } else {
  45. this.value = ''
  46. this.$showToast(res.data.msg)
  47. }
  48. })
  49. },
  50. }
  51. }
  52. </script>
  53. <style lang="scss">
  54. * {
  55. margin: 0;
  56. padding: 0;
  57. box-sizing: border-box;
  58. }
  59. .page {
  60. height: 100%;
  61. box-sizing: border-box;
  62. background-color: #f0f0f0;
  63. .hander {
  64. box-sizing: border-box;
  65. background-color: #fff;
  66. height: 436rpx;
  67. .content {
  68. height: 320rpx;
  69. background-color: #4E6088;
  70. // width: 100%;
  71. padding: 27rpx 30rpx;
  72. .one {
  73. width: 54rpx;
  74. height: 54rpx;
  75. image {
  76. width: 100%;
  77. height: 100%;
  78. }
  79. }
  80. }
  81. }
  82. }
  83. .btn {
  84. position: fixed;
  85. bottom: 0;
  86. width: 100%;
  87. height: 118rpx;
  88. background-color: #8E939C;
  89. line-height: 118rpx;
  90. text-align: center;
  91. font-size: 30rpx;
  92. color: #FFFFFF;
  93. font-weight: Regular;
  94. }
  95. </style>