feat: 300毫秒

This commit is contained in:
huxiaoshuang
2022-11-25 17:28:04 +08:00
parent 3a3ff5f5cc
commit 26fb8c3193
12 changed files with 330 additions and 320 deletions

2
dist/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -42,10 +42,18 @@
!*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***! !*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***!
\*************************************************************/ \*************************************************************/
/*!****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***!
\****************************************************************/
/*!****************************************************************!*\ /*!****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/createSuper.js ***! !*** ./node_modules/@babel/runtime/helpers/esm/createSuper.js ***!
\****************************************************************/ \****************************************************************/
/*!*******************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
\*******************************************************************/
/*!*******************************************************************!*\ /*!*******************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***! !*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
\*******************************************************************/ \*******************************************************************/

40
dist/common.wxss vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,12 @@
/*! ../../utils/index */ /*! ../../utils/index */
/*! ../button */
/*! ../button/index */
/*! ../cell */
/*! ../common/jumpLink */ /*! ../common/jumpLink */
/*! ../common/utils */ /*! ../common/utils */
@@ -18,18 +24,36 @@
/*! ../field */ /*! ../field */
/*! ../goods-action-button/index */
/*! ../goods-action/index */
/*! ../helpers/regeneratorRuntime */
/*! ../icon */
/*! ../icon/index */ /*! ../icon/index */
/*! ../popup/index */
/*! ../swiper/context */ /*! ../swiper/context */
/*! ../utils */
/*! ../wxs/add-unit */ /*! ../wxs/add-unit */
/*! ../wxs/style */ /*! ../wxs/style */
/*! ../wxs/utils */ /*! ../wxs/utils */
/*! ./../wxs/utils */
/*! ./context */ /*! ./context */
/*! ./dialog */
/*! ./events */
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ /*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ /*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
@@ -44,6 +68,10 @@
/*! ./swiper */ /*! ./swiper */
/*! ./type */
/*! ./typeof.js */
/*! ./wxs */ /*! ./wxs */
/*! @antmjs/vantui/es/dialog */ /*! @antmjs/vantui/es/dialog */
@@ -86,10 +114,14 @@
/*! classnames */ /*! classnames */
/*! rc-util/lib/Children/toArray */
/*! react */ /*! react */
/*! react/jsx-runtime */ /*! 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 ***! !*** ./src/pages/home/index.tsx ***!
\**********************************/ \**********************************/
@@ -102,10 +134,26 @@
!*** ./node_modules/@antmjs/vantui/es/grid/wxs.js ***! !*** ./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/grid/index.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 ***! !*** ./node_modules/@antmjs/vantui/es/search/index.js ***!
\********************************************************/ \********************************************************/
@@ -114,6 +162,14 @@
!*** ./node_modules/@antmjs/vantui/es/swiper/index.js ***! !*** ./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 ***! !*** ./node_modules/@antmjs/vantui/es/grid-item/wxs.js ***!
\*********************************************************/ \*********************************************************/
@@ -130,6 +186,10 @@
!*** ./node_modules/@antmjs/vantui/es/swiper/context.js ***! !*** ./node_modules/@antmjs/vantui/es/swiper/context.js ***!
\**********************************************************/ \**********************************************************/
/*!**********************************************************!*\
!*** ./node_modules/@babel/runtime/regenerator/index.js ***!
\**********************************************************/
/*!***********************************************************!*\ /*!***********************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/grid-item/index.js ***! !*** ./node_modules/@antmjs/vantui/es/grid-item/index.js ***!
\***********************************************************/ \***********************************************************/
@@ -142,6 +202,18 @@
!*** ./node_modules/@antmjs/vantui/es/swiper-item/index.js ***! !*** ./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 ***! !*** ./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 ***!
\************************************************************************************************************************************************/ \************************************************************************************************************************************************/

View File

@@ -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 ***! !*** 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} .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 ***! !*** 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 ***! !*** 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%} .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 ***! !*** 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 ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

2
dist/runtime.js vendored
View File

