From 1c3348591f1529df57a844385af0ade821e67566 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期四, 18 八月 2022 13:53:09 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index 091f889..7b20c0d 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -22,7 +22,7 @@ <view class="text-title"><text>鏁伴噺</text></view> <view class="text-title"> <view> - <uni-number-box v-model="matData.anfme" :max="9999" color="#747474" @change="changeValue"/> + <uni-number-box :value="matData.anfme" :max="9999" color="#747474" @change="changeValue"/> </view> </view> </view> @@ -62,11 +62,10 @@ // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� eventChannel.on('matData', function(data) { that.matData = data.data + that.matData.anfme = 0 }) - }, - onShow() { - this.matData.anfme = 0 + }, methods: { blur() { @@ -75,8 +74,8 @@ focus() { }, - changeValue() { - + changeValue(value) { + this.matData.anfme = value }, back() { if (this.matData.anfme === 0) { -- Gitblit v1.9.1