#
whycq
2022-09-22 8f10bd11c3b3dc29a9c2a03a0172d5e0196983c2
pages/user/user.vue
@@ -1,10 +1,13 @@
<template>
   <view class="">
      <scroll-view class="scroll-Y">
      <button @click="open">点击</button>
      <y-popup ref="yPopup" title="输入内容">
      <!-- <button @click="open">点击</button> -->
      <!-- <y-popup ref="yPopup" title="输入内容">
         
      </y-popup>
      </y-popup> -->
      <button size="mini" @click="up">button</button>
      <y-input title="商品码" :inputVal="matnr" />
      <y-input title="库位码" />
      </scroll-view>
   </view>
</template>
@@ -13,12 +16,20 @@
   export default {
      data () {
         return {
            scrollY:true
            scrollY:true,
            matnr:'1'
         }
      },
      methods: {
         open() {
            this.$refs.yPopup.open('center')
         },
         up() {
            // setTimeout(()=>{
            //    this.matnr = '1024'
            // },300)
               this.matnr = '1024'
            console.log(this.matnr);
         }
      }