@@ -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<e.length;c++){t=e[c][0],_=e[c][1],n=e[c][2];for(var i=!0,o=0;o<t.length;o++)(!1&n||a>=n)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[o])}))?t.splice(o--,1):(i=!1,n<a&&(a=n));if(i){e.splice(c--,1);var u=_();void 0!==u&&(r=u)}}return r}n=n||0;for(var c=e.length;c>0&&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<u.length;c++){var p=u[c];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==t+n){i=p;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",t+n),i.src=e),r[e]=[_];var onScriptComplete=function(t,_){i.onerror=i.onload=null,clearTimeout(l);var n=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((function(e){return e(_)})),t)return t(_)},l=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=onScriptComplete.bind(null,i.onerror),i.onload=onScriptComplete.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_={"webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime":["default","./@tarojs/plugin-platform-weapp/dist/runtime",null],"webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime":["default","./@tarojs/plugin-framework-react/dist/runtime",null],"webpack/container/remote/lodash":["default","./lodash",null],"webpack/container/remote/@tarojs/runtime":["default","./@tarojs/runtime",null],"webpack/container/remote/@tarojs/taro":["default","./@tarojs/taro",null],"webpack/container/remote/react":["default","./react",null],"webpack/container/remote/react-dom":["default","./react-dom",null],"webpack/container/remote/react/jsx-runtime":["default","./react/jsx-runtime",null],"webpack/container/remote/moment":["default","./moment",null]},__webpack_require__.taro=function(e){for(var r in _){var t=e(_[r][1]);n[r]=function(e){return function(r){r.exports=e()}}(t)}},__webpack_require__.p="/",function(){var e={runtime:0};__webpack_require__.f.j=function(r,t){var _=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==_)if(_)t.push(_[2]);else if("runtime"!=r){var n=new Promise((function(t,n){_=e[r]=[t,n]}));t.push(_[2]=n);var a=__webpack_require__.p+__webpack_require__.u(r),i=new Error;__webpack_require__.l(a,(function(t){if(__webpack_require__.o(e,r)&&(0!==(_=e[r])&&(e[r]=void 0),_)){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+n+": "+a+")",i.name="ChunkLoadError",i.type=n,i.request=a,_[1](i)}}),"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=function(r){return 0===e[r]};var webpackJsonpCallback=function(r,t){var _,n,a=t[0],i=t[1],o=t[2],u=0;if(a.some((function(r){return 0!==e[r]}))){for(_ in i)__webpack_require__.o(i,_)&&(__webpack_require__.m[_]=i[_]);if(o)var c=o(__webpack_require__)}for(r&&r(t);u<a.length;u++)n=a[u],__webpack_require__.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return __webpack_require__.O(c)},r=wx.webpackJsonp=wx.webpackJsonp||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))}()}(); !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<e.length;c++){t=e[c][0],_=e[c][1],n=e[c][2];for(var i=!0,o=0;o<t.length;o++)(!1&n||a>=n)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[o])}))?t.splice(o--,1):(i=!1,n<a&&(a=n));if(i){e.splice(c--,1);var u=_();void 0!==u&&(r=u)}}return r}n=n||0;for(var c=e.length;c>0&&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<u.length;c++){var p=u[c];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==t+n){i=p;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",t+n),i.src=e),r[e]=[_];var onScriptComplete=function(t,_){i.onerror=i.onload=null,clearTimeout(l);var n=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((function(e){return e(_)})),t)return t(_)},l=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=onScriptComplete.bind(null,i.onerror),i.onload=onScriptComplete.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_={"webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime":["default","./@tarojs/plugin-platform-weapp/dist/runtime",null],"webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime":["default","./@tarojs/plugin-framework-react/dist/runtime",null],"webpack/container/remote/react-dom":["default","./react-dom",null],"webpack/container/remote/lodash":["default","./lodash",null],"webpack/container/remote/@tarojs/runtime":["default","./@tarojs/runtime",null],"webpack/container/remote/@tarojs/taro":["default","./@tarojs/taro",null],"webpack/container/remote/react":["default","./react",null],"webpack/container/remote/react/jsx-runtime":["default","./react/jsx-runtime",null],"webpack/container/remote/moment":["default","./moment",null]},__webpack_require__.taro=function(e){for(var r in _){var t=e(_[r][1]);n[r]=function(e){return function(r){r.exports=e()}}(t)}},__webpack_require__.p="/",function(){var e={runtime:0};__webpack_require__.f.j=function(r,t){var _=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==_)if(_)t.push(_[2]);else if("runtime"!=r){var n=new Promise((function(t,n){_=e[r]=[t,n]}));t.push(_[2]=n);var a=__webpack_require__.p+__webpack_require__.u(r),i=new Error;__webpack_require__.l(a,(function(t){if(__webpack_require__.o(e,r)&&(0!==(_=e[r])&&(e[r]=void 0),_)){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+n+": "+a+")",i.name="ChunkLoadError",i.type=n,i.request=a,_[1](i)}}),"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=function(r){return 0===e[r]};var webpackJsonpCallback=function(r,t){var _,n,a=t[0],i=t[1],o=t[2],u=0;if(a.some((function(r){return 0!==e[r]}))){for(_ in i)__webpack_require__.o(i,_)&&(__webpack_require__.m[_]=i[_]);if(o)var c=o(__webpack_require__)}for(r&&r(t);u<a.length;u++)n=a[u],__webpack_require__.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return __webpack_require__.O(c)},r=wx.webpackJsonp=wx.webpackJsonp||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))}()}();

