index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view class="app-content">
  3. <view class="header"><view class="log" @tap="fall"></view>{{ navname }}</view>
  4. <view class="searchInput">
  5. <uni-easyinput class="uni-mt-5" :inputBorder='false' suffixIcon="scan" v-model="value" placeholder="请输入行李号" @iconClick="iconClick"></uni-easyinput>
  6. </view>
  7. <button type="default" v-if="value==''" class="defaultBtn">保存并提交</button>
  8. <button type="default" v-else class="sendBtn" @tap="send">保存并提交</button>
  9. <!-- 提示信息和下拉弹窗 -->
  10. <mask-model :headername="headername" :typeShow="typeShow" :tabname="tabname" ref="showMask" btnType="1" @confirm="confirm" @cancel="cancel" titleColoe="#666666" cancelColor="#666666" confirmColor="#007AFF" :maskTitle="maskTitle"></mask-model>
  11. </view>
  12. </template>
  13. <script>
  14. import Nav from '../../components/header/nav.vue'
  15. import maskModel from '../../components/mask-model/mask-model.vue'
  16. export default {
  17. data() {
  18. return {
  19. navname: '行李号录入',
  20. value:"",
  21. maskTitle:'请核对录入的行李号是否正确',
  22. tabname: '',//按钮名称
  23. typeShow:true,
  24. headername: '请核对信息',
  25. }
  26. },
  27. created(option) {
  28. },
  29. onLoad(){
  30. },
  31. onUnload() {
  32. },
  33. onShow() {
  34. },
  35. mounted() {
  36. },
  37. components: {
  38. Nav
  39. },
  40. methods: {
  41. fall () {
  42. uni.navigateBack({
  43. delta: 1
  44. })
  45. },
  46. iconClick(){
  47. alert("点击")
  48. },
  49. send(){
  50. this.typeShow = false
  51. this.maskTitle = '请核对录入的行李号是否正确'
  52. this.headername = '请核对信息'
  53. this.$refs.showMask.show();
  54. },
  55. confirm:function(e){//确定按钮
  56. console.log('您点击了确定按钮');
  57. },
  58. cancel:function(){//取消按钮
  59. console.log('您点击了取消按钮');
  60. },
  61. },
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .app-content{
  66. >.header{
  67. width: 100%;
  68. height: 4.375rem;
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. // background: rgba(49,85,99,1);
  73. color: rgb(16, 17, 22);
  74. font-family: Noto Sans SC;
  75. font-size: 1rem;
  76. position: relative;
  77. >.log{
  78. width: .375rem;
  79. height: .75rem;
  80. font-size: .75rem;
  81. position: absolute;
  82. left: 1.5rem;
  83. background: url('../../static/ico@1x.png') no-repeat;
  84. background-size: 100% 100%;
  85. }
  86. }
  87. >.searchInput{
  88. width: calc(100% - 2rem);
  89. margin-left: 1rem;
  90. border-bottom:1px solid rgb(224, 230, 238);
  91. color: rgb(48, 51, 57);
  92. }
  93. >.defaultBtn{
  94. width: calc(100% - 2rem);
  95. margin-left: 1rem;
  96. height: 44px;
  97. top: 204px;
  98. background: rgb(180, 191, 196);
  99. color: rgb(255, 255, 255);
  100. border-radius:4px;
  101. border: none;
  102. top: 4rem;
  103. }
  104. >.sendBtn{
  105. width: calc(100% - 2rem);
  106. margin-left: 1rem;
  107. height: 44px;
  108. top: 204px;
  109. background: linear-gradient(179.10deg, rgba(51,161,165,1.00) 11.326%,rgba(59,111,142,1.00) 119.032%,rgba(59,111,142,1.00) 119.032%,rgba(59,111,142,1.00) 119.032%);
  110. color: rgb(255, 255, 255);
  111. border-radius:4px;
  112. border: none;
  113. top: 4rem;
  114. }
  115. }
  116. </style>