From c2cbac8cac16cb374900103739ec7b47df94fe2f Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期六, 05 七月 2025 14:39:26 +0800
Subject: [PATCH] #

---
 pages/pakin/pakin.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/pages/pakin/pakin.vue b/pages/pakin/pakin.vue
index 35edcfc..35ccf35 100644
--- a/pages/pakin/pakin.vue
+++ b/pages/pakin/pakin.vue
@@ -124,7 +124,7 @@
 					<view class="popup-item">
 						<view class="popup-item-left">鏁伴噺:</view>
 						<view class="popup-item-right" style="border: none;justify-content: center;">
-							<uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474" @change="changeValue" />
+							<uni-number-box :value="count" :step='1' :max="9999999" color="#747474" @change="changeValue" />
 						</view>
 					</view>
 					<view class="btn">
@@ -195,7 +195,10 @@
 			}
 		},
 		onLoad() {
-
+			this.dataList = uni.getStorageSync('pakinDataList')
+			if (this.dataList === '') {
+				this.dataList = []
+			}
 		},
 		onShow() {
 			this.baseUrl = uni.getStorageSync('baseUrl');
@@ -359,6 +362,7 @@
 				if (add) {
 					this.dataList.unshift(mat)
 				}
+				uni.setStorageSync('pakinDataList', this.dataList);
 			},
 			// 淇敼鎵瑰彿
 			revise(item, i) {
@@ -451,6 +455,8 @@
 							const innerAudioContext = uni.createInnerAudioContext();
 							innerAudioContext.src = '/static/music/pakinOk.mp3';
 							innerAudioContext.play()
+							that.dataList = []
+							uni.setStorageSync('pakinDataList', that.dataList);
 						} else if (res.code == 403) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' });
 							setTimeout(() => {

--
Gitblit v1.9.1