handiwork.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 placeholder="请输入核销码" border="none" v-model="value" color='#FFFFFF' size='36'></u--input>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="btn" @click="handleDetail">
  19. 验证
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. h: uni.getSystemInfoSync().windowHeight - 87,
  28. mt: uni.getSystemInfoSync().statusBarHeight + 44,
  29. value: ''
  30. }
  31. },
  32. methods: {
  33. // 核销验证
  34. handleDetail() {
  35. console.log(this.value);
  36. this.$api.get('/merchant/merchantFisherman/home/getDetails?writeOffCode=' + this.value).then(res => {
  37. if (res.data.code == 0) {
  38. this.value = ''
  39. uni.setStorageSync('list', res.data.data);
  40. uni.navigateTo({
  41. url: '/pagesHouse/Verification/details'
  42. })
  43. } else {
  44. this.value = ''
  45. this.$showToast(res.data.msg)
  46. }
  47. })
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="scss">
  53. * {
  54. margin: 0;
  55. padding: 0;
  56. box-sizing: border-box;
  57. }
  58. .page {
  59. height: 100%;
  60. box-sizing: border-box;
  61. background-color: #f0f0f0;
  62. .hander {
  63. box-sizing: border-box;
  64. background-color: #fff;
  65. height: 436rpx;
  66. .content {
  67. height: 320rpx;
  68. background-color: #4E6088;
  69. // width: 100%;
  70. padding: 27rpx 30rpx;
  71. .one {
  72. width: 54rpx;
  73. height: 54rpx;
  74. image {
  75. width: 100%;
  76. height: 100%;
  77. }
  78. }
  79. }
  80. }
  81. }
  82. .btn {
  83. position: fixed;
  84. bottom: 0;
  85. width: 100%;
  86. height: 118rpx;
  87. background-color: #8E939C;
  88. line-height: 118rpx;
  89. text-align: center;
  90. font-size: 30rpx;
  91. color: #FFFFFF;
  92. font-weight: Regular;
  93. }
  94. </style>