From 78ed044c495fa7663f2f30e2de4bdc458903e122 Mon Sep 17 00:00:00 2001 From: czm <2192718639@qq.com> Date: Thu, 4 Aug 2022 19:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf(=E4=BF=AE=E6=94=B9=E6=95=A3?= =?UTF-8?q?=E5=89=AA=E6=9C=80=E5=B0=8F=E7=B1=B3=E6=95=B0):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +++-- src/components/shopCart/index.tsx | 2 +- src/pages/details/components/orderCount/index.tsx | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 37d8a9d..f42e7d4 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,9 @@ "dev:quickapp": "npm run build:quickapp -- --watch", "build:weapp:pre": "cross-env NODE_ENV=pre taro build --type weapp", "dev:weapp:pre": "cross-env NODE_ENV=pre npm run build:weapp -- --watch", - "buildopen:weapp": "taro build --type weapp --open", - "build:weapp:upload": "taro build --type weapp --upload" + "buildo:weapp:open": "taro build --type weapp --open", + "build:weapp:upload": "taro build --type weapp --upload", + "build:weapp:preview": "taro build --type weapp --preview" }, "browserslist": [ "last 3 versions", diff --git a/src/components/shopCart/index.tsx b/src/components/shopCart/index.tsx index e4f245b..5db1201 100644 --- a/src/components/shopCart/index.tsx +++ b/src/components/shopCart/index.tsx @@ -29,7 +29,7 @@ export default ({ show = false, onClose, intoStatus = 'shop', default_sale_mode const selectList = [ { value: 0, title: '大货', unit: '条', eunit: 'kg', step: 1, digits: 0, minNum: 1, maxNum: 100000, defaultNum: 1 }, { value: 1, title: '剪板', unit: '米', eunit: 'm', step: 1, digits: 2, minNum: 0.5, maxNum: 9.99, defaultNum: 1 }, - { value: 2, title: '散剪', unit: '米', eunit: 'kg', step: 1, digits: 2, minNum: 5, maxNum: 100000, defaultNum: 10 }, + { value: 2, title: '散剪', unit: '米', eunit: 'kg', step: 1, digits: 2, minNum: 3, maxNum: 100000, defaultNum: 3 }, ] //切换面料类型 diff --git a/src/pages/details/components/orderCount/index.tsx b/src/pages/details/components/orderCount/index.tsx index e46a12f..444c9c1 100644 --- a/src/pages/details/components/orderCount/index.tsx +++ b/src/pages/details/components/orderCount/index.tsx @@ -31,7 +31,7 @@ export default memo(({ show = false, onClose, title = '', productId = 0 }: param const [selectList, _] = useState([ { id: 0, step: 1, digits: 0, maxNum: 100000, defaultNum: 1, title: '大货', unit: '条', eunit: 'kg', priceField: 'bulk_price' }, { id: 1, step: 1, digits: 2, maxNum: 9.99, defaultNum: 1, title: '剪板', unit: '米', eunit: 'm', priceField: 'length_cut_price' }, - { id: 2, step: 1, digits: 2, minNum: 10, maxNum: 100000, defaultNum: 10, title: '散剪', unit: '米', eunit: 'kg', priceField: 'weight_cut_price' }, + { id: 2, step: 1, digits: 2, minNum: 3, maxNum: 100000, defaultNum: 3, title: '散剪', unit: '米', eunit: 'kg', priceField: 'weight_cut_price' }, ]) const [selectIndex, setSelectIndex] = useState(0) const selectProduct = (index: number) => {