feat: 二维码组件
This commit is contained in:
8
dist/app.js
vendored
8
dist/app.js
vendored
@@ -23,9 +23,9 @@ require("./runtime");
|
||||
|
||||
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["app"],{
|
||||
|
||||
/***/ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./src/app.jsx":
|
||||
/***/ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./src/app.jsx":
|
||||
/*!******************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./src/app.jsx ***!
|
||||
!*** ./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./src/app.jsx ***!
|
||||
\******************************************************************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
@@ -76,7 +76,7 @@ class App extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
||||
/* harmony import */ var _tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_app_app_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !!../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./app.jsx */ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./src/app.jsx");
|
||||
/* harmony import */ var _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_app_app_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !!../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./app.jsx */ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./src/app.jsx");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-dom */ "webpack/container/remote/react-dom");
|
||||
@@ -95,7 +95,7 @@ class App extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
||||
|
||||
var config = {"pages":["pages/home/index","pages/index/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"},"lazyCodeLoading":"requiredComponents"};
|
||||
_tarojs_runtime__WEBPACK_IMPORTED_MODULE_2__.window.__taroAppConfig = config
|
||||
var inst = App((0,_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_3__.createReactApp)(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_app_app_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], react__WEBPACK_IMPORTED_MODULE_6__, (react_dom__WEBPACK_IMPORTED_MODULE_7___default()), config))
|
||||
var inst = App((0,_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_3__.createReactApp)(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_app_app_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], react__WEBPACK_IMPORTED_MODULE_6__, (react_dom__WEBPACK_IMPORTED_MODULE_7___default()), config))
|
||||
|
||||
;(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_4__.initPxTransform)({
|
||||
designWidth: function designWidth(input) {
|
||||
|
||||
2
dist/app.js.map
vendored
2
dist/app.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AC9BA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrBA;AACA;AAEA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AAEA;AAEA;AAAA;AAIA;AAIA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AACA","sources":["webpack://taro-template/._src_app.jsx","webpack://taro-template/./src/app.jsx?b80d","webpack://taro-template/._src_reducers_counter.js","webpack://taro-template/._src_reducers_index.js","webpack://taro-template/._src_store_index.js"],"sourcesContent":["import { Component } from 'react';\nimport { Provider } from 'react-redux';\nimport configStore from './store';\nimport './app.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst store = configStore();\nclass App extends Component {\n componentDidMount() {}\n componentDidShow() {}\n componentDidHide() {}\n\n // 在 App 类中的 render() 函数没有实际作用\n // 请勿修改此函数\n render() {\n return /*#__PURE__*/_jsx(Provider, {\n store: store,\n children: this.props.children\n });\n }\n}\nexport default App;","import '@tarojs/plugin-platform-weapp/dist/runtime'\nimport '@tarojs/plugin-html/dist/runtime'\n\nimport { window } from '@tarojs/runtime'\nimport { createReactApp } from '@tarojs/plugin-framework-react/dist/runtime'\nimport { initPxTransform } from '@tarojs/taro'\n\nimport component from \"!!../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./app.jsx\"\n\nimport * as React from 'react'\nimport ReactDOM from 'react-dom'\n\nvar config = {\"pages\":[\"pages/home/index\",\"pages/index/index\"],\"window\":{\"backgroundTextStyle\":\"light\",\"navigationBarBackgroundColor\":\"#fff\",\"navigationBarTitleText\":\"WeChat\",\"navigationBarTextStyle\":\"black\"},\"lazyCodeLoading\":\"requiredComponents\"};\nwindow.__taroAppConfig = config\nvar inst = App(createReactApp(component, React, ReactDOM, config))\n\ninitPxTransform({\n designWidth: function designWidth(input) {\n var _input_file;\n // 配置 NutUI 375 尺寸\n if ((input === null || input === void 0 ? void 0 : (_input_file = input.file) === null || _input_file === void 0 ? void 0 : _input_file.replace(/\\\\+/g, \"/\").indexOf(\"@nutui\")) > -1) {\n return 375;\n }\n // 全局使用 Taro 默认的 750 尺寸\n return 750;\n },\n deviceRatio: {\"375\":2,\"640\":1.17,\"750\":1,\"828\":0.905},\n baseFontSize: 20,\n unitPrecision: undefined,\n targetUnit: undefined\n})\n","import { ADD, MINUS } from '../constants/counter'\n\nconst INITIAL_STATE = {\n num: 0\n}\n\nexport default function counter (state = INITIAL_STATE, action) {\n switch (action.type) {\n case ADD:\n return {\n ...state,\n num: state.num + 1\n }\n case MINUS:\n return {\n ...state,\n num: state.num - 1\n }\n default:\n return state\n }\n}\n","import { combineReducers } from 'redux'\nimport counter from './counter'\n\nexport default combineReducers({\n counter\n})\n","import { legacy_createStore as createStore, applyMiddleware, compose } from 'redux'\nimport thunkMiddleware from 'redux-thunk'\nimport logger from 'redux-logger'\nimport rootReducer from '../reducers'\n\nconst composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\n ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({\n // Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...\n })\n : compose\n\nconst middlewares = [\n thunkMiddleware\n]\n\nif (process.env.NODE_ENV === 'development') {\n middlewares.push(logger)\n}\n\nconst enhancer = composeEnhancers(\n applyMiddleware(...middlewares),\n // other store enhancers if any\n)\n\nexport default function configStore () {\n const store = createStore(rootReducer, enhancer)\n return store\n}\n"],"names":[],"sourceRoot":""}
|
||||
{"version":3,"file":"app.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AC9BA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrBA;AACA;AAEA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AAEA;AAEA;AAAA;AAIA;AAIA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AACA","sources":["webpack://taro-template/._src_app.jsx","webpack://taro-template/./src/app.jsx?318c","webpack://taro-template/._src_reducers_counter.js","webpack://taro-template/._src_reducers_index.js","webpack://taro-template/._src_store_index.js"],"sourcesContent":["import { Component } from 'react';\nimport { Provider } from 'react-redux';\nimport configStore from './store';\nimport './app.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst store = configStore();\nclass App extends Component {\n componentDidMount() {}\n componentDidShow() {}\n componentDidHide() {}\n\n // 在 App 类中的 render() 函数没有实际作用\n // 请勿修改此函数\n render() {\n return /*#__PURE__*/_jsx(Provider, {\n store: store,\n children: this.props.children\n });\n }\n}\nexport default App;","import '@tarojs/plugin-platform-weapp/dist/runtime'\nimport '@tarojs/plugin-html/dist/runtime'\n\nimport { window } from '@tarojs/runtime'\nimport { createReactApp } from '@tarojs/plugin-framework-react/dist/runtime'\nimport { initPxTransform } from '@tarojs/taro'\n\nimport component from \"!!../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=app!./app.jsx\"\n\nimport * as React from 'react'\nimport ReactDOM from 'react-dom'\n\nvar config = {\"pages\":[\"pages/home/index\",\"pages/index/index\"],\"window\":{\"backgroundTextStyle\":\"light\",\"navigationBarBackgroundColor\":\"#fff\",\"navigationBarTitleText\":\"WeChat\",\"navigationBarTextStyle\":\"black\"},\"lazyCodeLoading\":\"requiredComponents\"};\nwindow.__taroAppConfig = config\nvar inst = App(createReactApp(component, React, ReactDOM, config))\n\ninitPxTransform({\n designWidth: function designWidth(input) {\n var _input_file;\n // 配置 NutUI 375 尺寸\n if ((input === null || input === void 0 ? void 0 : (_input_file = input.file) === null || _input_file === void 0 ? void 0 : _input_file.replace(/\\\\+/g, \"/\").indexOf(\"@nutui\")) > -1) {\n return 375;\n }\n // 全局使用 Taro 默认的 750 尺寸\n return 750;\n },\n deviceRatio: {\"375\":2,\"640\":1.17,\"750\":1,\"828\":0.905},\n baseFontSize: 20,\n unitPrecision: undefined,\n targetUnit: undefined\n})\n","import { ADD, MINUS } from '../constants/counter'\n\nconst INITIAL_STATE = {\n num: 0\n}\n\nexport default function counter (state = INITIAL_STATE, action) {\n switch (action.type) {\n case ADD:\n return {\n ...state,\n num: state.num + 1\n }\n case MINUS:\n return {\n ...state,\n num: state.num - 1\n }\n default:\n return state\n }\n}\n","import { combineReducers } from 'redux'\nimport counter from './counter'\n\nexport default combineReducers({\n counter\n})\n","import { legacy_createStore as createStore, applyMiddleware, compose } from 'redux'\nimport thunkMiddleware from 'redux-thunk'\nimport logger from 'redux-logger'\nimport rootReducer from '../reducers'\n\nconst composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\n ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({\n // Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...\n })\n : compose\n\nconst middlewares = [\n thunkMiddleware\n]\n\nif (process.env.NODE_ENV === 'development') {\n middlewares.push(logger)\n}\n\nconst enhancer = composeEnhancers(\n applyMiddleware(...middlewares),\n // other store enhancers if any\n)\n\nexport default function configStore () {\n const store = createStore(rootReducer, enhancer)\n return store\n}\n"],"names":[],"sourceRoot":""}
|
||||
23
dist/app.wxss
vendored
23
dist/app.wxss
vendored
@@ -1,5 +1,5 @@
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/.pnpm/css-loader@7.1.2_webpack@5.91.0_@swc+core@1.3.96_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_@swc+core@1.3.96_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/.pnpm/resolve-url-loader@5.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@14.2.1_sass@1.83.0_webpack@5.91.0_@swc+core@1.3.96_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/app.scss ***!
|
||||
!*** css ./node_modules/.pnpm/css-loader@7.1.2_webpack@5.94.0_@swc+core@1.3.96_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.94.0_@swc+core@1.3.96_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/.pnpm/resolve-url-loader@5.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@14.2.1_sass@1.83.0_webpack@5.94.0_@swc+core@1.3.96_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/app.scss ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
::backdrop {
|
||||
--tw-border-spacing-x: 0;
|
||||
@@ -54,9 +54,30 @@
|
||||
--tw-contain-paint: ;
|
||||
--tw-contain-style:
|
||||
}
|
||||
.static {
|
||||
position: static
|
||||
}
|
||||
.absolute {
|
||||
position: absolute
|
||||
}
|
||||
.-z-10 {
|
||||
z-index: -10
|
||||
}
|
||||
.block {
|
||||
display: block
|
||||
}
|
||||
.table {
|
||||
display: table
|
||||
}
|
||||
.ih-full {
|
||||
height: 100% !important
|
||||
}
|
||||
.iw-full {
|
||||
width: 100% !important
|
||||
}
|
||||
.border {
|
||||
border-width: 1rpx
|
||||
}
|
||||
.text-_red_ {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(255 0 0 / var(--tw-text-opacity, 1))
|
||||
|
||||
6
dist/base.wxml
vendored
6
dist/base.wxml
vendored
@@ -69,6 +69,12 @@
|
||||
</image>
|
||||
</template>
|
||||
|
||||
<template name="tmpl_0_16">
|
||||
<canvas canvas-id="{{i.p0}}" disable-scroll="{{i.p1||!1}}" binderror="eh" bindtouchstart="eh" bindtouchmove="eh" bindtouchend="eh" bindtouchcancel="eh" bindlongtap="eh" type="{{i.p2}}" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
|
||||
<template is="{{xs.a(c, item.nn, l)}}" data="{{i:item,c:c+1,l:xs.f(l,item.nn)}}" wx:for="{{i.cn}}" wx:key="sid" />
|
||||
</canvas>
|
||||
</template>
|
||||
|
||||
<template name="tmpl_0_9">
|
||||
<block>{{i.v}}</block>
|
||||
</template>
|
||||
|
||||
2
dist/comp.js
vendored
2
dist/comp.js
vendored
@@ -2,7 +2,7 @@
|
||||
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["comp"],{},
|
||||
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
||||
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
||||
/******/ __webpack_require__.O(0, ["taro","common"], function() { return __webpack_exec__("./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_bde7hlupvtnhjp5wnja2su6pqy/node_modules/@tarojs/webpack5-runner/dist/template/comp.js"); });
|
||||
/******/ __webpack_require__.O(0, ["taro","common"], function() { return __webpack_exec__("./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_vwsmwh3bdevzqpifefvyk27xte/node_modules/@tarojs/webpack5-runner/dist/template/comp.js"); });
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||||
/******/ }
|
||||
]);
|
||||
248
dist/pages/home/index.js
vendored
248
dist/pages/home/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/home/index.js.map
vendored
2
dist/pages/home/index.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"sources":[""],"names":[],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwOA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;;;;AAIA;AACA;AACA;AACA;AACA;;;;AAIA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
||||
{"version":3,"sources":[""],"names":[],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwOA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,eAAe;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;;;;AAIA;AACA;AACA;AACA;AACA;;;;AAIA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
||||
6
dist/pages/home/index.wxss
vendored
6
dist/pages/home/index.wxss
vendored
File diff suppressed because one or more lines are too long
14
dist/pages/index/index.js
vendored
14
dist/pages/index/index.js
vendored
@@ -1,9 +1,9 @@
|
||||
"use strict";
|
||||
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/index/index"],{
|
||||
|
||||
/***/ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./src/pages/index/index.jsx":
|
||||
/***/ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./src/pages/index/index.jsx":
|
||||
/*!**********************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./src/pages/index/index.jsx ***!
|
||||
!*** ./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./src/pages/index/index.jsx ***!
|
||||
\**********************************************************************************************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
@@ -120,22 +120,22 @@ function asyncAdd() {
|
||||
|
||||
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime");
|
||||
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./index.jsx */ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./src/pages/index/index.jsx");
|
||||
/* harmony import */ var _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./index.jsx */ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./src/pages/index/index.jsx");
|
||||
|
||||
|
||||
var config = {"navigationBarTitleText":"首页"};
|
||||
|
||||
|
||||
|
||||
var taroOption = (0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/index/index', {root:{cn:[]}}, config || {})
|
||||
if (_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"] && _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"].behaviors) {
|
||||
taroOption.behaviors = (taroOption.behaviors || []).concat(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"].behaviors)
|
||||
var taroOption = (0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/index/index', {root:{cn:[]}}, config || {})
|
||||
if (_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"] && _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"].behaviors) {
|
||||
taroOption.behaviors = (taroOption.behaviors || []).concat(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"].behaviors)
|
||||
}
|
||||
var inst = Page(taroOption)
|
||||
|
||||
|
||||
|
||||
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
||||
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_index_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
2
dist/pages/index/index.js.map
vendored
2
dist/pages/index/index.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"pages/index/index.js","mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC1DA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://taro-template/._src_pages_index_index.jsx","webpack://taro-template/._src_actions_counter.js","webpack://taro-template/./src/pages/index/index.jsx?e561"],"sourcesContent":["var _dec, _class;\nimport { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { View, Button, Text } from '@tarojs/components';\nimport { add, minus, asyncAdd } from '../../actions/counter';\nimport './index.scss';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nlet Index = (_dec = connect(_ref => {\n let {\n counter\n } = _ref;\n return {\n counter\n };\n}, dispatch => ({\n add() {\n dispatch(add());\n },\n dec() {\n dispatch(minus());\n },\n asyncAdd() {\n dispatch(asyncAdd());\n }\n})), _dec(_class = class Index extends Component {\n componentWillReceiveProps(nextProps) {\n console.log(this.props, nextProps);\n }\n componentWillUnmount() {}\n componentDidShow() {}\n componentDidHide() {}\n render() {\n return /*#__PURE__*/_jsxs(View, {\n className: \"index\",\n children: [/*#__PURE__*/_jsx(Button, {\n className: \"add_btn\",\n onClick: this.props.add,\n children: \"+\"\n }), /*#__PURE__*/_jsx(Button, {\n className: \"dec_btn\",\n onClick: this.props.dec,\n children: \"-\"\n }), /*#__PURE__*/_jsx(Button, {\n className: \"dec_btn\",\n onClick: this.props.asyncAdd,\n children: \"async\"\n }), /*#__PURE__*/_jsx(View, {\n children: /*#__PURE__*/_jsx(Text, {\n children: this.props.counter.num\n })\n }), /*#__PURE__*/_jsx(View, {\n children: /*#__PURE__*/_jsx(Text, {\n children: \"Hello, World\"\n })\n })]\n });\n }\n}) || _class);\nexport default Index;","import {\n ADD,\n MINUS\n} from '../constants/counter'\n\nexport const add = () => {\n return {\n type: ADD\n }\n}\nexport const minus = () => {\n return {\n type: MINUS\n }\n}\n\n// 异步的action\nexport function asyncAdd () {\n return dispatch => {\n setTimeout(() => {\n dispatch(add())\n }, 2000)\n }\n}\n","import { createPageConfig } from '@tarojs/runtime'\nimport component from \"!!../../../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./index.jsx\"\nvar config = {\"navigationBarTitleText\":\"首页\"};\n\n\n\nvar taroOption = createPageConfig(component, 'pages/index/index', {root:{cn:[]}}, config || {})\nif (component && component.behaviors) {\n taroOption.behaviors = (taroOption.behaviors || []).concat(component.behaviors)\n}\nvar inst = Page(taroOption)\n\n\n\nexport default component\n"],"names":[],"sourceRoot":""}
|
||||
{"version":3,"file":"pages/index/index.js","mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC1DA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://taro-template/._src_pages_index_index.jsx","webpack://taro-template/._src_actions_counter.js","webpack://taro-template/./src/pages/index/index.jsx?f861"],"sourcesContent":["var _dec, _class;\nimport { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { View, Button, Text } from '@tarojs/components';\nimport { add, minus, asyncAdd } from '../../actions/counter';\nimport './index.scss';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nlet Index = (_dec = connect(_ref => {\n let {\n counter\n } = _ref;\n return {\n counter\n };\n}, dispatch => ({\n add() {\n dispatch(add());\n },\n dec() {\n dispatch(minus());\n },\n asyncAdd() {\n dispatch(asyncAdd());\n }\n})), _dec(_class = class Index extends Component {\n componentWillReceiveProps(nextProps) {\n console.log(this.props, nextProps);\n }\n componentWillUnmount() {}\n componentDidShow() {}\n componentDidHide() {}\n render() {\n return /*#__PURE__*/_jsxs(View, {\n className: \"index\",\n children: [/*#__PURE__*/_jsx(Button, {\n className: \"add_btn\",\n onClick: this.props.add,\n children: \"+\"\n }), /*#__PURE__*/_jsx(Button, {\n className: \"dec_btn\",\n onClick: this.props.dec,\n children: \"-\"\n }), /*#__PURE__*/_jsx(Button, {\n className: \"dec_btn\",\n onClick: this.props.asyncAdd,\n children: \"async\"\n }), /*#__PURE__*/_jsx(View, {\n children: /*#__PURE__*/_jsx(Text, {\n children: this.props.counter.num\n })\n }), /*#__PURE__*/_jsx(View, {\n children: /*#__PURE__*/_jsx(Text, {\n children: \"Hello, World\"\n })\n })]\n });\n }\n}) || _class);\nexport default Index;","import {\n ADD,\n MINUS\n} from '../constants/counter'\n\nexport const add = () => {\n return {\n type: ADD\n }\n}\nexport const minus = () => {\n return {\n type: MINUS\n }\n}\n\n// 异步的action\nexport function asyncAdd () {\n return dispatch => {\n setTimeout(() => {\n dispatch(add())\n }, 2000)\n }\n}\n","import { createPageConfig } from '@tarojs/runtime'\nimport component from \"!!../../../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/index/index!./index.jsx\"\nvar config = {\"navigationBarTitleText\":\"首页\"};\n\n\n\nvar taroOption = createPageConfig(component, 'pages/index/index', {root:{cn:[]}}, config || {})\nif (component && component.behaviors) {\n taroOption.behaviors = (taroOption.behaviors || []).concat(component.behaviors)\n}\nvar inst = Page(taroOption)\n\n\n\nexport default component\n"],"names":[],"sourceRoot":""}
|
||||
2
dist/pages/index/index.wxss
vendored
2
dist/pages/index/index.wxss
vendored
@@ -1,5 +1,5 @@
|
||||
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/.pnpm/css-loader@7.1.2_webpack@5.91.0_@swc+core@1.3.96_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_@swc+core@1.3.96_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/.pnpm/resolve-url-loader@5.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@14.2.1_sass@1.83.0_webpack@5.91.0_@swc+core@1.3.96_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/pages/index/index.scss ***!
|
||||
!*** css ./node_modules/.pnpm/css-loader@7.1.2_webpack@5.94.0_@swc+core@1.3.96_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.94.0_@swc+core@1.3.96_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/.pnpm/resolve-url-loader@5.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@14.2.1_sass@1.83.0_webpack@5.94.0_@swc+core@1.3.96_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/pages/index/index.scss ***!
|
||||
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.index {
|
||||
flex-direction: column;
|
||||
|
||||
@@ -1061,16 +1061,16 @@ var require_react_is2 = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__com
|
||||
}
|
||||
}
|
||||
});
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/components/Provider.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/components/Provider.js
|
||||
var import_react3 = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_6TBQVUF2_js__WEBPACK_IMPORTED_MODULE_1__.require_react)());
|
||||
var import_prop_types = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)(require_prop_types());
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/components/Context.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/components/Context.js
|
||||
var import_react = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_6TBQVUF2_js__WEBPACK_IMPORTED_MODULE_1__.require_react)());
|
||||
var ReactReduxContext = import_react.default.createContext(null);
|
||||
if (true) {
|
||||
ReactReduxContext.displayName = "ReactRedux";
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/utils/batch.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/utils/batch.js
|
||||
function defaultNoopBatch(callback) {
|
||||
callback();
|
||||
}
|
||||
@@ -1081,7 +1081,7 @@ var setBatch = function setBatch2(newBatch) {
|
||||
var getBatch = function getBatch2() {
|
||||
return batch;
|
||||
};
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/utils/Subscription.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/utils/Subscription.js
|
||||
function createListenerCollection() {
|
||||
var batch2 = getBatch();
|
||||
var first = null;
|
||||
@@ -1189,10 +1189,10 @@ function createSubscription(store, parentSub) {
|
||||
};
|
||||
return subscription;
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
|
||||
var import_react2 = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_6TBQVUF2_js__WEBPACK_IMPORTED_MODULE_1__.require_react)());
|
||||
var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? import_react2.useLayoutEffect : import_react2.useEffect;
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/components/Provider.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/components/Provider.js
|
||||
function Provider(_ref) {
|
||||
var store = _ref.store, context = _ref.context, children = _ref.children;
|
||||
var contextValue = (0, import_react3.useMemo)(function() {
|
||||
@@ -1261,7 +1261,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
||||
}
|
||||
return t;
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/components/connectAdvanced.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/components/connectAdvanced.js
|
||||
var import_hoist_non_react_statics = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)(require_hoist_non_react_statics_cjs());
|
||||
var import_react4 = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_6TBQVUF2_js__WEBPACK_IMPORTED_MODULE_1__.require_react)());
|
||||
var import_react_is = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)(require_react_is2());
|
||||
@@ -1544,7 +1544,7 @@ function connectAdvanced(selectorFactory, _ref) {
|
||||
return (0, import_hoist_non_react_statics.default)(Connect, WrappedComponent);
|
||||
};
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/utils/shallowEqual.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/utils/shallowEqual.js
|
||||
function is(x, y) {
|
||||
if (x === y) {
|
||||
return x !== 0 || y !== 0 || 1 / x === 1 / y;
|
||||
@@ -1567,7 +1567,7 @@ function shallowEqual(objA, objB) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/utils/bindActionCreators.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/utils/bindActionCreators.js
|
||||
function bindActionCreators(actionCreators, dispatch) {
|
||||
var boundActionCreators = {};
|
||||
var _loop = function _loop2(key2) {
|
||||
@@ -1583,7 +1583,7 @@ function bindActionCreators(actionCreators, dispatch) {
|
||||
}
|
||||
return boundActionCreators;
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/utils/isPlainObject.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/utils/isPlainObject.js
|
||||
function isPlainObject(obj) {
|
||||
if (typeof obj !== "object" || obj === null) return false;
|
||||
var proto = Object.getPrototypeOf(obj);
|
||||
@@ -1594,7 +1594,7 @@ function isPlainObject(obj) {
|
||||
}
|
||||
return proto === baseProto;
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/utils/warning.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/utils/warning.js
|
||||
function warning(message) {
|
||||
if (typeof console !== "undefined" && typeof console.error === "function") {
|
||||
console.error(message);
|
||||
@@ -1603,13 +1603,13 @@ function warning(message) {
|
||||
throw new Error(message);
|
||||
} catch (e) {}
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/utils/verifyPlainObject.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/utils/verifyPlainObject.js
|
||||
function verifyPlainObject(value, displayName, methodName) {
|
||||
if (!isPlainObject(value)) {
|
||||
warning(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
|
||||
}
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/connect/wrapMapToProps.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/connect/wrapMapToProps.js
|
||||
function wrapMapToPropsConstant(getConstant) {
|
||||
return function initConstantSelector(dispatch, options) {
|
||||
var constant = getConstant(dispatch, options);
|
||||
@@ -1645,7 +1645,7 @@ function wrapMapToPropsFunc(mapToProps, methodName) {
|
||||
return proxy;
|
||||
};
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/connect/mapDispatchToProps.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/connect/mapDispatchToProps.js
|
||||
function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {
|
||||
return typeof mapDispatchToProps === "function" ? wrapMapToPropsFunc(mapDispatchToProps, "mapDispatchToProps") : void 0;
|
||||
}
|
||||
@@ -1666,7 +1666,7 @@ var mapDispatchToProps_default = [
|
||||
whenMapDispatchToPropsIsMissing,
|
||||
whenMapDispatchToPropsIsObject
|
||||
];
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/connect/mapStateToProps.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/connect/mapStateToProps.js
|
||||
function whenMapStateToPropsIsFunction(mapStateToProps) {
|
||||
return typeof mapStateToProps === "function" ? wrapMapToPropsFunc(mapStateToProps, "mapStateToProps") : void 0;
|
||||
}
|
||||
@@ -1679,7 +1679,7 @@ var mapStateToProps_default = [
|
||||
whenMapStateToPropsIsFunction,
|
||||
whenMapStateToPropsIsMissing
|
||||
];
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/connect/mergeProps.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/connect/mergeProps.js
|
||||
function defaultMergeProps(stateProps, dispatchProps, ownProps) {
|
||||
return _extends({}, ownProps, stateProps, dispatchProps);
|
||||
}
|
||||
@@ -1713,7 +1713,7 @@ var mergeProps_default = [
|
||||
whenMergePropsIsFunction,
|
||||
whenMergePropsIsOmitted
|
||||
];
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/connect/verifySubselectors.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/connect/verifySubselectors.js
|
||||
function verify(selector, methodName, displayName) {
|
||||
if (!selector) {
|
||||
throw new Error("Unexpected value for " + methodName + " in " + displayName + ".");
|
||||
@@ -1728,7 +1728,7 @@ function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, dis
|
||||
verify(mapDispatchToProps, "mapDispatchToProps", displayName);
|
||||
verify(mergeProps, "mergeProps", displayName);
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/connect/selectorFactory.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/connect/selectorFactory.js
|
||||
var _excluded3 = [
|
||||
"initMapStateToProps",
|
||||
"initMapDispatchToProps",
|
||||
@@ -1800,7 +1800,7 @@ function finalPropsSelectorFactory(dispatch, _ref2) {
|
||||
var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;
|
||||
return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/connect/connect.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/connect/connect.js
|
||||
var _excluded4 = [
|
||||
"pure",
|
||||
"areStatesEqual",
|
||||
@@ -1852,9 +1852,9 @@ function createConnect(_temp) {
|
||||
};
|
||||
}
|
||||
var connect_default = createConnect();
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/hooks/useStore.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/hooks/useStore.js
|
||||
var import_react6 = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_6TBQVUF2_js__WEBPACK_IMPORTED_MODULE_1__.require_react)());
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/hooks/useReduxContext.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/hooks/useReduxContext.js
|
||||
var import_react5 = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_6TBQVUF2_js__WEBPACK_IMPORTED_MODULE_1__.require_react)());
|
||||
function useReduxContext() {
|
||||
var contextValue = (0, import_react5.useContext)(ReactReduxContext);
|
||||
@@ -1863,7 +1863,7 @@ function useReduxContext() {
|
||||
}
|
||||
return contextValue;
|
||||
}
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/hooks/useStore.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/hooks/useStore.js
|
||||
function createStoreHook(context) {
|
||||
if (context === void 0) {
|
||||
context = ReactReduxContext;
|
||||
@@ -1877,7 +1877,7 @@ function createStoreHook(context) {
|
||||
};
|
||||
}
|
||||
var useStore = createStoreHook();
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/hooks/useDispatch.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/hooks/useDispatch.js
|
||||
function createDispatchHook(context) {
|
||||
if (context === void 0) {
|
||||
context = ReactReduxContext;
|
||||
@@ -1889,7 +1889,7 @@ function createDispatchHook(context) {
|
||||
};
|
||||
}
|
||||
var useDispatch = createDispatchHook();
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/hooks/useSelector.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/hooks/useSelector.js
|
||||
var import_react7 = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_6TBQVUF2_js__WEBPACK_IMPORTED_MODULE_1__.require_react)());
|
||||
var refEquality = function refEquality2(a, b) {
|
||||
return a === b;
|
||||
@@ -1992,7 +1992,7 @@ function createSelectorHook(context) {
|
||||
};
|
||||
}
|
||||
var useSelector = createSelectorHook();
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-redux/es/index.js
|
||||
// node_modules/.pnpm/react-redux@7.2.9_react-dom@18.3.1_react@18.3.1__react-native@0.73.11_@babel+core@7.26.0_@bab_mm3z5pkg2umr7adb2bnzuy2n6i/node_modules/react-redux/es/index.js
|
||||
setBatch(_chunk_TQO5S7WL_js__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates);
|
||||
/*! Bundled license information:
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
// node_modules/.pnpm/@tarojs+plugin-framework-react@4.0.8_@pmmmwh+react-refresh-webpack-plugin@0.5.15_react-refres_4fquu5eruik3y3varqkt6blxxi/node_modules/@tarojs/plugin-framework-react/dist/runtime.js
|
||||
// node_modules/.pnpm/@tarojs+plugin-framework-react@4.0.8_@pmmmwh+react-refresh-webpack-plugin@0.5.15_react-refres_gthmvcyamp6rlu2274cf5kca5e/node_modules/@tarojs/plugin-framework-react/dist/runtime.js
|
||||
(0,_chunk_GLEAZC6U_js__WEBPACK_IMPORTED_MODULE_1__.init_dist)();
|
||||
(0,_chunk_WRSQ3V3E_js__WEBPACK_IMPORTED_MODULE_0__.init_dist)();
|
||||
var reactMeta = {
|
||||
|
||||
@@ -242,9 +242,9 @@ var init_dist3 = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_2__.__esm)({
|
||||
Taro.pxTransform = getPxTransform(Taro);
|
||||
}
|
||||
});
|
||||
// node_modules/.pnpm/@tarojs+taro@4.0.8_@tarojs+components@4.0.8_@tarojs+helper@4.0.8_@types+react@18.3.17_html-we_hsxfepfxwwhcgsmcyugtgdvsb4/node_modules/@tarojs/taro/index.js
|
||||
// node_modules/.pnpm/@tarojs+taro@4.0.8_@tarojs+components@4.0.8_@tarojs+helper@4.0.8_@types+react@18.3.18_html-we_mqz7ctxd6mru7kqk2ypmew4j5i/node_modules/@tarojs/taro/index.js
|
||||
var require_taro = (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_2__.__commonJS)({
|
||||
"node_modules/.pnpm/@tarojs+taro@4.0.8_@tarojs+components@4.0.8_@tarojs+helper@4.0.8_@types+react@18.3.17_html-we_hsxfepfxwwhcgsmcyugtgdvsb4/node_modules/@tarojs/taro/index.js" (exports, module) {
|
||||
"node_modules/.pnpm/@tarojs+taro@4.0.8_@tarojs+components@4.0.8_@tarojs+helper@4.0.8_@types+react@18.3.18_html-we_mqz7ctxd6mru7kqk2ypmew4j5i/node_modules/@tarojs/taro/index.js" (exports, module) {
|
||||
var { hooks } = ((0,_chunk_WRSQ3V3E_js__WEBPACK_IMPORTED_MODULE_0__.init_dist)(), (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_2__.__toCommonJS)(_chunk_WRSQ3V3E_js__WEBPACK_IMPORTED_MODULE_0__.dist_exports));
|
||||
var taro = (init_dist3(), (0,_chunk_QRPWKJ4C_js__WEBPACK_IMPORTED_MODULE_2__.__toCommonJS)(dist_exports2)).default;
|
||||
if (hooks.isExist("initNativeApi")) {
|
||||
|
||||
11
dist/taro.js
vendored
11
dist/taro.js
vendored
@@ -9,10 +9,11 @@
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Button: function() { return /* binding */ Button; },
|
||||
/* harmony export */ Canvas: function() { return /* binding */ Canvas; },
|
||||
/* harmony export */ Text: function() { return /* binding */ Text; },
|
||||
/* harmony export */ View: function() { return /* binding */ View; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports Ad, AdCustom, Audio, Block, Camera, Canvas, ChannelLive, ChannelVideo, Checkbox, CheckboxGroup, CoverImage, CoverView, CustomWrapper, DoubleTapGestureHandler, DraggableSheet, Editor, ForcePressGestureHandler, Form, FunctionalPageNavigator, GridBuilder, GridView, HorizontalDragGestureHandler, Icon, Image, Input, KeyboardAccessory, Label, ListBuilder, ListView, LivePlayer, LivePusher, LongPressGestureHandler, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, NestedScrollBody, NestedScrollHeader, OfficialAccount, OpenContainer, OpenData, PageContainer, PageMeta, PanGestureHandler, Picker, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, RootPortal, ScaleGestureHandler, ScrollView, ShareElement, Slider, Slot, Snapshot, Span, StickyHeader, StickySection, Swiper, SwiperItem, Switch, TapGestureHandler, Textarea, VerticalDragGestureHandler, Video, VoipRoom, WebView */
|
||||
/* unused harmony exports Ad, AdCustom, Audio, Block, Camera, ChannelLive, ChannelVideo, Checkbox, CheckboxGroup, CoverImage, CoverView, CustomWrapper, DoubleTapGestureHandler, DraggableSheet, Editor, ForcePressGestureHandler, Form, FunctionalPageNavigator, GridBuilder, GridView, HorizontalDragGestureHandler, Icon, Image, Input, KeyboardAccessory, Label, ListBuilder, ListView, LivePlayer, LivePusher, LongPressGestureHandler, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, NestedScrollBody, NestedScrollHeader, OfficialAccount, OpenContainer, OpenData, PageContainer, PageMeta, PanGestureHandler, Picker, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, RootPortal, ScaleGestureHandler, ScrollView, ShareElement, Slider, Slot, Snapshot, Span, StickyHeader, StickySection, Swiper, SwiperItem, Switch, TapGestureHandler, Textarea, VerticalDragGestureHandler, Video, VoipRoom, WebView */
|
||||
const View = 'view';
|
||||
const Icon = 'icon';
|
||||
const Progress = 'progress';
|
||||
@@ -95,9 +96,9 @@ const VerticalDragGestureHandler = 'vertical-drag-gesture-handler';
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_bde7hlupvtnhjp5wnja2su6pqy/node_modules/@tarojs/webpack5-runner/dist/template/comp.js":
|
||||
/***/ "./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_vwsmwh3bdevzqpifefvyk27xte/node_modules/@tarojs/webpack5-runner/dist/template/comp.js":
|
||||
/*!****************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_bde7hlupvtnhjp5wnja2su6pqy/node_modules/@tarojs/webpack5-runner/dist/template/comp.js ***!
|
||||
!*** ./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_vwsmwh3bdevzqpifefvyk27xte/node_modules/@tarojs/webpack5-runner/dist/template/comp.js ***!
|
||||
\****************************************************************************************************************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
||||
|
||||
@@ -110,9 +111,9 @@ Component((0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createRecursiveCompone
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_bde7hlupvtnhjp5wnja2su6pqy/node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":
|
||||
/***/ "./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_vwsmwh3bdevzqpifefvyk27xte/node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":
|
||||
/*!**************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_bde7hlupvtnhjp5wnja2su6pqy/node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js ***!
|
||||
!*** ./node_modules/.pnpm/@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_vwsmwh3bdevzqpifefvyk27xte/node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js ***!
|
||||
\**************************************************************************************************************************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
2
dist/taro.js.map
vendored
2
dist/taro.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"taro.js","mappings":";;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrCA;AACA;AACA;AACA;;;;;;;;;;;;ACHA;AACA;AACA;AACA","sources":["webpack://taro-template/.._.._taro-components_mini_index.js","webpack://taro-template/.._src_components-react.ts","webpack://taro-template/._node_modules_.pnpm_@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_bde7hlupvtnhjp5wnja2su6pqy_node_modules_@tarojs_webpack5-runner_dist_template_comp.js","webpack://taro-template/._node_modules_.pnpm_@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_bde7hlupvtnhjp5wnja2su6pqy_node_modules_@tarojs_webpack5-runner_dist_template_custom-wrapper.js"],"sourcesContent":["export const View = 'view'\nexport const Icon = 'icon'\nexport const Progress = 'progress'\nexport const RichText = 'rich-text'\nexport const Text = 'text'\nexport const Button = 'button'\nexport const Checkbox = 'checkbox'\nexport const CheckboxGroup = 'checkbox-group'\nexport const Form = 'form'\nexport const Input = 'input'\nexport const Label = 'label'\nexport const Picker = 'picker'\nexport const PickerView = 'picker-view'\nexport const PickerViewColumn = 'picker-view-column'\nexport const Radio = 'radio'\nexport const RadioGroup = 'radio-group'\nexport const Slider = 'slider'\nexport const Switch = 'switch'\nexport const CoverImage = 'cover-image'\nexport const Textarea = 'textarea'\nexport const CoverView = 'cover-view'\nexport const MovableArea = 'movable-area'\nexport const MovableView = 'movable-view'\nexport const ScrollView = 'scroll-view'\nexport const Swiper = 'swiper'\nexport const SwiperItem = 'swiper-item'\nexport const Navigator = 'navigator'\nexport const Audio = 'audio'\nexport const Camera = 'camera'\nexport const Image = 'image'\nexport const LivePlayer = 'live-player'\nexport const Video = 'video'\nexport const Canvas = 'canvas'\nexport const Ad = 'ad'\nexport const WebView = 'web-view'\nexport const Block = 'block'\nexport const Map = 'map'\nexport const Slot = 'slot'\nexport const NativeSlot = 'native-slot'\nexport const CustomWrapper = 'custom-wrapper'\n",null,"/* eslint-disable no-undef */\nimport { createRecursiveComponentConfig } from '@tarojs/runtime'\n// @ts-ignore\nComponent(createRecursiveComponentConfig())\n","/* eslint-disable no-undef */\nimport { createRecursiveComponentConfig } from '@tarojs/runtime'\n// @ts-ignore\nComponent(createRecursiveComponentConfig('custom-wrapper'))\n"],"names":[],"sourceRoot":""}
|
||||
{"version":3,"file":"taro.js","mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrCA;AACA;AACA;AACA;;;;;;;;;;;;ACHA;AACA;AACA;AACA","sources":["webpack://taro-template/.._.._taro-components_mini_index.js","webpack://taro-template/.._src_components-react.ts","webpack://taro-template/._node_modules_.pnpm_@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_vwsmwh3bdevzqpifefvyk27xte_node_modules_@tarojs_webpack5-runner_dist_template_comp.js","webpack://taro-template/._node_modules_.pnpm_@tarojs+webpack5-runner@4.0.8_@babel+core@7.26.0_@swc+core@1.3.96_@tarojs+runtime@4.0.8_less@_vwsmwh3bdevzqpifefvyk27xte_node_modules_@tarojs_webpack5-runner_dist_template_custom-wrapper.js"],"sourcesContent":["export const View = 'view'\nexport const Icon = 'icon'\nexport const Progress = 'progress'\nexport const RichText = 'rich-text'\nexport const Text = 'text'\nexport const Button = 'button'\nexport const Checkbox = 'checkbox'\nexport const CheckboxGroup = 'checkbox-group'\nexport const Form = 'form'\nexport const Input = 'input'\nexport const Label = 'label'\nexport const Picker = 'picker'\nexport const PickerView = 'picker-view'\nexport const PickerViewColumn = 'picker-view-column'\nexport const Radio = 'radio'\nexport const RadioGroup = 'radio-group'\nexport const Slider = 'slider'\nexport const Switch = 'switch'\nexport const CoverImage = 'cover-image'\nexport const Textarea = 'textarea'\nexport const CoverView = 'cover-view'\nexport const MovableArea = 'movable-area'\nexport const MovableView = 'movable-view'\nexport const ScrollView = 'scroll-view'\nexport const Swiper = 'swiper'\nexport const SwiperItem = 'swiper-item'\nexport const Navigator = 'navigator'\nexport const Audio = 'audio'\nexport const Camera = 'camera'\nexport const Image = 'image'\nexport const LivePlayer = 'live-player'\nexport const Video = 'video'\nexport const Canvas = 'canvas'\nexport const Ad = 'ad'\nexport const WebView = 'web-view'\nexport const Block = 'block'\nexport const Map = 'map'\nexport const Slot = 'slot'\nexport const NativeSlot = 'native-slot'\nexport const CustomWrapper = 'custom-wrapper'\n",null,"/* eslint-disable no-undef */\nimport { createRecursiveComponentConfig } from '@tarojs/runtime'\n// @ts-ignore\nComponent(createRecursiveComponentConfig())\n","/* eslint-disable no-undef */\nimport { createRecursiveComponentConfig } from '@tarojs/runtime'\n// @ts-ignore\nComponent(createRecursiveComponentConfig('custom-wrapper'))\n"],"names":[],"sourceRoot":""}
|
||||
@@ -68,7 +68,8 @@
|
||||
"react-redux": "^7.2.0",
|
||||
"redux": "^4.0.0",
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-thunk": "^2.3.0"
|
||||
"redux-thunk": "^2.3.0",
|
||||
"uqrcodejs": "^4.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.0",
|
||||
|
||||
19878
pnpm-lock.yaml
generated
19878
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
58
src/components/XQRCode/index.jsx
Normal file
58
src/components/XQRCode/index.jsx
Normal file
@@ -0,0 +1,58 @@
|
||||
import {Component} from "react";
|
||||
import {Canvas, View} from "@tarojs/components";
|
||||
import UQRCode from "uqrcodejs";
|
||||
import Taro from "@tarojs/taro";
|
||||
import TaroUtils from "../../utils/TaroUtils";
|
||||
|
||||
class XQRCode extends Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
size: "200rpx",
|
||||
content: "https://www.baidu.com",
|
||||
id: "QRCode"
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
const { content, id } = this.props;
|
||||
|
||||
Taro.createSelectorQuery()
|
||||
.select(`#${id}`)
|
||||
.boundingClientRect()
|
||||
.exec(res => {
|
||||
const { width } = res[0];
|
||||
const qr = new UQRCode();
|
||||
qr.data = content;
|
||||
qr.size = width;
|
||||
qr.make();
|
||||
qr.canvasContext = Taro.createCanvasContext(id, this);
|
||||
qr.drawCanvas().catch(res => {
|
||||
TaroUtils.showToast(`二维码绘制失败`);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
const { size, id } = this.props;
|
||||
|
||||
return (
|
||||
<View style={{
|
||||
width: size,
|
||||
height: size,
|
||||
}}>
|
||||
<Canvas
|
||||
id={id}
|
||||
canvasId={id}
|
||||
className='!w-full !h-full'>
|
||||
</Canvas>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default XQRCode;
|
||||
@@ -5,6 +5,7 @@ import { Button } from '@nutui/nutui-react-taro'
|
||||
import './index.scss'
|
||||
import Api from "../../api";
|
||||
import TaroUtils from "../../utils/TaroUtils";
|
||||
import XQRCode from "../../components/XQRCode";
|
||||
|
||||
class Home extends Component {
|
||||
async sendMsg() {
|
||||
@@ -19,6 +20,7 @@ class Home extends Component {
|
||||
<View class='text-[red]'>123456</View>
|
||||
<Button type="info" onClick={this.sendMsg}>发送</Button>
|
||||
<Button type="info" onClick={this.showToast}>弹窗</Button>
|
||||
<XQRCode></XQRCode>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user