From 6efec75705f30d47dfa323e6f4d3f0f829eea000 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期五, 18 七月 2025 13:16:31 +0800 Subject: [PATCH] # --- pages/basics/order.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pages/basics/order.vue b/pages/basics/order.vue index 520902c..dc3a7af 100644 --- a/pages/basics/order.vue +++ b/pages/basics/order.vue @@ -58,6 +58,7 @@ <view><text style="width: 400rpx;">瑙勬牸锛歿{item.specs}}</text></view> <!-- <view><text style="width: 400rpx;">鍨嬪彿锛歿{item.model}}</text></view> --> <view><text style="width: 400rpx;">鎵规锛歿{item.batch}}</text></view> + <view style="width: 500rpx;"><text>鍨嬪彿锛歿{item.model}}</text></view> <!-- <view><text style="width: 400rpx;">澶囨敞锛歿{item.memo}}</text></view> --> <view> <text style="width: 400rpx;">涓绘暟閲忥細{{item.anfme}}</text> @@ -86,6 +87,9 @@ <label class="label-btn" style="width: 150rpx;"> <button class="cu-btn" @click="resst()">閲嶇疆</button> + </label> + <label> + 鎬昏杈呮暟閲忥細{{ countWeight }} </label> <label class="label-btn"> <button class="cu-btn bg-blue " @click="comb()">缁勬墭</button> @@ -145,6 +149,7 @@ checkedData:[], batch:'', timeout: null, + countWeight: 0, } }, onShow() { @@ -369,6 +374,12 @@ // } if (add) { this.matList.unshift(mat) + + let count = 0; + this.matList.forEach((item) => { + count += item.weight; + }) + this.countWeight = count; } }, change(e) { @@ -565,7 +576,7 @@ color: #ffffff; display: inline-block; float: right; - width: 180rpx; + width: 480rpx; height: 60rpx; margin: 15rpx 15rpx 0rpx 15rpx; line-height: 60rpx; @@ -593,7 +604,7 @@ } .data-list { border-bottom: 1px solid #d8d8d8; - height: 280rpx; + height: 450rpx; margin: 15rpx; border-radius: 20rpx; } @@ -625,7 +636,7 @@ display: inline-block; float: right; height: 180rpx; - line-height: 180rpx; + line-height:480rpx; } /* display: inline-block; float: right; -- Gitblit v1.9.1