From bd9b87f6da25af903765da17427c4e6375052d03 Mon Sep 17 00:00:00 2001 From: huxiaoshuang Date: Wed, 23 Nov 2022 18:24:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=AA=E4=BA=BA=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E4=B8=8D=E6=94=AF=E6=8C=81=E5=86=85=E5=AE=B9=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=89=8B=E6=9C=BA:=E9=9A=90=E8=97=8F=E6=89=93?= =?UTF-8?q?=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/app.js | 2 +- dist/app.js.LICENSE.txt | 8 + dist/common.wxss | 28 +- .../activityList/components/details/index.js | 2 +- .../components/details/index.js.LICENSE.txt | 26 ++ dist/pages/home/index.js | 2 +- dist/pages/home/index.js.LICENSE.txt | 76 +++ dist/pages/home/index.wxss | 16 + dist/pages/my/index.js | 2 +- dist/runtime.js | 2 +- dist/taro.js | 2 +- dist/vendors.js | 2 +- dist/vendors.js.LICENSE.txt | 96 ---- src/pages/home/components/CheckIn/index.tsx | 432 +++++++++--------- src/pages/home/index.tsx | 4 +- src/pages/my/index.tsx | 4 +- 16 files changed, 359 insertions(+), 345 deletions(-) diff --git a/dist/app.js b/dist/app.js index 1f3f6f5..bb5d1b8 100644 --- a/dist/app.js +++ b/dist/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -"use strict";require("./prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-TS5T3MDA_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-5ZOEZXK4_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_lodash_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_moment_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-JHQVW7VO_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-YPK4VK53_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_plu-b2bd19.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-HER2BAHA_js.js"),require("./prebundle/remoteEntry.js"),require("./prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_react_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_run-08648c.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_react-dom_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_taro_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94890.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94891.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94892.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94893.js"),require("./common"),require("./vendors"),require("./taro"),require("./runtime"),(wx.webpackJsonp=wx.webpackJsonp||[]).push([["app"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/app.ts":function(e,r,t){var n=t("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),o=t("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=t("./node_modules/@babel/runtime/helpers/esm/inherits.js"),u=t("./node_modules/@babel/runtime/helpers/esm/createSuper.js"),i=t("webpack/container/remote/@tarojs/taro"),a=t.n(i),d=t("webpack/container/remote/react"),p=t("./config.js"),l=function(e){(0,s.default)(App,e);var r=(0,u.default)(App);function App(){return(0,n.default)(this,App),r.apply(this,arguments)}return(0,o.default)(App,[{key:"componentDidMount",value:function componentDidMount(){a().cloud.init({env:p.envConfig,traceUser:!0}),new(a().cloud.Cloud)({resourceEnv:p.envConfig}).init()}},{key:"componentDidShow",value:function componentDidShow(){}},{key:"componentDidHide",value:function componentDidHide(){}},{key:"render",value:function render(){return this.props.children}}]),App}(d.Component);r.default=l},"./src/app.ts":function(e,r,t){t("webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime");var n=t("webpack/container/remote/@tarojs/runtime"),o=t("webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime"),s=t("webpack/container/remote/@tarojs/taro"),u=t("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/app.ts"),i=t("webpack/container/remote/react"),a=t("webpack/container/remote/react-dom"),d=t.n(a),p={pages:["pages/home/index","pages/home/components/CheckIn/index","pages/home/components/Certified/index","pages/activityList/index","pages/formSubmit/index","pages/activityList/components/details/index","pages/mountainPeak/index","pages/my/index","pages/my/components/Version/index","pages/my/components/AbountUs/index","pages/my/components/CheckinDetail/index"],permission:{"scope.userLocation":{desc:"你的位置信息将用于小程序位置接口的效果展示"}},requiredPrivateInfos:["getLocation","chooseLocation"],window:{backgroundTextStyle:"light",navigationBarBackgroundColor:"#fff",navigationBarTitleText:"WeChat",navigationBarTextStyle:"black"}};n.window.__taroAppConfig=p;App((0,o.createReactApp)(u.default,i,d(),p));(0,s.initPxTransform)({designWidth:750,deviceRatio:{640:1.17,750:1,828:.905}})},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,r,t){function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(r,{default:function(){return _assertThisInitialized}})},"./node_modules/@babel/runtime/helpers/esm/createSuper.js":function(e,r,t){t.d(r,{default:function(){return _createSuper}});var n=t("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),o=t("./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js"),s=t("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");function _createSuper(e){var r=(0,o.default)();return function _createSuperInternal(){var t,o=(0,n.default)(e);if(r){var u=(0,n.default)(this).constructor;t=Reflect.construct(o,arguments,u)}else t=o.apply(this,arguments);return(0,s.default)(this,t)}}},"./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":function(e,r,t){function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}t.d(r,{default:function(){return _getPrototypeOf}})},"./node_modules/@babel/runtime/helpers/esm/inherits.js":function(e,r,t){t.d(r,{default:function(){return _inherits}});var n=t("./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");function _inherits(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&(0,n.default)(e,r)}},"./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js":function(e,r,t){function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}t.d(r,{default:function(){return _isNativeReflectConstruct}})},"./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":function(e,r,t){t.d(r,{default:function(){return _possibleConstructorReturn}});var n=t("./node_modules/@babel/runtime/helpers/esm/typeof.js"),o=t("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");function _possibleConstructorReturn(e,r){if(r&&("object"===(0,n.default)(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.default)(e)}},"./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":function(e,r,t){function _setPrototypeOf(e,r){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,r){return e.__proto__=r,e},_setPrototypeOf(e,r)}t.d(r,{default:function(){return _setPrototypeOf}})}},function(e){e.O(0,["vendors","common"],(function(){return r="./src/app.ts",e(e.s=r);var r}));e.O()}]); \ No newline at end of file +"use strict";require("./prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-TS5T3MDA_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-5ZOEZXK4_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_lodash_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_moment_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-JHQVW7VO_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-YPK4VK53_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_plu-b2bd19.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-HER2BAHA_js.js"),require("./prebundle/remoteEntry.js"),require("./prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_react_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_run-08648c.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_react-dom_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_taro_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94890.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94891.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94892.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94893.js"),require("./common"),require("./vendors"),require("./taro"),require("./runtime"),(wx.webpackJsonp=wx.webpackJsonp||[]).push([["app"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/app.ts":function(e,r,t){var n=t("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),o=t("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=t("./node_modules/@babel/runtime/helpers/esm/inherits.js"),u=t("./node_modules/@babel/runtime/helpers/esm/createSuper.js"),i=t("webpack/container/remote/@tarojs/taro"),a=t.n(i),d=t("webpack/container/remote/react"),p=t("./config.js"),l=function(e){(0,s.default)(App,e);var r=(0,u.default)(App);function App(){return(0,n.default)(this,App),r.apply(this,arguments)}return(0,o.default)(App,[{key:"componentDidMount",value:function componentDidMount(){a().cloud.init({env:p.envConfig,traceUser:!0}),new(a().cloud.Cloud)({resourceEnv:p.envConfig}).init()}},{key:"componentDidShow",value:function componentDidShow(){}},{key:"componentDidHide",value:function componentDidHide(){}},{key:"render",value:function render(){return this.props.children}}]),App}(d.Component);r.default=l},"./src/app.ts":function(e,r,t){t("webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime");var n=t("webpack/container/remote/@tarojs/runtime"),o=t("webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime"),s=t("webpack/container/remote/@tarojs/taro"),u=t("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/app.ts"),i=t("webpack/container/remote/react"),a=t("webpack/container/remote/react-dom"),d=t.n(a),p={pages:["pages/home/index","pages/home/components/CheckIn/index","pages/home/components/Certified/index","pages/activityList/index","pages/formSubmit/index","pages/activityList/components/details/index","pages/mountainPeak/index","pages/my/index","pages/my/components/Version/index","pages/my/components/AbountUs/index","pages/my/components/CheckinDetail/index"],permission:{"scope.userLocation":{desc:"你的位置信息将用于小程序位置接口的效果展示"}},requiredPrivateInfos:["getLocation","chooseLocation"],window:{backgroundTextStyle:"light",navigationBarBackgroundColor:"#fff",navigationBarTitleText:"WeChat",navigationBarTextStyle:"black"}};n.window.__taroAppConfig=p;App((0,o.createReactApp)(u.default,i,d(),p));(0,s.initPxTransform)({designWidth:750,deviceRatio:{640:1.17,750:1,828:.905}})},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,r,t){function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(r,{default:function(){return _assertThisInitialized}})},"./node_modules/@babel/runtime/helpers/esm/classCallCheck.js":function(e,r,t){function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}t.d(r,{default:function(){return _classCallCheck}})},"./node_modules/@babel/runtime/helpers/esm/createClass.js":function(e,r,t){function _defineProperties(e,r){for(var t=0;t=e.columnNum&&!e.square?(0,r.addUnit)(e.gutter):null})}function contentStyle(e){return e.square?(0,o.style)({right:(0,r.addUnit)(e.gutter),bottom:(0,r.addUnit)(e.gutter),height:"auto"}):""}},"./node_modules/@antmjs/vantui/es/grid/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/grid/wxs.js"),c=n("webpack/container/remote/react/jsx-runtime"),l=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];t.default=function Grid(e){var t=e.gutter,n=void 0===t?null:t,u=e.clickable,d=e.columnNum,m=void 0===d?4:d,f=e.center,p=void 0===f||f,v=e.border,h=void 0===v||v,j=e.direction,b=e.iconSize,g=void 0===b?"48":b,y=e.square,w=e.reverse,x=void 0!==w&&w,_=e.className,S=void 0===_?"":_,k=e.style,C=void 0===k?{}:k,P=(0,o.default)(e,l),O=(0,a.useRef)([]),N=(0,a.useCallback)((function(){O.current.forEach((function(e){e.updateStyle()}))}),[]);(0,a.useEffect)((function(){N()}),[N]);var T=(0,a.useCallback)((function(e,t){O.current[e]=t}),[]),D=(0,a.useMemo)((function(){var e=[];return P.children&&Array.isArray(P.children)&&P.children.forEach((function(t,o){e.push((0,a.cloneElement)(t,{setChildrenInstance:T,key:o,index:o,parentInstance:{columnNum:m,border:h,square:y,gutter:n,clickable:u,center:p,direction:j,reverse:x,iconSize:g}}))})),e}),[P.children,m]);return(0,c.jsx)(r.View,{className:"van-grid "+(h&&!n?"van-hairline--top":"")+" "+S,style:i.style([s.rootStyle({gutter:n}),C]),children:D})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function rootStyle(e){return(0,o.style)({"padding-left":(0,r.addUnit)(e.gutter)})}},"./node_modules/@antmjs/vantui/es/notice-bar/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("webpack/container/remote/@tarojs/taro"),s=n("webpack/container/remote/react"),c=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/common/utils.js"),d=n("./node_modules/@antmjs/vantui/es/icon/index.js"),m=n("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),f=n("webpack/container/remote/react/jsx-runtime"),p=["text","mode","url","openType","delay","speed","scrollable","leftIcon","color","backgroundColor","background","wrapable","renderLeftIcon","renderRightIcon","onClick","onClose","style","className","children"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,h((function(t){return _objectSpread(_objectSpread({},t),{},{animationData:b.current.resetAnimation.translateX(e?0:b.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){h((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:b.current.animation.translateX(-b.current.contentWidth).step().export()})}))}))}),10),b.current.timer=setTimeout((function(){H()}),b.current.duration)}),[]),$=(0,s.useCallback)((function(){(0,u.requestAnimationFrame)((function(){Promise.all([(0,u.getRect)(null,".van-notice-bar__content_".concat(o.unitag)),(0,u.getRect)(null,".van-notice-bar__wrap_".concat(o.unitag))]).then((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&t.width&&n.width&&!1!==I&&(0,i.nextTick)((function(){(I||n.width<=t.width)&&(b.current.wrapWidth=n.width,b.current.contentWidth=t.width,b.current.duration=(n.width+t.width)/T*1e3,b.current.animation=(0,i.createAnimation)({duration:b.current.duration,timingFunction:"linear",delay:O}),H(!0))}))}))}))}),[o.unitag,I,T,O,H]),J=(0,s.useCallback)((function(e){"closeable"===x&&(b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,h((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==K||K(e))}),[x,K]);return o.show&&(0,f.jsxs)(c.View,_objectSpread(_objectSpread({className:l.bem("notice-bar",{withicon:x,wrapable:F})+" ".concat(B||""),style:l.style([m.rootStyle({color:q,backgroundColor:M,background:R}),W])},G),{},{onClick:L,children:[A?(0,f.jsx)(d.default,{name:A,className:"van-notice-bar__left-icon"}):X,(0,f.jsx)(c.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,f.jsxs)(c.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==I||F?"":"van-ellipsis"),animation:o.animationData,children:[y,!y&&U]})}),"closeable"===x?(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:J}):"link"===x?(0,f.jsx)(c.Navigator,{url:S,openType:C,children:(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):Y]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function rootStyle(e){return(0,o.style)({color:e.color,"background-color":e.backgroundColor,background:e.background})}},"./node_modules/@antmjs/vantui/es/search/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/field/index.js"),u=n("webpack/container/remote/react/jsx-runtime"),d=["value","defaultValue","label","focus","error","disabled","readonly","inputAlign","showAction","leftIcon","rightIcon","placeholder","placeholderStyle","actionText","background","maxlength","shape","clearable","clearTrigger","clearIcon","renderLabel","renderLeftIcon","renderRightIcon","renderAction","onFocus","onBlur","onChange","onClear","onClickInput","onSearch","onCancel","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=me&&xe({pace:-me})},ge=function prev(){be(),Pe(),ke((function(){ke((function(){N.current.moving=!1,xe({pace:-1,isEmit:!0})}))}))},ye=function next(){be(),Pe(),ke((function(){ke((function(){N.current.moving=!1,xe({pace:1,isEmit:!0})}))}))},we=function to(e){be(),Pe(),ke((function(){ke((function(){var t;N.current.moving=!1,t=c.loop&&me===e?0===R?0:e:e%me,xe({pace:t-R,isEmit:!0})}))}))},xe=function move(e){var t=e.pace,n=void 0===t?0:t,o=e.offset,r=void 0===o?0:o,a=e.isEmit,i=void 0!==a&&a;if(!(me<=1)){var s=_e(n),l=Se(s,r);if(c.loop){if(Array.isArray(d)&&d[0]&&l!==ve){var u=l0;te[me-1]=m?-fe:0}ne(te)}i&&R!==s&&c.onChange&&c.onChange((s+me)%me),R=s,F(s),Q(l),Ne(l)}},_e=function getActive(e){if(e){var t=R+e;return c.loop?Ce(t,-1,me):Ce(t,0,me-1)}return R},Se=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(se);c.loop||(n=Math.min(n,-ve));var o=t-n;return c.loop||(o=Ce(o,ve,0)),o},ke=function requestFrame(e){b.requestAnimationFrame.call(b,e)},Ce=function range(e,t,n){return Math.min(Math.max(e,t),n)},Pe=function touchReset(){le.startX=0,le.startY=0,le.deltaX=0,le.deltaY=0,le.offsetX=0,le.offsetY=0,le.delta=0,le.stateDirection="",le.touchTime=0},Oe=m()((n={},(0,i.default)(n,"van-swiper__inner",!0),(0,i.default)(n,"van-swiper__vertical",I),n)),Ne=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J,t=O.current,n=0;if(S){var o=I?U:L,r=I?(null==E?void 0:E.height)-o:(null==E?void 0:E.width)-o;n=e+(R!==me-1||c.loop?r/2:-r/2)}else n=e;t.style.transitionDuration="".concat(N.current.moving?0:c.duration,"ms"),t.style[I?"height":"width"]="".concat(Number(se)*me,"px"),t.style[I?"width":"height"]="".concat(I?L:U,"px"),t.style.transform="translate3D".concat(I?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,u.useEffect)((function(){N.current.activePagination=(R+me)%me}),[R]);var Te=function queryRect(e){return new Promise((function(t){var n=(0,f.createSelectorQuery)();n.select("#".concat(e.id))&&n.select("#".concat(e.id)).boundingClientRect(),n.exec((function(e){t(e[0])}))}))},De=function(){var e=(0,o.default)(l().mark((function _callee(){var e,t,n,o,r,a,i=arguments;return l().wrap((function _callee$(s){for(;;)switch(s.prev=s.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:+c.initPage,s.next=3,Te(P.current);case 3:t=s.sent,n=Math.max(Math.min(me-1,e),0),o=c.width?+c.width:null==t?void 0:t.width,r=c.height?+c.height:null==t?void 0:t.height,se=I?r:o,fe=me*Number(se),a=Se(n),N.current.moving=!0,ae&&(N.current.moving=!1),q(t),F(n),K(o),G(r),Q(a),ie(!0);case 18:case"end":return s.stop()}}),_callee)})));return function init(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){ae&&Ne()}),[I,L,U,J,ae]),(0,u.useEffect)((function(){return function(){ie(!1)}}),[]),(0,u.useEffect)((function(){he(),je()}),[d]),(0,u.useEffect)((function(){De()}),[c.initPage]),(0,u.useEffect)((function(){return function(){he()}}),[]),(0,f.useReady)((function(){De(),p().nextTick((function(){setTimeout((function(){he(),je()}),16)}))}));var Ie=function itemStyle(e){var t={},n=c.direction||w,o=se;o&&(t["horizontal"===n?"width":"height"]="".concat(o,"px"));var r=te[e];return r&&(t.transform="translate3D".concat("horizontal"===n?"(".concat(r,"px,0,0)"):"(0,".concat(r,"px,0)"))),t};return(0,u.useImperativeHandle)(t,(function(){return{to:we,next:ye,prev:ge}})),(0,j.jsx)(h.DataContext.Provider,{value:pe,children:(0,j.jsxs)(v.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(x),ref:P},C),{},{id:"container-"+D,onTouchStart:function onTouchStart(e){c.isPreventDefault&&e.preventDefault(),c.isStopPropagation&&e.stopPropagation(),c.touchable&&(!function touchStart(e){var t,n;Pe(),le.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,le.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),le.touchTime=Date.now(),he(),be())},onTouchMove:function onTouchMove(e){c.touchable&&N.current.moving&&(!function touchMove(e){var t,n;le.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-le.startX,le.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-le.startY,le.offsetX=Math.abs(le.deltaX),le.offsetY=Math.abs(le.deltaY),le.delta=I?le.deltaY:le.deltaX,le.stateDirection||(le.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(le.offsetX,le.offsetY))}(e),le.stateDirection===c.direction&&xe({offset:le.delta}))},onTouchEnd:function onTouchEnd(){if(c.touchable&&N.current.moving){var e=le.delta/(Date.now()-le.touchTime),t=Math.abs(e)>.3||Math.abs(le.delta)>+(se/2).toFixed(2),n=0;if(N.current.moving=!1,t&&le.stateDirection===c.direction){var o=I?le.offsetY:le.offsetX;n=c.loop?o>0?le.delta>0?-1:1:0:-Math[le.delta>0?"ceil":"floor"](le.delta/se),xe({pace:n,isEmit:!0})}else le.delta?xe({pace:0}):Ne();je()}},catchMove:I,style:_objectSpread(_objectSpread({},k),{},{height:U}),children:[(0,j.jsxs)(v.View,{className:Oe,ref:O,children:[u.Children.map(de,(function(e,t){return(0,j.jsx)(v.View,{className:"van-swiper-item-wrapper",style:Ie(t),children:e},t)})),(0,j.jsx)(v.View,{className:"van-swiper-item-wrapper",style:Ie(0),children:de&&de.length?de[0]:""})]}),c.paginationVisible&&!("pageContent"in c)?(0,j.jsx)(v.View,{className:m()((s={},(0,i.default)(s,"van-swiper__pagination",!0),(0,i.default)(s,"van-swiper__pagination-vertical",I),s)),children:u.Children.map(de,(function(e,t){var n;return(0,j.jsx)(v.Text,{style:(R+me)%me===t?{backgroundColor:c.paginationColor}:void 0,className:m()((n={},(0,i.default)(n,"van-swiper__pagination-item",!0),(0,i.default)(n,"active",(R+me)%me===t),n))},t)}))}):(0,j.jsx)(v.View,{children:_})]}))})},x=(0,u.forwardRef)(w);t.default=x},"./node_modules/classnames/index.js":function(e,t,n){var o,r=n("webpack/container/remote/@tarojs/runtime").window,a=n("./node_modules/@babel/runtime/helpers/typeof.js").default;!function(){"use strict";var i={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.selector&&e.id!==t.selector.replace(/^#/,"")||(v(_objectSpread({},t)),pe(!!t.show))},n=function stopLoadingFn(){ge()},o=function closeFn(){he("close")};return(0,p.on)("alert",t),(0,p.on)("close",o),(0,p.on)("stopLoading",n),function(){(0,p.off)("alert",t),(0,p.off)("close",o),(0,p.off)("stopLoading",n)}}}),[he,ge,o,e.id]),(0,s.useEffect)((function(){return function(){(0,p.off)("confirm"),(0,p.off)("cancel"),(0,p.off)("alert"),(0,p.off)("close"),(0,p.off)("stopLoading")}}),[]),(0,g.jsxs)(m.default,{show:me,zIndex:O,overlay:w,className:"van-dialog van-dialog--"+_+" "+"".concat(te||""),style:h.style(["width: "+h.addUnit(S)+";",ee]),overlayStyle:k,closeOnClickOverlay:C,onClose:ve,children:[(N||X)&&(0,g.jsx)(i.View,{className:h.bem("dialog__header",{isolated:!(P||X)}),children:X||N&&(0,g.jsx)(g.Fragment,{children:N})}),Z||P&&(0,g.jsx)(i.View,{className:h.bem("dialog__message",[_,T,{hasTitle:N}]),children:(0,g.jsx)(i.Text,{className:"van-dialog__message-text",children:P})}),"round-button"===_?(0,g.jsxs)(d.default,{className:"van-dialog__footer--round-button",children:[E&&(0,g.jsx)(u.default,{loading:le,className:"van-dialog__button van-hairline--right van-dialog__cancel",style:D?{color:D}:{},onClick:ye,children:A}),M&&(0,g.jsx)(u.default,_objectSpread(_objectSpread({className:"van-dialog__button van-dialog__confirm",style:I?{color:I}:{},loading:ae,openType:V,sessionFrom:B,sendMessageTitle:G,sendMessagePath:R,sendMessageImg:K,appParameter:q,onClick:je},ne),{},{children:Y}))]}):(0,g.jsxs)(i.View,{className:"van-hairline--top van-dialog__footer",children:[E&&(0,g.jsx)(f.default,{size:"large",loading:le,className:"van-dialog__button van-dialog__cancel",style:D?{color:D}:{},onClick:ye,children:A}),M&&(0,g.jsx)(f.default,_objectSpread(_objectSpread({size:"large",className:"van-dialog__button van-dialog__confirm ".concat(E?"van-hairline--left":""),loading:ae,style:I?{color:I}:{},openType:V,sessionFrom:B,sendMessageTitle:G,sendMessagePath:R,sendMessageImg:K,showMessageCard:z,appParameter:q,onClick:je},ne),{},{children:Y}))]})]})}Dialog.alert=function(e){return v.default.alert(e)},Dialog.confirm=function(e){return v.default.confirm(e)},Dialog.close=function(){v.default.close()},Dialog.stopLoading=function(){v.default.stopLoading()},Dialog.setDefaultOptions=function(e){v.default.setDefaultOptions(e)},Dialog.resetDefaultOptions=function(){v.default.resetDefaultOptions()},t.default=Dialog},"./node_modules/@antmjs/vantui/es/field/index.js":function(e,t,n){"use strict";n.d(t,{Field:function(){return Field}});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/@tarojs/taro"),i=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/cell/index.js"),u=n("./node_modules/@antmjs/vantui/es/icon/index.js"),d=(n("./node_modules/@antmjs/vantui/es/utils/index.js"),n("./node_modules/@antmjs/vantui/es/field/wxs.js")),f=n("webpack/container/remote/react/jsx-runtime");n("webpack/container/remote/@tarojs/runtime").document;function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=W}),children:b.length>=W?W:b.length}),"/"+W]}),U&&(0,f.jsx)(s.View,{className:c.bem("field__error-message",[X,{disabled:A,error:H}]),children:U})]})}},"./node_modules/@antmjs/vantui/es/field/wxs.js":function(e,t,n){"use strict";n.d(t,{inputStyle:function(){return inputStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function inputStyle(e){return e&&"Object"===e.constructor.name?(0,o.style)({"min-height":(0,r.addUnit)(e.minHeight),"max-height":(0,r.addUnit)(e.maxHeight)}):""}},"./node_modules/@antmjs/vantui/es/goods-action-button/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/button/index.js"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["text","url","linkType","plain","type","style","isFirst","isLast","onClick","children","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=e.columnNum&&!e.square?(0,r.addUnit)(e.gutter):null})}function contentStyle(e){return e.square?(0,o.style)({right:(0,r.addUnit)(e.gutter),bottom:(0,r.addUnit)(e.gutter),height:"auto"}):""}},"./node_modules/@antmjs/vantui/es/grid/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/grid/wxs.js"),c=n("webpack/container/remote/react/jsx-runtime"),l=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];t.default=function Grid(e){var t=e.gutter,n=void 0===t?null:t,u=e.clickable,d=e.columnNum,f=void 0===d?4:d,m=e.center,p=void 0===m||m,h=e.border,v=void 0===h||h,g=e.direction,b=e.iconSize,j=void 0===b?"48":b,y=e.square,w=e.reverse,x=void 0!==w&&w,_=e.className,O=void 0===_?"":_,S=e.style,k=void 0===S?{}:S,C=(0,o.default)(e,l),P=(0,a.useRef)([]),N=(0,a.useCallback)((function(){P.current.forEach((function(e){e.updateStyle()}))}),[]);(0,a.useEffect)((function(){N()}),[N]);var T=(0,a.useCallback)((function(e,t){P.current[e]=t}),[]),E=(0,a.useMemo)((function(){var e=[];return C.children&&Array.isArray(C.children)&&C.children.forEach((function(t,o){e.push((0,a.cloneElement)(t,{setChildrenInstance:T,key:o,index:o,parentInstance:{columnNum:f,border:v,square:y,gutter:n,clickable:u,center:p,direction:g,reverse:x,iconSize:j}}))})),e}),[C.children,f]);return(0,c.jsx)(r.View,{className:"van-grid "+(v&&!n?"van-hairline--top":"")+" "+O,style:i.style([s.rootStyle({gutter:n}),k]),children:E})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function rootStyle(e){return(0,o.style)({"padding-left":(0,r.addUnit)(e.gutter)})}},"./node_modules/@antmjs/vantui/es/notice-bar/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("webpack/container/remote/@tarojs/taro"),s=n("webpack/container/remote/react"),c=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/common/utils.js"),d=n("./node_modules/@antmjs/vantui/es/icon/index.js"),f=n("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),m=n("webpack/container/remote/react/jsx-runtime"),p=["text","mode","url","openType","delay","speed","scrollable","leftIcon","color","backgroundColor","background","wrapable","renderLeftIcon","renderRightIcon","onClick","onClose","style","className","children"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,v((function(t){return _objectSpread(_objectSpread({},t),{},{animationData:b.current.resetAnimation.translateX(e?0:b.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){v((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:b.current.animation.translateX(-b.current.contentWidth).step().export()})}))}))}),10),b.current.timer=setTimeout((function(){U()}),b.current.duration)}),[]),$=(0,s.useCallback)((function(){(0,u.requestAnimationFrame)((function(){Promise.all([(0,u.getRect)(null,".van-notice-bar__content_".concat(o.unitag)),(0,u.getRect)(null,".van-notice-bar__wrap_".concat(o.unitag))]).then((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&t.width&&n.width&&!1!==D&&(0,i.nextTick)((function(){(D||n.width<=t.width)&&(b.current.wrapWidth=n.width,b.current.contentWidth=t.width,b.current.duration=(n.width+t.width)/T*1e3,b.current.animation=(0,i.createAnimation)({duration:b.current.duration,timingFunction:"linear",delay:P}),U(!0))}))}))}))}),[o.unitag,D,T,P,U]),J=(0,s.useCallback)((function(e){"closeable"===x&&(b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,v((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==q||q(e))}),[x,q]);return o.show&&(0,m.jsxs)(c.View,_objectSpread(_objectSpread({className:l.bem("notice-bar",{withicon:x,wrapable:G})+" ".concat(Y||""),style:l.style([f.rootStyle({color:L,backgroundColor:V,background:B}),W])},H),{},{onClick:z,children:[F?(0,m.jsx)(d.default,{name:F,className:"van-notice-bar__left-icon"}):R,(0,m.jsx)(c.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,m.jsxs)(c.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==D||G?"":"van-ellipsis"),animation:o.animationData,children:[y,!y&&X]})}),"closeable"===x?(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:J}):"link"===x?(0,m.jsx)(c.Navigator,{url:O,openType:k,children:(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):K]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function rootStyle(e){return(0,o.style)({color:e.color,"background-color":e.backgroundColor,background:e.background})}},"./node_modules/@antmjs/vantui/es/search/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/field/index.js"),u=n("webpack/container/remote/react/jsx-runtime"),d=["value","defaultValue","label","focus","error","disabled","readonly","inputAlign","showAction","leftIcon","rightIcon","placeholder","placeholderStyle","actionText","background","maxlength","shape","clearable","clearTrigger","clearIcon","renderLabel","renderLeftIcon","renderRightIcon","renderAction","onFocus","onBlur","onChange","onClear","onClickInput","onSearch","onCancel","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=fe&&xe({pace:-fe})},je=function prev(){be(),Ce(),Se((function(){Se((function(){N.current.moving=!1,xe({pace:-1,isEmit:!0})}))}))},ye=function next(){be(),Ce(),Se((function(){Se((function(){N.current.moving=!1,xe({pace:1,isEmit:!0})}))}))},we=function to(e){be(),Ce(),Se((function(){Se((function(){var t;N.current.moving=!1,t=c.loop&&fe===e?0===B?0:e:e%fe,xe({pace:t-B,isEmit:!0})}))}))},xe=function move(e){var t=e.pace,n=void 0===t?0:t,o=e.offset,r=void 0===o?0:o,a=e.isEmit,i=void 0!==a&&a;if(!(fe<=1)){var s=_e(n),l=Oe(s,r);if(c.loop){if(Array.isArray(d)&&d[0]&&l!==he){var u=l0;te[fe-1]=f?-me:0}ne(te)}i&&B!==s&&c.onChange&&c.onChange((s+fe)%fe),B=s,G(s),Q(l),Ne(l)}},_e=function getActive(e){if(e){var t=B+e;return c.loop?ke(t,-1,fe):ke(t,0,fe-1)}return B},Oe=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(se);c.loop||(n=Math.min(n,-he));var o=t-n;return c.loop||(o=ke(o,he,0)),o},Se=function requestFrame(e){b.requestAnimationFrame.call(b,e)},ke=function range(e,t,n){return Math.min(Math.max(e,t),n)},Ce=function touchReset(){le.startX=0,le.startY=0,le.deltaX=0,le.deltaY=0,le.offsetX=0,le.offsetY=0,le.delta=0,le.stateDirection="",le.touchTime=0},Pe=f()((n={},(0,i.default)(n,"van-swiper__inner",!0),(0,i.default)(n,"van-swiper__vertical",D),n)),Ne=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J,t=P.current,n=0;if(O){var o=D?X:z,r=D?(null==A?void 0:A.height)-o:(null==A?void 0:A.width)-o;n=e+(B!==fe-1||c.loop?r/2:-r/2)}else n=e;t.style.transitionDuration="".concat(N.current.moving?0:c.duration,"ms"),t.style[D?"height":"width"]="".concat(Number(se)*fe,"px"),t.style[D?"width":"height"]="".concat(D?z:X,"px"),t.style.transform="translate3D".concat(D?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,u.useEffect)((function(){N.current.activePagination=(B+fe)%fe}),[B]);var Te=function queryRect(e){return new Promise((function(t){var n=(0,m.createSelectorQuery)();n.select("#".concat(e.id))&&n.select("#".concat(e.id)).boundingClientRect(),n.exec((function(e){t(e[0])}))}))},Ee=function(){var e=(0,o.default)(l().mark((function _callee(){var e,t,n,o,r,a,i=arguments;return l().wrap((function _callee$(s){for(;;)switch(s.prev=s.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:+c.initPage,s.next=3,Te(C.current);case 3:t=s.sent,n=Math.max(Math.min(fe-1,e),0),o=c.width?+c.width:null==t?void 0:t.width,r=c.height?+c.height:null==t?void 0:t.height,se=D?r:o,me=fe*Number(se),a=Oe(n),N.current.moving=!0,ae&&(N.current.moving=!1),L(t),G(n),q(o),H(r),Q(a),ie(!0);case 18:case"end":return s.stop()}}),_callee)})));return function init(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){ae&&Ne()}),[D,z,X,J,ae]),(0,u.useEffect)((function(){return function(){ie(!1)}}),[]),(0,u.useEffect)((function(){ve(),ge()}),[d]),(0,u.useEffect)((function(){Ee()}),[c.initPage]),(0,u.useEffect)((function(){return function(){ve()}}),[]),(0,m.useReady)((function(){Ee(),p().nextTick((function(){setTimeout((function(){ve(),ge()}),16)}))}));var De=function itemStyle(e){var t={},n=c.direction||w,o=se;o&&(t["horizontal"===n?"width":"height"]="".concat(o,"px"));var r=te[e];return r&&(t.transform="translate3D".concat("horizontal"===n?"(".concat(r,"px,0,0)"):"(0,".concat(r,"px,0)"))),t};return(0,u.useImperativeHandle)(t,(function(){return{to:we,next:ye,prev:je}})),(0,g.jsx)(v.DataContext.Provider,{value:pe,children:(0,g.jsxs)(h.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(x),ref:C},k),{},{id:"container-"+E,onTouchStart:function onTouchStart(e){c.isPreventDefault&&e.preventDefault(),c.isStopPropagation&&e.stopPropagation(),c.touchable&&(!function touchStart(e){var t,n;Ce(),le.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,le.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),le.touchTime=Date.now(),ve(),be())},onTouchMove:function onTouchMove(e){c.touchable&&N.current.moving&&(!function touchMove(e){var t,n;le.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-le.startX,le.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-le.startY,le.offsetX=Math.abs(le.deltaX),le.offsetY=Math.abs(le.deltaY),le.delta=D?le.deltaY:le.deltaX,le.stateDirection||(le.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(le.offsetX,le.offsetY))}(e),le.stateDirection===c.direction&&xe({offset:le.delta}))},onTouchEnd:function onTouchEnd(){if(c.touchable&&N.current.moving){var e=le.delta/(Date.now()-le.touchTime),t=Math.abs(e)>.3||Math.abs(le.delta)>+(se/2).toFixed(2),n=0;if(N.current.moving=!1,t&&le.stateDirection===c.direction){var o=D?le.offsetY:le.offsetX;n=c.loop?o>0?le.delta>0?-1:1:0:-Math[le.delta>0?"ceil":"floor"](le.delta/se),xe({pace:n,isEmit:!0})}else le.delta?xe({pace:0}):Ne();ge()}},catchMove:D,style:_objectSpread(_objectSpread({},S),{},{height:X}),children:[(0,g.jsxs)(h.View,{className:Pe,ref:P,children:[u.Children.map(de,(function(e,t){return(0,g.jsx)(h.View,{className:"van-swiper-item-wrapper",style:De(t),children:e},t)})),(0,g.jsx)(h.View,{className:"van-swiper-item-wrapper",style:De(0),children:de&&de.length?de[0]:""})]}),c.paginationVisible&&!("pageContent"in c)?(0,g.jsx)(h.View,{className:f()((s={},(0,i.default)(s,"van-swiper__pagination",!0),(0,i.default)(s,"van-swiper__pagination-vertical",D),s)),children:u.Children.map(de,(function(e,t){var n;return(0,g.jsx)(h.Text,{style:(B+fe)%fe===t?{backgroundColor:c.paginationColor}:void 0,className:f()((n={},(0,i.default)(n,"van-swiper__pagination-item",!0),(0,i.default)(n,"active",(B+fe)%fe===t),n))},t)}))}):(0,g.jsx)(h.View,{children:_})]}))})},x=(0,u.forwardRef)(w);t.default=x},"./node_modules/@antmjs/vantui/es/utils/index.js":function(e,t,n){"use strict";n.d(t,{resizeTextarea:function(){return resizeTextarea}});n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),n("webpack/container/remote/react"),n("webpack/container/remote/@tarojs/taro");var o=n("./node_modules/@antmjs/vantui/es/utils/type.js"),r=n("webpack/container/remote/@tarojs/runtime").window,a=n("webpack/container/remote/@tarojs/runtime").document;function setScrollTop(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function resizeTextarea(e,t){var n=function getRootScrollTop(){return r.pageYOffset||a.documentElement.scrollTop||a.body.scrollTop||0}();e.style.height="auto",e.style.lineHeight="inherit",e.rows=1;var i=e.scrollHeight;if(console.info(i),(0,o.isObject)(t)){var s=t.maxHeight,c=t.minHeight;void 0!==s&&(i=Math.min(i,"number"==typeof s?s:Number(s.replace("px","")))),void 0!==c&&(i=Math.max(i,"number"==typeof c?c:Number(c.replace("px",""))))}i&&(e.style.height="".concat(i,"px"),function setRootScrollTop(e){setScrollTop(r,e),setScrollTop(a.body,e)}(n))}},"./node_modules/@antmjs/vantui/es/utils/type.js":function(e,t,n){"use strict";function isString(e){return"[object String]"===toString.call(e)}function isNumber(e){return"[object Number]"===toString.call(e)}function isObject(e){return"[object Object]"===toString.call(e)}n.d(t,{isString:function(){return isString},isNumber:function(){return isNumber},isObject:function(){return isObject}})},"./node_modules/classnames/index.js":function(e,t,n){var o,r=n("webpack/container/remote/@tarojs/runtime").window,a=n("./node_modules/@babel/runtime/helpers/typeof.js").default;!function(){"use strict";var i={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var i=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(i&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),u}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;resetTryEntry(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:values(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}e.exports=_regeneratorRuntime,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/home/index.tsx",e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/dist/pages/home/index.js.LICENSE.txt b/dist/pages/home/index.js.LICENSE.txt index 02419af..18ac488 100644 --- a/dist/pages/home/index.js.LICENSE.txt +++ b/dist/pages/home/index.js.LICENSE.txt @@ -8,6 +8,12 @@ /*! ../../utils/index */ +/*! ../button */ + +/*! ../button/index */ + +/*! ../cell */ + /*! ../common/jumpLink */ /*! ../common/utils */ @@ -18,18 +24,36 @@ /*! ../field */ +/*! ../goods-action-button/index */ + +/*! ../goods-action/index */ + +/*! ../helpers/regeneratorRuntime */ + +/*! ../icon */ + /*! ../icon/index */ +/*! ../popup/index */ + /*! ../swiper/context */ +/*! ../utils */ + /*! ../wxs/add-unit */ /*! ../wxs/style */ /*! ../wxs/utils */ +/*! ./../wxs/utils */ + /*! ./context */ +/*! ./dialog */ + +/*! ./events */ + /*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ /*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ @@ -40,6 +64,10 @@ /*! ./swiper */ +/*! ./type */ + +/*! ./typeof.js */ + /*! ./wxs */ /*! @antmjs/vantui/es/dialog */ @@ -82,10 +110,14 @@ /*! classnames */ +/*! rc-util/lib/Children/toArray */ + /*! react */ /*! react/jsx-runtime */ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ + /*!**********************************!*\ !*** ./src/pages/home/index.tsx ***! \**********************************/ @@ -98,10 +130,30 @@ !*** ./node_modules/@antmjs/vantui/es/grid/wxs.js ***! \****************************************************/ +/*!*****************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/field/wxs.js ***! + \*****************************************************/ + /*!******************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/grid/index.js ***! \******************************************************/ +/*!******************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/utils/type.js ***! + \******************************************************/ + +/*!*******************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/field/index.js ***! + \*******************************************************/ + +/*!*******************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/utils/index.js ***! + \*******************************************************/ + +/*!********************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/dialog/index.js ***! + \********************************************************/ + /*!********************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/search/index.js ***! \********************************************************/ @@ -110,6 +162,14 @@ !*** ./node_modules/@antmjs/vantui/es/swiper/index.js ***! \********************************************************/ +/*!*********************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/dialog/dialog.js ***! + \*********************************************************/ + +/*!*********************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/dialog/events.js ***! + \*********************************************************/ + /*!*********************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/grid-item/wxs.js ***! \*********************************************************/ @@ -126,6 +186,10 @@ !*** ./node_modules/@antmjs/vantui/es/swiper/context.js ***! \**********************************************************/ +/*!**********************************************************!*\ + !*** ./node_modules/@babel/runtime/regenerator/index.js ***! + \**********************************************************/ + /*!***********************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/grid-item/index.js ***! \***********************************************************/ @@ -138,6 +202,18 @@ !*** ./node_modules/@antmjs/vantui/es/swiper-item/index.js ***! \*************************************************************/ +/*!**************************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/goods-action/index.js ***! + \**************************************************************/ + +/*!*******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! + \*******************************************************************/ + +/*!*********************************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/goods-action-button/index.js ***! + \*********************************************************************/ + /*!************************************************************************************************************************************************!*\ !*** ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/home/index.tsx ***! \************************************************************************************************************************************************/ diff --git a/dist/pages/home/index.wxss b/dist/pages/home/index.wxss index e8df194..78db29f 100644 --- a/dist/pages/home/index.wxss +++ b/dist/pages/home/index.wxss @@ -10,6 +10,10 @@ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/swiper/index.css ***! \***********************************************************************************************************************************************************************************************************************/ .van-swiper{position:relative;z-index:1;display:-webkit-flex;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;transition-property:transform,-webkit-transform;box-sizing:content-box;overflow:hidden}.van-swiper-item{height:100%;position:relative}.van-swiper__inner{display:-webkit-flex;display:flex;height:100%}.van-swiper__vertical{-webkit-flex-direction:column;flex-direction:column}.van-swiper__pagination{display:-webkit-flex;display:flex;position:absolute;left:50%;bottom:24rpx;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.van-swiper__pagination-item{width:16rpx;height:6rpx;margin-right:14rpx;border-radius:4rpx;background-color:#ddd}.van-swiper__pagination-item:last-child{margin-right:0}.van-swiper__pagination-vertical{top:50%;left:24rpx;bottom:auto;-webkit-flex-direction:column;flex-direction:column;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.van-swiper__pagination-vertical .van-swiper__pagination-item{margin-bottom:10rpx} +/*!**********************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/field/index.css ***! + \**********************************************************************************************************************************************************************************************************************/ +.van-field__label{color:#646566;color:var(--field-label-color,#646566)}.van-field__label--disabled{color:#c8c9cc;color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.van-field__body--textarea{box-sizing:border-box;padding:6rpx 0;line-height:1.2em;min-height:48rpx;min-height:var(--cell-line-height,48rpx)}.van-field__body--textarea textarea{resize:none}.van-field__control:empty+.van-field__control{display:block}.van-field__control{position:relative;display:none;box-sizing:border-box;width:100%;margin:0;padding:0;line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;font-size:28rpx;color:#323233;color:var(--field-input-text-color,#323233);height:48rpx;height:var(--cell-line-height,48rpx);min-height:48rpx;min-height:var(--cell-line-height,48rpx)}.van-field__control .taro-textarea,.van-field__control .weui-input,.van-field__control input,.van-field__control textarea{font-size:28rpx}.van-field__control .weui-input,.van-field__control input{height:48rpx;height:var(--cell-line-height,48rpx);min-height:48rpx;min-height:var(--cell-line-height,48rpx);line-height:48rpx;line-height:var(--cell-line-height, 48rpx)}.van-field__control:empty{display:none}.van-field__control--textarea{height:148rpx;height:var(--field-text-area-min-height,148rpx);min-height:148rpx;min-height:var(--field-text-area-min-height,148rpx)}.van-field__control--error{color:#ee0a24;color:var(--field-input-error-text-color,#ee0a24)}.van-field__control--disabled{background-color:transparent;opacity:1;color:#c8c9cc;color:var(--field-input-disabled-text-color,#c8c9cc);-webkit-text-fill-color:#c8c9cc}.van-field__control--center{text-align:center}.van-field__control--right{text-align:right}.van-field__control--custom{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:48rpx;min-height:var(--cell-line-height,48rpx)}.van-field .autosize-height{height:auto}.van-field .autosize textarea{resize:none;overflow:hidden}.van-field__placeholder{position:absolute;top:0;right:0;left:0;pointer-events:none;color:#c8c9cc;color:var(--field-placeholder-text-color,#c8c9cc);-webkit-text-fill-color:#c8c9cc}.van-field__placeholder--error{color:#ee0a24;color:var(--field-error-message-color,#ee0a24);-webkit-text-fill-color:#ee0a24}.van-field__icon-root{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:48rpx;min-height:var(--cell-line-height,48rpx)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;vertical-align:middle;padding:0 16rpx;padding:0 var(--padding-xs,16rpx);margin-right:-16rpx;margin-right:var(--padding-xs,-16rpx)}.van-field__button,.van-field__clear-root,.van-field__icon-container{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear-root{font-size:32rpx;font-size:var(--field-clear-icon-size, 32rpx);color:#c8c9cc;color:var(--field-clear-icon-color,#c8c9cc)}.van-field__icon-container{font-size:32rpx;font-size:var(--field-icon-size, 32rpx);color:#969799;color:var(--field-icon-container-color,#969799)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:16rpx;padding-left:var(--padding-xs,16rpx)}.van-field__button:empty{display:none}.van-field__error-message{text-align:left;font-size:24rpx;font-size:var(--field-error-message-text-font-size, 24rpx);color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{text-align:right;margin-top:8rpx;margin-top:var(--padding-base,8rpx);color:#646566;color:var(--field-word-limit-color,#646566);font-size:24rpx;font-size:var(--field-word-limit-font-size, 24rpx);line-height:32rpx;line-height:var(--field-word-limit-line-height, 32rpx)}.van-field__word-num{display:inline}.van-field__word-num--full{color:#ee0a24;color:var(--field-word-num-full-color,#ee0a24)} /*!***********************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/search/index.css ***! \***********************************************************************************************************************************************************************************************************************/ @@ -18,6 +22,18 @@ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/notice-bar/index.css ***! \***************************************************************************************************************************************************************************************************************************/ .van-notice-bar{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:80rpx;height:var(--notice-bar-height,80rpx);padding:0 32rpx;padding:var(--notice-bar-padding,0 32rpx);font-size:28rpx;font-size:var(--notice-bar-font-size, 28rpx);color:#ed6a0c;color:var(--notice-bar-text-color,#ed6a0c);line-height:48rpx;line-height:var(--notice-bar-line-height, 48rpx);background-color:#fffbe8;background-color:var(--notice-bar-background-color,#fffbe8)}.van-notice-bar--withicon{position:relative;padding-right:80rpx}.van-notice-bar--wrapable{height:auto;padding:16rpx 32rpx;padding:var(--notice-bar-wrapable-padding,16rpx 32rpx)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal}.van-notice-bar__left-icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin-right:8rpx;vertical-align:middle;font-size:32rpx;font-size:var(--notice-bar-icon-size, 32rpx);min-width:44rpx;min-width:var(--notice-bar-icon-min-width,44rpx)}.van-notice-bar__right-icon{position:absolute;top:20rpx;right:30rpx;font-size:32rpx;font-size:var(--notice-bar-icon-size, 32rpx);min-width:44rpx;min-width:var(--notice-bar-icon-min-width,44rpx)}.van-notice-bar__wrap{position:relative;-webkit-flex:1;flex:1;overflow:hidden;height:48rpx;height:var(--notice-bar-line-height,48rpx)}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%} +/*!************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/goods-action-button/index.css ***! + \************************************************************************************************************************************************************************************************************************************/ +.van-goods-action-button{border-radius:0;height:80rpx;height:var(--goods-action-button-height,80rpx);line-height:40rpx;line-height:var(--goods-action-button-line-height, 40rpx);border-width:0}.van-goods-action-button--warning{background:-webkit-linear-gradient(left,#ffd01e,#ff8917);background:linear-gradient(to right,#ffd01e,#ff8917);background:var(--goods-action-button-warning-color,linear-gradient(to right,#ffd01e,#ff8917))}.van-goods-action-button--danger{background:-webkit-linear-gradient(left,#ff6034,#ee0a24);background:linear-gradient(to right,#ff6034,#ee0a24);background:var(--goods-action-button-danger-color,linear-gradient(to right,#ff6034,#ee0a24))}.van-goods-action-button--first{margin-left:10rpx;border-radius:999rpx 0 0 999rpx;border-radius:var(--goods-action-button-border-radius,999rpx) 0 0 var(--goods-action-button-border-radius,999rpx)}.van-goods-action-button--last{margin-right:10rpx;border-radius:0 999rpx 999rpx 0;border-radius:0 var(--goods-action-button-border-radius,999rpx) var(--goods-action-button-border-radius,999rpx) 0}.van-goods-action-button--first.van-goods-action-button--last{border-radius:999rpx;border-radius:var(--goods-action-button-border-radius,999rpx)}.van-goods-action-button--plain{background:#fff;background:var(--goods-action-button-plain-color,#fff)}.van-goods-action-button--plain+.van-goods-action-button--plain{border-left-width:0!important}.van-goods-action-button__inner{width:100%;font-weight:500!important;font-weight:var(--font-weight-bold,500)!important} +/*!*****************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/goods-action/index.css ***! + \*****************************************************************************************************************************************************************************************************************************/ +.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;box-sizing:content-box;z-index:806;z-index:var(--goods-action-z-index,806);height:100rpx;height:var(--goods-action-height,100rpx);background-color:#fff;background-color:var(--goods-action-background-color,#fff)}.van-goods-action--safe{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-goods-action taro-button-core+taro-button-core{margin-top:inherit} +/*!***********************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/dialog/index.css ***! + \***********************************************************************************************************************************************************************************************************************/ +.van-dialog{top:45%!important;overflow:hidden;width:640rpx;width:var(--dialog-width,640rpx);font-size:32rpx;font-size:var(--dialog-font-size, 32rpx);border-radius:32rpx;border-radius:var(--dialog-border-radius,32rpx);background-color:#fff;background-color:var(--dialog-background-color,#fff)}@media (max-width:642px){.van-dialog{width:90%;width:var(--dialog-small-screen-width,90%)}}.van-dialog taro-button-core+taro-button-core{margin-top:0}.van-dialog__header{text-align:center;padding-top:48rpx;padding-top:var(--dialog-header-padding-top,48rpx);font-weight:500;font-weight:var(--dialog-header-font-weight,500);line-height:48rpx;line-height:var(--dialog-header-line-height, 48rpx)}.van-dialog__header--isolated{padding:48rpx 0;padding:var(--dialog-header-isolated-padding,48rpx 0)}.van-dialog__message{overflow-y:auto;text-align:center;-webkit-overflow-scrolling:touch;font-size:28rpx;font-size:var(--dialog-message-font-size, 28rpx);line-height:40rpx;line-height:var(--dialog-message-line-height, 40rpx);max-height:60vh;max-height:var(--dialog-message-max-height,60vh);padding:48rpx;padding:var(--dialog-message-padding,48rpx)}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{padding-top:16rpx;padding-top:var(--dialog-has-title-message-padding-top,16rpx);color:#646566;color:var(--dialog-has-title-message-text-color,#646566)}.van-dialog__message--round-button{padding-bottom:32rpx;color:#323233}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:-webkit-flex;display:flex}.van-dialog__footer--round-button{position:relative!important;padding:16rpx 48rpx 32rpx!important}.van-dialog__button{-webkit-flex:1;flex:1}.van-dialog__confirm{border:0!important;color:#576b95}.van-dialog__cancel{border:0!important;color:#646566}.van-dialog-bounce-enter{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9);opacity:0} /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/cache-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[5]!./src/pages/home/index.scss ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/dist/pages/my/index.js b/dist/pages/my/index.js index 241b322..02496b9 100644 --- a/dist/pages/my/index.js +++ b/dist/pages/my/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/my/index"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx":function(e,n,o){var t=o("./node_modules/@antmjs/vantui/es/cell/index.js"),a=o("./node_modules/@antmjs/vantui/es/toast/index.js"),s=o("./node_modules/@antmjs/vantui/es/button/index.js"),l=o("./node_modules/@antmjs/vantui/es/image/index.js"),u=o("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),i=o("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),d=o("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),c=o("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=o("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),m=o("webpack/container/remote/react"),f=o("./src/pages/components/TabbarCom/index.tsx"),p=o("webpack/container/remote/@tarojs/taro"),x=o.n(p),g=(o("./src/pages/components/ActiveCard/index.tsx"),o("./src/utils/index.ts")),v=o("./config.js"),j=o("webpack/container/remote/react/jsx-runtime");n.default=function my(e){var n=(0,m.useState)({}),o=(0,c.default)(n,2),p=(o[0],o[1],(0,m.useState)([])),b=(0,c.default)(p,2),h=(b[0],b[1],(0,m.useState)(0)),k=(0,c.default)(h,2),w=(k[0],k[1],(0,m.useState)(!0)),_=(0,c.default)(w,2),y=_[0],C=_[1];(0,m.useEffect)((function(){N()}),[]);var N=function(){var e=(0,d.default)((0,i.default)().mark((function _callee(){var e;return(0,i.default)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,g.phoneLogin)();case 2:e=n.sent,console.log("isok",e),C(e);case 5:case"end":return n.stop()}}),_callee)})));return function getok(){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){}),[]);var I=function getPhoneNumber(e){console.log("点击获取手机事件",e.detail.cloudID),function getLogin(e){x().cloud.callFunction({name:"getPhoneNum",data:{weRunData:x().cloud.CloudID(e.detail.cloudID)}}).then((function(e){var n,o,t,a,s,l,i,d,c;console.log("res222",e);var r=null==e||null===(n=e.result)||void 0===n||null===(o=n.event)||void 0===o||null===(t=o.weRunData)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.phoneNumber,m=null==e||null===(s=e.result)||void 0===s||null===(l=s.context)||void 0===l?void 0:l.tencentcloud_uin,f={tableName:"userInfo",keyValue:{openId:null==e||null===(i=e.result)||void 0===i||null===(d=i.event)||void 0===d||null===(c=d.userInfo)||void 0===c?void 0:c.openId},okFun:function okFun(e){var n,o;console.log("q",e),(0,g.updateTableid)({id:null==e||null===(n=e.data)||void 0===n||null===(o=n[0])||void 0===o?void 0:o._id,tableName:"userInfo",objData:{tencentcloud_uin:m,authInfo:{authPhonenum:r}},okFun:function okFun(e){N()}})}};(0,g.getTable)((0,u.default)({},f))}))}(e)};return(0,j.jsxs)(r.View,{className:"myContent",children:[(0,j.jsxs)(r.View,{className:"myImage",children:[(0,j.jsx)(l.default,{round:!0,width:"100px",height:"100px",src:"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images/images-2.jpg"}),!y&&(0,j.jsx)(r.View,{className:"loginBtn",children:(0,j.jsx)(s.default,{type:"primary",size:"mini","open-type":"getPhoneNumber",lang:"zh_CN",onGetPhoneNumber:function onGetPhoneNumber(e){console.log("info",e),I(e)},children:"登录"})})]}),(0,j.jsxs)(r.View,{className:"cellArr",children:[(0,j.jsx)(t.default,{icon:"manager",title:"打卡记录",isLink:!0,onClick:function onClick(){y?x().navigateTo({url:"/pages/my/components/CheckinDetail/index"}):a.default.fail({message:"请先登录",selector:"#vanToast-demo2"})}}),"people"!==v.type&&(0,j.jsx)(t.default,{title:"微信客服",icon:"wechat",isLink:!0,value:"",onClick:function onClick(){x().openCustomerServiceChat({corpId:"wwb04af9a97514271c",extInfo:{url:"https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5"},success:function success(e){}})}}),(0,j.jsx)(t.default,{icon:"friends",title:"关于我们",isLink:!0,onClick:function onClick(){x().navigateTo({url:"/pages/my/components/AbountUs/index"})}})]}),(0,j.jsx)(a.default,{id:"vanToast-demo2"}),(0,j.jsx)(f.default,{active:2})]})}},"./src/pages/my/index.tsx":function(e,n,o){var t=o("webpack/container/remote/@tarojs/runtime"),a=o("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx");Page((0,t.createPageConfig)(a.default,"pages/my/index",{root:{cn:[]}},{navigationBarTitleText:"我的"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return n="./src/pages/my/index.tsx",e(e.s=n);var n}));e.O()}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/my/index"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx":function(e,n,o){var t=o("./node_modules/@antmjs/vantui/es/cell/index.js"),a=o("./node_modules/@antmjs/vantui/es/toast/index.js"),s=o("./node_modules/@antmjs/vantui/es/button/index.js"),l=o("./node_modules/@antmjs/vantui/es/image/index.js"),u=o("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),i=o("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),d=o("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),c=o("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=o("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),m=o("webpack/container/remote/react"),f=o("./src/pages/components/TabbarCom/index.tsx"),p=o("webpack/container/remote/@tarojs/taro"),x=o.n(p),g=(o("./src/pages/components/ActiveCard/index.tsx"),o("./src/utils/index.ts")),v=o("./config.js"),j=o("webpack/container/remote/react/jsx-runtime");n.default=function my(e){var n=(0,m.useState)({}),o=(0,c.default)(n,2),p=(o[0],o[1],(0,m.useState)([])),b=(0,c.default)(p,2),h=(b[0],b[1],(0,m.useState)(0)),k=(0,c.default)(h,2),w=(k[0],k[1],(0,m.useState)(!0)),y=(0,c.default)(w,2),_=y[0],C=y[1];(0,m.useEffect)((function(){N()}),[]);var N=function(){var e=(0,d.default)((0,i.default)().mark((function _callee(){var e;return(0,i.default)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,g.phoneLogin)();case 2:e=n.sent,console.log("isok",e),C(e);case 5:case"end":return n.stop()}}),_callee)})));return function getok(){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){}),[]);var I=function getPhoneNumber(e){console.log("点击获取手机事件",e.detail.cloudID),function getLogin(e){x().cloud.callFunction({name:"getPhoneNum",data:{weRunData:x().cloud.CloudID(e.detail.cloudID)}}).then((function(e){var n,o,t,a,s,l,i,d,c;console.log("res222",e);var r=null==e||null===(n=e.result)||void 0===n||null===(o=n.event)||void 0===o||null===(t=o.weRunData)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.phoneNumber,m=null==e||null===(s=e.result)||void 0===s||null===(l=s.context)||void 0===l?void 0:l.tencentcloud_uin,f={tableName:"userInfo",keyValue:{openId:null==e||null===(i=e.result)||void 0===i||null===(d=i.event)||void 0===d||null===(c=d.userInfo)||void 0===c?void 0:c.openId},okFun:function okFun(e){var n,o;console.log("q",e),(0,g.updateTableid)({id:null==e||null===(n=e.data)||void 0===n||null===(o=n[0])||void 0===o?void 0:o._id,tableName:"userInfo",objData:{tencentcloud_uin:m,authInfo:{authPhonenum:r}},okFun:function okFun(e){N()}})}};(0,g.getTable)((0,u.default)({},f))}))}(e)};return(0,j.jsxs)(r.View,{className:"myContent",children:[(0,j.jsxs)(r.View,{className:"myImage",children:[(0,j.jsx)(l.default,{round:!0,width:"100px",height:"100px",src:"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images/images-2.jpg"}),!_&&(0,j.jsx)(r.View,{className:"loginBtn",children:(0,j.jsx)(s.default,{type:"primary",size:"mini","open-type":"getPhoneNumber",lang:"zh_CN",onGetPhoneNumber:function onGetPhoneNumber(e){console.log("info",e),I(e)},children:"登录"})})]}),(0,j.jsxs)(r.View,{className:"cellArr",children:["people"!==v.type&&(0,j.jsx)(t.default,{icon:"manager",title:"打卡记录",isLink:!0,onClick:function onClick(){_?x().navigateTo({url:"/pages/my/components/CheckinDetail/index"}):a.default.fail({message:"请先登录",selector:"#vanToast-demo2"})}}),"people"!==v.type&&(0,j.jsx)(t.default,{title:"微信客服",icon:"wechat",isLink:!0,value:"",onClick:function onClick(){x().openCustomerServiceChat({corpId:"wwb04af9a97514271c",extInfo:{url:"https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5"},success:function success(e){}})}}),(0,j.jsx)(t.default,{icon:"friends",title:"关于我们",isLink:!0,onClick:function onClick(){x().navigateTo({url:"/pages/my/components/AbountUs/index"})}})]}),(0,j.jsx)(a.default,{id:"vanToast-demo2"}),(0,j.jsx)(f.default,{active:2})]})}},"./src/pages/my/index.tsx":function(e,n,o){var t=o("webpack/container/remote/@tarojs/runtime"),a=o("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx");Page((0,t.createPageConfig)(a.default,"pages/my/index",{root:{cn:[]}},{navigationBarTitleText:"我的"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return n="./src/pages/my/index.tsx",e(e.s=n);var n}));e.O()}]); \ No newline at end of file diff --git a/dist/runtime.js b/dist/runtime.js index 23669d3..0859545 100644 --- a/dist/runtime.js +++ b/dist/runtime.js @@ -1 +1 @@ -!function(){"use strict";var e,r,t,_,n={},a={};function __webpack_require__(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,loaded:!1,exports:{}};return n[e].call(t.exports,t,t.exports,__webpack_require__),t.loaded=!0,t.exports}__webpack_require__.m=n,__webpack_require__.amdO={},e=[],__webpack_require__.O=function(r,t,_,n){if(!t){var a=1/0;for(c=0;c=n)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[o])}))?t.splice(o--,1):(i=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[t,_,n]},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(r,t){return __webpack_require__.f[t](e,r),r}),[]))},__webpack_require__.u=function(e){},__webpack_require__.miniCssF=function(e){},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r={},t="myApp:",__webpack_require__.l=function(e,_,n,a){if(r[e])r[e].push(_);else{var i,o;if(void 0!==n)for(var u=document.getElementsByTagName("script"),c=0;c=n)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[o])}))?t.splice(o--,1):(i=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[t,_,n]},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(r,t){return __webpack_require__.f[t](e,r),r}),[]))},__webpack_require__.u=function(e){},__webpack_require__.miniCssF=function(e){},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r={},t="myApp:",__webpack_require__.l=function(e,_,n,a){if(r[e])r[e].push(_);else{var i,o;if(void 0!==n)for(var u=document.getElementsByTagName("script"),c=0;c9)(0,r.redirectTo)({url:e});else switch(t){case"navigateTo":(0,r.navigateTo)({url:e});break;case"reLaunch":(0,r.reLaunch)({url:e});break;case"redirectTo":(0,r.redirectTo)({url:e})}}},"./node_modules/@antmjs/vantui/es/common/utils.js":function(e,t,n){"use strict";n.d(t,{requestAnimationFrame:function(){return requestAnimationFrame},getRect:function(){return getRect},toPromise:function(){return toPromise}});var r=n("webpack/container/remote/@tarojs/taro"),o=n("./node_modules/raf/index.js"),s=n.n(o),a=n("./node_modules/@antmjs/vantui/es/common/validator.js"),i=(n("./node_modules/@antmjs/vantui/es/common/version.js"),n("webpack/container/remote/@tarojs/runtime").window);function requestAnimationFrame(e){return i.requestAnimationFrame?i.requestAnimationFrame(e):s()(e)}function getRect(e,t){return new Promise((function(n){var o=(0,r.createSelectorQuery)();e&&(o=o.in(e)),o.select(t).boundingClientRect().exec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n(e[0])}))}))}function toPromise(e){return(0,a.isPromise)(e)?e:Promise.resolve(e)}},"./node_modules/@antmjs/vantui/es/common/validator.js":function(e,t,n){"use strict";n.d(t,{isPlainObject:function(){return isPlainObject},isPromise:function(){return isPromise},isDef:function(){return isDef},isObj:function(){return isObj}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function isFunction(e){return"function"==typeof e}function isPlainObject(e){return null!==e&&"object"===(0,r.default)(e)&&!Array.isArray(e)}function isPromise(e){return isPlainObject(e)&&isFunction(e.then)&&isFunction(e.catch)}function isDef(e){return null!=e}function isObj(e){var t=(0,r.default)(e);return null!==e&&("object"===t||"function"===t)}},"./node_modules/@antmjs/vantui/es/common/version.js":function(e,t,n){"use strict";n.d(t,{canIUseNextTick:function(){return canIUseNextTick}});var r=n("webpack/container/remote/@tarojs/taro");function canIUseNextTick(){return(0,r.canIUse)("nextTick")}},"./node_modules/@antmjs/vantui/es/dialog/dialog.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@antmjs/vantui/es/dialog/events.js");function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.selector&&e.id!==t.selector.replace(/^#/,"")||(b(_objectSpread({},t)),pe(!!t.show))},n=function stopLoadingFn(){je()},r=function closeFn(){ye("close")};return(0,p.on)("alert",t),(0,p.on)("close",r),(0,p.on)("stopLoading",n),function(){(0,p.off)("alert",t),(0,p.off)("close",r),(0,p.off)("stopLoading",n)}}}),[ye,je,r,e.id]),(0,i.useEffect)((function(){return function(){(0,p.off)("confirm"),(0,p.off)("cancel"),(0,p.off)("alert"),(0,p.off)("close"),(0,p.off)("stopLoading")}}),[]),(0,j.jsxs)(m.default,{show:me,zIndex:O,overlay:w,className:"van-dialog van-dialog--"+x+" "+"".concat(te||""),style:y.style(["width: "+y.addUnit(S)+";",ee]),overlayStyle:P,closeOnClickOverlay:k,onClose:be,children:[(T||q)&&(0,j.jsx)(a.View,{className:y.bem("dialog__header",{isolated:!(C||q)}),children:q||T&&(0,j.jsx)(j.Fragment,{children:T})}),X||C&&(0,j.jsx)(a.View,{className:y.bem("dialog__message",[x,E,{hasTitle:T}]),children:(0,j.jsx)(a.Text,{className:"van-dialog__message-text",children:C})}),"round-button"===x?(0,j.jsxs)(d.default,{className:"van-dialog__footer--round-button",children:[A&&(0,j.jsx)(u.default,{loading:ce,className:"van-dialog__button van-hairline--right van-dialog__cancel",style:I?{color:I}:{},onClick:ge,children:N}),z&&(0,j.jsx)(u.default,_objectSpread(_objectSpread({className:"van-dialog__button van-dialog__confirm",style:L?{color:L}:{},loading:se,openType:M,sessionFrom:G,sendMessageTitle:K,sendMessagePath:B,sendMessageImg:R,appParameter:W,onClick:ve},ne),{},{children:U}))]}):(0,j.jsxs)(a.View,{className:"van-hairline--top van-dialog__footer",children:[A&&(0,j.jsx)(f.default,{size:"large",loading:ce,className:"van-dialog__button van-dialog__cancel",style:I?{color:I}:{},onClick:ge,children:N}),z&&(0,j.jsx)(f.default,_objectSpread(_objectSpread({size:"large",className:"van-dialog__button van-dialog__confirm ".concat(A?"van-hairline--left":""),loading:se,style:L?{color:L}:{},openType:M,sessionFrom:G,sendMessageTitle:K,sendMessagePath:B,sendMessageImg:R,showMessageCard:V,appParameter:W,onClick:ve},ne),{},{children:U}))]})]})}Dialog.alert=function(e){return b.default.alert(e)},Dialog.confirm=function(e){return b.default.confirm(e)},Dialog.close=function(){b.default.close()},Dialog.stopLoading=function(){b.default.stopLoading()},Dialog.setDefaultOptions=function(e){b.default.setDefaultOptions(e)},Dialog.resetDefaultOptions=function(){b.default.resetDefaultOptions()},t.default=Dialog},"./node_modules/@antmjs/vantui/es/field/index.js":function(e,t,n){"use strict";n.d(t,{Field:function(){return Field}});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("webpack/container/remote/@tarojs/taro"),a=n("webpack/container/remote/react"),i=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/cell/index.js"),u=n("./node_modules/@antmjs/vantui/es/icon/index.js"),d=(n("./node_modules/@antmjs/vantui/es/utils/index.js"),n("./node_modules/@antmjs/vantui/es/field/wxs.js")),f=n("webpack/container/remote/react/jsx-runtime");n("webpack/container/remote/@tarojs/runtime").document;function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t=$}),children:h.length>=$?$:h.length}),"/"+$]}),Y&&(0,f.jsx)(i.View,{className:l.bem("field__error-message",[q,{disabled:N,error:H}]),children:Y})]})}t.default=Field},"./node_modules/@antmjs/vantui/es/field/wxs.js":function(e,t,n){"use strict";n.d(t,{inputStyle:function(){return inputStyle}});var r=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),o=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function inputStyle(e){return e&&"Object"===e.constructor.name?(0,r.style)({"min-height":(0,o.addUnit)(e.minHeight),"max-height":(0,o.addUnit)(e.maxHeight)}):""}},"./node_modules/@antmjs/vantui/es/goods-action-button/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n("webpack/container/remote/react"),a=n("./node_modules/@antmjs/vantui/es/button/index.js"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),c=n("webpack/container/remote/react/jsx-runtime"),u=["text","url","linkType","plain","type","style","isFirst","isLast","onClick","children","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t1?t-1:0),r=1;r0&&(g=setTimeout((function(){(0,m.trigger)("toast_clear",e)}),t.duration)))},E=(0,i.useCallback)((function(e){C(e)}),[]),A=(0,i.useCallback)((function(e){v=Object.assign(v,e)}),[]),I=(0,i.useCallback)((function(){v=Object.assign({},h)}),[]);return(0,i.useEffect)((function(){return(0,m.on)("toast_show",T),(0,m.on)("toast_clear",E),(0,m.on)("toast_setDefaultOptions",A),(0,m.on)("toast_resetDefaultOptions",I),function(){(0,m.off)("toast_show",T),(0,m.off)("toast_clear",E),(0,m.off)("toast_setDefaultOptions",A),(0,m.off)("toast_resetDefaultOptions",I)}}),[]),(0,y.jsxs)(a.View,{children:[(r.mask||r.forbidClick)&&(0,y.jsx)(c.default,{show:r.show,zIndex:S,style:r.mask?"":"background-color: transparent;"}),(0,y.jsx)(l.default,{show:r.show,style:S?{zIndex:S}:{},className:"van-toast__container",children:(0,y.jsxs)(a.View,_objectSpread(_objectSpread({id:"van-toast",className:"van-toast van-toast--"+("text"===r.type||"html"===r.type?"text":"icon")+" van-toast--".concat(r.position," ").concat(x),style:_,onTouchMove:function noop(){}},P),{},{children:["text"===r.type?(0,y.jsx)(a.Text,{children:r.message}):"html"===r.type?(0,y.jsx)(a.RichText,{nodes:r.message}):(0,y.jsxs)(a.View,{className:"van-toast__box",children:["loading"===r.type?(0,y.jsx)(d.default,{color:"white",type:r.loadingType,className:"van-toast__loading"}):(0,y.jsx)(u.default,{className:"van-toast__icon",name:r.type}),r.message&&(0,y.jsx)(a.Text,{className:"van-toast__text",children:r.message})]}),O]}))})]})}Toast.show=p.default,Toast.loading=p.default.loading,Toast.success=p.default.success,Toast.fail=p.default.fail,Toast.clear=p.default.clear,Toast.setDefaultOptions=p.default.setDefaultOptions,Toast.resetDefaultOptions=p.default.resetDefaultOptions,t.default=Toast},"./node_modules/@antmjs/vantui/es/toast/toast.js":function(e,t,n){"use strict";var r=n("./node_modules/@antmjs/vantui/es/common/validator.js"),o=n("./node_modules/@antmjs/vantui/es/toast/events.js");var s=function createMethod(e){return function(t){return a(Object.assign({type:e},function parseOptions(e){return(0,r.isObj)(e)?e:{message:e}}(t)))}},a=function Toast(e){(0,o.trigger)("toast_show",e)};a.loading=s("loading"),a.success=s("success"),a.fail=s("fail"),a.clear=function(e){(0,o.trigger)("toast_clear",e)},a.setDefaultOptions=function(e){(0,o.trigger)("toast_setDefaultOptions",e)},a.resetDefaultOptions=function(){(0,o.trigger)("toast_resetDefaultOptions")},t.default=a},"./node_modules/@antmjs/vantui/es/transition/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),i=n("./node_modules/@antmjs/vantui/es/transition/wxs.js"),l=n("./node_modules/@antmjs/vantui/es/mixins/transition.js"),c=n("webpack/container/remote/react/jsx-runtime"),u=["onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave","onEnter","onLeave","duration","name","show","children","style","className","enterClass","enterActiveClass","enterToClass","leaveClass","leaveActiveClass","leaveToClass"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.default.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(toArray(e)):(0,s.isFragment)(e)&&e.props?n=n.concat(toArray(e.props.children,t)):n.push(e))})),n};var o=r(n("webpack/container/remote/react")),s=n("./node_modules/react-is/index.js")},"./node_modules/react-is/cjs/react-is.development.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;(function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function typeOf(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case d:case s:case i:case a:case m:return p;default:var j=p&&p.$$typeof;switch(j){case c:case f:case b:case y:case l:return j;default:return t}}case o:return t}}}var w=u,_=d,x=c,O=l,S=n,P=f,k=s,C=b,T=y,E=o,A=i,I=a,L=m,D=!1;function isConcurrentMode(e){return typeOf(e)===d}t.AsyncMode=w,t.ConcurrentMode=_,t.ContextConsumer=x,t.ContextProvider=O,t.Element=S,t.ForwardRef=P,t.Fragment=k,t.Lazy=C,t.Memo=T,t.Portal=E,t.Profiler=A,t.StrictMode=I,t.Suspense=L,t.isAsyncMode=function isAsyncMode(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(e)||typeOf(e)===u},t.isConcurrentMode=isConcurrentMode,t.isContextConsumer=function isContextConsumer(e){return typeOf(e)===c},t.isContextProvider=function isContextProvider(e){return typeOf(e)===l},t.isElement=function isElement(e){return"object"===r(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function isForwardRef(e){return typeOf(e)===f},t.isFragment=function isFragment(e){return typeOf(e)===s},t.isLazy=function isLazy(e){return typeOf(e)===b},t.isMemo=function isMemo(e){return typeOf(e)===y},t.isPortal=function isPortal(e){return typeOf(e)===o},t.isProfiler=function isProfiler(e){return typeOf(e)===i},t.isStrictMode=function isStrictMode(e){return typeOf(e)===a},t.isSuspense=function isSuspense(e){return typeOf(e)===m},t.isValidElementType=function isValidElementType(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===i||e===a||e===m||e===p||"object"===r(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===h||e.$$typeof===v||e.$$typeof===g||e.$$typeof===j)},t.typeOf=typeOf})()},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(e){e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;function _regeneratorRuntime(){"use strict";e.exports=_regeneratorRuntime=function _regeneratorRuntime(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function define(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function define(e,t,n){return e[t]=n}}function wrap(e,t,n,r){var o=t&&t.prototype instanceof Generator?t:Generator,a=Object.create(o.prototype),i=new Context(r||[]);return s(a,"_invoke",{value:makeInvokeMethod(e,n,i)}),a}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=wrap;var u={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var d={};define(d,i,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(values([])));m&&m!==n&&o.call(m,i)&&(d=m);var p=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(d);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){function invoke(n,s,a,i){var l=tryCatch(e[n],e,s);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==r(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,a,i)}),(function(e){invoke("throw",e,a,i)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return invoke("throw",e,a,i)}))}i(l.arg)}var n;s(this,"_invoke",{value:function value(e,r){function callInvokeWithMethodAndArg(){return new t((function(t,n){invoke(e,r,t,n)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var r="suspendedStart";return function(o,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw s;return doneResult()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var i=maybeInvokeDelegate(a,n);if(i){if(i===u)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=tryCatch(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function maybeInvokeDelegate(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,maybeInvokeDelegate(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=tryCatch(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function next(){for(;++n=0;--n){var r=this.tryEntries[n],s=r.completion;if("root"===r.tryLoc)return handle("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),i=o.call(r,"finallyLoc");if(a&&i){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),u}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;resetTryEntry(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:values(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}e.exports=_regeneratorRuntime,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e){function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,n){"use strict";function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{default:function(){return _objectWithoutPropertiesLoose}})},"./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _regeneratorRuntime}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function define(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function define(e,t,n){return e[t]=n}}function wrap(e,t,n,r){var s=t&&t.prototype instanceof Generator?t:Generator,a=Object.create(s.prototype),i=new Context(r||[]);return o(a,"_invoke",{value:makeInvokeMethod(e,n,i)}),a}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var c={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var u={};define(u,a,(function(){return this}));var d=Object.getPrototypeOf,f=d&&d(d(values([])));f&&f!==t&&n.call(f,a)&&(u=f);var m=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(u);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){function invoke(o,s,a,i){var l=tryCatch(e[o],e,s);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==(0,r.default)(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,a,i)}),(function(e){invoke("throw",e,a,i)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return invoke("throw",e,a,i)}))}i(l.arg)}var s;o(this,"_invoke",{value:function value(e,n){function callInvokeWithMethodAndArg(){return new t((function(t,r){invoke(e,n,t,r)}))}return s=s?s.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var r="suspendedStart";return function(o,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw s;return doneResult()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var i=maybeInvokeDelegate(a,n);if(i){if(i===c)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=tryCatch(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function maybeInvokeDelegate(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,maybeInvokeDelegate(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=tryCatch(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function next(){for(;++r=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),i=n.call(o,"finallyLoc");if(a&&i){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),c}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;resetTryEntry(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:values(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _slicedToArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),s=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function _slicedToArray(e,t){return(0,r.default)(e)||(0,o.default)(e,t)||(0,s.default)(e,t)||(0,a.default)()}},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _toConsumableArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");function _toConsumableArray(e){return(0,r.default)(e)||(0,o.default)(e)||(0,s.default)(e)||(0,a.default)()}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":function(e,t,n){"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}n.d(t,{default:function(){return _typeof}})},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _unsupportedIterableToArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return(0,r.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.default)(e,t):void 0}}}}]); \ No newline at end of file +(wx.webpackJsonp=wx.webpackJsonp||[]).push([["vendors"],{"./node_modules/@antmjs/vantui/es/button/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n("webpack/container/remote/@tarojs/taro"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/icon/index.js"),l=n("./node_modules/@antmjs/vantui/es/loading/index.js"),u=n("./node_modules/@antmjs/vantui/es/button/wxs.js"),d=n("webpack/container/remote/react/jsx-runtime"),f=["type","size","block","round","plain","square","loading","disabled","hairline","color","loadingSize","loadingType","loadingText","icon","classPrefix","onClick","children","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t9)(0,r.redirectTo)({url:e});else switch(t){case"navigateTo":(0,r.navigateTo)({url:e});break;case"reLaunch":(0,r.reLaunch)({url:e});break;case"redirectTo":(0,r.redirectTo)({url:e})}}},"./node_modules/@antmjs/vantui/es/common/utils.js":function(e,t,n){"use strict";n.d(t,{requestAnimationFrame:function(){return requestAnimationFrame},getRect:function(){return getRect},toPromise:function(){return toPromise}});var r=n("webpack/container/remote/@tarojs/taro"),o=n("./node_modules/raf/index.js"),s=n.n(o),a=n("./node_modules/@antmjs/vantui/es/common/validator.js"),i=(n("./node_modules/@antmjs/vantui/es/common/version.js"),n("webpack/container/remote/@tarojs/runtime").window);function requestAnimationFrame(e){return i.requestAnimationFrame?i.requestAnimationFrame(e):s()(e)}function getRect(e,t){return new Promise((function(n){var o=(0,r.createSelectorQuery)();e&&(o=o.in(e)),o.select(t).boundingClientRect().exec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n(e[0])}))}))}function toPromise(e){return(0,a.isPromise)(e)?e:Promise.resolve(e)}},"./node_modules/@antmjs/vantui/es/common/validator.js":function(e,t,n){"use strict";n.d(t,{isPlainObject:function(){return isPlainObject},isPromise:function(){return isPromise},isDef:function(){return isDef},isObj:function(){return isObj}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function isFunction(e){return"function"==typeof e}function isPlainObject(e){return null!==e&&"object"===(0,r.default)(e)&&!Array.isArray(e)}function isPromise(e){return isPlainObject(e)&&isFunction(e.then)&&isFunction(e.catch)}function isDef(e){return null!=e}function isObj(e){var t=(0,r.default)(e);return null!==e&&("object"===t||"function"===t)}},"./node_modules/@antmjs/vantui/es/common/version.js":function(e,t,n){"use strict";n.d(t,{canIUseNextTick:function(){return canIUseNextTick}});var r=n("webpack/container/remote/@tarojs/taro");function canIUseNextTick(){return(0,r.canIUse)("nextTick")}},"./node_modules/@antmjs/vantui/es/icon/index.js":function(e,t,n){"use strict";n.d(t,{Icon:function(){return Icon}});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),i=n("./node_modules/@antmjs/vantui/es/info/index.js"),c=n("./node_modules/@antmjs/vantui/es/icon/wxs.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["classPrefix","name","color","size","dot","info","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t1?t-1:0),r=1;r0&&(w=setTimeout((function(){(0,m.trigger)("toast_clear",e)}),t.duration)))},E=(0,i.useCallback)((function(e){C(e)}),[]),A=(0,i.useCallback)((function(e){h=Object.assign(h,e)}),[]),I=(0,i.useCallback)((function(){h=Object.assign({},v)}),[]);return(0,i.useEffect)((function(){return(0,m.on)("toast_show",T),(0,m.on)("toast_clear",E),(0,m.on)("toast_setDefaultOptions",A),(0,m.on)("toast_resetDefaultOptions",I),function(){(0,m.off)("toast_show",T),(0,m.off)("toast_clear",E),(0,m.off)("toast_setDefaultOptions",A),(0,m.off)("toast_resetDefaultOptions",I)}}),[]),(0,y.jsxs)(a.View,{children:[(r.mask||r.forbidClick)&&(0,y.jsx)(l.default,{show:r.show,zIndex:S,style:r.mask?"":"background-color: transparent;"}),(0,y.jsx)(c.default,{show:r.show,style:S?{zIndex:S}:{},className:"van-toast__container",children:(0,y.jsxs)(a.View,_objectSpread(_objectSpread({id:"van-toast",className:"van-toast van-toast--"+("text"===r.type||"html"===r.type?"text":"icon")+" van-toast--".concat(r.position," ").concat(x),style:g,onTouchMove:function noop(){}},P),{},{children:["text"===r.type?(0,y.jsx)(a.Text,{children:r.message}):"html"===r.type?(0,y.jsx)(a.RichText,{nodes:r.message}):(0,y.jsxs)(a.View,{className:"van-toast__box",children:["loading"===r.type?(0,y.jsx)(d.default,{color:"white",type:r.loadingType,className:"van-toast__loading"}):(0,y.jsx)(u.default,{className:"van-toast__icon",name:r.type}),r.message&&(0,y.jsx)(a.Text,{className:"van-toast__text",children:r.message})]}),O]}))})]})}Toast.show=p.default,Toast.loading=p.default.loading,Toast.success=p.default.success,Toast.fail=p.default.fail,Toast.clear=p.default.clear,Toast.setDefaultOptions=p.default.setDefaultOptions,Toast.resetDefaultOptions=p.default.resetDefaultOptions,t.default=Toast},"./node_modules/@antmjs/vantui/es/toast/toast.js":function(e,t,n){"use strict";var r=n("./node_modules/@antmjs/vantui/es/common/validator.js"),o=n("./node_modules/@antmjs/vantui/es/toast/events.js");var s=function createMethod(e){return function(t){return a(Object.assign({type:e},function parseOptions(e){return(0,r.isObj)(e)?e:{message:e}}(t)))}},a=function Toast(e){(0,o.trigger)("toast_show",e)};a.loading=s("loading"),a.success=s("success"),a.fail=s("fail"),a.clear=function(e){(0,o.trigger)("toast_clear",e)},a.setDefaultOptions=function(e){(0,o.trigger)("toast_setDefaultOptions",e)},a.resetDefaultOptions=function(){(0,o.trigger)("toast_resetDefaultOptions")},t.default=a},"./node_modules/@antmjs/vantui/es/transition/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),i=n("./node_modules/@antmjs/vantui/es/transition/wxs.js"),c=n("./node_modules/@antmjs/vantui/es/mixins/transition.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave","onEnter","onLeave","duration","name","show","children","style","className","enterClass","enterActiveClass","enterToClass","leaveClass","leaveActiveClass","leaveToClass"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.default.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(toArray(e)):(0,s.isFragment)(e)&&e.props?n=n.concat(toArray(e.props.children,t)):n.push(e))})),n};var o=r(n("webpack/container/remote/react")),s=n("./node_modules/react-is/index.js")},"./node_modules/react-is/cjs/react-is.development.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;(function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,j=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function typeOf(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case d:case s:case i:case a:case m:return p;default:var b=p&&p.$$typeof;switch(b){case l:case f:case j:case y:case c:return b;default:return t}}case o:return t}}}var _=u,g=d,x=l,O=c,S=n,P=f,k=s,C=j,T=y,E=o,A=i,I=a,L=m,D=!1;function isConcurrentMode(e){return typeOf(e)===d}t.AsyncMode=_,t.ConcurrentMode=g,t.ContextConsumer=x,t.ContextProvider=O,t.Element=S,t.ForwardRef=P,t.Fragment=k,t.Lazy=C,t.Memo=T,t.Portal=E,t.Profiler=A,t.StrictMode=I,t.Suspense=L,t.isAsyncMode=function isAsyncMode(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(e)||typeOf(e)===u},t.isConcurrentMode=isConcurrentMode,t.isContextConsumer=function isContextConsumer(e){return typeOf(e)===l},t.isContextProvider=function isContextProvider(e){return typeOf(e)===c},t.isElement=function isElement(e){return"object"===r(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function isForwardRef(e){return typeOf(e)===f},t.isFragment=function isFragment(e){return typeOf(e)===s},t.isLazy=function isLazy(e){return typeOf(e)===j},t.isMemo=function isMemo(e){return typeOf(e)===y},t.isPortal=function isPortal(e){return typeOf(e)===o},t.isProfiler=function isProfiler(e){return typeOf(e)===i},t.isStrictMode=function isStrictMode(e){return typeOf(e)===a},t.isSuspense=function isSuspense(e){return typeOf(e)===m},t.isValidElementType=function isValidElementType(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===i||e===a||e===m||e===p||"object"===r(e)&&null!==e&&(e.$$typeof===j||e.$$typeof===y||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===v||e.$$typeof===h||e.$$typeof===w||e.$$typeof===b)},t.typeOf=typeOf})()},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(e){e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e){function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,n){"use strict";function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{default:function(){return _objectWithoutPropertiesLoose}})},"./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _regeneratorRuntime}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function define(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function define(e,t,n){return e[t]=n}}function wrap(e,t,n,r){var s=t&&t.prototype instanceof Generator?t:Generator,a=Object.create(s.prototype),i=new Context(r||[]);return o(a,"_invoke",{value:makeInvokeMethod(e,n,i)}),a}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var l={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var u={};define(u,a,(function(){return this}));var d=Object.getPrototypeOf,f=d&&d(d(values([])));f&&f!==t&&n.call(f,a)&&(u=f);var m=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(u);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){function invoke(o,s,a,i){var c=tryCatch(e[o],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==(0,r.default)(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,a,i)}),(function(e){invoke("throw",e,a,i)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return invoke("throw",e,a,i)}))}i(c.arg)}var s;o(this,"_invoke",{value:function value(e,n){function callInvokeWithMethodAndArg(){return new t((function(t,r){invoke(e,n,t,r)}))}return s=s?s.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var r="suspendedStart";return function(o,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw s;return doneResult()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var i=maybeInvokeDelegate(a,n);if(i){if(i===l)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=tryCatch(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function maybeInvokeDelegate(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,maybeInvokeDelegate(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=tryCatch(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function next(){for(;++r=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),i=n.call(o,"finallyLoc");if(a&&i){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),l}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;resetTryEntry(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:values(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _slicedToArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),s=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function _slicedToArray(e,t){return(0,r.default)(e)||(0,o.default)(e,t)||(0,s.default)(e,t)||(0,a.default)()}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":function(e,t,n){"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}n.d(t,{default:function(){return _typeof}})},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _unsupportedIterableToArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return(0,r.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.default)(e,t):void 0}}}}]); \ No newline at end of file diff --git a/dist/vendors.js.LICENSE.txt b/dist/vendors.js.LICENSE.txt index 53cc30d..88b7745 100644 --- a/dist/vendors.js.LICENSE.txt +++ b/dist/vendors.js.LICENSE.txt @@ -1,21 +1,9 @@ -/*! ../button */ - -/*! ../button/index */ - -/*! ../cell */ - /*! ../common/jumpLink */ /*! ../common/utils */ /*! ../common/validator */ -/*! ../goods-action-button/index */ - -/*! ../goods-action/index */ - -/*! ../helpers/regeneratorRuntime */ - /*! ../icon */ /*! ../icon/index */ @@ -28,12 +16,8 @@ /*! ../overlay/index */ -/*! ../popup/index */ - /*! ../transition/index */ -/*! ../utils */ - /*! ../wxs/add-unit */ /*! ../wxs/style */ @@ -50,8 +34,6 @@ /*! ./../transition */ -/*! ./../wxs/utils */ - /*! ./add-unit */ /*! ./array */ @@ -60,20 +42,14 @@ /*! ./arrayWithHoles.js */ -/*! ./arrayWithoutHoles.js */ - /*! ./bem */ /*! ./cjs/react-is.development.js */ /*! ./defineProperty.js */ -/*! ./dialog */ - /*! ./events */ -/*! ./iterableToArray.js */ - /*! ./iterableToArrayLimit.js */ /*! ./memoize */ @@ -82,8 +58,6 @@ /*! ./nonIterableRest.js */ -/*! ./nonIterableSpread.js */ - /*! ./object */ /*! ./objectWithoutPropertiesLoose.js */ @@ -92,8 +66,6 @@ /*! ./toast */ -/*! ./type */ - /*! ./typeof.js */ /*! ./unsupportedIterableToArray.js */ @@ -158,10 +130,6 @@ !*** ./node_modules/@antmjs/vantui/es/icon/wxs.js ***! \****************************************************/ -/*!*****************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/field/wxs.js ***! - \*****************************************************/ - /*!*****************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/image/wxs.js ***! \*****************************************************/ @@ -202,10 +170,6 @@ !*** ./node_modules/@antmjs/vantui/es/info/index.js ***! \******************************************************/ -/*!******************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/utils/type.js ***! - \******************************************************/ - /*!******************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/wxs/object.js ***! \******************************************************/ @@ -214,10 +178,6 @@ !*** ./node_modules/rc-util/lib/Children/toArray.js ***! \******************************************************/ -/*!*******************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/field/index.js ***! - \*******************************************************/ - /*!*******************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/image/index.js ***! \*******************************************************/ @@ -238,10 +198,6 @@ !*** ./node_modules/@antmjs/vantui/es/toast/toast.js ***! \*******************************************************/ -/*!*******************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/utils/index.js ***! - \*******************************************************/ - /*!*******************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/wxs/memoize.js ***! \*******************************************************/ @@ -258,10 +214,6 @@ !*** ./node_modules/@antmjs/vantui/es/common/utils.js ***! \********************************************************/ -/*!********************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/dialog/index.js ***! - \********************************************************/ - /*!********************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/tabbar/index.js ***! \********************************************************/ @@ -274,14 +226,6 @@ !*** ./node_modules/@antmjs/vantui/es/wxs/add-unit.js ***! \********************************************************/ -/*!*********************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/dialog/dialog.js ***! - \*********************************************************/ - -/*!*********************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/dialog/events.js ***! - \*********************************************************/ - /*!*********************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/loading/index.js ***! \*********************************************************/ @@ -298,10 +242,6 @@ !*** ./node_modules/@antmjs/vantui/es/transition/wxs.js ***! \**********************************************************/ -/*!**********************************************************!*\ - !*** ./node_modules/@babel/runtime/regenerator/index.js ***! - \**********************************************************/ - /*!***********************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/common/jumpLink.js ***! \***********************************************************/ @@ -334,14 +274,6 @@ !*** ./node_modules/performance-now/lib/performance-now.js ***! \*************************************************************/ -/*!**************************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/goods-action/index.js ***! - \**************************************************************/ - -/*!****************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***! - \****************************************************************/ - /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! \******************************************************************/ @@ -354,30 +286,14 @@ !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***! \*******************************************************************/ -/*!*******************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***! - \*******************************************************************/ - /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! \*******************************************************************/ -/*!*******************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! - \*******************************************************************/ - -/*!********************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***! - \********************************************************************/ - /*!********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***! \********************************************************************/ -/*!*********************************************************************!*\ - !*** ./node_modules/@antmjs/vantui/es/goods-action-button/index.js ***! - \*********************************************************************/ - /*!*********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***! \*********************************************************************/ @@ -386,18 +302,6 @@ !*** ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js ***! \*********************************************************************/ -/*!**********************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***! - \**********************************************************************/ - -/*!**********************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***! - \**********************************************************************/ - -/*!**********************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***! - \**********************************************************************/ - /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! \**********************************************************************/ diff --git a/src/pages/home/components/CheckIn/index.tsx b/src/pages/home/components/CheckIn/index.tsx index c647ade..bfec031 100644 --- a/src/pages/home/components/CheckIn/index.tsx +++ b/src/pages/home/components/CheckIn/index.tsx @@ -1,237 +1,237 @@ -import { - Button, - CellGroup, - Dialog, - Field, - Form, - Image, - FormItem, - Icon, - Toast, - Cell, - Tag, -} from "@antmjs/vantui"; -import { Input, View } from "@tarojs/components"; -import Taro from "@tarojs/taro"; -import { getCurrentInstance } from "@tarojs/taro"; -import React, { useCallback, useEffect, useState } from "react"; -import "./index.scss"; -import { Uploader } from "@antmjs/vantui"; -import { getparams, getTable, updateTableid } from "../../../../utils/index"; +// import { +// Button, +// CellGroup, +// Dialog, +// Field, +// Form, +// Image, +// FormItem, +// Icon, +// Toast, +// Cell, +// Tag, +// } from "@antmjs/vantui"; +// import { Input, View } from "@tarojs/components"; +// import Taro from "@tarojs/taro"; +// import { getCurrentInstance } from "@tarojs/taro"; +// import React, { useCallback, useEffect, useState } from "react"; +// import "./index.scss"; +// import { Uploader } from "@antmjs/vantui"; +// import { getparams, getTable, updateTableid } from "../../../../utils/index"; -const CheckIn = () => { - const formIt = Form.useForm(); - const [bottomheight, setbottomheight] = useState(0); - const [cloudfileID, setcloudfileID] = useState(); - const [address, setaddress] = useState(); //地址 - const [openid, setopenid] = useState(); - const [fileID, setfileID] = useState(""); - const [value, setValue] = useState([ - // { - // url: "https://img.yzcdn.cn/vant/leaf.jpg", - // name: "图片1", - // }, - // { - // url: "https://img.yzcdn.cn/vant/tree.jpg", - // }, - ]); +// const CheckIn = () => { +// const formIt = Form.useForm(); +// const [bottomheight, setbottomheight] = useState(0); +// const [cloudfileID, setcloudfileID] = useState(); +// const [address, setaddress] = useState(); //地址 +// const [openid, setopenid] = useState(); +// const [fileID, setfileID] = useState(""); +// const [value, setValue] = useState([ +// // { +// // url: "https://img.yzcdn.cn/vant/leaf.jpg", +// // name: "图片1", +// // }, +// // { +// // url: "https://img.yzcdn.cn/vant/tree.jpg", +// // }, +// ]); - const afterRead = (event) => { - const { file, name } = event.detail; - // 可在此处新增云上传图片操作 - console.log("file", file); - setValue(value.concat(file)); - uploadTaro([file?.url]); - }; +// const afterRead = (event) => { +// const { file, name } = event.detail; +// // 可在此处新增云上传图片操作 +// console.log("file", file); +// setValue(value.concat(file)); +// uploadTaro([file?.url]); +// }; - const deleteAction = (event) => { - const { index } = event.detail; - const valueNew = JSON.parse(JSON.stringify(value)); - valueNew.splice(index, 1); - setValue(valueNew); - }; +// const deleteAction = (event) => { +// const { index } = event.detail; +// const valueNew = JSON.parse(JSON.stringify(value)); +// valueNew.splice(index, 1); +// setValue(valueNew); +// }; - let newBottom = 0; +// let newBottom = 0; - useEffect(() => { - const { screenHeight, safeArea = {} } = Taro.getSystemInfoSync(); - // @ts-ignore - newBottom = screenHeight - safeArea?.bottom ?? 0; - setbottomheight(newBottom); - }, []); +// useEffect(() => { +// const { screenHeight, safeArea = {} } = Taro.getSystemInfoSync(); +// // @ts-ignore +// newBottom = screenHeight - safeArea?.bottom ?? 0; +// setbottomheight(newBottom); +// }, []); - useEffect(() => { - // 设置标题 - definePageConfig({ - navigationBarTitleText: "打卡签到", - }); - }, []); +// useEffect(() => { +// // 设置标题 +// definePageConfig({ +// navigationBarTitleText: "打卡签到", +// }); +// }, []); - useEffect(() => { - let $instance: any = getCurrentInstance(); - let fileID: any = $instance?.router?.params?.fileID; - if (fileID) { - setfileID(fileID) - uploadTaro([fileID]); - } +// useEffect(() => { +// let $instance: any = getCurrentInstance(); +// let fileID: any = $instance?.router?.params?.fileID; +// if (fileID) { +// setfileID(fileID) +// uploadTaro([fileID]); +// } - Taro.cloud.callFunction({ - name: "getOpenid", - complete: async (res: any) => { - // console.log("callFunction test result: ", res); - let openid = res?.result?.event?.userInfo?.openId; - setopenid(openid); - }, - }); - }, []); +// Taro.cloud.callFunction({ +// name: "getOpenid", +// complete: async (res: any) => { +// // console.log("callFunction test result: ", res); +// let openid = res?.result?.event?.userInfo?.openId; +// setopenid(openid); +// }, +// }); +// }, []); - const uploadTaro = (tempFilePaths: any) => { - // 云开发存储文件 [/自动创建文件路径] - Taro.cloud.uploadFile({ - cloudPath: `images/dev/${new Date()?.getTime()}.png`, - filePath: tempFilePaths?.[0], // 文件路径 - success: (res: any) => { - console.log("res", res?.fileID); - setcloudfileID(res?.fileID); - }, - fail: (err: any) => { - // handle error - console.log("err", err); - }, - }); - }; +// const uploadTaro = (tempFilePaths: any) => { +// // 云开发存储文件 [/自动创建文件路径] +// Taro.cloud.uploadFile({ +// cloudPath: `images/dev/${new Date()?.getTime()}.png`, +// filePath: tempFilePaths?.[0], // 文件路径 +// success: (res: any) => { +// console.log("res", res?.fileID); +// setcloudfileID(res?.fileID); +// }, +// fail: (err: any) => { +// // handle error +// console.log("err", err); +// }, +// }); +// }; - return ( - -
console.info(errs, res)} - > - {/* 图片 */} - - - +// return ( +// +// console.info(errs, res)} +// > +// {/* 图片 */} +// +// +// - {/* 留言 */} - - - +// {/* 留言 */} +// +// +// - - { - Taro.chooseLocation({ - success: (res: any) => { - console.log("res", res); - const { address } = res; - setaddress(res?.address); - // setaddress(res?.name) +// +// { +// Taro.chooseLocation({ +// success: (res: any) => { +// console.log("res", res); +// const { address } = res; +// setaddress(res?.address); +// // setaddress(res?.name) - // address: "广东省深圳市宝安区创业一路1号" - // errMsg: "chooseLocation:ok" - // latitude: 22.55329 //纬度 - // longitude: 113.88308 //经度 - // name: "宝安区创业一路(深圳市宝安区人民政府)" - }, - }); - }} - renderTitle={ - - {address} - - } - /> - +// // address: "广东省深圳市宝安区创业一路1号" +// // errMsg: "chooseLocation:ok" +// // latitude: 22.55329 //纬度 +// // longitude: 113.88308 //经度 +// // name: "宝安区创业一路(深圳市宝安区人民政府)" +// }, +// }); +// }} +// renderTitle={ +// +// {address} +// +// } +// /> +// - { - // formIt?.submit() - formIt?.validateFields((errorMessage: any, fieldValues: any) => { - console.log("fieldValues---", fieldValues); +// { +// // formIt?.submit() +// formIt?.validateFields((errorMessage: any, fieldValues: any) => { +// console.log("fieldValues---", fieldValues); - // 提交打卡记录 +// // 提交打卡记录 - let postData = { - tableName: "userInfo", - keyValue: { openId: openid }, - okFun: (res: any) => { - console.log("提交打卡,res", res); +// let postData = { +// tableName: "userInfo", +// keyValue: { openId: openid }, +// okFun: (res: any) => { +// console.log("提交打卡,res", res); - let newobj = { - tableName: "userInfo", - id: res?.data?.[0]?._id, - objData: { - checkInArr: [ - ...(res?.data?.[0]?.checkInArr ?? []), - { - imageUrl: cloudfileID, - remark: fieldValues?.remark, - location: address, - }, - ], - }, - okFun: (okFunres: any) => { - console.log("提交打卡,res", okFunres); - Toast.success({ - message: "打卡成功", - selector: "#vanToast-demo2", - duration: 2000, - onClose: () => { - // 跳转到打卡页面 +// let newobj = { +// tableName: "userInfo", +// id: res?.data?.[0]?._id, +// objData: { +// checkInArr: [ +// ...(res?.data?.[0]?.checkInArr ?? []), +// { +// imageUrl: cloudfileID, +// remark: fieldValues?.remark, +// location: address, +// }, +// ], +// }, +// okFun: (okFunres: any) => { +// console.log("提交打卡,res", okFunres); +// Toast.success({ +// message: "打卡成功", +// selector: "#vanToast-demo2", +// duration: 2000, +// onClose: () => { +// // 跳转到打卡页面 - // 返回首页 [上一页] - Taro.navigateBack({ - // url: "/pages/home/index", - delta: 1, - }); - }, - }); - }, - }; - updateTableid({ ...newobj }); - }, - }; +// // 返回首页 [上一页] +// Taro.navigateBack({ +// // url: "/pages/home/index", +// delta: 1, +// }); +// }, +// }); +// }, +// }; +// updateTableid({ ...newobj }); +// }, +// }; - // 查询openid - getTable({ ...postData }); - }); - }} - > - - +// // 查询openid +// getTable({ ...postData }); +// }); +// }} +// > +// +// - - - -
- ); -}; +// +// +// +//
+// ); +// }; -export default CheckIn; +// export default CheckIn; diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index 7188c12..1fefaf5 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -261,7 +261,7 @@ const Home = () => { {/* 模块 */} - { }); } }} - /> + /> */} { */} - { }); } }} - /> + />} {/* */} {type !== "people" && (