@parallel-line/pro-mobile
Advanced tools
Comparing version 2.1.0-beta.22 to 2.1.0-beta.23
var _excluded = ["fileType", "name", "onSuccess", "example", "required"]; | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
@@ -46,5 +52,4 @@ | ||
onClose = _ref.onClose; | ||
return _jsxs("div", Object.assign({ | ||
className: b('tooltip') | ||
}, { | ||
return _jsxs("div", { | ||
className: b('tooltip'), | ||
children: [_jsx("img", { | ||
@@ -54,11 +59,10 @@ src: src, | ||
}, void 0), _jsx("footer", { | ||
children: _jsx(Button, Object.assign({ | ||
children: _jsx(Button, { | ||
block: true, | ||
color: "primary", | ||
onClick: onClose | ||
}, { | ||
onClick: onClose, | ||
children: "\u77E5\u9053\u4E86" | ||
}), void 0) | ||
}, void 0) | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -173,9 +177,8 @@ | ||
var notAutoFillType = ['50', '70', '90', '110']; | ||
return _jsx(Spin, Object.assign({ | ||
return _jsx(Spin, { | ||
full: true, | ||
spinning: loading | ||
}, { | ||
spinning: loading, | ||
children: loading ? _jsx("div", { | ||
className: b() | ||
}, void 0) : _jsxs(Form, Object.assign({ | ||
}, void 0) : _jsxs(Form, { | ||
className: b(), | ||
@@ -185,7 +188,5 @@ form: form, | ||
onValuesChange: props.onValuesChange, | ||
onFinish: handleFinish | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: b('content') | ||
}, { | ||
onFinish: handleFinish, | ||
children: [_jsxs("div", { | ||
className: b('content'), | ||
children: [tips, certificate.map(function (_ref3) { | ||
@@ -199,8 +200,6 @@ var title = _ref3.title, | ||
return (// formContent | ||
_jsxs("div", Object.assign({ | ||
className: b('title-container') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: b('title') | ||
}, { | ||
_jsxs("div", { | ||
className: b('title-container'), | ||
children: [_jsxs("div", { | ||
className: b('title'), | ||
children: [_jsxs("div", { | ||
@@ -212,10 +211,8 @@ children: [_jsxs("span", { | ||
}, void 0) : null] | ||
}, void 0), desc && _jsx("div", Object.assign({ | ||
className: b('desc') | ||
}, { | ||
}, void 0), desc && _jsx("div", { | ||
className: b('desc'), | ||
children: desc | ||
}), void 0)] | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: b('upload-imgs') | ||
}, { | ||
}, void 0)] | ||
}, void 0), _jsx("div", { | ||
className: b('upload-imgs'), | ||
children: files.map(function (_ref4) { | ||
@@ -261,6 +258,6 @@ var fileType = _ref4.fileType, | ||
}), _jsx("div", { | ||
children: _jsx(Form.Item, Object.assign({}, itemProps, { | ||
children: _jsx(OCRUpload, Object.assign({ | ||
children: _jsx(Form.Item, _objectSpread(_objectSpread({}, itemProps), {}, { | ||
children: _jsx(OCRUpload, _objectSpread(_objectSpread({ | ||
fileType: fileType | ||
}, uploadProps, { | ||
}, uploadProps), {}, { | ||
onSuccess: function onSuccess(data) { | ||
@@ -277,30 +274,27 @@ var _props$onUploadSucces; | ||
}) | ||
}), void 0)] | ||
}), title) | ||
}, void 0)] | ||
}, title) | ||
); | ||
}), children && !notAutoFillType.includes(licenseType) && !hideTips && _jsx("div", Object.assign({ | ||
className: b('tips') | ||
}, { | ||
}), children && !notAutoFillType.includes(licenseType) && !hideTips && _jsx("div", { | ||
className: b('tips'), | ||
children: global.PXX_ENV.isWorker && !children[0] ? '上传照片后系统会自动识别证件内容' : '以下信息为系统自动识别,如不正确请修改' | ||
}), void 0), children, hasUnbound && footer] | ||
}), void 0), isWorker && !disabled ? _jsx(Button, Object.assign({ | ||
}, void 0), children, hasUnbound && footer] | ||
}, void 0), isWorker && !disabled ? _jsx(Button, { | ||
type: "submit", | ||
className: b('work-btn'), | ||
color: "primary", | ||
loading: submitLoading | ||
}, { | ||
loading: submitLoading, | ||
children: "\u63D0\u4EA4" | ||
}), void 0) : _jsx(_Fragment, { | ||
}, void 0) : _jsx(_Fragment, { | ||
children: !disabled && _jsx(Footer, { | ||
children: _jsx(Button, Object.assign({ | ||
children: _jsx(Button, { | ||
loading: submitLoading, | ||
type: "submit", | ||
color: "primary" | ||
}, { | ||
color: "primary", | ||
children: "\u63D0\u4EA4" | ||
}), void 0) | ||
}, void 0) | ||
}, void 0) | ||
}, void 0)] | ||
}), void 0) | ||
}), void 0); | ||
}, void 0) | ||
}, void 0); | ||
} | ||
@@ -310,7 +304,6 @@ | ||
var children = _ref5.children; | ||
return _jsx("div", Object.assign({ | ||
className: b('footer') | ||
}, { | ||
return _jsx("div", { | ||
className: b('footer'), | ||
children: children | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -322,5 +315,4 @@ | ||
var children = _ref6.children; | ||
return _jsxs("div", Object.assign({ | ||
className: b('error-tips') | ||
}, { | ||
return _jsxs("div", { | ||
className: b('error-tips'), | ||
children: [_jsx("span", { | ||
@@ -333,3 +325,3 @@ children: "\u8BA4\u8BC1\u5931\u8D25\u539F\u56E0\uFF1A" | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -354,19 +346,16 @@ | ||
if (showTypeList.includes(fileType)) { | ||
return _jsxs("div", Object.assign({ | ||
className: b('title-container') | ||
}, { | ||
children: [title && _jsx("div", Object.assign({ | ||
className: b('title') | ||
}, { | ||
return _jsxs("div", { | ||
className: b('title-container'), | ||
children: [title && _jsx("div", { | ||
className: b('title'), | ||
children: title | ||
}), void 0), _children] | ||
}), void 0); | ||
}, void 0), _children] | ||
}, void 0); | ||
} | ||
return _jsx(Form.Item, Object.assign({ | ||
return _jsx(Form.Item, { | ||
noStyle: true, | ||
shouldUpdate: function shouldUpdate(prevValues, currentValues) { | ||
return prevValues[fileType] !== currentValues[fileType]; | ||
} | ||
}, { | ||
}, | ||
children: function children(_ref9) { | ||
@@ -377,11 +366,9 @@ var getFieldValue = _ref9.getFieldValue; | ||
if (v === null || v === void 0 ? void 0 : v.success) { | ||
return _jsxs("div", Object.assign({ | ||
className: b('title-container') | ||
}, { | ||
children: [title && _jsx("div", Object.assign({ | ||
className: b('title') | ||
}, { | ||
return _jsxs("div", { | ||
className: b('title-container'), | ||
children: [title && _jsx("div", { | ||
className: b('title'), | ||
children: title | ||
}), void 0), _children] | ||
}), void 0); | ||
}, void 0), _children] | ||
}, void 0); | ||
} | ||
@@ -391,3 +378,3 @@ | ||
} | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -394,0 +381,0 @@ |
@@ -103,7 +103,6 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
if (hasAuditRemark) { | ||
return _jsx("div", Object.assign({ | ||
className: b('remark') | ||
}, { | ||
return _jsx("div", { | ||
className: b('remark'), | ||
children: "\u8BA4\u8BC1\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20" | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -122,7 +121,6 @@ | ||
if (content) { | ||
return _jsx("div", Object.assign({ | ||
className: b('auth-status') | ||
}, { | ||
return _jsx("div", { | ||
className: b('auth-status'), | ||
children: content | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -133,5 +131,4 @@ | ||
return _jsxs("span", Object.assign({ | ||
className: b('wrap') | ||
}, { | ||
return _jsxs("span", { | ||
className: b('wrap'), | ||
children: [_jsx(Upload, { | ||
@@ -143,3 +140,3 @@ className: b(), | ||
}, void 0), rendeRemark()] | ||
}), void 0); | ||
}, void 0); | ||
}); |
@@ -60,3 +60,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
return _jsxs(_Fragment, { | ||
children: [_jsxs(Form, Object.assign({ | ||
children: [_jsxs(Form, { | ||
form: form, | ||
@@ -67,5 +67,4 @@ onFinish: function onFinish(values) { | ||
})); | ||
} | ||
}, { | ||
children: [type == 2 && _jsx(Form.Item, Object.assign({ | ||
}, | ||
children: [type == 2 && _jsx(Form.Item, { | ||
name: 'feedbackName', | ||
@@ -76,4 +75,3 @@ label: '投诉对象', | ||
message: '请输入描述内容' | ||
}] | ||
}, { | ||
}], | ||
children: _jsx(Input, { | ||
@@ -84,3 +82,3 @@ placeholder: '请输入', | ||
}, void 0) | ||
}), void 0), _jsx(Form.Item, Object.assign({ | ||
}, void 0), _jsx(Form.Item, { | ||
name: 'submitContent', | ||
@@ -91,4 +89,3 @@ label: '描述内容', | ||
message: '请输入描述内容' | ||
}] | ||
}, { | ||
}], | ||
children: _jsx(TextArea, { | ||
@@ -105,5 +102,5 @@ className: bemConsultation('textArea'), | ||
}, void 0) | ||
}), void 0)] | ||
}), void 0), _jsx(Popup.Footer, { | ||
children: _jsx(Button, Object.assign({ | ||
}, void 0)] | ||
}, void 0), _jsx(Popup.Footer, { | ||
children: _jsx(Button, { | ||
loading: loading, | ||
@@ -113,6 +110,5 @@ color: 'primary', | ||
return form.submit(); | ||
} | ||
}, { | ||
}, | ||
children: "\u786E\u5B9A" | ||
}), void 0) | ||
}, void 0) | ||
}, void 0)] | ||
@@ -119,0 +115,0 @@ }, void 0); |
@@ -11,7 +11,6 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; | ||
text = _ref$text === void 0 ? '' : _ref$text; | ||
return _jsx("div", Object.assign({ | ||
className: bemConsultation('detailText') | ||
}, { | ||
return _jsx("div", { | ||
className: bemConsultation('detailText'), | ||
children: text | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -28,19 +27,15 @@ | ||
if (type == 1) { | ||
return _jsxs(Card, Object.assign({ | ||
className: bemConsultation('consultationItem') | ||
}, { | ||
return _jsxs(Card, { | ||
className: bemConsultation('consultationItem'), | ||
children: [_jsx(State, { | ||
color: info.feedbackState == 0 ? 'warning' : 'success', | ||
text: info.feedbackState == 0 ? '待处理' : '已处理' | ||
}, void 0), _jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0), _jsxs("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: [_jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u54A8\u8BE2\u5185\u5BB9" | ||
}), void 0), _jsx("div", Object.assign({ | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
@@ -61,37 +56,29 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: info.submitContent | ||
}), void 0)] | ||
}), void 0), _jsx(MoreArrowOutlined, {}, void 0)] | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: _jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0), _jsx(MoreArrowOutlined, {}, void 0)] | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: _jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u63D0\u4EA4\u65F6\u95F4" | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentValue') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
children: toTime(createTime, { | ||
format: 'YYYY/MM/DD HH:mm' | ||
}) | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0), info.feedbackState == 1 && _jsxs(_Fragment, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0), info.feedbackState == 1 && _jsxs(_Fragment, { | ||
children: [_jsxs("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: [_jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u53CD\u9988\u5185\u5BB9" | ||
}), void 0), _jsx("div", Object.assign({ | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
@@ -112,63 +99,50 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: info.feedbackContent | ||
}), void 0)] | ||
}), void 0), _jsx(MoreArrowOutlined, {}, void 0)] | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: _jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0), _jsx(MoreArrowOutlined, {}, void 0)] | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: _jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u53CD\u9988\u65F6\u95F4" | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentValue') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
children: toTime(feedBackTime, { | ||
format: 'YYYY/MM/DD HH:mm' | ||
}) | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0)] | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
} | ||
return _jsxs(Card, Object.assign({ | ||
className: bemConsultation('consultationItem') | ||
}, { | ||
return _jsxs(Card, { | ||
className: bemConsultation('consultationItem'), | ||
children: [_jsx(State, { | ||
color: info.feedbackState == 0 ? 'warning' : 'success', | ||
text: info.feedbackState == 0 ? '待处理' : '已处理' | ||
}, void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: _jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: _jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u6295\u8BC9\u5BF9\u8C61" | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentValue') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
children: info.feedbackName | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0), _jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0), _jsxs("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: [_jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u6295\u8BC9\u5185\u5BB9" | ||
}), void 0), _jsx("div", Object.assign({ | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
@@ -189,37 +163,29 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: info.submitContent | ||
}), void 0)] | ||
}), void 0), _jsx(MoreArrowOutlined, {}, void 0)] | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: _jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0), _jsx(MoreArrowOutlined, {}, void 0)] | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: _jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u63D0\u4EA4\u65F6\u95F4" | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentValue') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
children: toTime(createTime, { | ||
format: 'YYYY/MM/DD HH:mm' | ||
}) | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0), info.feedbackState == 1 && _jsxs(_Fragment, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0), info.feedbackState == 1 && _jsxs(_Fragment, { | ||
children: [_jsxs("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: [_jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u53CD\u9988\u5185\u5BB9" | ||
}), void 0), _jsx("div", Object.assign({ | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
@@ -240,30 +206,25 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: info.feedbackContent | ||
}), void 0)] | ||
}), void 0), _jsx(MoreArrowOutlined, {}, void 0)] | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItem') | ||
}, { | ||
children: _jsxs("div", Object.assign({ | ||
className: bemConsultation('moduleItemContent') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0), _jsx(MoreArrowOutlined, {}, void 0)] | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItem'), | ||
children: _jsxs("div", { | ||
className: bemConsultation('moduleItemContent'), | ||
children: [_jsx("div", { | ||
className: bemConsultation('moduleItemContentKey'), | ||
children: "\u53CD\u9988\u65F6\u95F4" | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemConsultation('moduleItemContentValue') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemConsultation('moduleItemContentValue'), | ||
children: toTime(feedBackTime, { | ||
format: 'YYYY/MM/DD HH:mm' | ||
}) | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0)] | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
export default ConsultationItem; |
@@ -35,5 +35,4 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
var text = props.text; | ||
return _jsx("div", Object.assign({ | ||
className: bemConsultation('Empty') | ||
}, { | ||
return _jsx("div", { | ||
className: bemConsultation('Empty'), | ||
children: _jsx("div", { | ||
@@ -44,3 +43,3 @@ children: _jsx("div", { | ||
}, void 0) | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -145,6 +144,5 @@ | ||
return _jsxs("div", Object.assign({ | ||
className: bemConsultation() | ||
}, { | ||
children: [_jsxs(Tabs, Object.assign({ | ||
return _jsxs("div", { | ||
className: bemConsultation(), | ||
children: [_jsxs(Tabs, { | ||
defaultActiveKey: '1', | ||
@@ -163,4 +161,3 @@ onChange: function onChange(type) { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: [_jsx(Tabs.Tab, { | ||
@@ -173,3 +170,3 @@ title: "\u95EE\u9898\u54A8\u8BE2", | ||
}, void 0)] | ||
}), void 0), _jsx(ListView, Object.assign({ | ||
}, void 0), _jsx(ListView, { | ||
className: bemConsultation('list'), | ||
@@ -181,4 +178,3 @@ uniqueKey: 'DRIVER_CONSULTATION', | ||
empty: _jsx(Empty, {}, void 0) | ||
} | ||
}, { | ||
}, | ||
children: function children() { | ||
@@ -193,8 +189,6 @@ var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
} | ||
}), void 0), _jsxs("div", Object.assign({ | ||
className: bemConsultation('footer') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemConsultation('info') | ||
}, { | ||
}, void 0), _jsxs("div", { | ||
className: bemConsultation('footer'), | ||
children: [_jsxs("div", { | ||
className: bemConsultation('info'), | ||
children: [_jsx("div", { | ||
@@ -205,3 +199,3 @@ children: "\u5982\u6709\u5176\u4ED6\u95EE\u9898\u53EF\u8054\u7CFB\u5BA2\u670D\u7535\u8BDD" | ||
}, void 0)] | ||
}), void 0), _jsxs(Button, Object.assign({ | ||
}, void 0), _jsxs(Button, { | ||
size: 'small', | ||
@@ -211,4 +205,3 @@ className: bemConsultation('button'), | ||
return setVisible(true); | ||
} | ||
}, { | ||
}, | ||
children: [_jsx(VerifyLoginOutlined, { | ||
@@ -219,4 +212,4 @@ style: { | ||
}, void 0), listType == 1 ? '我要咨询' : '我要投诉'] | ||
}), void 0)] | ||
}), void 0), visible && _jsx(Popup, { | ||
}, void 0)] | ||
}, void 0), visible && _jsx(Popup, { | ||
title: listType == 1 ? '咨询内容' : '投诉内容', | ||
@@ -236,3 +229,3 @@ visible: visible, | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
}; |
@@ -5,2 +5,2 @@ export interface HelperDetailProps { | ||
} | ||
export declare const HelperDetail: ({ id, onClick }: HelperDetailProps) => JSX.Element; | ||
export declare const HelperDetail: ({ id, onClick, }: HelperDetailProps) => JSX.Element; |
@@ -21,9 +21,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
import { createBEM_M } from '@parallel-line/utils'; | ||
import global from '@parallel-line/global'; | ||
import { useDataSource } from './use-data-source'; | ||
import get from 'lodash/get'; | ||
var bemHelperDetail = createBEM_M('helperDetail'); | ||
export var HelperDetail = function HelperDetail(_ref) { | ||
var _data$keys$, _data$keys$$pages, _info$steps, _steps$currentIndex; | ||
var _steps$currentIndex; | ||
var _ref$id = _ref.id, | ||
id = _ref$id === void 0 ? '' : _ref$id, | ||
id = _ref$id === void 0 ? 'qianbao__yinhangka' : _ref$id, | ||
_onClick = _ref.onClick; | ||
@@ -43,4 +45,4 @@ | ||
var data = requestResult.data; | ||
var info = data === null || data === void 0 ? void 0 : (_data$keys$ = data[keys[0]]) === null || _data$keys$ === void 0 ? void 0 : (_data$keys$$pages = _data$keys$.pages) === null || _data$keys$$pages === void 0 ? void 0 : _data$keys$$pages[keys[1]]; | ||
var steps = (_info$steps = info.steps) !== null && _info$steps !== void 0 ? _info$steps : []; | ||
var info = get(data, "".concat(keys[0], ".pages.").concat(keys[1]), {}); | ||
var steps = get(info, 'steps', []); | ||
var voiceRef = useRef(null); | ||
@@ -63,25 +65,20 @@ | ||
}, [currentIndex]); | ||
return _jsxs("div", Object.assign({ | ||
className: bemHelperDetail() | ||
}, { | ||
children: [_jsx("audio", Object.assign({ | ||
return _jsxs("div", { | ||
className: bemHelperDetail(), | ||
children: [_jsx("audio", { | ||
ref: voiceRef, | ||
autoPlay: false | ||
}, { | ||
autoPlay: false, | ||
children: _jsx("source", { | ||
src: "https://prod-1302801272.cos.ap-guangzhou.myqcloud.com/assets/helper/".concat(keys[0], "/").concat(keys[1], "/").concat(currentIndex + 1, ".mp3") | ||
src: "".concat(global.assetsUrl, "/helper/").concat(platform, "/").concat(keys[0], "/").concat(keys[1], "/").concat(currentIndex + 1, ".mp3") | ||
}, void 0) | ||
}), void 0), _jsxs("div", Object.assign({ | ||
className: bemHelperDetail('content') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemHelperDetail('control') | ||
}, { | ||
}, void 0), _jsxs("div", { | ||
className: bemHelperDetail('content'), | ||
children: [_jsxs("div", { | ||
className: bemHelperDetail('control'), | ||
children: [_jsx("div", { | ||
children: currentIndex != 0 && steps.length > 0 && _jsx("div", Object.assign({ | ||
children: currentIndex != 0 && steps.length > 0 && _jsx("div", { | ||
className: bemHelperDetail('controlImg'), | ||
onClick: function onClick() { | ||
setCurrentIndex(currentIndex - 1); | ||
} | ||
}, { | ||
}, | ||
children: _jsx(LeftArrowOutlined, { | ||
@@ -93,14 +90,13 @@ style: { | ||
}, void 0) | ||
}), void 0) | ||
}, void 0) | ||
}, void 0), _jsx("img", { | ||
className: bemHelperDetail('bgImg'), | ||
src: "https://prod-1302801272.cos.ap-guangzhou.myqcloud.com/assets/helper/".concat(keys[0], "/").concat(keys[1], "/").concat(currentIndex + 1, ".png"), | ||
src: "".concat(global.assetsUrl, "/helper/").concat(platform, "/").concat(keys[0], "/").concat(keys[1], "/").concat(currentIndex + 1, ".png"), | ||
alt: "" | ||
}, void 0), _jsx("div", { | ||
children: currentIndex != steps.length - 1 && steps.length > 0 && _jsx("div", Object.assign({ | ||
children: currentIndex != steps.length - 1 && steps.length > 0 && _jsx("div", { | ||
className: bemHelperDetail('controlImg'), | ||
onClick: function onClick() { | ||
setCurrentIndex(currentIndex + 1); | ||
} | ||
}, { | ||
}, | ||
children: _jsx(NextStepOutlined, { | ||
@@ -112,7 +108,6 @@ style: { | ||
}, void 0) | ||
}), void 0) | ||
}, void 0) | ||
}, void 0)] | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemHelperDetail('radius') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemHelperDetail('radius'), | ||
children: steps.map(function (item, index) { | ||
@@ -126,15 +121,12 @@ return _jsx("div", { | ||
}) | ||
}), void 0), _jsxs("div", Object.assign({ | ||
className: bemHelperDetail('stepCount') | ||
}, { | ||
}, void 0), _jsxs("div", { | ||
className: bemHelperDetail('stepCount'), | ||
children: ["\u7B2C", currentIndex + 1, "\u6B65"] | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemHelperDetail('description') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemHelperDetail('description'), | ||
children: steps === null || steps === void 0 ? void 0 : (_steps$currentIndex = steps[currentIndex]) === null || _steps$currentIndex === void 0 ? void 0 : _steps$currentIndex.description | ||
}), void 0)] | ||
}), void 0), _jsxs("div", Object.assign({ | ||
className: bemHelperDetail('btnWrap') | ||
}, { | ||
children: [_jsx(Button, Object.assign({ | ||
}, void 0)] | ||
}, void 0), _jsxs("div", { | ||
className: bemHelperDetail('btnWrap'), | ||
children: [_jsx(Button, { | ||
size: 'small', | ||
@@ -150,6 +142,5 @@ icon: _jsx(VolumeOutlined, {}, void 0), | ||
return play(); | ||
} | ||
}, { | ||
}, | ||
children: "\u8BB2\u89E3" | ||
}), void 0), _jsx(Button, Object.assign({ | ||
}, void 0), _jsx(Button, { | ||
color: currentIndex === steps.length - 1 ? 'success' : 'primary', | ||
@@ -166,8 +157,7 @@ size: 'small', | ||
} | ||
} | ||
}, { | ||
}, | ||
children: currentIndex === steps.length - 1 ? '我学会了' : '下一步' | ||
}), void 0)] | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0)] | ||
}, void 0); | ||
}; |
@@ -1,4 +0,1 @@ | ||
export interface HelperProps { | ||
onClick: any; | ||
} | ||
export declare const Helper: ({ onClick }: HelperProps) => JSX.Element; | ||
export declare const Helper: () => JSX.Element; |
@@ -29,9 +29,8 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
import global from '@parallel-line/global'; | ||
import { navigateTo } from '@tarojs/taro'; | ||
import { useDataSource } from './use-data-source'; | ||
var bemHelper = createBEM_M('helper'); | ||
export var Helper = function Helper(_ref) { | ||
export var Helper = function Helper() { | ||
var _pages$filter; | ||
var _onClick = _ref.onClick; | ||
var _useDataSource = useDataSource(), | ||
@@ -64,5 +63,4 @@ requestResult = _useDataSource.requestResult, | ||
return _jsxs("div", Object.assign({ | ||
className: bemHelper() | ||
}, { | ||
return _jsxs("div", { | ||
className: bemHelper(), | ||
children: [_jsx("img", { | ||
@@ -72,10 +70,8 @@ className: bemHelper('bgImg'), | ||
alt: "" | ||
}, void 0), _jsxs("div", Object.assign({ | ||
}, void 0), _jsxs("div", { | ||
style: { | ||
zIndex: 1 | ||
} | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemHelper('title') | ||
}, { | ||
}, | ||
children: [_jsxs("div", { | ||
className: bemHelper('title'), | ||
children: [_jsx("div", { | ||
@@ -86,27 +82,23 @@ children: "\u6307\u5F15\u5E38\u770B\u770B" | ||
}, void 0)] | ||
}), void 0), _jsxs(Space, Object.assign({ | ||
className: bemHelper('tagWrap') | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
}, void 0), _jsxs(Space, { | ||
className: bemHelper('tagWrap'), | ||
children: [_jsx("div", { | ||
className: classnames(bemHelper('tag'), _defineProperty({}, bemHelper('currentTagType'), currentTagType == '')), | ||
onClick: function onClick() { | ||
return setCurrentTag(''); | ||
} | ||
}, { | ||
}, | ||
children: "\u5168\u90E8" | ||
}), void 0), _map(data, function (value, key) { | ||
return _jsx("div", Object.assign({ | ||
}, void 0), _map(data, function (value, key) { | ||
return _jsx("div", { | ||
className: classnames(bemHelper('tag'), _defineProperty({}, bemHelper('currentTagType'), currentTagType == key)), | ||
onClick: function onClick() { | ||
return setCurrentTag(key); | ||
} | ||
}, { | ||
}, | ||
children: value.name | ||
}), key); | ||
}, key); | ||
})] | ||
}), void 0)] | ||
}), void 0), _jsx(Space, Object.assign({ | ||
}, void 0)] | ||
}, void 0), _jsx(Space, { | ||
direction: 'vertical', | ||
className: bemHelper('cardWrap') | ||
}, { | ||
className: bemHelper('cardWrap'), | ||
children: pages === null || pages === void 0 ? void 0 : (_pages$filter = pages.filter(function (item) { | ||
@@ -117,29 +109,27 @@ return currentTagType == '' || item.key == currentTagType; | ||
style = _page.style; | ||
return _jsxs(Card, Object.assign({ | ||
return _jsxs(Card, { | ||
className: bemHelper('card'), | ||
onClick: function onClick() { | ||
_onClick === null || _onClick === void 0 ? void 0 : _onClick("".concat(_page.key, "__").concat(_page._key)); | ||
} | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemHelper('cardContent') | ||
}, { | ||
children: [_jsx("span", Object.assign({ | ||
navigateTo({ | ||
url: "/pages/helper/detail/index?id=".concat(_page.key, "__").concat(_page._key) | ||
}); | ||
}, | ||
children: [_jsxs("div", { | ||
className: bemHelper('cardContent'), | ||
children: [_jsx("span", { | ||
className: bemHelper('cardTag'), | ||
style: style | ||
}, { | ||
style: style, | ||
children: name | ||
}), void 0), _jsx("div", Object.assign({ | ||
className: bemHelper('cardSubject') | ||
}, { | ||
}, void 0), _jsx("div", { | ||
className: bemHelper('cardSubject'), | ||
children: _page.title | ||
}), void 0)] | ||
}), void 0), _jsx("img", { | ||
}, void 0)] | ||
}, void 0), _jsx("img", { | ||
alt: '', | ||
src: "".concat(global.assetsUrl, "/helper/").concat(platform, "/").concat(_page.key, "/").concat(_page._key, "/0.png") | ||
}, void 0)] | ||
}), _page.key + _page._key); | ||
}, _page.key + _page._key); | ||
}) | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
}; |
@@ -1,5 +0,5 @@ | ||
declare const _default: (({ onClick }: import("./helper").HelperProps) => JSX.Element) & { | ||
HelperDetail: ({ id, onClick }: import("./helper-detail").HelperDetailProps) => JSX.Element; | ||
declare const _default: (() => JSX.Element) & { | ||
HelperDetail: ({ id, onClick, }: import("./helper-detail").HelperDetailProps) => JSX.Element; | ||
}; | ||
export default _default; | ||
import './style/index.less'; |
@@ -39,17 +39,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
if (!global.loginAgreementOptions) return null; | ||
return _jsxs("div", Object.assign({ | ||
className: bem() | ||
}, { | ||
return _jsxs("div", { | ||
className: bem(), | ||
children: [_jsx("span", { | ||
children: "\u767B\u5F55\u89C6\u4E3A\u5DF2\u9605\u8BFB\u5E76\u540C\u610F" | ||
}, void 0), (_global$loginAgreemen = global.loginAgreementOptions) === null || _global$loginAgreemen === void 0 ? void 0 : _global$loginAgreemen.map(function (item) { | ||
return _jsxs("span", Object.assign({ | ||
className: bem('link') | ||
}, { | ||
return _jsxs("span", { | ||
className: bem('link'), | ||
children: ["\u300A", item.title, "\u300B"] | ||
}), item.key); | ||
}, item.key); | ||
})] | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
export default Agreement; |
@@ -41,23 +41,18 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
return withNativeProps(props, _jsxs(Whiteboard, Object.assign({ | ||
className: bemLogin() | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemLogin('container') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemLogin('tip') | ||
}, { | ||
return withNativeProps(props, _jsxs(Whiteboard, { | ||
className: bemLogin(), | ||
children: [_jsxs("div", { | ||
className: bemLogin('container'), | ||
children: [_jsxs("div", { | ||
className: bemLogin('tip'), | ||
children: [_jsx("div", { | ||
children: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801" | ||
}, void 0), _jsxs("div", Object.assign({ | ||
className: bemLogin('phoneNumber') | ||
}, { | ||
}, void 0), _jsxs("div", { | ||
className: bemLogin('phoneNumber'), | ||
children: ["\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\u81F3\u624B\u673A\uFF1A", params === null || params === void 0 ? void 0 : params.phoneNumber] | ||
}), void 0)] | ||
}), void 0), _jsx(Form, Object.assign({ | ||
}, void 0)] | ||
}, void 0), _jsx(Form, { | ||
form: form, | ||
onFinish: handleFinish | ||
}, { | ||
children: _jsx(Form.Item, Object.assign({ | ||
onFinish: handleFinish, | ||
children: _jsx(Form.Item, { | ||
name: "code", | ||
@@ -67,4 +62,3 @@ rules: [{ | ||
message: '请输入验证码' | ||
}, global.regular.phoneNumber.rule] | ||
}, { | ||
}, global.regular.phoneNumber.rule], | ||
children: _jsx(Input //@ts-ignore | ||
@@ -77,5 +71,5 @@ , { | ||
}, void 0) | ||
}), void 0) | ||
}), void 0)] | ||
}), void 0), _jsx(Button, Object.assign({ | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0), _jsx(Button, { | ||
block: true, | ||
@@ -85,29 +79,24 @@ size: "large", | ||
loading: loading, | ||
onClick: form.submit | ||
}, { | ||
onClick: form.submit, | ||
children: "\u767B\u5F55 / \u6CE8\u518C" | ||
}), void 0), _jsx(Agreement, {}, void 0), _jsxs("div", Object.assign({ | ||
className: bemLogin('round-btn-wrapper') | ||
}, { | ||
children: [_jsxs(Space, Object.assign({ | ||
}, void 0), _jsx(Agreement, {}, void 0), _jsxs("div", { | ||
className: bemLogin('round-btn-wrapper'), | ||
children: [_jsxs(Space, { | ||
style: { | ||
'--gap': '40px', | ||
display: 'inline-flex' | ||
} | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
}, | ||
children: [_jsxs("div", { | ||
onClick: onWeChatLogin, | ||
className: bemLogin('round-btn') | ||
}, { | ||
children: [_jsx("button", Object.assign({ | ||
className: bemLogin('round-btn'), | ||
children: [_jsx("button", { | ||
className: bemLogin('btn'), | ||
style: { | ||
backgroundColor: '#00b86b' | ||
} | ||
}, { | ||
}, | ||
children: _jsx(WechatOutlined, {}, void 0) | ||
}), void 0), _jsx("div", { | ||
}, void 0), _jsx("div", { | ||
children: "\u5FAE\u4FE1\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0), _jsxs("div", Object.assign({ | ||
}, void 0), _jsxs("div", { | ||
className: bemLogin('round-btn'), | ||
@@ -118,22 +107,20 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
children: [_jsx("button", Object.assign({ | ||
}, | ||
children: [_jsx("button", { | ||
className: bemLogin('btn'), | ||
style: { | ||
backgroundColor: '#1552eb' | ||
} | ||
}, { | ||
}, | ||
children: _jsx(PasswordOutlined, {}, void 0) | ||
}), void 0), _jsx("div", { | ||
}, void 0), _jsx("div", { | ||
children: "\u5BC6\u7801\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0), _jsx("div", { | ||
}, void 0)] | ||
}, void 0), _jsx("div", { | ||
className: "pxx-safe-area-bottom" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0)); | ||
}, void 0)] | ||
}, void 0)); | ||
}; | ||
export { Code }; |
@@ -15,11 +15,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
return _jsxs(Whiteboard, Object.assign({ | ||
className: bemLogin() | ||
}, { | ||
children: [_jsx("div", Object.assign({ | ||
className: bemLogin('container') | ||
}, { | ||
children: _jsx("div", Object.assign({ | ||
className: bemLogin('logo-wrapper') | ||
}, { | ||
return _jsxs(Whiteboard, { | ||
className: bemLogin(), | ||
children: [_jsx("div", { | ||
className: bemLogin('container'), | ||
children: _jsx("div", { | ||
className: bemLogin('logo-wrapper'), | ||
children: _jsx("img", { | ||
@@ -30,7 +27,6 @@ alt: "", | ||
}, void 0) | ||
}), void 0) | ||
}), void 0), _jsxs(Space, Object.assign({ | ||
direction: "vertical" | ||
}, { | ||
children: [props.onSwitchEnv && _jsx(Button, Object.assign({ | ||
}, void 0) | ||
}, void 0), _jsxs(Space, { | ||
direction: "vertical", | ||
children: [props.onSwitchEnv && _jsx(Button, { | ||
block: true, | ||
@@ -40,6 +36,5 @@ size: "large", | ||
onClick: props.onSwitchEnv, | ||
className: bemLogin('switch-btn') | ||
}, { | ||
className: bemLogin('switch-btn'), | ||
children: "\u73AF\u5883\u5207\u6362" | ||
}), void 0), _jsx(Button, Object.assign({ | ||
}, void 0), _jsx(Button, { | ||
block: true, | ||
@@ -51,16 +46,13 @@ size: "large", | ||
openType: "getPhoneNumber", | ||
onGetPhoneNumber: onWeChatLogin | ||
}, { | ||
onGetPhoneNumber: onWeChatLogin, | ||
children: "\u5FAE\u4FE1\u5E10\u53F7\u4E00\u952E\u767B\u5F55" | ||
}), void 0)] | ||
}), void 0), _jsx(Agreement, {}, void 0), _jsxs("div", Object.assign({ | ||
className: bemLogin('round-btn-wrapper') | ||
}, { | ||
children: [_jsxs(Space, Object.assign({ | ||
}, void 0)] | ||
}, void 0), _jsx(Agreement, {}, void 0), _jsxs("div", { | ||
className: bemLogin('round-btn-wrapper'), | ||
children: [_jsxs(Space, { | ||
style: { | ||
'--gap': '40px', | ||
display: 'inline-flex' | ||
} | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
}, | ||
children: [_jsxs("div", { | ||
className: bemLogin('round-btn'), | ||
@@ -71,15 +63,13 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
children: [_jsx("button", Object.assign({ | ||
}, | ||
children: [_jsx("button", { | ||
className: bemLogin('btn'), | ||
style: { | ||
backgroundColor: '#1552eb' | ||
} | ||
}, { | ||
}, | ||
children: _jsx(PasswordOutlined, {}, void 0) | ||
}), void 0), _jsx("div", { | ||
}, void 0), _jsx("div", { | ||
children: "\u5BC6\u7801\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0), _jsxs("div", Object.assign({ | ||
}, void 0), _jsxs("div", { | ||
className: bemLogin('round-btn'), | ||
@@ -90,22 +80,20 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
children: [_jsx("button", Object.assign({ | ||
}, | ||
children: [_jsx("button", { | ||
className: bemLogin('btn'), | ||
style: { | ||
backgroundColor: '#18a6fd' | ||
} | ||
}, { | ||
}, | ||
children: _jsx(PhoneOutlined, {}, void 0) | ||
}), void 0), _jsx("div", { | ||
}, void 0), _jsx("div", { | ||
children: "\u9A8C\u8BC1\u7801\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0), _jsx("div", { | ||
}, void 0)] | ||
}, void 0), _jsx("div", { | ||
className: "pxx-safe-area-bottom" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
export { Login }; |
@@ -32,11 +32,8 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
return _jsxs(Whiteboard, Object.assign({ | ||
className: bemLogin() | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemLogin('container') | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: bemLogin('tip') | ||
}, { | ||
return _jsxs(Whiteboard, { | ||
className: bemLogin(), | ||
children: [_jsxs("div", { | ||
className: bemLogin('container'), | ||
children: [_jsxs("div", { | ||
className: bemLogin('tip'), | ||
children: [_jsx("div", { | ||
@@ -47,3 +44,3 @@ children: "Hi~" | ||
}, void 0)] | ||
}), void 0), _jsx(Form, Object.assign({ | ||
}, void 0), _jsx(Form, { | ||
form: form, | ||
@@ -55,5 +52,4 @@ onFinish: function onFinish(_ref) { | ||
}); | ||
} | ||
}, { | ||
children: _jsx(Form.Item, Object.assign({ | ||
}, | ||
children: _jsx(Form.Item, { | ||
name: "phone", | ||
@@ -63,4 +59,3 @@ rules: [{ | ||
message: '请输入手机号' | ||
}, phoneNumber.rule] | ||
}, { | ||
}, phoneNumber.rule], | ||
children: _jsx(Input //@ts-ignore | ||
@@ -73,35 +68,30 @@ , { | ||
}, void 0) | ||
}), void 0) | ||
}), void 0)] | ||
}), void 0), _jsx(Button, Object.assign({ | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0), _jsx(Button, { | ||
block: true, | ||
size: "large", | ||
color: "primary", | ||
onClick: form.submit | ||
}, { | ||
onClick: form.submit, | ||
children: "\u4E0B\u4E00\u6B65" | ||
}), void 0), _jsx(Agreement, {}, void 0), _jsxs("div", Object.assign({ | ||
className: bemLogin('round-btn-wrapper') | ||
}, { | ||
children: [_jsxs(Space, Object.assign({ | ||
}, void 0), _jsx(Agreement, {}, void 0), _jsxs("div", { | ||
className: bemLogin('round-btn-wrapper'), | ||
children: [_jsxs(Space, { | ||
style: { | ||
'--gap': '40px', | ||
display: 'inline-flex' | ||
} | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
}, | ||
children: [_jsxs("div", { | ||
onClick: onWeChatLogin, | ||
className: bemLogin('round-btn') | ||
}, { | ||
children: [_jsx("button", Object.assign({ | ||
className: bemLogin('round-btn'), | ||
children: [_jsx("button", { | ||
className: bemLogin('btn'), | ||
style: { | ||
backgroundColor: '#00b86b' | ||
} | ||
}, { | ||
}, | ||
children: _jsx(WechatOutlined, {}, void 0) | ||
}), void 0), _jsx("div", { | ||
}, void 0), _jsx("div", { | ||
children: "\u5FAE\u4FE1\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0), _jsxs("div", Object.assign({ | ||
}, void 0), _jsxs("div", { | ||
className: bemLogin('round-btn'), | ||
@@ -112,22 +102,20 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
children: [_jsx("button", Object.assign({ | ||
}, | ||
children: [_jsx("button", { | ||
className: bemLogin('btn'), | ||
style: { | ||
backgroundColor: '#1552eb' | ||
} | ||
}, { | ||
}, | ||
children: _jsx(PasswordOutlined, {}, void 0) | ||
}), void 0), _jsx("div", { | ||
}, void 0), _jsx("div", { | ||
children: "\u5BC6\u7801\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0), _jsx("div", { | ||
}, void 0)] | ||
}, void 0), _jsx("div", { | ||
className: "pxx-safe-area-bottom" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
export { Phone }; |
@@ -24,10 +24,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
return _jsxs("div", Object.assign({ | ||
className: b() | ||
}, { | ||
children: [_jsx("span", Object.assign({ | ||
className: b('title') | ||
}, { | ||
return _jsxs("div", { | ||
className: b(), | ||
children: [_jsx("span", { | ||
className: b('title'), | ||
children: "\u8BF7\u9009\u62E9\u8BC1\u4EF6\u6709\u6548\u671F\u7C7B\u578B" | ||
}), void 0), _jsx(Button, Object.assign({ | ||
}, void 0), _jsx(Button, { | ||
className: b('button'), | ||
@@ -37,6 +35,5 @@ color: "gray", | ||
return selectDate(); | ||
} | ||
}, { | ||
}, | ||
children: "\u6709\u660E\u786E\u6709\u6548\u671F" | ||
}), void 0), _jsx(Button, Object.assign({ | ||
}, void 0), _jsx(Button, { | ||
className: b('button'), | ||
@@ -46,9 +43,8 @@ color: "gray", | ||
return selectDate(true); | ||
} | ||
}, { | ||
}, | ||
children: "\u65E0\u660E\u786E\u6709\u6548\u65E5\u671F\uFF0C\u957F\u671F\u6709\u6548" | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
export default DateTypeSelect; |
@@ -0,1 +1,7 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
@@ -10,5 +16,4 @@ import { Input } from '@parallel-line/mobile'; | ||
var Authcode = function Authcode(props) { | ||
return _jsxs("div", Object.assign({ | ||
className: b() | ||
}, { | ||
return _jsxs("div", { | ||
className: b(), | ||
children: [_jsx(Input, { | ||
@@ -19,6 +24,6 @@ onChange: props === null || props === void 0 ? void 0 : props.onChange, | ||
disabled: props === null || props === void 0 ? void 0 : props.disabled | ||
}, void 0), _jsx(QueryCode, Object.assign({}, props), void 0)] | ||
}), void 0); | ||
}, void 0), _jsx(QueryCode, _objectSpread({}, props), void 0)] | ||
}, void 0); | ||
}; | ||
export default Authcode; |
@@ -78,5 +78,4 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
var Check = function Check(childProps) { | ||
return _jsxs("div", Object.assign({ | ||
className: b('binding-bank') | ||
}, { | ||
return _jsxs("div", { | ||
className: b('binding-bank'), | ||
children: [_jsx(Checkbox, { | ||
@@ -96,3 +95,3 @@ disabled: disabled, | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -128,6 +127,5 @@ | ||
return _jsx("div", Object.assign({ | ||
className: b() | ||
}, { | ||
children: _jsxs(Form, Object.assign({ | ||
return _jsx("div", { | ||
className: b(), | ||
children: _jsxs(Form, { | ||
form: form, | ||
@@ -139,11 +137,8 @@ onFinish: onFinish, | ||
bindingBank: 1 | ||
} | ||
}, { | ||
children: [_jsxs("div", Object.assign({ | ||
className: b('form__content') | ||
}, { | ||
children: [_jsx(Form.Item, Object.assign({ | ||
}, | ||
children: [_jsxs("div", { | ||
className: b('form__content'), | ||
children: [_jsx(Form.Item, { | ||
label: '认证方式', | ||
name: 'verifyType' | ||
}, { | ||
name: 'verifyType', | ||
children: _jsx(Select, { | ||
@@ -153,18 +148,16 @@ label: '银行卡', | ||
}, void 0) | ||
}), void 0), _jsx(Form.Item, Object.assign({ | ||
}, void 0), _jsx(Form.Item, { | ||
label: '姓名', | ||
name: 'userName', | ||
required: true | ||
}, { | ||
required: true, | ||
children: _jsx(Input, { | ||
disabled: true | ||
}, void 0) | ||
}), void 0), _jsx(Form.Item, Object.assign({ | ||
}, void 0), _jsx(Form.Item, { | ||
label: '身份证号', | ||
name: 'idCardNo' | ||
}, { | ||
name: 'idCardNo', | ||
children: _jsx(Input, { | ||
disabled: true | ||
}, void 0) | ||
}), void 0), _jsx(Form.Item, Object.assign({ | ||
}, void 0), _jsx(Form.Item, { | ||
label: '银行卡号', | ||
@@ -178,6 +171,5 @@ name: 'bankCardNo', | ||
message: '银行卡号格式不正确' | ||
}] | ||
}, { | ||
}], | ||
children: _jsx(Input, {}, void 0) | ||
}), void 0), _jsx(Form.Item, Object.assign({ | ||
}, void 0), _jsx(Form.Item, { | ||
label: '银行卡预留手机号码', | ||
@@ -188,4 +180,3 @@ name: 'phone', | ||
message: '请输入预留手机号码' | ||
}, verification.phoneNumber.rule] | ||
}, { | ||
}, verification.phoneNumber.rule], | ||
children: _jsx(Input, { | ||
@@ -195,10 +186,9 @@ disabled: disabled, | ||
}, void 0) | ||
}), void 0), !disabled ? _jsx(Form.Item, Object.assign({ | ||
}, void 0), !disabled ? _jsx(Form.Item, { | ||
noStyle: true, | ||
shouldUpdate: true | ||
}, { | ||
shouldUpdate: true, | ||
children: function children(_ref) { | ||
var getFieldsValue = _ref.getFieldsValue; | ||
var params = getFieldsValue(); | ||
return _jsx(Form.Item, Object.assign({ | ||
return _jsx(Form.Item, { | ||
label: '验证码', | ||
@@ -220,30 +210,26 @@ name: 'authcode', | ||
} | ||
}] | ||
}, { | ||
children: _jsx(Authcode, Object.assign({}, params, { | ||
}], | ||
children: _jsx(Authcode, _objectSpread(_objectSpread({}, params), {}, { | ||
disabled: disabled, | ||
queryDisabled: disabled || !(params === null || params === void 0 ? void 0 : params.bankCardNo) || !(params === null || params === void 0 ? void 0 : params.phone) | ||
}), void 0) | ||
}), void 0); | ||
}, void 0); | ||
} | ||
}), void 0) : null, _jsx(Form.Item, Object.assign({ | ||
name: 'bindingBank' | ||
}, { | ||
}, void 0) : null, _jsx(Form.Item, { | ||
name: 'bindingBank', | ||
children: _jsx(Check, {}, void 0) | ||
}), void 0)] | ||
}), void 0), !disabled ? _jsx(Form.Item, Object.assign({ | ||
className: b('footer') | ||
}, { | ||
children: _jsx(Button, Object.assign({ | ||
}, void 0)] | ||
}, void 0), !disabled ? _jsx(Form.Item, { | ||
className: b('footer'), | ||
children: _jsx(Button, { | ||
type: "submit", | ||
color: "primary", | ||
loading: actionSubmit.loading | ||
}, { | ||
loading: actionSubmit.loading, | ||
children: "\u63D0\u4EA4" | ||
}), void 0) | ||
}), void 0) : null] | ||
}), void 0) | ||
}), void 0); | ||
}, void 0) | ||
}, void 0) : null] | ||
}, void 0) | ||
}, void 0); | ||
}; | ||
export default RealName; |
@@ -35,3 +35,3 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
}); | ||
return _jsx("span", Object.assign({ | ||
return _jsx("span", { | ||
onClick: function onClick() { | ||
@@ -50,8 +50,7 @@ if (countdown !== 0 || (props === null || props === void 0 ? void 0 : props.queryDisabled)) { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: countdown === 0 ? '获取验证码' : "\u7B49\u5F85".concat(Math.round(countdown / 1000), "s") | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
export default queryCode; |
@@ -65,7 +65,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
content: function content(disabled, validDisabled) { | ||
return _jsxs(OCRForm.Group, Object.assign({ | ||
return _jsxs(OCRForm.Group, { | ||
title: "\u9A7E\u9A76\u8BC1\u4FE1\u606F", | ||
fileType: "1011" | ||
}, { | ||
children: [_jsx(OCRForm.Item, Object.assign({ | ||
fileType: "1011", | ||
children: [_jsx(OCRForm.Item, { | ||
label: "\u9A7E\u9A76\u8BC1\u53F7", | ||
@@ -79,8 +78,7 @@ name: "licenseNumber", | ||
onClick: tooltipClick(LicenseNumberImg) | ||
} | ||
}, { | ||
}, | ||
children: _jsx(Input, { | ||
disabled: disabled | ||
}, void 0) | ||
}), void 0), _jsx(OCRForm.Item, Object.assign({ | ||
}, void 0), _jsx(OCRForm.Item, { | ||
label: "\u9A7E\u9A76\u8BC1\u521D\u6B21\u9886\u8BC1\u65E5\u671F", | ||
@@ -102,8 +100,6 @@ name: "licenseFirstDate", | ||
onClick: tooltipClick(LicenseFirstDateImg) | ||
} | ||
}, { | ||
children: _jsx(DatePicker, Object.assign({ | ||
}, | ||
children: _jsx(DatePicker, { | ||
title: '驾驶证初次领证日期', | ||
disabled: disabled | ||
}, { | ||
disabled: disabled, | ||
children: function children(val) { | ||
@@ -114,4 +110,4 @@ return _jsx(Select, { | ||
} | ||
}), void 0) | ||
}), void 0), _jsx(OCRForm.Item, Object.assign({ | ||
}, void 0) | ||
}, void 0), _jsx(OCRForm.Item, { | ||
label: "\u9A7E\u9A76\u8BC1\u6709\u6548\u671F", | ||
@@ -128,4 +124,3 @@ name: "validPeriodTo", | ||
onClick: tooltipClick(ValidPeriodToImg) | ||
} | ||
}, { | ||
}, | ||
children: _jsx(DateTypeSelect, { | ||
@@ -135,3 +130,3 @@ title: '驾驶证有效期', | ||
}, void 0) | ||
}), void 0), _jsx(OCRForm.Item, Object.assign({ | ||
}, void 0), _jsx(OCRForm.Item, { | ||
label: "\u51C6\u9A7E\u8F66\u578B", | ||
@@ -145,9 +140,7 @@ name: "vehicleClass", | ||
onClick: tooltipClick(VehicleClassImg) | ||
} | ||
}, { | ||
children: _jsx(Picker, Object.assign({ | ||
}, | ||
children: _jsx(Picker, { | ||
columns: [['A1', 'A2', 'A3', 'B1', 'B2']], | ||
title: "\u51C6\u63A5\u8F66\u578B", | ||
disabled: disabled | ||
}, { | ||
disabled: disabled, | ||
children: function children(val) { | ||
@@ -158,4 +151,4 @@ return _jsx(Select, { | ||
} | ||
}), void 0) | ||
}), void 0), _jsx(OCRForm.Item, Object.assign({ | ||
}, void 0) | ||
}, void 0), _jsx(OCRForm.Item, { | ||
label: "\u9A7E\u9A76\u8BC1\u53D1\u5E03\u673A\u5173\u7701\u5E02", | ||
@@ -169,7 +162,5 @@ name: "issuingOrganizations", | ||
onClick: tooltipClick(IssuingOrganizationsImg) | ||
} | ||
}, { | ||
children: _jsx(DistrictPicker, Object.assign({ | ||
disabled: disabled | ||
}, { | ||
}, | ||
children: _jsx(DistrictPicker, { | ||
disabled: disabled, | ||
children: function children(val) { | ||
@@ -180,5 +171,5 @@ return _jsx(Select, { | ||
} | ||
}), void 0) | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0); | ||
} | ||
@@ -203,7 +194,6 @@ }; | ||
content: function content(disabled, validDisabled) { | ||
return _jsx(OCRForm.Group, Object.assign({ | ||
return _jsx(OCRForm.Group, { | ||
title: "\u4ECE\u4E1A\u8D44\u683C\u8BC1\u4FE1\u606F", | ||
fileType: "1010" | ||
}, { | ||
children: _jsx(OCRForm.Item, Object.assign({ | ||
fileType: "1010", | ||
children: _jsx(OCRForm.Item, { | ||
label: "\u6709\u6548\u671F", | ||
@@ -220,8 +210,6 @@ name: "validPeriodTo", | ||
onClick: tooltipClick(BusinessPeriodTo) | ||
} | ||
}, { | ||
children: _jsx(DatePicker, Object.assign({ | ||
}, | ||
children: _jsx(DatePicker, { | ||
title: '从业资格证有效期', | ||
disabled: validDisabled | ||
}, { | ||
disabled: validDisabled, | ||
children: function children(val) { | ||
@@ -232,5 +220,5 @@ return _jsx(Select, { | ||
} | ||
}), void 0) | ||
}), void 0) | ||
}), void 0); | ||
}, void 0) | ||
}, void 0) | ||
}, void 0); | ||
} | ||
@@ -273,7 +261,6 @@ }; | ||
content: function content(disabled) { | ||
return _jsxs(OCRForm.Group, Object.assign({ | ||
return _jsxs(OCRForm.Group, { | ||
title: "\u8EAB\u4EFD\u8BC1\u4FE1\u606F", | ||
fileType: "1001" | ||
}, { | ||
children: [_jsx(OCRForm.Item, Object.assign({ | ||
fileType: "1001", | ||
children: [_jsx(OCRForm.Item, { | ||
label: "\u59D3\u540D", | ||
@@ -284,8 +271,7 @@ name: "name", | ||
message: '请输入姓名' | ||
}] | ||
}, { | ||
}], | ||
children: _jsx(Input, { | ||
disabled: disabled | ||
}, void 0) | ||
}), void 0), _jsx(OCRForm.Item, Object.assign({ | ||
}, void 0), _jsx(OCRForm.Item, { | ||
label: "\u8EAB\u4EFD\u8BC1\u53F7", | ||
@@ -296,9 +282,8 @@ name: "idNum", | ||
message: '请输入身份证号' | ||
}, verification.userName.rule] | ||
}, { | ||
}, verification.userName.rule], | ||
children: _jsx(Input, { | ||
disabled: disabled | ||
}, void 0) | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
} | ||
@@ -305,0 +290,0 @@ }; |
@@ -0,1 +1,7 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
@@ -360,13 +366,11 @@ | ||
return _jsxs("div", Object.assign({ | ||
className: b() | ||
}, { | ||
children: [isWorker && (resData === null || resData === void 0 ? void 0 : (_resData$data6 = resData.data) === null || _resData$data6 === void 0 ? void 0 : _resData$data6.verifiedStatus) !== 10 ? _jsx(Steps, Object.assign({}, idInfos, { | ||
return _jsxs("div", { | ||
className: b(), | ||
children: [isWorker && (resData === null || resData === void 0 ? void 0 : (_resData$data6 = resData.data) === null || _resData$data6 === void 0 ? void 0 : _resData$data6.verifiedStatus) !== 10 ? _jsx(Steps, _objectSpread(_objectSpread({}, idInfos), {}, { | ||
verifiedStatus: resData === null || resData === void 0 ? void 0 : (_resData$data7 = resData.data) === null || _resData$data7 === void 0 ? void 0 : _resData$data7.verifiedStatus | ||
}), void 0) : null, isWorker && (idInfos === null || idInfos === void 0 ? void 0 : idInfos.auditStatus) === 1 && (resData === null || resData === void 0 ? void 0 : (_resData$data8 = resData.data) === null || _resData$data8 === void 0 ? void 0 : _resData$data8.verifiedStatus) !== 10 ? _jsx(RealNameForm, Object.assign({}, idInfos, { | ||
}), void 0) : null, isWorker && (idInfos === null || idInfos === void 0 ? void 0 : idInfos.auditStatus) === 1 && (resData === null || resData === void 0 ? void 0 : (_resData$data8 = resData.data) === null || _resData$data8 === void 0 ? void 0 : _resData$data8.verifiedStatus) !== 10 ? _jsx(RealNameForm, _objectSpread(_objectSpread({}, idInfos), {}, { | ||
verifiedStatus: resData === null || resData === void 0 ? void 0 : (_resData$data9 = resData.data) === null || _resData$data9 === void 0 ? void 0 : _resData$data9.verifiedStatus | ||
}), void 0) : _jsx("div", Object.assign({ | ||
className: b('form') | ||
}, { | ||
children: _jsxs(OCRForm, Object.assign({ | ||
}), void 0) : _jsx("div", { | ||
className: b('form'), | ||
children: _jsxs(OCRForm, { | ||
hideTips: isWorker && (idInfos === null || idInfos === void 0 ? void 0 : idInfos.auditStatus) === 1, | ||
@@ -381,4 +385,3 @@ loading: loading, | ||
onFinish: onFinish, | ||
onUploadSuccess: onUploadSuccess | ||
}, { | ||
onUploadSuccess: onUploadSuccess, | ||
children: [!!(errorTips === null || errorTips === void 0 ? void 0 : errorTips.length) && _jsx(OCRForm.ErrorTips, { | ||
@@ -391,5 +394,5 @@ children: errorTips.map(function (tip, inx) { | ||
}, void 0), (_queryConfig2 = queryConfig(type)) === null || _queryConfig2 === void 0 ? void 0 : (_queryConfig2$content = _queryConfig2.content) === null || _queryConfig2$content === void 0 ? void 0 : _queryConfig2$content.call(_queryConfig2, infosDisabled, formDisabled)] | ||
}), void 0) | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0); | ||
}; |
@@ -27,2 +27,8 @@ "use strict"; | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
@@ -64,5 +70,4 @@ | ||
onClose = _ref.onClose; | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('tooltip') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: b('tooltip'), | ||
children: [(0, _jsxRuntime.jsx)("img", { | ||
@@ -72,11 +77,10 @@ src: src, | ||
}, void 0), (0, _jsxRuntime.jsx)("footer", { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
children: (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
block: true, | ||
color: "primary", | ||
onClick: onClose | ||
}, { | ||
onClick: onClose, | ||
children: "\u77E5\u9053\u4E86" | ||
}), void 0) | ||
}, void 0) | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -193,9 +197,8 @@ | ||
var notAutoFillType = ['50', '70', '90', '110']; | ||
return (0, _jsxRuntime.jsx)(_mobile.Spin, Object.assign({ | ||
return (0, _jsxRuntime.jsx)(_mobile.Spin, { | ||
full: true, | ||
spinning: loading | ||
}, { | ||
spinning: loading, | ||
children: loading ? (0, _jsxRuntime.jsx)("div", { | ||
className: b() | ||
}, void 0) : (0, _jsxRuntime.jsxs)(_mobile.Form, Object.assign({ | ||
}, void 0) : (0, _jsxRuntime.jsxs)(_mobile.Form, { | ||
className: b(), | ||
@@ -205,7 +208,5 @@ form: form, | ||
onValuesChange: props.onValuesChange, | ||
onFinish: handleFinish | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('content') | ||
}, { | ||
onFinish: handleFinish, | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: b('content'), | ||
children: [tips, certificate.map(function (_ref3) { | ||
@@ -219,8 +220,6 @@ var title = _ref3.title, | ||
return (// formContent | ||
(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('title-container') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('title') | ||
}, { | ||
(0, _jsxRuntime.jsxs)("div", { | ||
className: b('title-container'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: b('title'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
@@ -232,10 +231,8 @@ children: [(0, _jsxRuntime.jsxs)("span", { | ||
}, void 0) : null] | ||
}, void 0), desc && (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('desc') | ||
}, { | ||
}, void 0), desc && (0, _jsxRuntime.jsx)("div", { | ||
className: b('desc'), | ||
children: desc | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('upload-imgs') | ||
}, { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: b('upload-imgs'), | ||
children: files.map(function (_ref4) { | ||
@@ -281,6 +278,6 @@ var fileType = _ref4.fileType, | ||
}), (0, _jsxRuntime.jsx)("div", { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({}, itemProps, { | ||
children: (0, _jsxRuntime.jsx)(_ocrUpload.OCRUpload, Object.assign({ | ||
children: (0, _jsxRuntime.jsx)(_mobile.Form.Item, _objectSpread(_objectSpread({}, itemProps), {}, { | ||
children: (0, _jsxRuntime.jsx)(_ocrUpload.OCRUpload, _objectSpread(_objectSpread({ | ||
fileType: fileType | ||
}, uploadProps, { | ||
}, uploadProps), {}, { | ||
onSuccess: function onSuccess(data) { | ||
@@ -297,30 +294,27 @@ var _props$onUploadSucces; | ||
}) | ||
}), void 0)] | ||
}), title) | ||
}, void 0)] | ||
}, title) | ||
); | ||
}), children && !notAutoFillType.includes(licenseType) && !hideTips && (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('tips') | ||
}, { | ||
}), children && !notAutoFillType.includes(licenseType) && !hideTips && (0, _jsxRuntime.jsx)("div", { | ||
className: b('tips'), | ||
children: _global.default.PXX_ENV.isWorker && !children[0] ? '上传照片后系统会自动识别证件内容' : '以下信息为系统自动识别,如不正确请修改' | ||
}), void 0), children, hasUnbound && footer] | ||
}), void 0), isWorker && !disabled ? (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0), children, hasUnbound && footer] | ||
}, void 0), isWorker && !disabled ? (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
type: "submit", | ||
className: b('work-btn'), | ||
color: "primary", | ||
loading: submitLoading | ||
}, { | ||
loading: submitLoading, | ||
children: "\u63D0\u4EA4" | ||
}), void 0) : (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, { | ||
}, void 0) : (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, { | ||
children: !disabled && (0, _jsxRuntime.jsx)(Footer, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
children: (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
loading: submitLoading, | ||
type: "submit", | ||
color: "primary" | ||
}, { | ||
color: "primary", | ||
children: "\u63D0\u4EA4" | ||
}), void 0) | ||
}, void 0) | ||
}, void 0) | ||
}, void 0)] | ||
}), void 0) | ||
}), void 0); | ||
}, void 0) | ||
}, void 0); | ||
} | ||
@@ -330,7 +324,6 @@ | ||
var children = _ref5.children; | ||
return (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('footer') | ||
}, { | ||
return (0, _jsxRuntime.jsx)("div", { | ||
className: b('footer'), | ||
children: children | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -342,5 +335,4 @@ | ||
var children = _ref6.children; | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('error-tips') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: b('error-tips'), | ||
children: [(0, _jsxRuntime.jsx)("span", { | ||
@@ -353,3 +345,3 @@ children: "\u8BA4\u8BC1\u5931\u8D25\u539F\u56E0\uFF1A" | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -374,19 +366,16 @@ | ||
if (showTypeList.includes(fileType)) { | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('title-container') | ||
}, { | ||
children: [title && (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('title') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: b('title-container'), | ||
children: [title && (0, _jsxRuntime.jsx)("div", { | ||
className: b('title'), | ||
children: title | ||
}), void 0), _children] | ||
}), void 0); | ||
}, void 0), _children] | ||
}, void 0); | ||
} | ||
return (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
return (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
noStyle: true, | ||
shouldUpdate: function shouldUpdate(prevValues, currentValues) { | ||
return prevValues[fileType] !== currentValues[fileType]; | ||
} | ||
}, { | ||
}, | ||
children: function children(_ref9) { | ||
@@ -397,11 +386,9 @@ var getFieldValue = _ref9.getFieldValue; | ||
if (v === null || v === void 0 ? void 0 : v.success) { | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('title-container') | ||
}, { | ||
children: [title && (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('title') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: b('title-container'), | ||
children: [title && (0, _jsxRuntime.jsx)("div", { | ||
className: b('title'), | ||
children: title | ||
}), void 0), _children] | ||
}), void 0); | ||
}, void 0), _children] | ||
}, void 0); | ||
} | ||
@@ -411,3 +398,3 @@ | ||
} | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -414,0 +401,0 @@ |
@@ -126,7 +126,6 @@ "use strict"; | ||
if (hasAuditRemark) { | ||
return (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('remark') | ||
}, { | ||
return (0, _jsxRuntime.jsx)("div", { | ||
className: b('remark'), | ||
children: "\u8BA4\u8BC1\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20" | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -145,7 +144,6 @@ | ||
if (content) { | ||
return (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('auth-status') | ||
}, { | ||
return (0, _jsxRuntime.jsx)("div", { | ||
className: b('auth-status'), | ||
children: content | ||
}), void 0); | ||
}, void 0); | ||
} | ||
@@ -156,5 +154,4 @@ | ||
return (0, _jsxRuntime.jsxs)("span", Object.assign({ | ||
className: b('wrap') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("span", { | ||
className: b('wrap'), | ||
children: [(0, _jsxRuntime.jsx)(_mobile.Upload, { | ||
@@ -166,5 +163,5 @@ className: b(), | ||
}, void 0), rendeRemark()] | ||
}), void 0); | ||
}, void 0); | ||
}); | ||
exports.OCRUpload = OCRUpload; |
@@ -76,3 +76,3 @@ "use strict"; | ||
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, { | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Form, Object.assign({ | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Form, { | ||
form: form, | ||
@@ -83,5 +83,4 @@ onFinish: function onFinish(values) { | ||
})); | ||
} | ||
}, { | ||
children: [type == 2 && (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, | ||
children: [type == 2 && (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
name: 'feedbackName', | ||
@@ -92,4 +91,3 @@ label: '投诉对象', | ||
message: '请输入描述内容' | ||
}] | ||
}, { | ||
}], | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input, { | ||
@@ -100,3 +98,3 @@ placeholder: '请输入', | ||
}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
name: 'submitContent', | ||
@@ -107,4 +105,3 @@ label: '描述内容', | ||
message: '请输入描述内容' | ||
}] | ||
}, { | ||
}], | ||
children: (0, _jsxRuntime.jsx)(_mobile.TextArea, { | ||
@@ -121,5 +118,5 @@ className: (0, _index.bemConsultation)('textArea'), | ||
}, void 0) | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Popup.Footer, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Popup.Footer, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
loading: loading, | ||
@@ -129,6 +126,5 @@ color: 'primary', | ||
return form.submit(); | ||
} | ||
}, { | ||
}, | ||
children: "\u786E\u5B9A" | ||
}), void 0) | ||
}, void 0) | ||
}, void 0)] | ||
@@ -135,0 +131,0 @@ }, void 0); |
@@ -25,7 +25,6 @@ "use strict"; | ||
text = _ref$text === void 0 ? '' : _ref$text; | ||
return (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('detailText') | ||
}, { | ||
return (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('detailText'), | ||
children: text | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -42,19 +41,15 @@ | ||
if (type == 1) { | ||
return (0, _jsxRuntime.jsxs)(_mobile.Card, Object.assign({ | ||
className: (0, _index.bemConsultation)('consultationItem') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)(_mobile.Card, { | ||
className: (0, _index.bemConsultation)('consultationItem'), | ||
children: [(0, _jsxRuntime.jsx)(_mobile.State, { | ||
color: info.feedbackState == 0 ? 'warning' : 'success', | ||
text: info.feedbackState == 0 ? '待处理' : '已处理' | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u54A8\u8BE2\u5185\u5BB9" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
@@ -75,37 +70,29 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: info.submitContent | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_icons.MoreArrowOutlined, {}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_icons.MoreArrowOutlined, {}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u63D0\u4EA4\u65F6\u95F4" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentValue') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
children: (0, _utils.toTime)(createTime, { | ||
format: 'YYYY/MM/DD HH:mm' | ||
}) | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0), info.feedbackState == 1 && (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0), info.feedbackState == 1 && (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, { | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u53CD\u9988\u5185\u5BB9" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
@@ -126,63 +113,50 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: info.feedbackContent | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_icons.MoreArrowOutlined, {}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_icons.MoreArrowOutlined, {}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u53CD\u9988\u65F6\u95F4" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentValue') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
children: (0, _utils.toTime)(feedBackTime, { | ||
format: 'YYYY/MM/DD HH:mm' | ||
}) | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0)] | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
} | ||
return (0, _jsxRuntime.jsxs)(_mobile.Card, Object.assign({ | ||
className: (0, _index.bemConsultation)('consultationItem') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)(_mobile.Card, { | ||
className: (0, _index.bemConsultation)('consultationItem'), | ||
children: [(0, _jsxRuntime.jsx)(_mobile.State, { | ||
color: info.feedbackState == 0 ? 'warning' : 'success', | ||
text: info.feedbackState == 0 ? '待处理' : '已处理' | ||
}, void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u6295\u8BC9\u5BF9\u8C61" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentValue') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
children: info.feedbackName | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u6295\u8BC9\u5185\u5BB9" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
@@ -203,37 +177,29 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: info.submitContent | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_icons.MoreArrowOutlined, {}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_icons.MoreArrowOutlined, {}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u63D0\u4EA4\u65F6\u95F4" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentValue') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
children: (0, _utils.toTime)(createTime, { | ||
format: 'YYYY/MM/DD HH:mm' | ||
}) | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0), info.feedbackState == 1 && (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0), info.feedbackState == 1 && (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, { | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u53CD\u9988\u5185\u5BB9" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
@@ -254,28 +220,23 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: info.feedbackContent | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_icons.MoreArrowOutlined, {}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItem') | ||
}, { | ||
children: (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentKey') | ||
}, { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_icons.MoreArrowOutlined, {}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItem'), | ||
children: (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContent'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentKey'), | ||
children: "\u53CD\u9988\u65F6\u95F4" | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('moduleItemContentValue') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('moduleItemContentValue'), | ||
children: (0, _utils.toTime)(feedBackTime, { | ||
format: 'YYYY/MM/DD HH:mm' | ||
}) | ||
}), void 0)] | ||
}), void 0) | ||
}), void 0)] | ||
}, void 0)] | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -282,0 +243,0 @@ |
@@ -52,5 +52,4 @@ "use strict"; | ||
var text = props.text; | ||
return (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('Empty') | ||
}, { | ||
return (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemConsultation)('Empty'), | ||
children: (0, _jsxRuntime.jsx)("div", { | ||
@@ -61,3 +60,3 @@ children: (0, _jsxRuntime.jsx)("div", { | ||
}, void 0) | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -162,6 +161,5 @@ | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)() | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Tabs, Object.assign({ | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)(), | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Tabs, { | ||
defaultActiveKey: '1', | ||
@@ -181,4 +179,3 @@ onChange: function onChange(type) { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: [(0, _jsxRuntime.jsx)(_mobile.Tabs.Tab, { | ||
@@ -191,3 +188,3 @@ title: "\u95EE\u9898\u54A8\u8BE2", | ||
}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.ListView, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.ListView, { | ||
className: (0, _index.bemConsultation)('list'), | ||
@@ -199,4 +196,3 @@ uniqueKey: 'DRIVER_CONSULTATION', | ||
empty: (0, _jsxRuntime.jsx)(Empty, {}, void 0) | ||
} | ||
}, { | ||
}, | ||
children: function children() { | ||
@@ -211,8 +207,6 @@ var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
} | ||
}), void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('footer') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemConsultation)('info') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('footer'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemConsultation)('info'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
@@ -223,3 +217,3 @@ children: "\u5982\u6709\u5176\u4ED6\u95EE\u9898\u53EF\u8054\u7CFB\u5BA2\u670D\u7535\u8BDD" | ||
}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsxs)(_mobile.Button, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsxs)(_mobile.Button, { | ||
size: 'small', | ||
@@ -229,4 +223,3 @@ className: (0, _index.bemConsultation)('button'), | ||
return setVisible(true); | ||
} | ||
}, { | ||
}, | ||
children: [(0, _jsxRuntime.jsx)(_icons.VerifyLoginOutlined, { | ||
@@ -237,4 +230,4 @@ style: { | ||
}, void 0), listType == 1 ? '我要咨询' : '我要投诉'] | ||
}), void 0)] | ||
}), void 0), visible && (0, _jsxRuntime.jsx)(_mobile.Popup, { | ||
}, void 0)] | ||
}, void 0), visible && (0, _jsxRuntime.jsx)(_mobile.Popup, { | ||
title: listType == 1 ? '咨询内容' : '投诉内容', | ||
@@ -254,5 +247,5 @@ visible: visible, | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
exports.Consultation = Consultation; |
@@ -5,2 +5,2 @@ export interface HelperDetailProps { | ||
} | ||
export declare const HelperDetail: ({ id, onClick }: HelperDetailProps) => JSX.Element; | ||
export declare const HelperDetail: ({ id, onClick, }: HelperDetailProps) => JSX.Element; |
@@ -20,4 +20,8 @@ "use strict"; | ||
var _global = _interopRequireDefault(require("@parallel-line/global")); | ||
var _useDataSource2 = require("./use-data-source"); | ||
var _get = _interopRequireDefault(require("lodash/get")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -42,6 +46,6 @@ | ||
var HelperDetail = function HelperDetail(_ref) { | ||
var _data$keys$, _data$keys$$pages, _info$steps, _steps$currentIndex; | ||
var _steps$currentIndex; | ||
var _ref$id = _ref.id, | ||
id = _ref$id === void 0 ? '' : _ref$id, | ||
id = _ref$id === void 0 ? 'qianbao__yinhangka' : _ref$id, | ||
_onClick = _ref.onClick; | ||
@@ -61,4 +65,4 @@ | ||
var data = requestResult.data; | ||
var info = data === null || data === void 0 ? void 0 : (_data$keys$ = data[keys[0]]) === null || _data$keys$ === void 0 ? void 0 : (_data$keys$$pages = _data$keys$.pages) === null || _data$keys$$pages === void 0 ? void 0 : _data$keys$$pages[keys[1]]; | ||
var steps = (_info$steps = info.steps) !== null && _info$steps !== void 0 ? _info$steps : []; | ||
var info = (0, _get.default)(data, "".concat(keys[0], ".pages.").concat(keys[1]), {}); | ||
var steps = (0, _get.default)(info, 'steps', []); | ||
var voiceRef = (0, _react.useRef)(null); | ||
@@ -81,25 +85,20 @@ | ||
}, [currentIndex]); | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bemHelperDetail() | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("audio", Object.assign({ | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: bemHelperDetail(), | ||
children: [(0, _jsxRuntime.jsx)("audio", { | ||
ref: voiceRef, | ||
autoPlay: false | ||
}, { | ||
autoPlay: false, | ||
children: (0, _jsxRuntime.jsx)("source", { | ||
src: "https://prod-1302801272.cos.ap-guangzhou.myqcloud.com/assets/helper/".concat(keys[0], "/").concat(keys[1], "/").concat(currentIndex + 1, ".mp3") | ||
src: "".concat(_global.default.assetsUrl, "/helper/").concat(platform, "/").concat(keys[0], "/").concat(keys[1], "/").concat(currentIndex + 1, ".mp3") | ||
}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bemHelperDetail('content') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bemHelperDetail('control') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: bemHelperDetail('content'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: bemHelperDetail('control'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
children: currentIndex != 0 && steps.length > 0 && (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
children: currentIndex != 0 && steps.length > 0 && (0, _jsxRuntime.jsx)("div", { | ||
className: bemHelperDetail('controlImg'), | ||
onClick: function onClick() { | ||
setCurrentIndex(currentIndex - 1); | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_icons.LeftArrowOutlined, { | ||
@@ -111,14 +110,13 @@ style: { | ||
}, void 0) | ||
}), void 0) | ||
}, void 0) | ||
}, void 0), (0, _jsxRuntime.jsx)("img", { | ||
className: bemHelperDetail('bgImg'), | ||
src: "https://prod-1302801272.cos.ap-guangzhou.myqcloud.com/assets/helper/".concat(keys[0], "/").concat(keys[1], "/").concat(currentIndex + 1, ".png"), | ||
src: "".concat(_global.default.assetsUrl, "/helper/").concat(platform, "/").concat(keys[0], "/").concat(keys[1], "/").concat(currentIndex + 1, ".png"), | ||
alt: "" | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
children: currentIndex != steps.length - 1 && steps.length > 0 && (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
children: currentIndex != steps.length - 1 && steps.length > 0 && (0, _jsxRuntime.jsx)("div", { | ||
className: bemHelperDetail('controlImg'), | ||
onClick: function onClick() { | ||
setCurrentIndex(currentIndex + 1); | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_icons.NextStepOutlined, { | ||
@@ -130,7 +128,6 @@ style: { | ||
}, void 0) | ||
}), void 0) | ||
}, void 0) | ||
}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: bemHelperDetail('radius') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: bemHelperDetail('radius'), | ||
children: steps.map(function (item, index) { | ||
@@ -144,15 +141,12 @@ return (0, _jsxRuntime.jsx)("div", { | ||
}) | ||
}), void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bemHelperDetail('stepCount') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: bemHelperDetail('stepCount'), | ||
children: ["\u7B2C", currentIndex + 1, "\u6B65"] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: bemHelperDetail('description') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: bemHelperDetail('description'), | ||
children: steps === null || steps === void 0 ? void 0 : (_steps$currentIndex = steps[currentIndex]) === null || _steps$currentIndex === void 0 ? void 0 : _steps$currentIndex.description | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bemHelperDetail('btnWrap') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: bemHelperDetail('btnWrap'), | ||
children: [(0, _jsxRuntime.jsx)(_mobile.Button, { | ||
size: 'small', | ||
@@ -168,6 +162,5 @@ icon: (0, _jsxRuntime.jsx)(_icons.VolumeOutlined, {}, void 0), | ||
return play(); | ||
} | ||
}, { | ||
}, | ||
children: "\u8BB2\u89E3" | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
color: currentIndex === steps.length - 1 ? 'success' : 'primary', | ||
@@ -184,10 +177,9 @@ size: 'small', | ||
} | ||
} | ||
}, { | ||
}, | ||
children: currentIndex === steps.length - 1 ? '我学会了' : '下一步' | ||
}), void 0)] | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
exports.HelperDetail = HelperDetail; |
@@ -1,4 +0,1 @@ | ||
export interface HelperProps { | ||
onClick: any; | ||
} | ||
export declare const Helper: ({ onClick }: HelperProps) => JSX.Element; | ||
export declare const Helper: () => JSX.Element; |
@@ -28,2 +28,4 @@ "use strict"; | ||
var _taro = require("@tarojs/taro"); | ||
var _useDataSource2 = require("./use-data-source"); | ||
@@ -53,7 +55,5 @@ | ||
var Helper = function Helper(_ref) { | ||
var Helper = function Helper() { | ||
var _pages$filter; | ||
var _onClick = _ref.onClick; | ||
var _useDataSource = (0, _useDataSource2.useDataSource)(), | ||
@@ -83,5 +83,4 @@ requestResult = _useDataSource.requestResult, | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bemHelper() | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: bemHelper(), | ||
children: [(0, _jsxRuntime.jsx)("img", { | ||
@@ -91,10 +90,8 @@ className: bemHelper('bgImg'), | ||
alt: "" | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
style: { | ||
zIndex: 1 | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bemHelper('title') | ||
}, { | ||
}, | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: bemHelper('title'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
@@ -105,27 +102,23 @@ children: "\u6307\u5F15\u5E38\u770B\u770B" | ||
}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsxs)(_mobile.Space, Object.assign({ | ||
className: bemHelper('tagWrap') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsxs)(_mobile.Space, { | ||
className: bemHelper('tagWrap'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _classnames3.default)(bemHelper('tag'), _defineProperty({}, bemHelper('currentTagType'), currentTagType == '')), | ||
onClick: function onClick() { | ||
return setCurrentTag(''); | ||
} | ||
}, { | ||
}, | ||
children: "\u5168\u90E8" | ||
}), void 0), (0, _map2.default)(data, function (value, key) { | ||
return (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
}, void 0), (0, _map2.default)(data, function (value, key) { | ||
return (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _classnames3.default)(bemHelper('tag'), _defineProperty({}, bemHelper('currentTagType'), currentTagType == key)), | ||
onClick: function onClick() { | ||
return setCurrentTag(key); | ||
} | ||
}, { | ||
}, | ||
children: value.name | ||
}), key); | ||
}, key); | ||
})] | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Space, Object.assign({ | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Space, { | ||
direction: 'vertical', | ||
className: bemHelper('cardWrap') | ||
}, { | ||
className: bemHelper('cardWrap'), | ||
children: pages === null || pages === void 0 ? void 0 : (_pages$filter = pages.filter(function (item) { | ||
@@ -136,31 +129,29 @@ return currentTagType == '' || item.key == currentTagType; | ||
style = _page.style; | ||
return (0, _jsxRuntime.jsxs)(_mobile.Card, Object.assign({ | ||
return (0, _jsxRuntime.jsxs)(_mobile.Card, { | ||
className: bemHelper('card'), | ||
onClick: function onClick() { | ||
_onClick === null || _onClick === void 0 ? void 0 : _onClick("".concat(_page.key, "__").concat(_page._key)); | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bemHelper('cardContent') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("span", Object.assign({ | ||
(0, _taro.navigateTo)({ | ||
url: "/pages/helper/detail/index?id=".concat(_page.key, "__").concat(_page._key) | ||
}); | ||
}, | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: bemHelper('cardContent'), | ||
children: [(0, _jsxRuntime.jsx)("span", { | ||
className: bemHelper('cardTag'), | ||
style: style | ||
}, { | ||
style: style, | ||
children: name | ||
}), void 0), (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: bemHelper('cardSubject') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: bemHelper('cardSubject'), | ||
children: _page.title | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("img", { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("img", { | ||
alt: '', | ||
src: "".concat(_global.default.assetsUrl, "/helper/").concat(platform, "/").concat(_page.key, "/").concat(_page._key, "/0.png") | ||
}, void 0)] | ||
}), _page.key + _page._key); | ||
}, _page.key + _page._key); | ||
}) | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
exports.Helper = Helper; |
@@ -1,5 +0,5 @@ | ||
declare const _default: (({ onClick }: import("./helper").HelperProps) => JSX.Element) & { | ||
HelperDetail: ({ id, onClick }: import("./helper-detail").HelperDetailProps) => JSX.Element; | ||
declare const _default: (() => JSX.Element) & { | ||
HelperDetail: ({ id, onClick, }: import("./helper-detail").HelperDetailProps) => JSX.Element; | ||
}; | ||
export default _default; | ||
import './style/index.less'; |
@@ -51,15 +51,13 @@ "use strict"; | ||
if (!_global.default.loginAgreementOptions) return null; | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: bem() | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: bem(), | ||
children: [(0, _jsxRuntime.jsx)("span", { | ||
children: "\u767B\u5F55\u89C6\u4E3A\u5DF2\u9605\u8BFB\u5E76\u540C\u610F" | ||
}, void 0), (_global$loginAgreemen = _global.default.loginAgreementOptions) === null || _global$loginAgreemen === void 0 ? void 0 : _global$loginAgreemen.map(function (item) { | ||
return (0, _jsxRuntime.jsxs)("span", Object.assign({ | ||
className: bem('link') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("span", { | ||
className: bem('link'), | ||
children: ["\u300A", item.title, "\u300B"] | ||
}), item.key); | ||
}, item.key); | ||
})] | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -66,0 +64,0 @@ |
@@ -59,23 +59,18 @@ "use strict"; | ||
return (0, _utils.withNativeProps)(props, (0, _jsxRuntime.jsxs)(_mobile.Whiteboard, Object.assign({ | ||
className: (0, _index.bemLogin)() | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('container') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('tip') | ||
}, { | ||
return (0, _utils.withNativeProps)(props, (0, _jsxRuntime.jsxs)(_mobile.Whiteboard, { | ||
className: (0, _index.bemLogin)(), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('container'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('tip'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
children: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801" | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('phoneNumber') | ||
}, { | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('phoneNumber'), | ||
children: ["\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\u81F3\u624B\u673A\uFF1A", params === null || params === void 0 ? void 0 : params.phoneNumber] | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Form, Object.assign({ | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Form, { | ||
form: form, | ||
onFinish: handleFinish | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
onFinish: handleFinish, | ||
children: (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
name: "code", | ||
@@ -85,4 +80,3 @@ rules: [{ | ||
message: '请输入验证码' | ||
}, _global.default.regular.phoneNumber.rule] | ||
}, { | ||
}, _global.default.regular.phoneNumber.rule], | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input //@ts-ignore | ||
@@ -95,5 +89,5 @@ , { | ||
}, void 0) | ||
}), void 0) | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
block: true, | ||
@@ -103,29 +97,24 @@ size: "large", | ||
loading: loading, | ||
onClick: form.submit | ||
}, { | ||
onClick: form.submit, | ||
children: "\u767B\u5F55 / \u6CE8\u518C" | ||
}), void 0), (0, _jsxRuntime.jsx)(_agreement.default, {}, void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('round-btn-wrapper') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Space, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_agreement.default, {}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('round-btn-wrapper'), | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Space, { | ||
style: { | ||
'--gap': '40px', | ||
display: 'inline-flex' | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
}, | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
onClick: onWeChatLogin, | ||
className: (0, _index.bemLogin)('round-btn') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("button", Object.assign({ | ||
className: (0, _index.bemLogin)('round-btn'), | ||
children: [(0, _jsxRuntime.jsx)("button", { | ||
className: (0, _index.bemLogin)('btn'), | ||
style: { | ||
backgroundColor: '#00b86b' | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_icons.WechatOutlined, {}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
children: "\u5FAE\u4FE1\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('round-btn'), | ||
@@ -136,22 +125,20 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("button", Object.assign({ | ||
}, | ||
children: [(0, _jsxRuntime.jsx)("button", { | ||
className: (0, _index.bemLogin)('btn'), | ||
style: { | ||
backgroundColor: '#1552eb' | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_icons.PasswordOutlined, {}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
children: "\u5BC6\u7801\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: "pxx-safe-area-bottom" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0)); | ||
}, void 0)] | ||
}, void 0)); | ||
}; | ||
exports.Code = Code; |
@@ -31,11 +31,8 @@ "use strict"; | ||
return (0, _jsxRuntime.jsxs)(_mobile.Whiteboard, Object.assign({ | ||
className: (0, _index.bemLogin)() | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('container') | ||
}, { | ||
children: (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('logo-wrapper') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)(_mobile.Whiteboard, { | ||
className: (0, _index.bemLogin)(), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemLogin)('container'), | ||
children: (0, _jsxRuntime.jsx)("div", { | ||
className: (0, _index.bemLogin)('logo-wrapper'), | ||
children: (0, _jsxRuntime.jsx)("img", { | ||
@@ -46,7 +43,6 @@ alt: "", | ||
}, void 0) | ||
}), void 0) | ||
}), void 0), (0, _jsxRuntime.jsxs)(_mobile.Space, Object.assign({ | ||
direction: "vertical" | ||
}, { | ||
children: [props.onSwitchEnv && (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0) | ||
}, void 0), (0, _jsxRuntime.jsxs)(_mobile.Space, { | ||
direction: "vertical", | ||
children: [props.onSwitchEnv && (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
block: true, | ||
@@ -56,6 +52,5 @@ size: "large", | ||
onClick: props.onSwitchEnv, | ||
className: (0, _index.bemLogin)('switch-btn') | ||
}, { | ||
className: (0, _index.bemLogin)('switch-btn'), | ||
children: "\u73AF\u5883\u5207\u6362" | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
block: true, | ||
@@ -67,16 +62,13 @@ size: "large", | ||
openType: "getPhoneNumber", | ||
onGetPhoneNumber: onWeChatLogin | ||
}, { | ||
onGetPhoneNumber: onWeChatLogin, | ||
children: "\u5FAE\u4FE1\u5E10\u53F7\u4E00\u952E\u767B\u5F55" | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_agreement.default, {}, void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('round-btn-wrapper') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Space, Object.assign({ | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_agreement.default, {}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('round-btn-wrapper'), | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Space, { | ||
style: { | ||
'--gap': '40px', | ||
display: 'inline-flex' | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
}, | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('round-btn'), | ||
@@ -87,15 +79,13 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("button", Object.assign({ | ||
}, | ||
children: [(0, _jsxRuntime.jsx)("button", { | ||
className: (0, _index.bemLogin)('btn'), | ||
style: { | ||
backgroundColor: '#1552eb' | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_icons.PasswordOutlined, {}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
children: "\u5BC6\u7801\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('round-btn'), | ||
@@ -106,22 +96,20 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("button", Object.assign({ | ||
}, | ||
children: [(0, _jsxRuntime.jsx)("button", { | ||
className: (0, _index.bemLogin)('btn'), | ||
style: { | ||
backgroundColor: '#18a6fd' | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_icons.PhoneOutlined, {}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
children: "\u9A8C\u8BC1\u7801\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: "pxx-safe-area-bottom" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
exports.Login = Login; |
@@ -49,11 +49,8 @@ "use strict"; | ||
return (0, _jsxRuntime.jsxs)(_mobile.Whiteboard, Object.assign({ | ||
className: (0, _index.bemLogin)() | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('container') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('tip') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)(_mobile.Whiteboard, { | ||
className: (0, _index.bemLogin)(), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('container'), | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('tip'), | ||
children: [(0, _jsxRuntime.jsx)("div", { | ||
@@ -64,3 +61,3 @@ children: "Hi~" | ||
}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Form, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Form, { | ||
form: form, | ||
@@ -72,5 +69,4 @@ onFinish: function onFinish(_ref) { | ||
}); | ||
} | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
name: "phone", | ||
@@ -80,4 +76,3 @@ rules: [{ | ||
message: '请输入手机号' | ||
}, phoneNumber.rule] | ||
}, { | ||
}, phoneNumber.rule], | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input //@ts-ignore | ||
@@ -90,35 +85,30 @@ , { | ||
}, void 0) | ||
}), void 0) | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
block: true, | ||
size: "large", | ||
color: "primary", | ||
onClick: form.submit | ||
}, { | ||
onClick: form.submit, | ||
children: "\u4E0B\u4E00\u6B65" | ||
}), void 0), (0, _jsxRuntime.jsx)(_agreement.default, {}, void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: (0, _index.bemLogin)('round-btn-wrapper') | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Space, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_agreement.default, {}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('round-btn-wrapper'), | ||
children: [(0, _jsxRuntime.jsxs)(_mobile.Space, { | ||
style: { | ||
'--gap': '40px', | ||
display: 'inline-flex' | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
}, | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
onClick: onWeChatLogin, | ||
className: (0, _index.bemLogin)('round-btn') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("button", Object.assign({ | ||
className: (0, _index.bemLogin)('round-btn'), | ||
children: [(0, _jsxRuntime.jsx)("button", { | ||
className: (0, _index.bemLogin)('btn'), | ||
style: { | ||
backgroundColor: '#00b86b' | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_icons.WechatOutlined, {}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
children: "\u5FAE\u4FE1\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0), (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsxs)("div", { | ||
className: (0, _index.bemLogin)('round-btn'), | ||
@@ -129,22 +119,20 @@ onClick: function onClick() { | ||
}); | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("button", Object.assign({ | ||
}, | ||
children: [(0, _jsxRuntime.jsx)("button", { | ||
className: (0, _index.bemLogin)('btn'), | ||
style: { | ||
backgroundColor: '#1552eb' | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_icons.PasswordOutlined, {}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
children: "\u5BC6\u7801\u767B\u5F55" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0), (0, _jsxRuntime.jsx)("div", { | ||
}, void 0)] | ||
}, void 0), (0, _jsxRuntime.jsx)("div", { | ||
className: "pxx-safe-area-bottom" | ||
}, void 0)] | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
exports.Phone = Phone; |
@@ -36,10 +36,8 @@ "use strict"; | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b() | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)("span", Object.assign({ | ||
className: b('title') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: b(), | ||
children: [(0, _jsxRuntime.jsx)("span", { | ||
className: b('title'), | ||
children: "\u8BF7\u9009\u62E9\u8BC1\u4EF6\u6709\u6548\u671F\u7C7B\u578B" | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
className: b('button'), | ||
@@ -49,6 +47,5 @@ color: "gray", | ||
return selectDate(); | ||
} | ||
}, { | ||
}, | ||
children: "\u6709\u660E\u786E\u6709\u6548\u671F" | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
className: b('button'), | ||
@@ -58,7 +55,6 @@ color: "gray", | ||
return selectDate(true); | ||
} | ||
}, { | ||
}, | ||
children: "\u65E0\u660E\u786E\u6709\u6548\u65E5\u671F\uFF0C\u957F\u671F\u6709\u6548" | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
@@ -65,0 +61,0 @@ |
@@ -22,8 +22,13 @@ "use strict"; | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var b = (0, _utils.bem)("".concat(_constant.prefixCls, "-authcode")); | ||
var Authcode = function Authcode(props) { | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b() | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: b(), | ||
children: [(0, _jsxRuntime.jsx)(_mobile.Input, { | ||
@@ -34,4 +39,4 @@ onChange: props === null || props === void 0 ? void 0 : props.onChange, | ||
disabled: props === null || props === void 0 ? void 0 : props.disabled | ||
}, void 0), (0, _jsxRuntime.jsx)(_queryCode.default, Object.assign({}, props), void 0)] | ||
}), void 0); | ||
}, void 0), (0, _jsxRuntime.jsx)(_queryCode.default, _objectSpread({}, props), void 0)] | ||
}, void 0); | ||
}; | ||
@@ -38,0 +43,0 @@ |
@@ -100,5 +100,4 @@ "use strict"; | ||
var Check = function Check(childProps) { | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('binding-bank') | ||
}, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: b('binding-bank'), | ||
children: [(0, _jsxRuntime.jsx)(_mobile.Checkbox, { | ||
@@ -118,3 +117,3 @@ disabled: disabled, | ||
}, void 0)] | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -150,6 +149,5 @@ | ||
return (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b() | ||
}, { | ||
children: (0, _jsxRuntime.jsxs)(_mobile.Form, Object.assign({ | ||
return (0, _jsxRuntime.jsx)("div", { | ||
className: b(), | ||
children: (0, _jsxRuntime.jsxs)(_mobile.Form, { | ||
form: form, | ||
@@ -161,11 +159,8 @@ onFinish: onFinish, | ||
bindingBank: 1 | ||
} | ||
}, { | ||
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b('form__content') | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, | ||
children: [(0, _jsxRuntime.jsxs)("div", { | ||
className: b('form__content'), | ||
children: [(0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
label: '认证方式', | ||
name: 'verifyType' | ||
}, { | ||
name: 'verifyType', | ||
children: (0, _jsxRuntime.jsx)(_mobile.Select, { | ||
@@ -175,18 +170,16 @@ label: '银行卡', | ||
}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
label: '姓名', | ||
name: 'userName', | ||
required: true | ||
}, { | ||
required: true, | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input, { | ||
disabled: true | ||
}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
label: '身份证号', | ||
name: 'idCardNo' | ||
}, { | ||
name: 'idCardNo', | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input, { | ||
disabled: true | ||
}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
label: '银行卡号', | ||
@@ -200,6 +193,5 @@ name: 'bankCardNo', | ||
message: '银行卡号格式不正确' | ||
}] | ||
}, { | ||
}], | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input, {}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
label: '银行卡预留手机号码', | ||
@@ -210,4 +202,3 @@ name: 'phone', | ||
message: '请输入预留手机号码' | ||
}, _utils.verification.phoneNumber.rule] | ||
}, { | ||
}, _utils.verification.phoneNumber.rule], | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input, { | ||
@@ -217,10 +208,9 @@ disabled: disabled, | ||
}, void 0) | ||
}), void 0), !disabled ? (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
}, void 0), !disabled ? (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
noStyle: true, | ||
shouldUpdate: true | ||
}, { | ||
shouldUpdate: true, | ||
children: function children(_ref) { | ||
var getFieldsValue = _ref.getFieldsValue; | ||
var params = getFieldsValue(); | ||
return (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
return (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
label: '验证码', | ||
@@ -242,28 +232,24 @@ name: 'authcode', | ||
} | ||
}] | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_authcode.default, Object.assign({}, params, { | ||
}], | ||
children: (0, _jsxRuntime.jsx)(_authcode.default, _objectSpread(_objectSpread({}, params), {}, { | ||
disabled: disabled, | ||
queryDisabled: disabled || !(params === null || params === void 0 ? void 0 : params.bankCardNo) || !(params === null || params === void 0 ? void 0 : params.phone) | ||
}), void 0) | ||
}), void 0); | ||
}, void 0); | ||
} | ||
}), void 0) : null, (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
name: 'bindingBank' | ||
}, { | ||
}, void 0) : null, (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
name: 'bindingBank', | ||
children: (0, _jsxRuntime.jsx)(Check, {}, void 0) | ||
}), void 0)] | ||
}), void 0), !disabled ? (0, _jsxRuntime.jsx)(_mobile.Form.Item, Object.assign({ | ||
className: b('footer') | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Button, Object.assign({ | ||
}, void 0)] | ||
}, void 0), !disabled ? (0, _jsxRuntime.jsx)(_mobile.Form.Item, { | ||
className: b('footer'), | ||
children: (0, _jsxRuntime.jsx)(_mobile.Button, { | ||
type: "submit", | ||
color: "primary", | ||
loading: actionSubmit.loading | ||
}, { | ||
loading: actionSubmit.loading, | ||
children: "\u63D0\u4EA4" | ||
}), void 0) | ||
}), void 0) : null] | ||
}), void 0) | ||
}), void 0); | ||
}, void 0) | ||
}, void 0) : null] | ||
}, void 0) | ||
}, void 0); | ||
}; | ||
@@ -270,0 +256,0 @@ |
@@ -46,3 +46,3 @@ "use strict"; | ||
}); | ||
return (0, _jsxRuntime.jsx)("span", Object.assign({ | ||
return (0, _jsxRuntime.jsx)("span", { | ||
onClick: function onClick() { | ||
@@ -61,6 +61,5 @@ if (countdown !== 0 || (props === null || props === void 0 ? void 0 : props.queryDisabled)) { | ||
}); | ||
} | ||
}, { | ||
}, | ||
children: countdown === 0 ? '获取验证码' : "\u7B49\u5F85".concat(Math.round(countdown / 1000), "s") | ||
}), void 0); | ||
}, void 0); | ||
}; | ||
@@ -67,0 +66,0 @@ |
@@ -88,7 +88,6 @@ "use strict"; | ||
content: function content(disabled, validDisabled) { | ||
return (0, _jsxRuntime.jsxs)(_components.OCRForm.Group, Object.assign({ | ||
return (0, _jsxRuntime.jsxs)(_components.OCRForm.Group, { | ||
title: "\u9A7E\u9A76\u8BC1\u4FE1\u606F", | ||
fileType: "1011" | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)(_components.OCRForm.Item, Object.assign({ | ||
fileType: "1011", | ||
children: [(0, _jsxRuntime.jsx)(_components.OCRForm.Item, { | ||
label: "\u9A7E\u9A76\u8BC1\u53F7", | ||
@@ -102,8 +101,7 @@ name: "licenseNumber", | ||
onClick: (0, _components.tooltipClick)(_licenseNumber.default) | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input, { | ||
disabled: disabled | ||
}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, { | ||
label: "\u9A7E\u9A76\u8BC1\u521D\u6B21\u9886\u8BC1\u65E5\u671F", | ||
@@ -125,8 +123,6 @@ name: "licenseFirstDate", | ||
onClick: (0, _components.tooltipClick)(_licenseFirstDate.default) | ||
} | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.DatePicker, Object.assign({ | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_mobile.DatePicker, { | ||
title: '驾驶证初次领证日期', | ||
disabled: disabled | ||
}, { | ||
disabled: disabled, | ||
children: function children(val) { | ||
@@ -137,4 +133,4 @@ return (0, _jsxRuntime.jsx)(_mobile.Select, { | ||
} | ||
}), void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, Object.assign({ | ||
}, void 0) | ||
}, void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, { | ||
label: "\u9A7E\u9A76\u8BC1\u6709\u6548\u671F", | ||
@@ -151,4 +147,3 @@ name: "validPeriodTo", | ||
onClick: (0, _components.tooltipClick)(_validPeriodTo.default) | ||
} | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_components2.DateTypeSelect, { | ||
@@ -158,3 +153,3 @@ title: '驾驶证有效期', | ||
}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, { | ||
label: "\u51C6\u9A7E\u8F66\u578B", | ||
@@ -168,9 +163,7 @@ name: "vehicleClass", | ||
onClick: (0, _components.tooltipClick)(_vehicleClass.default) | ||
} | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.Picker, Object.assign({ | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_mobile.Picker, { | ||
columns: [['A1', 'A2', 'A3', 'B1', 'B2']], | ||
title: "\u51C6\u63A5\u8F66\u578B", | ||
disabled: disabled | ||
}, { | ||
disabled: disabled, | ||
children: function children(val) { | ||
@@ -181,4 +174,4 @@ return (0, _jsxRuntime.jsx)(_mobile.Select, { | ||
} | ||
}), void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, Object.assign({ | ||
}, void 0) | ||
}, void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, { | ||
label: "\u9A7E\u9A76\u8BC1\u53D1\u5E03\u673A\u5173\u7701\u5E02", | ||
@@ -192,7 +185,5 @@ name: "issuingOrganizations", | ||
onClick: (0, _components.tooltipClick)(_issuingOrganizations.default) | ||
} | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.DistrictPicker, Object.assign({ | ||
disabled: disabled | ||
}, { | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_mobile.DistrictPicker, { | ||
disabled: disabled, | ||
children: function children(val) { | ||
@@ -203,5 +194,5 @@ return (0, _jsxRuntime.jsx)(_mobile.Select, { | ||
} | ||
}), void 0) | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0); | ||
} | ||
@@ -226,7 +217,6 @@ }; | ||
content: function content(disabled, validDisabled) { | ||
return (0, _jsxRuntime.jsx)(_components.OCRForm.Group, Object.assign({ | ||
return (0, _jsxRuntime.jsx)(_components.OCRForm.Group, { | ||
title: "\u4ECE\u4E1A\u8D44\u683C\u8BC1\u4FE1\u606F", | ||
fileType: "1010" | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_components.OCRForm.Item, Object.assign({ | ||
fileType: "1010", | ||
children: (0, _jsxRuntime.jsx)(_components.OCRForm.Item, { | ||
label: "\u6709\u6548\u671F", | ||
@@ -243,8 +233,6 @@ name: "validPeriodTo", | ||
onClick: (0, _components.tooltipClick)(_businessPeriodTo.default) | ||
} | ||
}, { | ||
children: (0, _jsxRuntime.jsx)(_mobile.DatePicker, Object.assign({ | ||
}, | ||
children: (0, _jsxRuntime.jsx)(_mobile.DatePicker, { | ||
title: '从业资格证有效期', | ||
disabled: validDisabled | ||
}, { | ||
disabled: validDisabled, | ||
children: function children(val) { | ||
@@ -255,5 +243,5 @@ return (0, _jsxRuntime.jsx)(_mobile.Select, { | ||
} | ||
}), void 0) | ||
}), void 0) | ||
}), void 0); | ||
}, void 0) | ||
}, void 0) | ||
}, void 0); | ||
} | ||
@@ -296,7 +284,6 @@ }; | ||
content: function content(disabled) { | ||
return (0, _jsxRuntime.jsxs)(_components.OCRForm.Group, Object.assign({ | ||
return (0, _jsxRuntime.jsxs)(_components.OCRForm.Group, { | ||
title: "\u8EAB\u4EFD\u8BC1\u4FE1\u606F", | ||
fileType: "1001" | ||
}, { | ||
children: [(0, _jsxRuntime.jsx)(_components.OCRForm.Item, Object.assign({ | ||
fileType: "1001", | ||
children: [(0, _jsxRuntime.jsx)(_components.OCRForm.Item, { | ||
label: "\u59D3\u540D", | ||
@@ -307,8 +294,7 @@ name: "name", | ||
message: '请输入姓名' | ||
}] | ||
}, { | ||
}], | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input, { | ||
disabled: disabled | ||
}, void 0) | ||
}), void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, Object.assign({ | ||
}, void 0), (0, _jsxRuntime.jsx)(_components.OCRForm.Item, { | ||
label: "\u8EAB\u4EFD\u8BC1\u53F7", | ||
@@ -319,9 +305,8 @@ name: "idNum", | ||
message: '请输入身份证号' | ||
}, _utils.verification.userName.rule] | ||
}, { | ||
}, _utils.verification.userName.rule], | ||
children: (0, _jsxRuntime.jsx)(_mobile.Input, { | ||
disabled: disabled | ||
}, void 0) | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0)] | ||
}, void 0); | ||
} | ||
@@ -328,0 +313,0 @@ }; |
@@ -34,2 +34,8 @@ "use strict"; | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
@@ -383,13 +389,11 @@ | ||
return (0, _jsxRuntime.jsxs)("div", Object.assign({ | ||
className: b() | ||
}, { | ||
children: [isWorker && (resData === null || resData === void 0 ? void 0 : (_resData$data6 = resData.data) === null || _resData$data6 === void 0 ? void 0 : _resData$data6.verifiedStatus) !== 10 ? (0, _jsxRuntime.jsx)(_components2.Steps, Object.assign({}, idInfos, { | ||
return (0, _jsxRuntime.jsxs)("div", { | ||
className: b(), | ||
children: [isWorker && (resData === null || resData === void 0 ? void 0 : (_resData$data6 = resData.data) === null || _resData$data6 === void 0 ? void 0 : _resData$data6.verifiedStatus) !== 10 ? (0, _jsxRuntime.jsx)(_components2.Steps, _objectSpread(_objectSpread({}, idInfos), {}, { | ||
verifiedStatus: resData === null || resData === void 0 ? void 0 : (_resData$data7 = resData.data) === null || _resData$data7 === void 0 ? void 0 : _resData$data7.verifiedStatus | ||
}), void 0) : null, isWorker && (idInfos === null || idInfos === void 0 ? void 0 : idInfos.auditStatus) === 1 && (resData === null || resData === void 0 ? void 0 : (_resData$data8 = resData.data) === null || _resData$data8 === void 0 ? void 0 : _resData$data8.verifiedStatus) !== 10 ? (0, _jsxRuntime.jsx)(_components2.RealNameForm, Object.assign({}, idInfos, { | ||
}), void 0) : null, isWorker && (idInfos === null || idInfos === void 0 ? void 0 : idInfos.auditStatus) === 1 && (resData === null || resData === void 0 ? void 0 : (_resData$data8 = resData.data) === null || _resData$data8 === void 0 ? void 0 : _resData$data8.verifiedStatus) !== 10 ? (0, _jsxRuntime.jsx)(_components2.RealNameForm, _objectSpread(_objectSpread({}, idInfos), {}, { | ||
verifiedStatus: resData === null || resData === void 0 ? void 0 : (_resData$data9 = resData.data) === null || _resData$data9 === void 0 ? void 0 : _resData$data9.verifiedStatus | ||
}), void 0) : (0, _jsxRuntime.jsx)("div", Object.assign({ | ||
className: b('form') | ||
}, { | ||
children: (0, _jsxRuntime.jsxs)(_components.OCRForm, Object.assign({ | ||
}), void 0) : (0, _jsxRuntime.jsx)("div", { | ||
className: b('form'), | ||
children: (0, _jsxRuntime.jsxs)(_components.OCRForm, { | ||
hideTips: isWorker && (idInfos === null || idInfos === void 0 ? void 0 : idInfos.auditStatus) === 1, | ||
@@ -404,4 +408,3 @@ loading: loading, | ||
onFinish: onFinish, | ||
onUploadSuccess: onUploadSuccess | ||
}, { | ||
onUploadSuccess: onUploadSuccess, | ||
children: [!!(errorTips === null || errorTips === void 0 ? void 0 : errorTips.length) && (0, _jsxRuntime.jsx)(_components.OCRForm.ErrorTips, { | ||
@@ -414,7 +417,7 @@ children: errorTips.map(function (tip, inx) { | ||
}, void 0), (_queryConfig2 = (0, _photos.default)(type)) === null || _queryConfig2 === void 0 ? void 0 : (_queryConfig2$content = _queryConfig2.content) === null || _queryConfig2$content === void 0 ? void 0 : _queryConfig2$content.call(_queryConfig2, infosDisabled, formDisabled)] | ||
}), void 0) | ||
}), void 0)] | ||
}), void 0); | ||
}, void 0) | ||
}, void 0)] | ||
}, void 0); | ||
}; | ||
exports.Photos = Photos; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "2.1.0-beta.22", | ||
"version": "2.1.0-beta.23", | ||
"scripts": { | ||
@@ -29,3 +29,3 @@ "build": "father-build" | ||
], | ||
"gitHead": "df4e1962f1ac4f0d67dab4bcd2e4bdfc8dc2bdbf" | ||
"gitHead": "6c8fb7aec65c48e2df05615d4c29c21cb55d94c3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12109899
6641