From 1cccb7eb94e678140ef536acf8bc52bd2b335f23 Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期六, 14 六月 2025 20:33:26 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index dbd037b..8e5d057 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -35,6 +35,14 @@ </view> </view> </view> + <view class="text-box"> + <view class="text-title"><text>杈呮暟閲�</text></view> + <view class="text-title"> + <view> + <uni-number-box v-model="matData.weight" :value="matData.weight" :max="99999999" color="#747474" @change="changeValue2"/> + </view> + </view> + </view> </view> </view> <view class="foot flex justify-center"> @@ -55,6 +63,7 @@ batch: null, anfme: null, anfme2: null, + origin: null, }, baseIP:'', basePORT:'', @@ -84,13 +93,21 @@ }, changeValue(value) { - this.matData.anfme = value + // this.matData.anfme = value + }, + changeValue2(value) { + let arr = this.matData.origin.split("/") + let mainAnfme = value * parseFloat(arr[1]) * parseFloat(arr[0]) + this.matData.weight = value + this.matData.anfme = mainAnfme }, back() { if (this.matData.anfme === 0) { uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'}); return; } + + console.log(this.matData); this.getOpenerEventChannel().emit('matList', {data: this.matData}); uni.vibrateShort(); uni.navigateBack({ -- Gitblit v1.9.1