2
dist/taro.js vendored
View File

@@ -1,2 +1,2 @@
/*! For license information please see taro.js.LICENSE.txt */ /*! For license information please see taro.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["taro"],{"./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":function(t,n,e){e.d(n,{Button:function(){return a},Form:function(){return i},Image:function(){return m},Input:function(){return c},Navigator:function(){return s},RichText:function(){return o},Text:function(){return u},Textarea:function(){return p},Video:function(){return f},View:function(){return r}});var r="view",o="rich-text",u="text",a="button",i="form",c="input",p="textarea",s="navigator",m="image",f="video"},"./node_modules/@tarojs/webpack5-runner/dist/template/comp.js":function(t,n,e){var r=e("webpack/container/remote/@tarojs/runtime");Component((0,r.createRecursiveComponentConfig)())},"./node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":function(t,n,e){var r=e("webpack/container/remote/@tarojs/runtime");Component((0,r.createRecursiveComponentConfig)("custom-wrapper"))}}]); "use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["taro"],{"./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":function(t,e,n){n.d(e,{Button:function(){return a},Image:function(){return s},Input:function(){return i},Navigator:function(){return p},RichText:function(){return o},Text:function(){return u},Textarea:function(){return c},Video:function(){return m},View:function(){return r}});var r="view",o="rich-text",u="text",a="button",i="input",c="textarea",p="navigator",s="image",m="video"},"./node_modules/@tarojs/webpack5-runner/dist/template/comp.js":function(t,e,n){var r=n("webpack/container/remote/@tarojs/runtime");Component((0,r.createRecursiveComponentConfig)())},"./node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":function(t,e,n){var r=n("webpack/container/remote/@tarojs/runtime");Component((0,r.createRecursiveComponentConfig)("custom-wrapper"))}}]);

2
dist/vendors.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,21 +1,9 @@
/*! ../button */
/*! ../button/index */
/*! ../cell */
/*! ../common/jumpLink */ /*! ../common/jumpLink */
/*! ../common/utils */ /*! ../common/utils */
/*! ../common/validator */ /*! ../common/validator */
/*! ../goods-action-button/index */
/*! ../goods-action/index */
/*! ../helpers/regeneratorRuntime */
/*! ../icon */ /*! ../icon */
/*! ../icon/index */ /*! ../icon/index */
@@ -28,12 +16,8 @@
/*! ../overlay/index */ /*! ../overlay/index */
/*! ../popup/index */
/*! ../transition/index */ /*! ../transition/index */
/*! ../utils */
/*! ../wxs/add-unit */ /*! ../wxs/add-unit */
/*! ../wxs/style */ /*! ../wxs/style */
@@ -50,8 +34,6 @@
/*! ./../transition */ /*! ./../transition */
/*! ./../wxs/utils */
/*! ./add-unit */ /*! ./add-unit */
/*! ./array */ /*! ./array */
@@ -68,8 +50,6 @@
/*! ./defineProperty.js */ /*! ./defineProperty.js */
/*! ./dialog */
/*! ./events */ /*! ./events */
/*! ./iterableToArray.js */ /*! ./iterableToArray.js */
@@ -92,8 +72,6 @@
/*! ./toast */ /*! ./toast */
/*! ./type */
/*! ./typeof.js */ /*! ./typeof.js */
/*! ./unsupportedIterableToArray.js */ /*! ./unsupportedIterableToArray.js */
@@ -158,10 +136,6 @@
!*** ./node_modules/@antmjs/vantui/es/icon/wxs.js ***! !*** ./node_modules/@antmjs/vantui/es/icon/wxs.js ***!
\****************************************************/ \****************************************************/
/*!*****************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/field/wxs.js ***!
\*****************************************************/
/*!*****************************************************!*\ /*!*****************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/image/wxs.js ***! !*** ./node_modules/@antmjs/vantui/es/image/wxs.js ***!
\*****************************************************/ \*****************************************************/
@@ -214,10 +188,6 @@
!*** ./node_modules/rc-util/lib/Children/toArray.js ***! !*** ./node_modules/rc-util/lib/Children/toArray.js ***!
\******************************************************/ \******************************************************/
/*!*******************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/field/index.js ***!
\*******************************************************/
/*!*******************************************************!*\ /*!*******************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/image/index.js ***! !*** ./node_modules/@antmjs/vantui/es/image/index.js ***!
\*******************************************************/ \*******************************************************/
@@ -238,10 +208,6 @@
!*** ./node_modules/@antmjs/vantui/es/toast/toast.js ***! !*** ./node_modules/@antmjs/vantui/es/toast/toast.js ***!
\*******************************************************/ \*******************************************************/
/*!*******************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/utils/index.js ***!
\*******************************************************/
/*!*******************************************************!*\ /*!*******************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/wxs/memoize.js ***! !*** ./node_modules/@antmjs/vantui/es/wxs/memoize.js ***!
\*******************************************************/ \*******************************************************/
@@ -258,10 +224,6 @@
!*** ./node_modules/@antmjs/vantui/es/common/utils.js ***! !*** ./node_modules/@antmjs/vantui/es/common/utils.js ***!
\********************************************************/ \********************************************************/
/*!********************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/dialog/index.js ***!
\********************************************************/
/*!********************************************************!*\ /*!********************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/tabbar/index.js ***! !*** ./node_modules/@antmjs/vantui/es/tabbar/index.js ***!
\********************************************************/ \********************************************************/
@@ -274,14 +236,6 @@
!*** ./node_modules/@antmjs/vantui/es/wxs/add-unit.js ***! !*** ./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 ***! !*** ./node_modules/@antmjs/vantui/es/loading/index.js ***!
\*********************************************************/ \*********************************************************/
@@ -298,10 +252,6 @@
!*** ./node_modules/@antmjs/vantui/es/transition/wxs.js ***! !*** ./node_modules/@antmjs/vantui/es/transition/wxs.js ***!
\**********************************************************/ \**********************************************************/
/*!**********************************************************!*\
!*** ./node_modules/@babel/runtime/regenerator/index.js ***!
\**********************************************************/
/*!***********************************************************!*\ /*!***********************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/common/jumpLink.js ***! !*** ./node_modules/@antmjs/vantui/es/common/jumpLink.js ***!
\***********************************************************/ \***********************************************************/
@@ -334,14 +284,6 @@
!*** ./node_modules/performance-now/lib/performance-now.js ***! !*** ./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 ***! !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
\******************************************************************/ \******************************************************************/
@@ -354,18 +296,10 @@
!*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***! !*** ./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/esm/defineProperty.js ***!
\*******************************************************************/ \*******************************************************************/
/*!*******************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
\*******************************************************************/
/*!********************************************************************!*\ /*!********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***! !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
\********************************************************************/ \********************************************************************/
@@ -374,10 +308,6 @@
!*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.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 ***! !*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
\*********************************************************************/ \*********************************************************************/

