#
whycq
2022-09-23 66ec61e66cf31508c08b30a28ee0bb64e45f87bb
pages/user/user.vue
@@ -1,13 +1,9 @@
<template>
   <view class="">
      <scroll-view class="scroll-Y">
      <!-- <button @click="open">点击</button> -->
      <!-- <y-popup ref="yPopup" title="输入内容">
      </y-popup> -->
      <button size="mini" @click="up">button</button>
      <y-input title="商品码" :inputVal="matnr" />
      <y-input title="库位码" />
         <button size="mini" @click="up">button</button>
         <y-input title="商品码" @input="show" v-model="matnr"/>
         <y-input title="库位码" @input="show" v-model="locno"/>
      </scroll-view>
   </view>
</template>
@@ -17,7 +13,8 @@
      data () {
         return {
            scrollY:true,
            matnr:'1'
            matnr:'1',
            locno: ''
         }
      },
      methods: {
@@ -25,11 +22,11 @@
            this.$refs.yPopup.open('center')
         },
         up() {
            // setTimeout(()=>{
            //    this.matnr = '1024'
            // },300)
               this.matnr = '1024'
            this.matnr = '1024'
            console.log(this.matnr);
         },
         show() {
            console.log(this.matnr,this.locno);
         }
      }