s-material-react 0.1.19 → 0.1.21
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.d.ts +1 -1
- package/dist/common/card/index.d.ts +8 -8
- package/dist/common/coupon/index.d.ts +2 -2
- package/dist/common/evaluateItem/index.d.ts +2 -2
- package/dist/common/evaluateList/index.d.ts +5 -5
- package/dist/common/icon/index.d.ts +7 -7
- package/dist/common/mock/index.d.ts +300 -300
- package/dist/common/stepNum/index.d.ts +5 -5
- package/dist/components/AddressDetail/components/index.d.ts +1 -1
- package/dist/components/AddressDetail/components/skull.d.ts +2 -2
- package/dist/components/AddressDetail/config.d.ts +51 -51
- package/dist/components/AddressDetail/index.d.ts +2 -2
- package/dist/components/AddressList/components/index.d.ts +1 -1
- package/dist/components/AddressList/components/skull.d.ts +2 -2
- package/dist/components/AddressList/index.d.ts +2 -2
- package/dist/components/Cart/components/cartItem.d.ts +3 -3
- package/dist/components/Cart/components/index.d.ts +1 -1
- package/dist/components/Cart/index.d.ts +2 -2
- package/dist/components/ClassifyNav/index.d.ts +15 -15
- package/dist/components/CouponList/components/index.d.ts +4 -4
- package/dist/components/CouponList/components/overdue.d.ts +5 -5
- package/dist/components/CouponList/components/skull.d.ts +2 -2
- package/dist/components/CouponList/components/unUsed.d.ts +5 -5
- package/dist/components/CouponList/components/used.d.ts +5 -5
- package/dist/components/CouponList/index.d.ts +2 -2
- package/dist/components/Cube/index.d.ts +17 -17
- package/dist/components/EvaluateList/index.d.ts +2 -2
- package/dist/components/Goods/index.d.ts +24 -24
- package/dist/components/GoodsClassify/components/classifyFloor.d.ts +1 -1
- package/dist/components/GoodsClassify/components/classifySkeleton.d.ts +1 -1
- package/dist/components/GoodsClassify/components/index.d.ts +2 -2
- package/dist/components/GoodsClassify/index.d.ts +2 -2
- package/dist/components/GoodsDetail/components/evaluateEntry.d.ts +2 -2
- package/dist/components/GoodsDetail/components/goodsDetailCollection.d.ts +1 -1
- package/dist/components/GoodsDetail/components/goodsDetailCoupon.d.ts +1 -1
- package/dist/components/GoodsDetail/components/goodsDetailEvaluate.d.ts +1 -1
- package/dist/components/GoodsDetail/components/goodsDetailHandleBar.d.ts +1 -1
- package/dist/components/GoodsDetail/components/goodsDetailInfo.d.ts +1 -1
- package/dist/components/GoodsDetail/components/goodsDetailPopup.d.ts +1 -1
- package/dist/components/GoodsDetail/components/goodsDetailPromotion.d.ts +1 -1
- package/dist/components/GoodsDetail/components/goodsDetailSize.d.ts +1 -1
- package/dist/components/GoodsDetail/components/index.d.ts +9 -9
- package/dist/components/GoodsDetail/index.d.ts +6 -6
- package/dist/components/GoodsDetailPromotion/index.d.ts +2 -2
- package/dist/components/GoodsDetailTopInfo/index.d.ts +2 -2
- package/dist/components/GoodsGroup/index.d.ts +25 -25
- package/dist/components/GoodsList/components/filter.d.ts +5 -5
- package/dist/components/GoodsList/components/index.d.ts +1 -1
- package/dist/components/GoodsList/index.d.ts +6 -6
- package/dist/components/Line/index.d.ts +11 -11
- package/dist/components/Mine/components/index.d.ts +2 -2
- package/dist/components/Mine/components/menuList.d.ts +1 -1
- package/dist/components/Mine/components/orderEntry.d.ts +1 -1
- package/dist/components/Mine/index.d.ts +7 -7
- package/dist/components/Notice/index.d.ts +12 -12
- package/dist/components/OrderDetail/index.d.ts +2 -2
- package/dist/components/OrderList/components/index.d.ts +3 -3
- package/dist/components/OrderList/components/mock.d.ts +1647 -1647
- package/dist/components/OrderList/components/orderItem.d.ts +15 -15
- package/dist/components/OrderList/components/orderListItem.d.ts +7 -7
- package/dist/components/OrderList/index.d.ts +2 -2
- package/dist/components/PaymentMode/config.d.ts +6 -6
- package/dist/components/PaymentMode/hooks/useOrderResult.d.ts +10 -11
- package/dist/components/PaymentMode/index.d.ts +4 -4
- package/dist/components/PlaceOrder/components/address.d.ts +12 -12
- package/dist/components/PlaceOrder/components/index.d.ts +3 -3
- package/dist/components/PlaceOrder/components/orderPrice.d.ts +12 -12
- package/dist/components/PlaceOrder/components/shop.d.ts +3 -3
- package/dist/components/PlaceOrder/index.d.ts +7 -7
- package/dist/components/PlaceOrderResult/index.d.ts +4 -4
- package/dist/components/Search/index.d.ts +14 -14
- package/dist/components/SearchPage/index.d.ts +8 -8
- package/dist/components/Service/index.d.ts +12 -12
- package/dist/components/Slider/index.d.ts +24 -24
- package/dist/components/Slider/item.d.ts +6 -6
- package/dist/components/Title/index.d.ts +17 -17
- package/dist/components/Video/index.d.ts +13 -13
- package/dist/components/index.d.ts +29 -29
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/routerMap/index.d.ts +16 -16
- package/dist/static/icon/index.d.ts +7 -7
- package/dist/static/index.d.ts +1 -1
- package/dist/utils/checkImgUrl.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/payment.d.ts +14 -14
- package/dist/utils/serviceActionSheet.d.ts +1 -1
- package/package.json +12 -10
- package/dist/common/addressItem/index.js +0 -9
- package/dist/common/card/index.js +0 -6
- package/dist/common/coupon/index.js +0 -8
- package/dist/common/evaluateItem/index.js +0 -13
- package/dist/common/evaluateList/index.js +0 -12
- package/dist/common/icon/index.js +0 -12
- package/dist/common/mock/index.js +0 -658
- package/dist/common/stepNum/index.js +0 -9
- package/dist/components/AddressDetail/components/index.js +0 -1
- package/dist/components/AddressDetail/components/skull.js +0 -9
- package/dist/components/AddressDetail/config.js +0 -65
- package/dist/components/AddressDetail/index.js +0 -29
- package/dist/components/AddressList/components/index.js +0 -1
- package/dist/components/AddressList/components/skull.js +0 -9
- package/dist/components/AddressList/index.js +0 -17
- package/dist/components/Cart/components/cartItem.js +0 -33
- package/dist/components/Cart/components/index.js +0 -1
- package/dist/components/Cart/index.js +0 -24
- package/dist/components/ClassifyNav/index.js +0 -12
- package/dist/components/CouponList/components/index.js +0 -4
- package/dist/components/CouponList/components/overdue.js +0 -6
- package/dist/components/CouponList/components/skull.js +0 -9
- package/dist/components/CouponList/components/unUsed.js +0 -6
- package/dist/components/CouponList/components/used.js +0 -6
- package/dist/components/CouponList/index.js +0 -22
- package/dist/components/Cube/index.js +0 -28
- package/dist/components/EvaluateList/index.js +0 -40
- package/dist/components/Goods/index.js +0 -69
- package/dist/components/GoodsClassify/components/classifyFloor.js +0 -12
- package/dist/components/GoodsClassify/components/classifySkeleton.js +0 -12
- package/dist/components/GoodsClassify/components/index.js +0 -2
- package/dist/components/GoodsClassify/index.js +0 -45
- package/dist/components/GoodsDetail/components/evaluateEntry.js +0 -43
- package/dist/components/GoodsDetail/components/goodsDetailCollection.js +0 -64
- package/dist/components/GoodsDetail/components/goodsDetailCoupon.js +0 -44
- package/dist/components/GoodsDetail/components/goodsDetailEvaluate.js +0 -6
- package/dist/components/GoodsDetail/components/goodsDetailHandleBar.js +0 -27
- package/dist/components/GoodsDetail/components/goodsDetailInfo.js +0 -14
- package/dist/components/GoodsDetail/components/goodsDetailPopup.js +0 -11
- package/dist/components/GoodsDetail/components/goodsDetailPromotion.js +0 -8
- package/dist/components/GoodsDetail/components/goodsDetailSize.js +0 -17
- package/dist/components/GoodsDetail/components/index.js +0 -9
- package/dist/components/GoodsDetail/index.js +0 -28
- package/dist/components/GoodsDetailPromotion/index.js +0 -8
- package/dist/components/GoodsDetailTopInfo/index.js +0 -9
- package/dist/components/GoodsGroup/index.js +0 -27
- package/dist/components/GoodsList/components/filter.js +0 -43
- package/dist/components/GoodsList/components/index.js +0 -1
- package/dist/components/GoodsList/index.js +0 -16
- package/dist/components/Line/index.js +0 -18
- package/dist/components/Mine/components/index.js +0 -2
- package/dist/components/Mine/components/menuList.js +0 -22
- package/dist/components/Mine/components/orderEntry.js +0 -48
- package/dist/components/Mine/index.js +0 -15
- package/dist/components/Notice/index.js +0 -15
- package/dist/components/OrderDetail/index.js +0 -15
- package/dist/components/OrderList/components/index.js +0 -3
- package/dist/components/OrderList/components/mock.js +0 -4417
- package/dist/components/OrderList/components/orderItem.js +0 -7
- package/dist/components/OrderList/components/orderListItem.js +0 -38
- package/dist/components/OrderList/index.js +0 -17
- package/dist/components/PaymentMode/config.js +0 -14
- package/dist/components/PaymentMode/hooks/useOrderResult.js +0 -100
- package/dist/components/PaymentMode/index.js +0 -17
- package/dist/components/PlaceOrder/components/address.js +0 -33
- package/dist/components/PlaceOrder/components/index.js +0 -3
- package/dist/components/PlaceOrder/components/orderPrice.js +0 -7
- package/dist/components/PlaceOrder/components/shop.js +0 -8
- package/dist/components/PlaceOrder/index.js +0 -16
- package/dist/components/PlaceOrderResult/index.js +0 -16
- package/dist/components/Search/index.js +0 -34
- package/dist/components/SearchPage/index.js +0 -59
- package/dist/components/Service/index.js +0 -8
- package/dist/components/Slider/index.js +0 -28
- package/dist/components/Slider/item.js +0 -13
- package/dist/components/Title/index.js +0 -18
- package/dist/components/Video/index.js +0 -13
- package/dist/components/index.js +0 -29
- package/dist/options/index.js +0 -36
- package/dist/routerMap/index.js +0 -16
- package/dist/static/icon/index.js +0 -14
- package/dist/static/index.js +0 -1
- package/dist/utils/checkImgUrl.js +0 -9
- package/dist/utils/index.js +0 -1
- package/dist/utils/payment.js +0 -56
- package/dist/utils/serviceActionSheet.js +0 -31
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useComponent, antdMobile } from '@brushes/qj-simulate-component';
|
|
3
|
-
const { Button } = antdMobile;
|
|
4
|
-
export function Item({ contractBillcode, dataBmoney, dataBnum, goodsList }) {
|
|
5
|
-
const { View } = useComponent();
|
|
6
|
-
return (_jsxs(View, Object.assign({ className: 'orderListItem' }, { children: [_jsxs(View, Object.assign({ className: 'topInfo' }, { children: [_jsxs(View, Object.assign({ className: 'orderNo' }, { children: ["\u8BA2\u5355\u53F7: ", contractBillcode, _jsx(Button, Object.assign({ className: 'copy', size: "mini", fill: 'outline' }, { children: "\u590D\u5236" }))] })), _jsx(View, Object.assign({ className: 'status' }, { children: "\u5F85\u652F\u4ED8" }))] })), _jsx(View, Object.assign({ className: 'goodsItemWrap' }, { children: _jsxs(View, Object.assign({ className: 'allInfo' }, { children: [_jsxs(View, Object.assign({ className: 'totalNum' }, { children: ["\u5171", dataBnum, "\u4EF6\u5546\u54C1"] })), _jsxs(View, Object.assign({ className: 'totalPrice' }, { children: ["\u5408\u8BA1 \uFFE5", dataBmoney] }))] })) })), _jsxs(View, Object.assign({ className: 'btnGroup' }, { children: [_jsx(Button, Object.assign({ shape: "rounded", className: 'btn white' }, { children: "\u67E5\u770B\u7269\u6D41" })), _jsx(Button, Object.assign({ shape: "rounded", className: 'btn black' }, { children: "\u786E\u8BA4\u6536\u8D27" }))] }))] })));
|
|
7
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { createElement as _createElement } from "react";
|
|
12
|
-
import { memo, useEffect, useState } from 'react';
|
|
13
|
-
import { getEnv, queryContractPageC } from '@brushes/api';
|
|
14
|
-
import { useComponent, ScrollView, Loading } from '@brushes/qj-simulate-component';
|
|
15
|
-
import { Item } from './orderItem';
|
|
16
|
-
function OrderListItemJsx({ item }) {
|
|
17
|
-
const { View } = useComponent();
|
|
18
|
-
const [loading, setLoading] = useState(false);
|
|
19
|
-
const [data, setData] = useState([]);
|
|
20
|
-
const isTaro = getEnv();
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
onScroll();
|
|
23
|
-
}, []);
|
|
24
|
-
const onScroll = (e = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
setLoading(true);
|
|
26
|
-
try {
|
|
27
|
-
const data = yield queryContractPageC({ page: 1, rows: 10 });
|
|
28
|
-
setData((val) => val.concat(data.rows));
|
|
29
|
-
setLoading(false);
|
|
30
|
-
}
|
|
31
|
-
catch (err) {
|
|
32
|
-
console.log(err);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
console.log('23=====>', data);
|
|
36
|
-
return (_jsx(View, Object.assign({ className: 'orderListItemWrap', style: { height: isTaro ? '100vh' : '667px' } }, { children: _jsx(ScrollView, Object.assign({ onScroll: onScroll, style: { height: '100vh' } }, { children: _jsxs(View, { children: [data.map((item, index) => (_createElement(Item, Object.assign({}, item, { key: index })))), loading ? _jsx(Loading, {}) : null] }) })) })));
|
|
37
|
-
}
|
|
38
|
-
export const OrderListItem = memo(OrderListItemJsx);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { memo, useRef } from 'react';
|
|
3
|
-
import { useComponent, Tabs } from '@brushes/qj-simulate-component';
|
|
4
|
-
import { OrderListItem } from './components/';
|
|
5
|
-
const OrderListJsx = ({ defaultIndex = 0 }) => {
|
|
6
|
-
console.log('location', defaultIndex);
|
|
7
|
-
const { View } = useComponent();
|
|
8
|
-
const tabs = useRef([
|
|
9
|
-
{ name: '全部', code: 'all' },
|
|
10
|
-
{ name: '待付款', code: 'waiting' },
|
|
11
|
-
{ name: '待发货', code: 'delivery' },
|
|
12
|
-
{ name: '待收货', code: 'receive' },
|
|
13
|
-
{ name: '已完成', code: 'done' }
|
|
14
|
-
]);
|
|
15
|
-
return (_jsx(View, Object.assign({ className: 'order-container' }, { children: _jsx(Tabs, { defaultIndex: defaultIndex, tabs: tabs.current, render: (item) => (_jsx(View, Object.assign({ className: 'orderList' }, { children: _jsx(OrderListItem, { item: item }) }))) }) })));
|
|
16
|
-
};
|
|
17
|
-
export const OrderList = memo(OrderListJsx);
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { useEffect, useRef, useState } from 'react';
|
|
11
|
-
import { saveOrderToPay, syncContractState, paymentCommit } from '../../../utils/payment';
|
|
12
|
-
import { _ } from '@brushes/tools';
|
|
13
|
-
const { get } = _;
|
|
14
|
-
export function useOrderResult(code) {
|
|
15
|
-
const [loading, setLoading] = useState(false);
|
|
16
|
-
const channel = useRef('');
|
|
17
|
-
const [channelList, setChannelList] = useState([]);
|
|
18
|
-
const result = useRef({});
|
|
19
|
-
const contract = useRef({
|
|
20
|
-
dataBmoney: '',
|
|
21
|
-
contractBillcode: ''
|
|
22
|
-
});
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
(() => __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
var _a;
|
|
26
|
-
try {
|
|
27
|
-
const data = yield syncContractState({
|
|
28
|
-
contractBillcode: code
|
|
29
|
-
});
|
|
30
|
-
contract.current = data.dataObj;
|
|
31
|
-
const res = yield saveOrderToPay({
|
|
32
|
-
contractBillcode: (_a = contract.current.contractBillcode) !== null && _a !== void 0 ? _a : ''
|
|
33
|
-
});
|
|
34
|
-
setChannelList(res.payChannelList);
|
|
35
|
-
result.current = res;
|
|
36
|
-
}
|
|
37
|
-
catch (err) {
|
|
38
|
-
console.log(err);
|
|
39
|
-
}
|
|
40
|
-
}))();
|
|
41
|
-
}, []);
|
|
42
|
-
const handleRadio = (params) => {
|
|
43
|
-
channel.current = params.detail.value;
|
|
44
|
-
};
|
|
45
|
-
const paymentImpl = () => {
|
|
46
|
-
switch (channel.current) {
|
|
47
|
-
case 'wechatmini':
|
|
48
|
-
wechatmini();
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const wechatmini = () => __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
setLoading(true);
|
|
54
|
-
const { ptradeSeqno, contractBlance, payChannelList } = result.current;
|
|
55
|
-
// 模拟微信支付场景
|
|
56
|
-
const pyJsons = [
|
|
57
|
-
{
|
|
58
|
-
faccountIdType: 'ACCOUNT',
|
|
59
|
-
fchannelCode: payChannelList[1].fchannelCode,
|
|
60
|
-
orderAmount: contract.current.dataBmoney,
|
|
61
|
-
faccountId: payChannelList[1].faccountOuterNo || ''
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
try {
|
|
65
|
-
const res = yield paymentCommit({
|
|
66
|
-
ptradeSeqno,
|
|
67
|
-
payCommitStr: JSON.stringify(pyJsons),
|
|
68
|
-
contractBlance
|
|
69
|
-
});
|
|
70
|
-
let data = res.dataObj.requestData;
|
|
71
|
-
wx.requestPayment({
|
|
72
|
-
timeStamp: data.timeStamp,
|
|
73
|
-
nonceStr: data.nonceStr,
|
|
74
|
-
package: data.package,
|
|
75
|
-
signType: data.signType,
|
|
76
|
-
paySign: data.paySign,
|
|
77
|
-
success: function (res) {
|
|
78
|
-
console.log(64, res);
|
|
79
|
-
},
|
|
80
|
-
fail: function (res) {
|
|
81
|
-
console.log(res, '失败参数');
|
|
82
|
-
setLoading(false);
|
|
83
|
-
},
|
|
84
|
-
complete: function (res) {
|
|
85
|
-
setLoading(false);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
catch (err) {
|
|
90
|
-
setLoading(false);
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
return {
|
|
94
|
-
paymentImpl,
|
|
95
|
-
channelList,
|
|
96
|
-
handleRadio,
|
|
97
|
-
contract,
|
|
98
|
-
loading
|
|
99
|
-
};
|
|
100
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { useComponent, IconMobile, WrapLoading } from '@brushes/qj-simulate-component';
|
|
4
|
-
import { getEnv } from '@brushes/api';
|
|
5
|
-
// import {config} from "./config";
|
|
6
|
-
import { useOrderResult } from 'qj-mobile-store';
|
|
7
|
-
const flag = getEnv();
|
|
8
|
-
const PaymentModeJsx = ({ code }) => {
|
|
9
|
-
const { View, Text } = useComponent();
|
|
10
|
-
const { paymentImpl, channelList, contract, handleRadio, loading } = useOrderResult(code);
|
|
11
|
-
return (_jsxs(View, Object.assign({ className: 'paymentModeWrap', style: {
|
|
12
|
-
height: flag ? 'inherit' : '667px'
|
|
13
|
-
} }, { children: [_jsxs(View, Object.assign({ className: 'paymentMode' }, { children: [_jsxs(View, Object.assign({ className: 'topInfo' }, { children: [_jsxs(Text, Object.assign({ className: 'title' }, { children: [_jsx(IconMobile, { value: 'roundcheck' }), "\u8BA2\u5355\u63D0\u4EA4\u6210\u529F"] })), _jsxs(View, Object.assign({ className: 'info' }, { children: ["\u8BA2\u5355\u53F7\uFF1A", contract.current.contractBillcode, " | \u603B\u91D1\u989D\uFF1A", contract.current.dataBmoney, "\u5143"] }))] })), _jsx(View, Object.assign({ className: 'paymentGroup' }, { children: _jsx("radio-group", Object.assign({ onChange: handleRadio }, { children: channelList.map((item) => {
|
|
14
|
-
return (_jsxs(View, Object.assign({ className: 'paymentItem' }, { children: [_jsx(IconMobile, { value: item.icon }), _jsxs(View, { children: [_jsxs(View, Object.assign({ className: 'base' }, { children: [_jsx(Text, { children: item.fchannelName }), flag ? _jsx("radio", { value: item.fchannelCode }) : _jsx("input", { type: "radio" })] })), item.value === 'account' ? (_jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(View, { children: "\u8D26\u6237\u4F59\u989D\uFF1A0\u5143" }), _jsx(View, { children: "\u672C\u5355\u62B5\u6263\uFF1A5.4\u5143" })] }))) : null] })] }), item.fchannelCode));
|
|
15
|
-
}) })) }))] })), _jsx(WrapLoading, Object.assign({ loading: loading }, { children: _jsx(View, Object.assign({ className: 'btnGroup', onClick: paymentImpl }, { children: _jsx(View, Object.assign({ className: 'payment' }, { children: "\u7ACB\u5373\u652F\u4ED8" })) })) }))] })));
|
|
16
|
-
};
|
|
17
|
-
export const PaymentMode = memo(PaymentModeJsx);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useComponent, IconMobile } from '@brushes/qj-simulate-component';
|
|
3
|
-
import { _ } from '@brushes/tools';
|
|
4
|
-
import { useMemo } from 'react';
|
|
5
|
-
const { isEmpty } = _;
|
|
6
|
-
export const Address = ({ address }) => {
|
|
7
|
-
return _jsx(_Fragment, { children: isEmpty(address) ? _jsx(NoAddress, {}) : _jsx(DefaultAddress, { address: address }) });
|
|
8
|
-
};
|
|
9
|
-
const DefaultAddress = ({ address }) => {
|
|
10
|
-
const { View, Text } = useComponent();
|
|
11
|
-
const addressInfo = useMemo(() => {
|
|
12
|
-
const { provinceName, addressDefault, cityName, areaName, addressDetail, addressMember = '', addressPhone = '' } = address;
|
|
13
|
-
return {
|
|
14
|
-
addressDefault: addressDefault === '1',
|
|
15
|
-
addressMember,
|
|
16
|
-
addressPhone,
|
|
17
|
-
address: provinceName + cityName + areaName + addressDetail
|
|
18
|
-
};
|
|
19
|
-
}, [address]);
|
|
20
|
-
return (_jsxs(View, Object.assign({ className: "address-info" }, { children: [_jsx(IconMobile, { style: {
|
|
21
|
-
fontWeight: 900,
|
|
22
|
-
color: '#444',
|
|
23
|
-
lineHeight: 3.2
|
|
24
|
-
}, value: 'shouhuodizhi' }), _jsxs(View, Object.assign({ className: "left" }, { children: [_jsxs(View, Object.assign({ className: "left-title" }, { children: [_jsx(Text, { children: addressInfo.addressMember }), _jsx(Text, Object.assign({ className: 'left-padding' }, { children: addressInfo.addressPhone })), _jsx(Text, Object.assign({ className: 'left-padding left-title-default' }, { children: addressInfo.addressDefault ? '默认' : '' }))] })), _jsx(View, Object.assign({ className: "left-detail" }, { children: addressInfo.address }))] })), _jsx(IconMobile, { value: 'xiangyou1', style: {
|
|
25
|
-
color: '#444',
|
|
26
|
-
lineHeight: 3,
|
|
27
|
-
textAlign: 'right'
|
|
28
|
-
} })] })));
|
|
29
|
-
};
|
|
30
|
-
const NoAddress = () => {
|
|
31
|
-
const { View, Text } = useComponent();
|
|
32
|
-
return (_jsxs(_Fragment, { children: [_jsxs(View, Object.assign({ className: 'group' }, { children: [_jsx(Text, { className: 'local' }), _jsx(Text, Object.assign({ className: 'address' }, { children: "\u9009\u62E9\u6536\u8D27\u5730\u5740" }))] })), _jsx(Text, { className: 'arrow' })] }));
|
|
33
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
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 OrderPrice = ({ payState, savePayPrice }) => {
|
|
4
|
-
const { View, Text } = useComponent();
|
|
5
|
-
const { shoppingCountPrice, freight, accountsSumPrice, comDisMoney } = payState;
|
|
6
|
-
return (_jsxs(_Fragment, { children: [_jsxs(View, Object.assign({ className: 'price blcWrap' }, { children: [_jsx(View, Object.assign({ className: 'title' }, { children: "\u4EF7\u683C\u660E\u7EC6" })), _jsxs(View, Object.assign({ className: 'express blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u5546\u54C1\u603B\u91D1\u989D" })), _jsxs(View, Object.assign({ className: 'value' }, { children: ["\uFFE5 ", shoppingCountPrice] }))] })), _jsxs(View, Object.assign({ className: 'coupon blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u4F18\u60E0\u91D1\u989D" })), _jsxs(View, Object.assign({ className: 'value' }, { children: ["\uFFE5 ", comDisMoney] }))] })), _jsxs(View, Object.assign({ className: 'express blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u8FD0\u8D39" })), _jsxs(View, Object.assign({ className: 'value' }, { children: ["\uFFE5 ", freight] }))] })), _jsxs(View, Object.assign({ className: 'all blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u603B\u8BA1" })), _jsxs(View, Object.assign({ className: 'value', style: { color: '#000' } }, { children: ["\uFFE5 ", accountsSumPrice] }))] }))] })), _jsxs(View, Object.assign({ className: 'placeOrderFooter' }, { children: [_jsxs(Text, Object.assign({ className: 'price' }, { children: ["\u5408\u8BA1: ", accountsSumPrice] })), _jsx(View, Object.assign({ className: 'btn', onClick: savePayPrice }, { children: "\u751F\u6210\u8BA2\u5355" }))] }))] }));
|
|
7
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useComponent } from '@brushes/qj-simulate-component';
|
|
3
|
-
import { CardJsx } from '../../../common/card';
|
|
4
|
-
export const ShopJsx = ({ goodsList }) => {
|
|
5
|
-
console.log(6, goodsList);
|
|
6
|
-
const { View } = useComponent();
|
|
7
|
-
return (_jsx(View, Object.assign({ className: 'place-order-goods' }, { children: goodsList.map((item, ind) => (_jsx(CardJsx, Object.assign({}, item), ind))) })));
|
|
8
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { navigatorImpl, useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
import { getEnv } from '@brushes/api';
|
|
5
|
-
import { routerMap } from '../../routerMap';
|
|
6
|
-
import { usePlaceOrder } from 'qj-mobile-store';
|
|
7
|
-
import { Address, ShopJsx, OrderPrice } from './components';
|
|
8
|
-
const flag = getEnv();
|
|
9
|
-
const PlaceOrderJsx = ({ goodsNum, skuId, shoppingGoodsId }) => {
|
|
10
|
-
const { View, Text } = useComponent();
|
|
11
|
-
const { savePayPrice, address, list, payState } = usePlaceOrder({ skuId, goodsNum, shoppingGoodsId });
|
|
12
|
-
return (_jsxs(View, Object.assign({ className: 'placeOrder', style: {
|
|
13
|
-
height: flag ? '100vh' : '667px'
|
|
14
|
-
} }, { children: [_jsx(View, Object.assign({ className: 'chooseAddress', onClick: () => navigatorImpl(routerMap.addressList) }, { children: _jsx(Address, { address: address }) })), _jsx(ShopJsx, { goodsList: list.current }), _jsxs(View, Object.assign({ className: 'info blcWrap' }, { children: [_jsxs(View, Object.assign({ className: 'express blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u914D\u9001\u65B9\u5F0F" })), _jsx(View, Object.assign({ className: 'value' }, { children: "\u5FEB\u9012" }))] })), _jsxs(View, Object.assign({ className: 'coupon blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u4F7F\u7528\u4F18\u60E0" })), _jsxs(View, Object.assign({ className: 'value' }, { children: ["\u53EF\u9009\u62E9\u4F7F\u7528\u4F18\u60E0\u7801/\u4F18\u60E0\u7801", _jsx(Text, { className: 'icon' })] }))] }))] })), _jsx(OrderPrice, { savePayPrice: savePayPrice, payState: payState.current })] })));
|
|
15
|
-
};
|
|
16
|
-
export const PlaceOrder = memo(PlaceOrderJsx);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { navigatorImpl, useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
import { getEnv } from '@brushes/api';
|
|
5
|
-
import { routerMap } from '../../routerMap';
|
|
6
|
-
import { useOrderResultResult } from 'qj-mobile-store';
|
|
7
|
-
const { useOrderResult } = useOrderResultResult;
|
|
8
|
-
const flag = getEnv();
|
|
9
|
-
const PlaceOrderResultJsx = ({ code }) => {
|
|
10
|
-
const { View, Text } = useComponent();
|
|
11
|
-
const { paymentImpl } = useOrderResult(code);
|
|
12
|
-
return (_jsx(View, Object.assign({ className: 'placeOrderResult', style: {
|
|
13
|
-
height: flag ? '100vh' : '667px'
|
|
14
|
-
} }, { children: _jsxs(View, Object.assign({ className: 'placeOrderResultContent' }, { children: [_jsx(Text, { className: 'icon' }), _jsxs(View, Object.assign({ className: 'tips' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u8BA2\u5355\u652F\u4ED8\u6210\u529F" })), _jsx(Text, Object.assign({ className: 'tip' }, { children: "\u60A8\u7684\u8BA2\u5355\u5C06\u4FDD\u755915\u5206\u949F\uFF0C\u53EF\u70B9\u51FB\u4E0B\u65B9\u201C\u53BB\u652F\u4ED8\u201D\u5B8C\u6210\u8BA2\u5355" }))] })), _jsxs(View, Object.assign({ className: 'placeOrderResultWrap' }, { children: [_jsxs(View, Object.assign({ className: 'placeOrderResultItem' }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u8BA2\u5355\u53F7\uFF1A" })), _jsx(Text, Object.assign({ className: 'value' }, { children: "324324823748237" }))] })), _jsxs(View, Object.assign({ className: 'placeOrderResultItem' }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u5546\u54C1\u6570\u91CF\uFF1A" })), _jsx(Text, Object.assign({ className: 'value' }, { children: "1" }))] })), _jsxs(View, Object.assign({ className: 'placeOrderResultItem' }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u652F\u4ED8\u65B9\u5F0F\uFF1A" })), _jsx(Text, Object.assign({ className: 'value' }, { children: "\u5FAE\u4FE1\u652F\u4ED8" }))] })), _jsxs(View, Object.assign({ className: 'placeOrderResultItem' }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u652F\u4ED8\u91D1\u989D\uFF1A" })), _jsx(Text, Object.assign({ className: 'value' }, { children: "\uFFE5 9999.00" }))] }))] })), _jsxs(View, Object.assign({ className: 'btnGroup' }, { children: [_jsx(View, Object.assign({ className: 'btn black', onClick: () => navigatorImpl(routerMap.orderDetail) }, { children: "\u67E5\u770B\u8BA2\u5355" })), _jsx(View, Object.assign({ onClick: paymentImpl, className: 'btn white' }, { children: "\u7EE7\u7EED\u8D2D\u7269" }))] }))] })) })));
|
|
15
|
-
};
|
|
16
|
-
export const PlaceOrderResult = memo(PlaceOrderResultJsx);
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { navigatorImpl, useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
import { SEARCH } from '../../static';
|
|
5
|
-
import { routerMap } from '../../routerMap';
|
|
6
|
-
const SearchJsx = ({ value, iconShow, fontColor, backgroundColor, borderRadius, paddingTop, paddingBottom, paddingLeft, paddingRight }) => {
|
|
7
|
-
const { View, Image } = useComponent();
|
|
8
|
-
return (_jsx(View, Object.assign({ onClick: () => navigatorImpl(routerMap.search), style: {
|
|
9
|
-
paddingTop,
|
|
10
|
-
paddingBottom,
|
|
11
|
-
paddingLeft,
|
|
12
|
-
paddingRight
|
|
13
|
-
} }, { children: _jsxs(View, Object.assign({ className: 'components-search', style: {
|
|
14
|
-
backgroundColor,
|
|
15
|
-
borderRadius: borderRadius + 'px',
|
|
16
|
-
height: '32px',
|
|
17
|
-
lineHeight: '32px',
|
|
18
|
-
width: '100%',
|
|
19
|
-
display: 'inline-block',
|
|
20
|
-
textAlign: 'center'
|
|
21
|
-
} }, { children: [_jsx(Image, { src: SEARCH, alt: "", mode: 'fill', style: {
|
|
22
|
-
height: '16px',
|
|
23
|
-
width: '16px',
|
|
24
|
-
display: iconShow ? 'inline-block' : 'none',
|
|
25
|
-
verticalAlign: 'top',
|
|
26
|
-
marginTop: '8px',
|
|
27
|
-
marginRight: '10px'
|
|
28
|
-
} }), _jsx(View, Object.assign({ className: 'txt', style: {
|
|
29
|
-
color: fontColor,
|
|
30
|
-
display: 'inline-block',
|
|
31
|
-
fontSize: '14px'
|
|
32
|
-
} }, { children: value }))] })) })));
|
|
33
|
-
};
|
|
34
|
-
export const Search = memo(SearchJsx);
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { memo, useEffect, useState } from 'react';
|
|
12
|
-
import { navigatorImpl, useComponent, navigatorBackImpl } from '@brushes/qj-simulate-component';
|
|
13
|
-
import { SEARCH } from '../../static';
|
|
14
|
-
import { useImmutableCallback, _ } from '@brushes/tools';
|
|
15
|
-
import { getEnv, getTaro } from '@brushes/api';
|
|
16
|
-
import { routerMap } from '../../routerMap';
|
|
17
|
-
import { QjMobileIcon } from '../../common/icon';
|
|
18
|
-
const flag = getEnv();
|
|
19
|
-
const { isEmpty } = _;
|
|
20
|
-
const SearchPageJsx = ({ placeholder, placeholderText, history }) => {
|
|
21
|
-
const { View, Text } = useComponent();
|
|
22
|
-
const [historyItem, setHistory] = useState([]);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
|
-
const isTaro = getEnv();
|
|
26
|
-
if (!isTaro)
|
|
27
|
-
return;
|
|
28
|
-
const Taro = yield getTaro();
|
|
29
|
-
const history = Taro.getStorageSync('history') || [];
|
|
30
|
-
setHistory(history);
|
|
31
|
-
}))();
|
|
32
|
-
}, []);
|
|
33
|
-
const searchGoodsImpl = useImmutableCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
|
-
const isTaro = getEnv();
|
|
35
|
-
if (!isTaro)
|
|
36
|
-
return;
|
|
37
|
-
const Taro = yield getTaro();
|
|
38
|
-
setHistory((prevState) => {
|
|
39
|
-
if (isEmpty(e.detail.value))
|
|
40
|
-
return prevState;
|
|
41
|
-
const data = prevState.concat(e.detail.value);
|
|
42
|
-
Taro.getStorageSync('history', data);
|
|
43
|
-
return data;
|
|
44
|
-
});
|
|
45
|
-
navigatorHandler(e.detail.value);
|
|
46
|
-
}));
|
|
47
|
-
const navigatorHandler = useImmutableCallback((value) => {
|
|
48
|
-
navigatorImpl(`${routerMap.goodList}?searchParam=${value}`);
|
|
49
|
-
});
|
|
50
|
-
const removeHistory = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
-
const Taro = yield getTaro();
|
|
52
|
-
Taro.removeStorageSync('history');
|
|
53
|
-
setHistory([]);
|
|
54
|
-
});
|
|
55
|
-
return (_jsxs(View, Object.assign({ className: 'searchPage', style: { height: flag ? '100vh' : '667px' } }, { children: [_jsxs(View, Object.assign({ className: 'search-title' }, { children: [_jsx("img", { src: SEARCH, alt: "" }), _jsx("input", Object.assign({ "confirm-type": "search", type: "text", className: 'content', onConfirm: searchGoodsImpl }, (placeholder ? { placeholder: placeholderText } : {}))), _jsx(Text, Object.assign({ className: 'btn', onClick: () => navigatorBackImpl() }, { children: "\u53D6\u6D88" }))] })), history ? (_jsxs(View, Object.assign({ className: 'historyWrap' }, { children: [_jsxs(View, Object.assign({ className: 'title' }, { children: [_jsxs(View, Object.assign({ className: 'label' }, { children: [_jsx(View, { className: 'icon' }), "\u5386\u53F2\u641C\u7D22\u8BB0\u5F55"] })), _jsx(QjMobileIcon, { onClick: removeHistory, value: 'shanchu', style: { fontSize: 18, color: '#222', lineHeight: '61px', cursor: 'pointer' } })] })), _jsx(View, Object.assign({ className: 'content' }, { children: historyItem.map((item, index) => {
|
|
56
|
-
return (_jsx(View, Object.assign({ onClick: () => navigatorHandler(item), className: 'historyItem' }, { children: item }), index));
|
|
57
|
-
}) }))] }))) : null] })));
|
|
58
|
-
};
|
|
59
|
-
export const SearchPage = memo(SearchPageJsx);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
const ServiceJsx = ({ width, height, top, right, bottom, left, borderRadius }) => {
|
|
5
|
-
const { View } = useComponent();
|
|
6
|
-
return (_jsx(View, { style: { width, height, borderRadius, top, left, right, bottom }, className: 'components-service' }));
|
|
7
|
-
};
|
|
8
|
-
export const Service = memo(ServiceJsx);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { memo } from 'react';
|
|
4
|
-
import { SmoothSwiper, View } from '@brushes/qj-simulate-component';
|
|
5
|
-
import { getEnv } from '@brushes/api';
|
|
6
|
-
import { _ } from '@brushes/tools';
|
|
7
|
-
import { Items } from './item';
|
|
8
|
-
const { isUndefined, isEmpty } = _;
|
|
9
|
-
const SwiperJsx = ({ defaultValue = [], type, autoplay, autoplayInterval, direction, loop, paddingTop, paddingBottom, paddingLeft, paddingRight, selectImg, imgHeight }) => {
|
|
10
|
-
const [list, setList] = useState(defaultValue);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
const computedArr = selectImg
|
|
13
|
-
.filter((item) => !isUndefined(item))
|
|
14
|
-
.filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
|
|
15
|
-
let arr = defaultValue;
|
|
16
|
-
if (!isEmpty(computedArr)) {
|
|
17
|
-
arr = computedArr;
|
|
18
|
-
}
|
|
19
|
-
setList(arr);
|
|
20
|
-
}, [selectImg]);
|
|
21
|
-
return (_jsx(View, Object.assign({ style: {
|
|
22
|
-
paddingTop,
|
|
23
|
-
paddingBottom,
|
|
24
|
-
paddingLeft,
|
|
25
|
-
paddingRight
|
|
26
|
-
} }, { children: _jsx(SmoothSwiper, { className: getEnv() ? 'slider-block' : 'pc', imgHeight: imgHeight, data: list, type: type, autoplay: autoplay, autoplayInterval: autoplayInterval, direction: direction, loop: loop, render: (item) => _jsx(Items, { type: type, item: item }) }) })));
|
|
27
|
-
};
|
|
28
|
-
export const Slider = memo(SwiperJsx);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
import { getEnv } from '@brushes/api';
|
|
5
|
-
export const Items = memo(({ item, type }) => {
|
|
6
|
-
const { Image, View } = useComponent();
|
|
7
|
-
return (_jsx(_Fragment, { children: type === 1 ? (_jsx(Image, { mode: 'widthFix', src: item.imgUrl, style: {
|
|
8
|
-
width: '100%'
|
|
9
|
-
} })) : (_jsx(View, { className: getEnv() ? 'slider-block' : 'pc', style: {
|
|
10
|
-
backgroundImage: `url(${item.imgUrl})`,
|
|
11
|
-
width: '100%'
|
|
12
|
-
} })) }));
|
|
13
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
const TitleJsx = ({ value, fontSize, textAlign, color, backgroundColor, fontWeight, textDecoration, fontStyle, paddingTop, paddingLeft, paddingRight, paddingBottom }) => {
|
|
5
|
-
const { View } = useComponent();
|
|
6
|
-
return (_jsx(View, Object.assign({ style: { paddingTop, paddingBottom } }, { children: _jsx(View, Object.assign({ style: {
|
|
7
|
-
fontSize,
|
|
8
|
-
textAlign,
|
|
9
|
-
color,
|
|
10
|
-
backgroundColor,
|
|
11
|
-
fontWeight,
|
|
12
|
-
textDecoration,
|
|
13
|
-
fontStyle,
|
|
14
|
-
paddingLeft,
|
|
15
|
-
paddingRight
|
|
16
|
-
} }, { children: value })) })));
|
|
17
|
-
};
|
|
18
|
-
export const Title = memo(TitleJsx);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { useComponent } from '@brushes/qj-simulate-component';
|
|
4
|
-
const VideoJsx = ({ url, poster, autoplay, loop, paddingTop, paddingBottom, paddingLeft, paddingRight }) => {
|
|
5
|
-
const { View } = useComponent();
|
|
6
|
-
return (_jsx(View, Object.assign({ style: { paddingTop, paddingBottom } }, { children: _jsx("video", { className: 'components-video', src: 'https://www.runoob.com/try/demo_source/movie.ogg', poster: poster, autoPlay: autoplay, loop: loop, controls: true, "object-fit": "contain", style: {
|
|
7
|
-
width: '100%',
|
|
8
|
-
height: '240px',
|
|
9
|
-
paddingLeft,
|
|
10
|
-
paddingRight
|
|
11
|
-
} }) })));
|
|
12
|
-
};
|
|
13
|
-
export const Video = memo(VideoJsx);
|
package/dist/components/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from './Goods';
|
|
2
|
-
export * from './Notice';
|
|
3
|
-
export * from './Title';
|
|
4
|
-
export * from './Cube';
|
|
5
|
-
export * from './Line';
|
|
6
|
-
export * from './Video';
|
|
7
|
-
export * from './Service';
|
|
8
|
-
export * from './Search';
|
|
9
|
-
export * from './Slider';
|
|
10
|
-
export * from './GoodsGroup';
|
|
11
|
-
export * from './OrderList';
|
|
12
|
-
export * from './OrderDetail';
|
|
13
|
-
export * from './ClassifyNav';
|
|
14
|
-
export * from './GoodsDetail';
|
|
15
|
-
export * from './GoodsClassify';
|
|
16
|
-
export * from './GoodsList';
|
|
17
|
-
export * from '../common/icon';
|
|
18
|
-
export * from './SearchPage';
|
|
19
|
-
export * from './GoodsDetailTopInfo';
|
|
20
|
-
export * from './GoodsDetailPromotion';
|
|
21
|
-
export * from './EvaluateList';
|
|
22
|
-
export * from './AddressList';
|
|
23
|
-
export * from './AddressDetail';
|
|
24
|
-
export * from './PlaceOrder';
|
|
25
|
-
export * from './PlaceOrderResult';
|
|
26
|
-
export * from './CouponList';
|
|
27
|
-
export * from './Cart';
|
|
28
|
-
export * from './Mine';
|
|
29
|
-
export * from './PaymentMode';
|
package/dist/options/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import provinces from 'china-division/dist/provinces.json';
|
|
3
|
-
// import cities from 'china-division/dist/cities.json';
|
|
4
|
-
// import areas from 'china-division/dist/areas.json';
|
|
5
|
-
//
|
|
6
|
-
// console.log(5, provinces);
|
|
7
|
-
// areas.forEach((area) => {
|
|
8
|
-
// const matchCity = cities.filter((city) => city.code === area.cityCode)[0];
|
|
9
|
-
// if (matchCity) {
|
|
10
|
-
// matchCity.children = matchCity.children || [];
|
|
11
|
-
// matchCity.children.push({
|
|
12
|
-
// label: area.name,
|
|
13
|
-
// value: area.code
|
|
14
|
-
// });
|
|
15
|
-
// }
|
|
16
|
-
// });
|
|
17
|
-
//
|
|
18
|
-
// cities.forEach((city) => {
|
|
19
|
-
// const matchProvince = provinces.filter((province) => province.code === city.provinceCode)[0];
|
|
20
|
-
// if (matchProvince) {
|
|
21
|
-
// matchProvince.children = matchProvince.children || [];
|
|
22
|
-
// matchProvince.children.push({
|
|
23
|
-
// label: city.name,
|
|
24
|
-
// value: city.code,
|
|
25
|
-
// children: city.children
|
|
26
|
-
// });
|
|
27
|
-
// }
|
|
28
|
-
// });
|
|
29
|
-
//
|
|
30
|
-
// const options = provinces.map((province) => ({
|
|
31
|
-
// label: province.name,
|
|
32
|
-
// value: province.code,
|
|
33
|
-
// children: province.children
|
|
34
|
-
// }));
|
|
35
|
-
//
|
|
36
|
-
// export default options;
|
package/dist/routerMap/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const routerMap = {
|
|
2
|
-
order: '/subpackage/orderlist/index',
|
|
3
|
-
orderDetail: '/subpackage/orderdetail/index',
|
|
4
|
-
goodList: '/subpackage/goodlist/index',
|
|
5
|
-
goodDetail: '/subpackage/gooddetail/index',
|
|
6
|
-
result: '/subpackage/result/index',
|
|
7
|
-
rate: '/subpackage/rate/index',
|
|
8
|
-
search: '/subpackage/search/index',
|
|
9
|
-
shopping: '/pages/shopping/index',
|
|
10
|
-
confirm: '/subpackage/orderconfirm/index',
|
|
11
|
-
addressList: '/subpackage/addresslist/index',
|
|
12
|
-
addressEditor: '/subpackage/addresseditor/index',
|
|
13
|
-
setting: '/subpackage/setting/index',
|
|
14
|
-
couponList: '/subpackage/couponlist/index',
|
|
15
|
-
paymentMode: '/subpackage/paymentmode/index'
|
|
16
|
-
};
|