View File

@@ -1,237 +1,237 @@
import { // import {
Button, // Button,
CellGroup, // CellGroup,
Dialog, // Dialog,
Field, // Field,
Form, // Form,
Image, // Image,
FormItem, // FormItem,
Icon, // Icon,
Toast, // Toast,
Cell, // Cell,
Tag, // Tag,
} from "@antmjs/vantui"; // } from "@antmjs/vantui";
import { Input, View } from "@tarojs/components"; // import { Input, View } from "@tarojs/components";
import Taro from "@tarojs/taro"; // import Taro from "@tarojs/taro";
import { getCurrentInstance } from "@tarojs/taro"; // import { getCurrentInstance } from "@tarojs/taro";
import React, { useCallback, useEffect, useState } from "react"; // import React, { useCallback, useEffect, useState } from "react";
import "./index.scss"; // import "./index.scss";
import { Uploader } from "@antmjs/vantui"; // import { Uploader } from "@antmjs/vantui";
import { getparams, getTable, updateTableid } from "../../../../utils/index"; // import { getparams, getTable, updateTableid } from "../../../../utils/index";
const CheckIn = () => { // const CheckIn = () => {
const formIt = Form.useForm(); // const formIt = Form.useForm();
const [bottomheight, setbottomheight] = useState(0); // const [bottomheight, setbottomheight] = useState(0);
const [cloudfileID, setcloudfileID] = useState(); // const [cloudfileID, setcloudfileID] = useState();
const [address, setaddress] = useState(); //地址 // const [address, setaddress] = useState(); //地址
const [openid, setopenid] = useState(); // const [openid, setopenid] = useState();
const [fileID, setfileID] = useState(""); // const [fileID, setfileID] = useState("");
const [value, setValue] = useState([ // const [value, setValue] = useState([
// { // // {
// url: "https://img.yzcdn.cn/vant/leaf.jpg", // // url: "https://img.yzcdn.cn/vant/leaf.jpg",
// name: "图片1", // // 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 deleteAction = (event) => {
// const { index } = event.detail;
// const valueNew = JSON.parse(JSON.stringify(value));
// valueNew.splice(index, 1);
// setValue(valueNew);
// };
// let newBottom = 0;
// useEffect(() => {
// const { screenHeight, safeArea = {} } = Taro.getSystemInfoSync();
// // @ts-ignore
// newBottom = screenHeight - safeArea?.bottom ?? 0;
// setbottomheight(newBottom);
// }, []);
// useEffect(() => {
// // 设置标题
// definePageConfig({
// navigationBarTitleText: "打卡签到",
// });
// }, []);
// 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);
// }, // },
// { // });
// url: "https://img.yzcdn.cn/vant/tree.jpg", // }, []);
// 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 afterRead = (event) => { // return (
const { file, name } = event.detail; // <View className="CheckIn">
// 可在此处新增云上传图片操作 // <Form
console.log("file", file); // initialValues={{
setValue(value.concat(file)); // // userName: "我是初始值",
uploadTaro([file?.url]); // singleSelect: "1",
}; // rate: 2,
// slider: "50",
// }}
// form={formIt}
// onFinish={(errs, res) => console.info(errs, res)}
// >
// {/* 图片 */}
// <View>
// <Image width="100%" height="300px" fit="cover" src={fileID} />
// </View>
const deleteAction = (event) => { // {/* 留言 */}
const { index } = event.detail; // <FormItem
const valueNew = JSON.parse(JSON.stringify(value));
valueNew.splice(index, 1);
setValue(valueNew);
};
let newBottom = 0;
useEffect(() => {
const { screenHeight, safeArea = {} } = Taro.getSystemInfoSync();
// @ts-ignore
newBottom = screenHeight - safeArea?.bottom ?? 0;
setbottomheight(newBottom);
}, []);
useEffect(() => {
// 设置标题
definePageConfig({
navigationBarTitleText: "打卡签到",
});
}, []);
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);
},
});
}, []);
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 (
<View className="CheckIn">
<Form
initialValues={{
// userName: "我是初始值",
singleSelect: "1",
rate: 2,
slider: "50",
}}
form={formIt}
onFinish={(errs, res) => console.info(errs, res)}
>
{/* 图片 */}
<View>
<Image width="100%" height="300px" fit="cover" src={fileID} />
</View>
{/* 留言 */}
<FormItem
label="留言"
name="remark"
// required
layout="vertical"
>
<Field
// label="留言" // label="留言"
type="textarea" // name="remark"
placeholder="分享你的心情和故事吧~" // // required
autosize={{ minHeight: "100px" }} // layout="vertical"
border={true} // >
/> // <Field
</FormItem> // // label="留言"
// type="textarea"
// placeholder="分享你的心情和故事吧~"
// autosize={{ minHeight: "100px" }}
// border={true}
// />
// </FormItem>
<View> // <View>
<Cell // <Cell
value="" // value=""
icon="location" // icon="location"
isLink // isLink
onClick={() => { // onClick={() => {
Taro.chooseLocation({ // Taro.chooseLocation({
success: (res: any) => { // success: (res: any) => {
console.log("res", res); // console.log("res", res);
const { address } = res; // const { address } = res;
setaddress(res?.address); // setaddress(res?.address);
// setaddress(res?.name) // // setaddress(res?.name)
// address: "广东省深圳市宝安区创业一路1号" // // address: "广东省深圳市宝安区创业一路1号"
// errMsg: "chooseLocation:ok" // // errMsg: "chooseLocation:ok"
// latitude: 22.55329 //纬度 // // latitude: 22.55329 //纬度
// longitude: 113.88308 //经度 // // longitude: 113.88308 //经度
// name: "宝安区创业一路(深圳市宝安区人民政府)" // // name: "宝安区创业一路(深圳市宝安区人民政府)"
}, // },
}); // });
}} // }}
renderTitle={ // renderTitle={
<View> // <View>
<View className="address">{address}</View> // <View className="address">{address}</View>
</View> // </View>
} // }
/> // />
</View> // </View>
<View // <View
style={{ // style={{
bottom: `${bottomheight ?? 0}px`, // bottom: `${bottomheight ?? 0}px`,
position: "fixed", // position: "fixed",
width: "95%", // width: "95%",
}} // }}
onClick={async () => { // onClick={async () => {
// formIt?.submit() // // formIt?.submit()
formIt?.validateFields((errorMessage: any, fieldValues: any) => { // formIt?.validateFields((errorMessage: any, fieldValues: any) => {
console.log("fieldValues---", fieldValues); // console.log("fieldValues---", fieldValues);
// 提交打卡记录 // // 提交打卡记录
let postData = { // let postData = {
tableName: "userInfo", // tableName: "userInfo",
keyValue: { openId: openid }, // keyValue: { openId: openid },
okFun: (res: any) => { // okFun: (res: any) => {
console.log("提交打卡,res", res); // console.log("提交打卡,res", res);
let newobj = { // let newobj = {
tableName: "userInfo", // tableName: "userInfo",
id: res?.data?.[0]?._id, // id: res?.data?.[0]?._id,
objData: { // objData: {
checkInArr: [ // checkInArr: [
...(res?.data?.[0]?.checkInArr ?? []), // ...(res?.data?.[0]?.checkInArr ?? []),
{ // {
imageUrl: cloudfileID, // imageUrl: cloudfileID,
remark: fieldValues?.remark, // remark: fieldValues?.remark,
location: address, // location: address,
}, // },
], // ],
}, // },
okFun: (okFunres: any) => { // okFun: (okFunres: any) => {
console.log("提交打卡,res", okFunres); // console.log("提交打卡,res", okFunres);
Toast.success({ // Toast.success({
message: "打卡成功", // message: "打卡成功",
selector: "#vanToast-demo2", // selector: "#vanToast-demo2",
duration: 2000, // duration: 2000,
onClose: () => { // onClose: () => {
// 跳转到打卡页面 // // 跳转到打卡页面
// 返回首页 [上一页] // // 返回首页 [上一页]
Taro.navigateBack({ // Taro.navigateBack({
// url: "/pages/home/index", // // url: "/pages/home/index",
delta: 1, // delta: 1,
}); // });
}, // },
}); // });
}, // },
}; // };
updateTableid({ ...newobj }); // updateTableid({ ...newobj });
}, // },
}; // };
// 查询openid // // 查询openid
getTable({ ...postData }); // getTable({ ...postData });
}); // });
}} // }}
> // >
<Button type="primary" block> // <Button type="primary" block>
// 签到打卡
</Button> // </Button>
</View> // </View>
<Dialog id="form-demo3" /> // <Dialog id="form-demo3" />
<Toast id="vanToast-demo2" /> // <Toast id="vanToast-demo2" />
</Form> // </Form>
</View> // </View>
); // );
}; // };
export default CheckIn; // export default CheckIn;

View File

@@ -228,7 +228,7 @@ const Home = () => {
getsystemConfig(); //获取系统配置 getsystemConfig(); //获取系统配置
setTimeout(() => { setTimeout(() => {
getdetails(); //获取活动详情 getdetails(); //获取活动详情
}, 1000); }, 300);
uploadTaro(tempFilePaths); uploadTaro(tempFilePaths);
}, },
}); });