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) => {