From e7b93793b29b465d656c42b47eaa5419b4a01643 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期六, 16 三月 2024 12:37:47 +0800 Subject: [PATCH] # --- pages/mat/matSelected.vue | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pages/mat/matSelected.vue b/pages/mat/matSelected.vue index d4fe196..8c6260d 100644 --- a/pages/mat/matSelected.vue +++ b/pages/mat/matSelected.vue @@ -17,7 +17,7 @@ <view class="form-item-desc"><text>鎵瑰彿</text></view> <view class="form-item-content"> <view class="form-input"> - <input type="text"> + <input type="text" v-model="mat.batch"> </view> </view> </view> @@ -44,7 +44,7 @@ maktx: null, specs: null, batch: null, - anfme: null, + anfme: 0, }, baseIP:'', basePORT:'', @@ -62,7 +62,7 @@ // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� eventChannel.on('mat', function(data) { that.mat = data.data - that.mat.anfme = 0 + that.mat.anfme = data.data.anfme }) @@ -78,13 +78,11 @@ this.mat.anfme = value }, back() { - console.log(this.mat.anfme); if (this.mat.anfme === 0) { uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'}); return; } this.getOpenerEventChannel().emit('matList', {data: this.mat}); - uni.vibrateShort(); uni.navigateBack({ }) -- Gitblit v1.9.1