s-material-react 0.1.18 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/pages/goodsDetail.scss +3 -2
- package/dist/common/addressItem/index.js +1 -0
- package/dist/common/icon/index.js +1 -0
- package/dist/components/AddressDetail/components/index.d.ts +1 -0
- package/dist/components/AddressDetail/components/index.js +1 -1
- package/dist/components/AddressDetail/config.js +1 -0
- package/dist/components/AddressDetail/index.js +3 -2
- package/dist/components/AddressList/index.js +1 -1
- package/dist/components/Cart/components/cartItem.js +2 -2
- package/dist/components/Cart/components/index.d.ts +1 -0
- package/dist/components/Cart/components/index.js +1 -0
- package/dist/components/Cart/index.js +3 -3
- package/dist/components/ClassifyNav/index.js +4 -14
- package/dist/components/CouponList/components/index.d.ts +4 -0
- package/dist/components/CouponList/components/index.js +4 -0
- package/dist/components/CouponList/components/overdue.d.ts +5 -0
- package/dist/components/CouponList/components/overdue.js +6 -0
- package/dist/components/CouponList/components/skull.d.ts +2 -0
- package/dist/components/CouponList/components/skull.js +9 -0
- package/dist/components/CouponList/components/unUsed.d.ts +5 -0
- package/dist/components/CouponList/components/unUsed.js +6 -0
- package/dist/components/CouponList/components/used.d.ts +5 -0
- package/dist/components/CouponList/components/used.js +6 -0
- package/dist/components/CouponList/index.js +12 -18
- package/dist/components/Cube/index.js +4 -14
- package/dist/components/Goods/index.js +1 -0
- package/dist/components/GoodsClassify/components/index.d.ts +2 -0
- package/dist/components/GoodsClassify/components/index.js +2 -0
- package/dist/components/GoodsClassify/index.js +1 -1
- package/dist/components/GoodsDetail/components/goodsDetailCollection.d.ts +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailCollection.js +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailCoupon.d.ts +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailCoupon.js +4 -3
- package/dist/components/GoodsDetail/components/goodsDetailEvaluate.d.ts +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailEvaluate.js +2 -3
- package/dist/components/GoodsDetail/components/goodsDetailHandleBar.d.ts +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailHandleBar.js +3 -4
- package/dist/components/GoodsDetail/components/goodsDetailInfo.d.ts +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailInfo.js +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailPopup.d.ts +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailPopup.js +3 -4
- package/dist/components/GoodsDetail/components/goodsDetailPromotion.d.ts +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailPromotion.js +2 -2
- package/dist/components/GoodsDetail/components/goodsDetailSize.d.ts +1 -2
- package/dist/components/GoodsDetail/components/goodsDetailSize.js +4 -4
- package/dist/components/GoodsDetail/components/index.d.ts +9 -0
- package/dist/components/GoodsDetail/components/index.js +9 -0
- package/dist/components/GoodsDetail/index.js +4 -9
- package/dist/components/GoodsGroup/index.js +1 -0
- package/dist/components/GoodsList/components/index.d.ts +1 -0
- package/dist/components/GoodsList/components/index.js +1 -0
- package/dist/components/GoodsList/index.js +3 -2
- package/dist/components/Mine/components/index.d.ts +2 -0
- package/dist/components/Mine/components/index.js +2 -0
- package/dist/components/Mine/index.js +3 -3
- package/dist/components/OrderDetail/index.js +1 -0
- package/dist/components/OrderList/components/index.d.ts +3 -0
- package/dist/components/OrderList/components/index.js +3 -0
- package/dist/components/OrderList/components/{OrderListItem.d.ts → orderListItem.d.ts} +0 -0
- package/dist/components/OrderList/components/{OrderListItem.js → orderListItem.js} +1 -1
- package/dist/components/OrderList/index.js +1 -1
- package/dist/components/PaymentMode/hooks/useOrderResult.js +1 -2
- package/dist/components/PaymentMode/index.js +2 -1
- package/dist/components/PlaceOrder/components/index.d.ts +3 -0
- package/dist/components/PlaceOrder/components/index.js +3 -0
- package/dist/components/PlaceOrder/components/orderPrice.d.ts +2 -2
- package/dist/components/PlaceOrder/components/orderPrice.js +1 -2
- package/dist/components/PlaceOrder/components/shop.d.ts +1 -2
- package/dist/components/PlaceOrder/components/shop.js +1 -2
- package/dist/components/PlaceOrder/index.js +2 -4
- package/dist/components/PlaceOrderResult/index.js +7 -4
- package/dist/components/Search/index.js +1 -0
- package/dist/components/SearchPage/index.js +1 -1
- package/dist/components/Slider/index.js +3 -14
- package/dist/components/Slider/item.js +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/serviceActionSheet.d.ts +1 -0
- package/dist/utils/serviceActionSheet.js +31 -0
- package/package.json +13 -12
- package/dist/components/AddressDetail/hooks/index.d.ts +0 -1
- package/dist/components/AddressDetail/hooks/index.js +0 -1
- package/dist/components/AddressDetail/hooks/useAddAddress.d.ts +0 -26
- package/dist/components/AddressDetail/hooks/useAddAddress.js +0 -80
- package/dist/components/AddressList/hooks/index.d.ts +0 -1
- package/dist/components/AddressList/hooks/index.js +0 -1
- package/dist/components/AddressList/hooks/useAddressList.d.ts +0 -6
- package/dist/components/AddressList/hooks/useAddressList.js +0 -74
- package/dist/components/Cart/hooks/index.d.ts +0 -19
- package/dist/components/Cart/hooks/index.js +0 -90
- package/dist/components/Cart/store/index.d.ts +0 -10
- package/dist/components/Cart/store/index.js +0 -23
- package/dist/components/GoodsDetail/hooks/index.d.ts +0 -2
- package/dist/components/GoodsDetail/hooks/index.js +0 -2
- package/dist/components/GoodsDetail/hooks/useAddShopping.d.ts +0 -10
- package/dist/components/GoodsDetail/hooks/useAddShopping.js +0 -74
- package/dist/components/GoodsDetail/hooks/useGoodsDetailImpl.d.ts +0 -13
- package/dist/components/GoodsDetail/hooks/useGoodsDetailImpl.js +0 -85
- package/dist/components/GoodsDetail/store/index.d.ts +0 -10
- package/dist/components/GoodsDetail/store/index.js +0 -34
- package/dist/components/GoodsList/hooks/useGoodsList.d.ts +0 -12
- package/dist/components/GoodsList/hooks/useGoodsList.js +0 -54
- package/dist/components/PlaceOrder/hooks/usePlaceOrder.d.ts +0 -18
- package/dist/components/PlaceOrder/hooks/usePlaceOrder.js +0 -234
- package/dist/components/PlaceOrderResult/hooks/useOrderResult.d.ts +0 -3
- package/dist/components/PlaceOrderResult/hooks/useOrderResult.js +0 -93
|
@@ -391,10 +391,11 @@
|
|
|
391
391
|
display: inline-block;
|
|
392
392
|
border-radius: 4px;
|
|
393
393
|
color: #a7a7a7;
|
|
394
|
-
|
|
394
|
+
margin-bottom: 10px;
|
|
395
395
|
&.active {
|
|
396
396
|
//background: #346fc2;
|
|
397
|
-
|
|
397
|
+
background: #000000;
|
|
398
|
+
color: #fff;
|
|
398
399
|
border-color: #1a1a1a;
|
|
399
400
|
}
|
|
400
401
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
//@ts-nocheck
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
5
|
export const QjMobileIcon = ({ className = 'iconfont', prefixClass = 'icon', onClick = () => { }, style = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './skull';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './skull';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
//@ts-nocheck
|
|
2
3
|
import { memo } from 'react';
|
|
3
4
|
import { getEnv } from '@brushes/api';
|
|
4
5
|
import { config } from './config';
|
|
5
|
-
import { useEditAddress } from '
|
|
6
|
+
import { useEditAddress } from 'qj-mobile-store';
|
|
6
7
|
import { useComponent, antdMobile } from '@brushes/qj-simulate-component';
|
|
7
|
-
import { Skull } from './components
|
|
8
|
+
import { Skull } from './components';
|
|
8
9
|
const flag = getEnv();
|
|
9
10
|
const AddressDetailJsx = ({ addressId = undefined }) => {
|
|
10
11
|
const { View } = useComponent();
|
|
@@ -3,7 +3,7 @@ import { memo } from 'react';
|
|
|
3
3
|
import { navigatorImpl, useComponent } from '@brushes/qj-simulate-component';
|
|
4
4
|
import { getEnv } from '@brushes/api';
|
|
5
5
|
import { AddressItem } from '../../common/addressItem';
|
|
6
|
-
import { useAddressList } from '
|
|
6
|
+
import { useAddressList } from 'qj-mobile-store';
|
|
7
7
|
import { routerMap } from '../../routerMap';
|
|
8
8
|
import { Skull } from './components';
|
|
9
9
|
const AddressListJsx = () => {
|
|
@@ -8,9 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
//@ts-nocheck
|
|
11
12
|
import { useComponent, NumStep, SmoothCheckbox } from '@brushes/qj-simulate-component';
|
|
12
|
-
import { useDispatchImpl, useStore } from '
|
|
13
|
-
import { useCartList } from '../hooks';
|
|
13
|
+
import { useDispatchImpl, useStore, useCartList } from 'qj-mobile-store';
|
|
14
14
|
export function CartItem({ list }) {
|
|
15
15
|
const { View, Text, Image, Checkbox } = useComponent();
|
|
16
16
|
const { updateImpl } = useCartList();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cartItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cartItem';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
//@ts-nocheck
|
|
2
3
|
import { memo, useState } from 'react';
|
|
3
4
|
import { useComponent, SmoothCheckbox } from '@brushes/qj-simulate-component';
|
|
4
5
|
import { getEnv } from '@brushes/api';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { StoreProvider, useStore } from './store';
|
|
6
|
+
import { CartItem } from './components';
|
|
7
|
+
import { StoreProvider, useStore, useCartList } from 'qj-mobile-store';
|
|
8
8
|
const flag = getEnv();
|
|
9
9
|
const CartJsx = () => {
|
|
10
10
|
const [editState, setEditState] = useState(true);
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
//@ts-ignore
|
|
3
|
+
import { memo } from 'react';
|
|
3
4
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
import {
|
|
5
|
-
const { isUndefined, isEmpty } = _;
|
|
5
|
+
import { useCube } from 'qj-mobile-store';
|
|
6
6
|
const ClassifyNavJsx = ({ defaultValue, borderRadius, paddingTop, paddingBottom, selectClassifyNav }) => {
|
|
7
|
-
const [list, setList] = useState(defaultValue);
|
|
8
7
|
const { View, Text } = useComponent();
|
|
9
|
-
|
|
10
|
-
const computedArr = selectClassifyNav
|
|
11
|
-
.filter((item) => !isUndefined(item))
|
|
12
|
-
.filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
|
|
13
|
-
let arr = defaultValue;
|
|
14
|
-
if (!isEmpty(computedArr)) {
|
|
15
|
-
arr = computedArr;
|
|
16
|
-
}
|
|
17
|
-
setList(arr);
|
|
18
|
-
}, [selectClassifyNav]);
|
|
8
|
+
const list = useCube(defaultValue, selectClassifyNav);
|
|
19
9
|
return (_jsx(View, Object.assign({ style: { paddingTop, paddingBottom } }, { children: _jsx(View, Object.assign({ className: 'classifyNav' }, { children: list.map((item, index) => {
|
|
20
10
|
return (_jsxs(View, Object.assign({ className: 'classifyNavItem' }, { children: [_jsx("img", { src: item.imgUrl, alt: "", className: 'img' }), _jsx(Text, Object.assign({ className: 'label' }, { children: item.title }))] }), index));
|
|
21
11
|
}) })) })));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useComponent } from '@brushes/qj-simulate-component';
|
|
3
|
+
export const Overdue = ({ coe }) => {
|
|
4
|
+
const { View, Text } = useComponent();
|
|
5
|
+
return (_jsx(_Fragment, { children: coe === 3 ? (_jsx(View, Object.assign({ className: 'couponListItem overdue' }, { children: _jsxs(View, Object.assign({ className: 'coupon-content' }, { children: [_jsxs(View, Object.assign({ className: 'price' }, { children: [_jsx(Text, Object.assign({ className: 'symbol' }, { children: "\uFFE5" })), _jsx(Text, Object.assign({ className: 'num' }, { children: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" })), _jsx(View, Object.assign({ className: 'round' }, { children: "\u5DF2\u5931\u6548" }))] }))] })) }))) : null }));
|
|
6
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useRef } from 'react';
|
|
3
|
+
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
+
const SkullJsx = () => {
|
|
5
|
+
const { View, Skeleton } = useComponent();
|
|
6
|
+
const coe = useRef(new Array(3).fill(0));
|
|
7
|
+
return (_jsx(_Fragment, { children: _jsx(View, Object.assign({ className: 'skullWrap' }, { children: _jsx(View, Object.assign({ className: 'skull' }, { children: coe.current.map((item, index) => (_jsx(Skeleton, { className: 'skullItem', animated: true }, index))) })) })) }));
|
|
8
|
+
};
|
|
9
|
+
export const Skull = memo(SkullJsx);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useComponent } from '@brushes/qj-simulate-component';
|
|
3
|
+
export const UnUsed = ({ coe }) => {
|
|
4
|
+
const { View, Text } = useComponent();
|
|
5
|
+
return (_jsx(_Fragment, { children: coe === 1 ? (_jsx(View, Object.assign({ className: 'couponListItem unused' }, { children: _jsxs(View, Object.assign({ className: 'coupon-content' }, { children: [_jsxs(View, Object.assign({ className: 'price' }, { children: [_jsx(Text, Object.assign({ className: 'symbol' }, { children: "\uFFE5" })), _jsx(Text, Object.assign({ className: 'num' }, { children: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" }))] }))] })) }))) : null }));
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useComponent } from '@brushes/qj-simulate-component';
|
|
3
|
+
export const Used = ({ coe }) => {
|
|
4
|
+
const { View, Text } = useComponent();
|
|
5
|
+
return (_jsx(_Fragment, { children: coe === 2 ? (_jsx(View, Object.assign({ className: 'couponListItem used' }, { children: _jsxs(View, Object.assign({ className: 'coupon-content' }, { children: [_jsxs(View, Object.assign({ className: 'price' }, { children: [_jsx(Text, Object.assign({ className: 'symbol' }, { children: "\uFFE5" })), _jsx(Text, Object.assign({ className: 'num' }, { children: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" }))] }))] })) }))) : null }));
|
|
6
|
+
};
|
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
import { memo, useEffect } from 'react';
|
|
3
4
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
import { getEnv } from '@brushes/api';
|
|
5
|
+
import { getEnv, queryUsercouponNember } from '@brushes/api';
|
|
6
|
+
import { useCouponList } from 'qj-mobile-store';
|
|
7
|
+
import { UnUsed, Overdue, Used } from './components';
|
|
5
8
|
const CouponListJsx = () => {
|
|
6
9
|
const { View, Text } = useComponent();
|
|
7
|
-
const
|
|
10
|
+
const { coe, setCoe, config } = useCouponList();
|
|
8
11
|
const flag = getEnv();
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
id: 2,
|
|
16
|
-
label: '已使用'
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: 3,
|
|
20
|
-
label: '已失效'
|
|
21
|
-
}
|
|
22
|
-
]);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
queryUsercouponNember().then((res) => {
|
|
14
|
+
console.log(26, res);
|
|
15
|
+
});
|
|
16
|
+
}, []);
|
|
23
17
|
return (_jsxs(View, Object.assign({ className: 'couponList', style: {
|
|
24
18
|
height: flag ? '100vh' : '667px'
|
|
25
19
|
} }, { children: [_jsx(View, Object.assign({ className: 'couponTab' }, { children: config.current.map((item) => {
|
|
26
20
|
return (_jsxs(View, Object.assign({ className: `couponTabItem ${coe === item.id ? 'active' : ''}`, onClick: () => setCoe(item.id) }, { children: [item.label, _jsx(Text, { className: 'icon' })] }), item.id));
|
|
27
|
-
}) })), _jsxs(View, Object.assign({ className: 'couponListContent' }, { children: [_jsx(
|
|
21
|
+
}) })), _jsxs(View, Object.assign({ className: 'couponListContent' }, { children: [_jsx(UnUsed, { coe: coe }), _jsx(Used, { coe: coe }), _jsx(Overdue, { coe: coe })] }))] })));
|
|
28
22
|
};
|
|
29
23
|
export const CouponList = memo(CouponListJsx);
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
import { memo } from 'react';
|
|
3
4
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
import {
|
|
5
|
-
const { isUndefined, isEmpty } = _;
|
|
5
|
+
import { useCube } from 'qj-mobile-store';
|
|
6
6
|
const CubeJsx = ({ defaultValue, type, borderRadius, paddingTop, paddingLeft, paddingRight, paddingBottom, selectImg }) => {
|
|
7
|
-
const [list, setList] = useState(defaultValue);
|
|
8
7
|
const { View, Image } = useComponent();
|
|
9
|
-
|
|
10
|
-
const computedArr = selectImg
|
|
11
|
-
.filter((item) => !isUndefined(item))
|
|
12
|
-
.filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
|
|
13
|
-
let arr = defaultValue;
|
|
14
|
-
if (!isEmpty(computedArr)) {
|
|
15
|
-
arr = computedArr;
|
|
16
|
-
}
|
|
17
|
-
setList(arr);
|
|
18
|
-
}, [selectImg]);
|
|
8
|
+
const list = useCube(defaultValue, selectImg);
|
|
19
9
|
return (_jsx(View, Object.assign({ style: {
|
|
20
10
|
paddingTop,
|
|
21
11
|
paddingBottom
|
|
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
//@ts-nocheck
|
|
11
12
|
import { useEffect, useState, memo, useRef } from 'react';
|
|
12
13
|
import { navigatorImpl, useComponent } from '@brushes/qj-simulate-component';
|
|
13
14
|
import { querySkuNotOnShelf } from '@brushes/api';
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { memo, useEffect, useState } from 'react';
|
|
12
12
|
import { useComponent, antdMobile, navigatorImpl } from '@brushes/qj-simulate-component';
|
|
13
|
-
import { ClassifyFloor } from './components/
|
|
13
|
+
import { ClassifyFloor } from './components/';
|
|
14
14
|
// import {SEARCH} from "../../static";
|
|
15
15
|
import { getEnv } from '@brushes/api';
|
|
16
16
|
import { queryGoodsClassTree } from '@brushes/api';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const GoodsDetailCollection: ({ checkCollectionObj, setCheckCollectionObj, goods }: any) => JSX.Element;
|
|
2
|
-
export default GoodsDetailCollection;
|
|
1
|
+
export declare const GoodsDetailCollection: ({ checkCollectionObj, setCheckCollectionObj, goods }: any) => JSX.Element;
|
|
@@ -14,7 +14,7 @@ import { checkCollectExit, saveCollect, deleteCollectByCode } from '@brushes/api
|
|
|
14
14
|
import { _ } from '@brushes/tools';
|
|
15
15
|
import { useEffect } from 'react';
|
|
16
16
|
const { isEmpty } = _;
|
|
17
|
-
const GoodsDetailCollection = ({ checkCollectionObj, setCheckCollectionObj, goods }) => {
|
|
17
|
+
export const GoodsDetailCollection = ({ checkCollectionObj, setCheckCollectionObj, goods }) => {
|
|
18
18
|
const { Text, View } = useComponent();
|
|
19
19
|
useEffect(() => {
|
|
20
20
|
checkCollection();
|
|
@@ -62,4 +62,3 @@ const GoodsDetailCollection = ({ checkCollectionObj, setCheckCollectionObj, good
|
|
|
62
62
|
};
|
|
63
63
|
return (_jsxs(View, Object.assign({ onClick: handleCollect }, { children: [_jsx("img", { src: SEARCH, alt: "", className: 'icon' }), _jsx(Text, Object.assign({ className: 'txt' }, { children: isEmpty(checkCollectionObj.dataObj) ? '收藏' : '已收藏' }))] })));
|
|
64
64
|
};
|
|
65
|
-
export default GoodsDetailCollection;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const GoodsDetailCoupon: () => JSX.Element;
|
|
2
|
-
export default GoodsDetailCoupon;
|
|
1
|
+
export declare const GoodsDetailCoupon: () => JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
//@ts-nocheck
|
|
2
3
|
import { useComponent, Popup, SmoothRadio } from '@brushes/qj-simulate-component';
|
|
3
4
|
import { THREE_DOTS } from '../../../static';
|
|
4
5
|
import { useState } from 'react';
|
|
5
6
|
import { Coupon } from '../../../common/coupon';
|
|
6
|
-
import {
|
|
7
|
+
import { goodsDetailStore } from 'qj-mobile-store';
|
|
8
|
+
const { useDispatchImpl, useStore } = goodsDetailStore;
|
|
7
9
|
const fake = [
|
|
8
10
|
{
|
|
9
11
|
title: '五一大促疯抢 满100立减10',
|
|
@@ -24,7 +26,7 @@ const fake = [
|
|
|
24
26
|
id: 3
|
|
25
27
|
}
|
|
26
28
|
];
|
|
27
|
-
const GoodsDetailCoupon = () => {
|
|
29
|
+
export const GoodsDetailCoupon = () => {
|
|
28
30
|
const { View, Text } = useComponent();
|
|
29
31
|
const [visible, setVisible] = useState(false);
|
|
30
32
|
const dispatch = useDispatchImpl();
|
|
@@ -42,4 +44,3 @@ const GoodsDetailCoupon = () => {
|
|
|
42
44
|
return _jsx(Coupon, { index: index, item: item }, index);
|
|
43
45
|
}) })) })) })) }))] }));
|
|
44
46
|
};
|
|
45
|
-
export default GoodsDetailCoupon;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const GoodsDetailEvaluate: () => JSX.Element;
|
|
2
|
-
export default GoodsDetailEvaluate;
|
|
1
|
+
export declare const GoodsDetailEvaluate: () => JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
3
|
-
const GoodsDetailEvaluate = () => {
|
|
3
|
+
export const GoodsDetailEvaluate = () => {
|
|
4
4
|
const { View } = useComponent();
|
|
5
|
-
return
|
|
5
|
+
return _jsx(View, Object.assign({ className: 'goodsDetailEvaluate' }, { children: "1231232" }));
|
|
6
6
|
};
|
|
7
|
-
export default GoodsDetailEvaluate;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const GoodsDetailHandleBar: () => JSX.Element;
|
|
2
|
-
export default GoodsDetailHandleBar;
|
|
1
|
+
export declare const GoodsDetailHandleBar: () => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { switchTabImpl, useComponent, IconMobile } from '@brushes/qj-simulate-component';
|
|
3
|
-
import {
|
|
3
|
+
import { goodsDetailStore } from 'qj-mobile-store';
|
|
4
4
|
import { routerMap } from '../../../routerMap';
|
|
5
|
-
const GoodsDetailHandleBar = () => {
|
|
5
|
+
export const GoodsDetailHandleBar = () => {
|
|
6
6
|
const { Text, View } = useComponent();
|
|
7
|
-
const dispatch = useDispatchImpl();
|
|
7
|
+
const dispatch = goodsDetailStore.useDispatchImpl();
|
|
8
8
|
return (_jsxs(View, Object.assign({ className: 'goodsDetailHandleBar' }, { children: [_jsxs(View, Object.assign({ className: 'linkGroup' }, { children: [_jsx(IconMobile, { value: 'kefu', style: { fontSize: 22, display: 'block' } }), _jsx(Text, Object.assign({ className: 'txt' }, { children: "\u5BA2\u670D" }))] })), _jsxs(View, Object.assign({ className: 'linkGroup', onClick: () => switchTabImpl(routerMap.shopping) }, { children: [_jsx(IconMobile, { value: 'gouwuche', style: { fontSize: 22, display: 'block' } }), _jsx(Text, Object.assign({ className: 'txt' }, { children: "\u8D2D\u7269\u8F66" }))] })), _jsxs(View, Object.assign({ className: 'btnGroup' }, { children: [_jsx(View, Object.assign({ className: 'btn addCart', onClick: () => {
|
|
9
9
|
dispatch({
|
|
10
10
|
type: 'popupImpl',
|
|
@@ -25,4 +25,3 @@ const GoodsDetailHandleBar = () => {
|
|
|
25
25
|
});
|
|
26
26
|
}, className: 'btn buy' }, { children: "\u7ACB\u5373\u8D2D\u4E70" }))] }))] })));
|
|
27
27
|
};
|
|
28
|
-
export default GoodsDetailHandleBar;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const GoodsDetailInfo: ({ tabActive, goods }: any) => JSX.Element;
|
|
2
|
-
export default GoodsDetailInfo;
|
|
1
|
+
export declare const GoodsDetailInfo: ({ tabActive, goods }: any) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
-
const GoodsDetailInfo = ({ tabActive, goods }) => {
|
|
4
|
+
export const GoodsDetailInfo = ({ tabActive, goods }) => {
|
|
5
5
|
const { View } = useComponent();
|
|
6
6
|
const [goodsDetail, setDetail] = useState('');
|
|
7
7
|
useEffect(() => {
|
|
@@ -12,4 +12,3 @@ const GoodsDetailInfo = ({ tabActive, goods }) => {
|
|
|
12
12
|
}, [goods.goodsRemark, tabActive]);
|
|
13
13
|
return (_jsx(View, Object.assign({ className: 'goodsDetail-info' }, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: goodsDetail || '' } }) })));
|
|
14
14
|
};
|
|
15
|
-
export default GoodsDetailInfo;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const GoodsDetailPopup: ({ goods }: any) => JSX.Element;
|
|
2
|
-
export default GoodsDetailPopup;
|
|
1
|
+
export declare const GoodsDetailPopup: ({ goods }: any) => JSX.Element;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Popup, NumStep } from '@brushes/qj-simulate-component';
|
|
3
|
-
import { useAddShopping } from '
|
|
3
|
+
import { useAddShopping } from 'qj-mobile-store';
|
|
4
4
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
5
|
-
const GoodsDetailPopup = ({ goods }) => {
|
|
5
|
+
export const GoodsDetailPopup = ({ goods }) => {
|
|
6
6
|
const { count, spec, popupVisible, isNeedButton, handleChooseSize, handleStep, popupHandler, addShoppingImpl } = useAddShopping();
|
|
7
7
|
const { View, Text, Image } = useComponent();
|
|
8
|
-
return (_jsx(Popup, Object.assign({ popupVisible: popupVisible, popupHandler: popupHandler }, { children: _jsxs(View, Object.assign({ className: 'goodsDetail-size-popup' }, { children: [_jsxs(View, Object.assign({ className: 'content' }, { children: [_jsxs(View, Object.assign({ className: 'goodsInfo' }, { children: [_jsx(View, Object.assign({ className: 'lPart' }, { children: _jsx(Image, { src: goods.dataPic, alt: "", className: 'goodsImg' }) })), _jsxs(View, Object.assign({ className: 'rPart' }, { children: [_jsx(View, Object.assign({ className: 'name' }, { children: goods.goodsShowname || '' })), _jsxs(View, Object.assign({ className: 'price' }, { children: ["\uFFE5 ", goods.pricesetNprice.toFixed(2) || ''] })), _jsxs(View, Object.assign({ className: 'chosen' }, { children: ["\u5DF2\u9009\u62E9: ", spec] }))] }))] })), _jsxs(View, Object.assign({ className: 'sizeArr' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u9009\u62E9\
|
|
8
|
+
return (_jsx(Popup, Object.assign({ popupVisible: popupVisible, popupHandler: popupHandler }, { children: _jsxs(View, Object.assign({ className: 'goodsDetail-size-popup' }, { children: [_jsxs(View, Object.assign({ className: 'content' }, { children: [_jsxs(View, Object.assign({ className: 'goodsInfo' }, { children: [_jsx(View, Object.assign({ className: 'lPart' }, { children: _jsx(Image, { src: goods.dataPic, alt: "", className: 'goodsImg' }) })), _jsxs(View, Object.assign({ className: 'rPart' }, { children: [_jsx(View, Object.assign({ className: 'name' }, { children: goods.goodsShowname || '' })), _jsxs(View, Object.assign({ className: 'price' }, { children: ["\uFFE5 ", goods.pricesetNprice.toFixed(2) || ''] })), _jsxs(View, Object.assign({ className: 'chosen' }, { children: ["\u5DF2\u9009\u62E9: ", spec] }))] }))] })), _jsxs(View, Object.assign({ className: 'sizeArr' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u9009\u62E9\u89C4\u683C" })), _jsx(View, Object.assign({ className: 'sizeArrItemWrap' }, { children: goods.rsSpecValueDomainList.map((item, index) => {
|
|
9
9
|
return (_jsx(View, Object.assign({ className: `sizeItem ${spec === item.specValueValue ? 'active' : ''}`, onClick: handleChooseSize.bind(null, item.specValueValue) }, { children: item.specValueValue }), index));
|
|
10
10
|
}) }))] })), _jsxs(View, Object.assign({ className: 'countWrap' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u8D2D\u4E70\u6570\u91CF" })), _jsx(NumStep, { count: count, handleStep: handleStep })] }))] })), isNeedButton && (_jsx(View, Object.assign({ className: 'btnWrap', onClick: addShoppingImpl }, { children: _jsx(Text, Object.assign({ className: 'btn' }, { children: "\u786E\u8BA4" })) })))] })) })));
|
|
11
11
|
};
|
|
12
|
-
export default GoodsDetailPopup;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const GoodsDetailPromotion: ({ promotionList }: any) => JSX.Element;
|
|
2
|
-
export default GoodsDetailPromotion;
|
|
1
|
+
export declare const GoodsDetailPromotion: ({ promotionList }: any) => JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
//@ts-nocheck
|
|
2
3
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
3
|
-
const GoodsDetailPromotion = ({ promotionList }) => {
|
|
4
|
+
export const GoodsDetailPromotion = ({ promotionList }) => {
|
|
4
5
|
const { View, Text } = useComponent();
|
|
5
6
|
return (_jsxs(View, Object.assign({ className: 'goodsDetail-promotion' }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u4FC3\u9500" })), _jsx(View, Object.assign({ className: 'group' }, { children: promotionList.length ? (promotionList.map(({ discName }, index) => {
|
|
6
7
|
return (_jsx(View, Object.assign({ className: 'item' }, { children: discName }), index));
|
|
7
8
|
})) : (_jsx(View, Object.assign({ className: 'noPromotion' }, { children: "\u6682\u65E0\u4FC3\u9500\u6D3B\u52A8" }))) }))] })));
|
|
8
9
|
};
|
|
9
|
-
export default GoodsDetailPromotion;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const GoodsDetailSize: ({ goods }: any) => JSX.Element;
|
|
2
|
-
export default GoodsDetailSize;
|
|
1
|
+
export declare const GoodsDetailSize: ({ goods }: any) => JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
3
3
|
import { THREE_DOTS } from '../../../static';
|
|
4
|
-
import GoodsDetailPopup from './goodsDetailPopup';
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
4
|
+
import { GoodsDetailPopup } from './goodsDetailPopup';
|
|
5
|
+
import { goodsDetailStore } from 'qj-mobile-store';
|
|
6
|
+
const { useDispatchImpl, useStore } = goodsDetailStore;
|
|
7
|
+
export const GoodsDetailSize = ({ goods }) => {
|
|
7
8
|
const { View, Text } = useComponent();
|
|
8
9
|
const { count, spec } = useStore();
|
|
9
10
|
const dispatch = useDispatchImpl();
|
|
@@ -15,4 +16,3 @@ const GoodsDetailSize = ({ goods }) => {
|
|
|
15
16
|
}
|
|
16
17
|
}) }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u89C4\u683C" })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsxs(Text, Object.assign({ className: 'label' }, { children: ["\u5DF2\u9009\u62E9 \u6570\u91CF: ", count, " \u89C4\u683C: ", spec] })), _jsx("img", { src: THREE_DOTS, alt: "", className: 'icon' })] }))] })), _jsx(GoodsDetailPopup, { goods: goods })] }));
|
|
17
18
|
};
|
|
18
|
-
export default GoodsDetailSize;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './evaluateEntry';
|
|
2
|
+
export * from './goodsDetailCollection';
|
|
3
|
+
export * from './goodsDetailCoupon';
|
|
4
|
+
export * from './goodsDetailEvaluate';
|
|
5
|
+
export * from './goodsDetailHandleBar';
|
|
6
|
+
export * from './goodsDetailInfo';
|
|
7
|
+
export * from './goodsDetailPopup';
|
|
8
|
+
export * from './goodsDetailPromotion';
|
|
9
|
+
export * from './goodsDetailSize';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './evaluateEntry';
|
|
2
|
+
export * from './goodsDetailCollection';
|
|
3
|
+
export * from './goodsDetailCoupon';
|
|
4
|
+
export * from './goodsDetailEvaluate';
|
|
5
|
+
export * from './goodsDetailHandleBar';
|
|
6
|
+
export * from './goodsDetailInfo';
|
|
7
|
+
export * from './goodsDetailPopup';
|
|
8
|
+
export * from './goodsDetailPromotion';
|
|
9
|
+
export * from './goodsDetailSize';
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
//@ts-nocheck
|
|
2
3
|
import { memo } from 'react';
|
|
3
4
|
import { _ } from '@brushes/tools';
|
|
4
|
-
import GoodsDetailPromotion from './components/goodsDetailPromotion';
|
|
5
|
-
import GoodsDetailCoupon from './components/goodsDetailCoupon';
|
|
6
|
-
import GoodsDetailCollection from './components/goodsDetailCollection';
|
|
7
|
-
import GoodsDetailHandleBar from './components/goodsDetailHandleBar';
|
|
8
5
|
import { Slider } from '../Slider';
|
|
9
|
-
import GoodsDetailInfo from './components
|
|
10
|
-
import
|
|
11
|
-
import GoodsDetailSize from './components/goodsDetailSize';
|
|
12
|
-
import { useGoodsDetailImpl } from './hooks';
|
|
13
|
-
import { StoreProvider } from './store';
|
|
6
|
+
import { GoodsDetailPromotion, GoodsDetailCoupon, GoodsDetailCollection, GoodsDetailHandleBar, GoodsDetailInfo, GoodsDetailEvaluate, GoodsDetailSize } from './components';
|
|
7
|
+
import { goodsDetailStore, useGoodsDetailImpl } from 'qj-mobile-store';
|
|
14
8
|
import { getEnv } from '@brushes/api';
|
|
15
9
|
import { useComponent } from '@brushes/qj-simulate-component';
|
|
16
10
|
const { isEmpty } = _;
|
|
17
11
|
const flag = getEnv();
|
|
12
|
+
const { StoreProvider } = goodsDetailStore;
|
|
18
13
|
const GoodsDetailJsx = ({ skuCode }) => {
|
|
19
14
|
return (_jsx(StoreProvider, { children: _jsx(GoodsDetailJsxInner, { skuCode: skuCode }) }));
|
|
20
15
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './filter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './filter';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
//@ts-nocheck
|
|
2
3
|
import { memo, useState } from 'react';
|
|
3
4
|
import { Loading, navigatorImpl, ScrollView, useComponent } from '@brushes/qj-simulate-component';
|
|
4
5
|
import { QjMobileIcon } from '../../common/icon';
|
|
5
|
-
import { Filter } from './components
|
|
6
|
-
import { useGoodsList } from '
|
|
6
|
+
import { Filter } from './components';
|
|
7
|
+
import { useGoodsList } from 'qj-mobile-store';
|
|
7
8
|
import { routerMap } from '../../routerMap';
|
|
8
9
|
const GoodsListJsx = ({ classtreeCode = '', searchParam = '' }) => {
|
|
9
10
|
const { View, Text } = useComponent();
|
|
@@ -2,14 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { useComponent, IconMobile, navigatorImpl } from '@brushes/qj-simulate-component';
|
|
4
4
|
import { getEnv } from '@brushes/api';
|
|
5
|
-
import { OrderEntry } from './components
|
|
6
|
-
import { MenuList } from './components/menuList';
|
|
5
|
+
import { OrderEntry, MenuList } from './components';
|
|
7
6
|
import { routerMap } from '../../routerMap';
|
|
7
|
+
import { serviceActionSheet } from '../../utils';
|
|
8
8
|
const MineJsx = ({ avatarStyle, banner }) => {
|
|
9
9
|
const { View, Text } = useComponent();
|
|
10
10
|
const flag = getEnv();
|
|
11
11
|
return (_jsxs(View, Object.assign({ className: 'mine', style: {
|
|
12
12
|
height: flag ? '100%' : '667px'
|
|
13
|
-
} }, { children: [_jsxs(View, Object.assign({ className: 'topBoard' }, { children: [_jsx(IconMobile, { value: 'shezhi', onClick: () => navigatorImpl(routerMap.setting) }), _jsx(IconMobile, { value: 'kehufuwukefu' })] })), _jsxs(View, Object.assign({ className: 'userSetting' }, { children: [_jsxs(View, Object.assign({ className: 'lPart' }, { children: [_jsx(Text, Object.assign({ className: 'name' }, { children: "\u5F20\u4E09" })), _jsx(View, Object.assign({ className: 'link' }, { children: '编辑个人资料 >' }))] })), _jsx("img", { src: "", alt: "", className: 'avatar', style: { borderRadius: avatarStyle ? '50%' : '2px' }, onClick: () => navigatorImpl(routerMap.setting) })] })), _jsx(OrderEntry, {}), _jsx(MenuList, {}), banner ? _jsx("img", { className: 'banner', src: "", alt: "" }) : null] })));
|
|
13
|
+
} }, { children: [_jsxs(View, Object.assign({ className: 'topBoard' }, { children: [_jsx(IconMobile, { value: 'shezhi', onClick: () => navigatorImpl(routerMap.setting) }), _jsx(IconMobile, { value: 'kehufuwukefu', onClick: serviceActionSheet })] })), _jsxs(View, Object.assign({ className: 'userSetting' }, { children: [_jsxs(View, Object.assign({ className: 'lPart' }, { children: [_jsx(Text, Object.assign({ className: 'name' }, { children: "\u5F20\u4E09" })), _jsx(View, Object.assign({ className: 'link' }, { children: '编辑个人资料 >' }))] })), _jsx("img", { src: "", alt: "", className: 'avatar', style: { borderRadius: avatarStyle ? '50%' : '2px' }, onClick: () => navigatorImpl(routerMap.setting) })] })), _jsx(OrderEntry, {}), _jsx(MenuList, {}), banner ? _jsx("img", { className: 'banner', src: "", alt: "" }) : null] })));
|
|
14
14
|
};
|
|
15
15
|
export const Mine = memo(MineJsx);
|