From 0e6f134423161076d3ab5627eb98e35ac6638486 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 23 Nov 2023 09:05:23 +0800 Subject: [PATCH] init --- babel.config.js | 32 + config.js | 7 + config/dev.js | 28 + config/index.js | 74 + config/prod.js | 36 + config/setting.js | 0 dist/app.js | 2 + dist/app.js.LICENSE.txt | 83 + dist/app.json | 1 + dist/app.wxss | 6 + dist/base.wxml | 799 + dist/common.js | 2 + dist/common.js.LICENSE.txt | 43 + dist/common.wxss | 137 + dist/comp.js | 1 + dist/comp.json | 1 + dist/comp.wxml | 2 + dist/images/QRcode.png | Bin 0 -> 275859 bytes .../activityList/components/details/index.js | 2 + .../components/details/index.js.LICENSE.txt | 81 + .../components/details/index.json | 1 + .../components/details/index.wxml | 2 + .../components/details/index.wxss | 78 + dist/pages/activityList/index.js | 2 + dist/pages/activityList/index.js.LICENSE.txt | 57 + dist/pages/activityList/index.json | 1 + dist/pages/activityList/index.wxml | 2 + dist/pages/activityList/index.wxss | 14 + dist/pages/formSubmit/index.js | 2 + dist/pages/formSubmit/index.js.LICENSE.txt | 39 + dist/pages/formSubmit/index.json | 1 + dist/pages/formSubmit/index.wxml | 2 + dist/pages/formSubmit/index.wxss | 4 + dist/pages/home/components/Certified/index.js | 2 + .../components/Certified/index.js.LICENSE.txt | 11 + .../home/components/Certified/index.json | 1 + .../home/components/Certified/index.wxml | 2 + dist/pages/home/components/CheckIn/index.js | 2 + .../components/CheckIn/index.js.LICENSE.txt | 11 + dist/pages/home/components/CheckIn/index.json | 1 + dist/pages/home/components/CheckIn/index.wxml | 2 + dist/pages/home/index.js | 2 + dist/pages/home/index.js.LICENSE.txt | 47 + dist/pages/home/index.json | 1 + dist/pages/home/index.wxml | 2 + dist/pages/home/index.wxss | 112 + dist/pages/mountainPeak/index.js | 2 + dist/pages/mountainPeak/index.js.LICENSE.txt | 43 + dist/pages/mountainPeak/index.json | 1 + dist/pages/mountainPeak/index.wxml | 2 + dist/pages/mountainPeak/index.wxss | 22 + dist/pages/my/components/AbountUs/index.js | 2 + .../components/AbountUs/index.js.LICENSE.txt | 29 + dist/pages/my/components/AbountUs/index.json | 1 + dist/pages/my/components/AbountUs/index.wxml | 2 + dist/pages/my/components/AbountUs/index.wxss | 4 + .../my/components/CheckinDetail/index.js | 2 + .../CheckinDetail/index.js.LICENSE.txt | 77 + .../my/components/CheckinDetail/index.json | 1 + .../my/components/CheckinDetail/index.wxml | 2 + .../my/components/CheckinDetail/index.wxss | 37 + dist/pages/my/components/Version/index.js | 2 + .../components/Version/index.js.LICENSE.txt | 59 + dist/pages/my/components/Version/index.json | 1 + dist/pages/my/components/Version/index.wxml | 2 + dist/pages/my/components/Version/index.wxss | 12 + dist/pages/my/index.js | 2 + dist/pages/my/index.js.LICENSE.txt | 107 + dist/pages/my/index.json | 1 + dist/pages/my/index.wxml | 2 + dist/pages/my/index.wxss | 74 + ...e_modules_taro_weapp_prebundle_react_js.js | 2 + ...ro_weapp_prebundle_react_js.js.LICENSE.txt | 45 + ...ro_weapp_prebundle_react_jsx-runtime_js.js | 2 + ...bundle_react_jsx-runtime_js.js.LICENSE.txt | 51 + ...o_weapp_prebundle_sync_recursive-_94890.js | 2 + ...undle_sync_recursive-_94890.js.LICENSE.txt | 3 + ...o_weapp_prebundle_sync_recursive-_94891.js | 2 + ...undle_sync_recursive-_94891.js.LICENSE.txt | 3 + ...o_weapp_prebundle_sync_recursive-_94892.js | 2 + ...undle_sync_recursive-_94892.js.LICENSE.txt | 3 + ...o_weapp_prebundle_sync_recursive-_94893.js | 2 + ...undle_sync_recursive-_94893.js.LICENSE.txt | 3 + ...dules_taro_weapp_prebundle_react-dom_js.js | 2 + ...eapp_prebundle_react-dom_js.js.LICENSE.txt | 17 + ..._taro_weapp_prebundle_tarojs_plu-b2bd19.js | 2 + ...prebundle_tarojs_plu-b2bd19.js.LICENSE.txt | 11 + ..._taro_weapp_prebundle_tarojs_run-08648c.js | 2 + ...prebundle_tarojs_run-08648c.js.LICENSE.txt | 13 + ...les_taro_weapp_prebundle_tarojs_taro_js.js | 2 + ...pp_prebundle_tarojs_taro_js.js.LICENSE.txt | 21 + dist/prebundle/remoteEntry.js | 2 + dist/prebundle/remoteEntry.js.LICENSE.txt | 23 + ...s_taro_weapp_prebundle_antmjs_vantui_js.js | 2 + ..._prebundle_antmjs_vantui_js.js.LICENSE.txt | 53 + ..._taro_weapp_prebundle_chunk-5ZOEZXK4_js.js | 2 + ...prebundle_chunk-5ZOEZXK4_js.js.LICENSE.txt | 48 + ..._taro_weapp_prebundle_chunk-HER2BAHA_js.js | 2 + ...prebundle_chunk-HER2BAHA_js.js.LICENSE.txt | 7 + ..._taro_weapp_prebundle_chunk-JHQVW7VO_js.js | 2 + ...prebundle_chunk-JHQVW7VO_js.js.LICENSE.txt | 125 + ..._taro_weapp_prebundle_chunk-LACJVGB2_js.js | 2 + ...prebundle_chunk-LACJVGB2_js.js.LICENSE.txt | 9 + ..._taro_weapp_prebundle_chunk-TS5T3MDA_js.js | 2 + ...prebundle_chunk-TS5T3MDA_js.js.LICENSE.txt | 121 + ..._modules_taro_weapp_prebundle_lodash_js.js | 2 + ...o_weapp_prebundle_lodash_js.js.LICENSE.txt | 39 + ..._modules_taro_weapp_prebundle_moment_js.js | 2 + ...o_weapp_prebundle_moment_js.js.LICENSE.txt | 33 + ..._plugin-framework-react_dist_runtime_js.js | 2 + ...ework-react_dist_runtime_js.js.LICENSE.txt | 25 + dist/project.config.json | 40 + dist/runtime.js | 1 + dist/taro.js | 2 + dist/taro.js.LICENSE.txt | 13 + dist/utils.wxs | 39 + dist/vendors.js | 2 + dist/vendors.js.LICENSE.txt | 429 + package.json | 89 + project.config.json | 40 + project.private.config.json | 62 + project.tt.json | 13 + src/app.config.ts | 33 + src/app.scss | 0 src/app.ts | 91 + src/images/QRcode.png | Bin 0 -> 275859 bytes src/index.html | 17 + .../components/details/index.scss | 46 + .../activityList/components/details/index.tsx | 613 + src/pages/activityList/index.scss | 3 + src/pages/activityList/index.tsx | 111 + src/pages/components/ActiveCard/index.scss | 44 + src/pages/components/ActiveCard/index.tsx | 66 + src/pages/components/TabbarCom/index.tsx | 43 + src/pages/formSubmit/index.tsx | 32 + .../home/components/Certified/index.scss | 44 + src/pages/home/components/Certified/index.tsx | 107 + src/pages/home/components/CheckIn/index.scss | 5 + src/pages/home/components/CheckIn/index.tsx | 237 + src/pages/home/components/InfoCard/index.scss | 0 src/pages/home/components/InfoCard/index.tsx | 11 + src/pages/home/components/WeGroup/index.scss | 37 + src/pages/home/components/WeGroup/index.tsx | 29 + src/pages/home/index.scss | 95 + src/pages/home/index.tsx | 772 + src/pages/index/hook.png | Bin 0 -> 3967 bytes src/pages/index/index.config.ts | 4 + src/pages/index/index.scss | 56 + src/pages/index/index.tsx | 67 + src/pages/mountainPeak/index.scss | 8 + src/pages/mountainPeak/index.tsx | 75 + src/pages/my/components/AbountUs/index.scss | 0 src/pages/my/components/AbountUs/index.tsx | 49 + .../my/components/CheckinDetail/index.scss | 27 + .../my/components/CheckinDetail/index.tsx | 110 + src/pages/my/components/Version/index.scss | 0 src/pages/my/components/Version/index.tsx | 65 + src/pages/my/index.module.scss | 48 + src/pages/my/index.tsx | 411 + src/utils/index.ts | 286 + tsconfig.json | 32 + types/global.d.ts | 19 + yarn.lock | 14811 ++++++++++++++++ 163 files changed, 22154 insertions(+) create mode 100644 babel.config.js create mode 100644 config.js create mode 100644 config/dev.js create mode 100644 config/index.js create mode 100644 config/prod.js create mode 100644 config/setting.js create mode 100644 dist/app.js create mode 100644 dist/app.js.LICENSE.txt create mode 100644 dist/app.json create mode 100644 dist/app.wxss create mode 100644 dist/base.wxml create mode 100644 dist/common.js create mode 100644 dist/common.js.LICENSE.txt create mode 100644 dist/common.wxss create mode 100644 dist/comp.js create mode 100644 dist/comp.json create mode 100644 dist/comp.wxml create mode 100644 dist/images/QRcode.png create mode 100644 dist/pages/activityList/components/details/index.js create mode 100644 dist/pages/activityList/components/details/index.js.LICENSE.txt create mode 100644 dist/pages/activityList/components/details/index.json create mode 100644 dist/pages/activityList/components/details/index.wxml create mode 100644 dist/pages/activityList/components/details/index.wxss create mode 100644 dist/pages/activityList/index.js create mode 100644 dist/pages/activityList/index.js.LICENSE.txt create mode 100644 dist/pages/activityList/index.json create mode 100644 dist/pages/activityList/index.wxml create mode 100644 dist/pages/activityList/index.wxss create mode 100644 dist/pages/formSubmit/index.js create mode 100644 dist/pages/formSubmit/index.js.LICENSE.txt create mode 100644 dist/pages/formSubmit/index.json create mode 100644 dist/pages/formSubmit/index.wxml create mode 100644 dist/pages/formSubmit/index.wxss create mode 100644 dist/pages/home/components/Certified/index.js create mode 100644 dist/pages/home/components/Certified/index.js.LICENSE.txt create mode 100644 dist/pages/home/components/Certified/index.json create mode 100644 dist/pages/home/components/Certified/index.wxml create mode 100644 dist/pages/home/components/CheckIn/index.js create mode 100644 dist/pages/home/components/CheckIn/index.js.LICENSE.txt create mode 100644 dist/pages/home/components/CheckIn/index.json create mode 100644 dist/pages/home/components/CheckIn/index.wxml create mode 100644 dist/pages/home/index.js create mode 100644 dist/pages/home/index.js.LICENSE.txt create mode 100644 dist/pages/home/index.json create mode 100644 dist/pages/home/index.wxml create mode 100644 dist/pages/home/index.wxss create mode 100644 dist/pages/mountainPeak/index.js create mode 100644 dist/pages/mountainPeak/index.js.LICENSE.txt create mode 100644 dist/pages/mountainPeak/index.json create mode 100644 dist/pages/mountainPeak/index.wxml create mode 100644 dist/pages/mountainPeak/index.wxss create mode 100644 dist/pages/my/components/AbountUs/index.js create mode 100644 dist/pages/my/components/AbountUs/index.js.LICENSE.txt create mode 100644 dist/pages/my/components/AbountUs/index.json create mode 100644 dist/pages/my/components/AbountUs/index.wxml create mode 100644 dist/pages/my/components/AbountUs/index.wxss create mode 100644 dist/pages/my/components/CheckinDetail/index.js create mode 100644 dist/pages/my/components/CheckinDetail/index.js.LICENSE.txt create mode 100644 dist/pages/my/components/CheckinDetail/index.json create mode 100644 dist/pages/my/components/CheckinDetail/index.wxml create mode 100644 dist/pages/my/components/CheckinDetail/index.wxss create mode 100644 dist/pages/my/components/Version/index.js create mode 100644 dist/pages/my/components/Version/index.js.LICENSE.txt create mode 100644 dist/pages/my/components/Version/index.json create mode 100644 dist/pages/my/components/Version/index.wxml create mode 100644 dist/pages/my/components/Version/index.wxss create mode 100644 dist/pages/my/index.js create mode 100644 dist/pages/my/index.js.LICENSE.txt create mode 100644 dist/pages/my/index.json create mode 100644 dist/pages/my/index.wxml create mode 100644 dist/pages/my/index.wxss create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_react_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_react_js.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94890.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94890.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94891.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94891.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94892.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94892.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94893.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94893.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_react-dom_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_react-dom_js.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_plu-b2bd19.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_plu-b2bd19.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_run-08648c.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_run-08648c.js.LICENSE.txt create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_taro_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_taro_js.js.LICENSE.txt create mode 100644 dist/prebundle/remoteEntry.js create mode 100644 dist/prebundle/remoteEntry.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-5ZOEZXK4_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-5ZOEZXK4_js.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-HER2BAHA_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-HER2BAHA_js.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-JHQVW7VO_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-JHQVW7VO_js.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LACJVGB2_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LACJVGB2_js.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-TS5T3MDA_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-TS5T3MDA_js.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_lodash_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_lodash_js.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_moment_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_moment_js.js.LICENSE.txt create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js.LICENSE.txt create mode 100644 dist/project.config.json create mode 100644 dist/runtime.js create mode 100644 dist/taro.js create mode 100644 dist/taro.js.LICENSE.txt create mode 100644 dist/utils.wxs create mode 100644 dist/vendors.js create mode 100644 dist/vendors.js.LICENSE.txt create mode 100644 package.json create mode 100644 project.config.json create mode 100644 project.private.config.json create mode 100644 project.tt.json create mode 100644 src/app.config.ts create mode 100644 src/app.scss create mode 100644 src/app.ts create mode 100644 src/images/QRcode.png create mode 100644 src/index.html create mode 100644 src/pages/activityList/components/details/index.scss create mode 100644 src/pages/activityList/components/details/index.tsx create mode 100644 src/pages/activityList/index.scss create mode 100644 src/pages/activityList/index.tsx create mode 100644 src/pages/components/ActiveCard/index.scss create mode 100644 src/pages/components/ActiveCard/index.tsx create mode 100644 src/pages/components/TabbarCom/index.tsx create mode 100644 src/pages/formSubmit/index.tsx create mode 100644 src/pages/home/components/Certified/index.scss create mode 100644 src/pages/home/components/Certified/index.tsx create mode 100644 src/pages/home/components/CheckIn/index.scss create mode 100644 src/pages/home/components/CheckIn/index.tsx create mode 100644 src/pages/home/components/InfoCard/index.scss create mode 100644 src/pages/home/components/InfoCard/index.tsx create mode 100644 src/pages/home/components/WeGroup/index.scss create mode 100644 src/pages/home/components/WeGroup/index.tsx create mode 100644 src/pages/home/index.scss create mode 100644 src/pages/home/index.tsx create mode 100644 src/pages/index/hook.png create mode 100644 src/pages/index/index.config.ts create mode 100644 src/pages/index/index.scss create mode 100644 src/pages/index/index.tsx create mode 100644 src/pages/mountainPeak/index.scss create mode 100644 src/pages/mountainPeak/index.tsx create mode 100644 src/pages/my/components/AbountUs/index.scss create mode 100644 src/pages/my/components/AbountUs/index.tsx create mode 100644 src/pages/my/components/CheckinDetail/index.scss create mode 100644 src/pages/my/components/CheckinDetail/index.tsx create mode 100644 src/pages/my/components/Version/index.scss create mode 100644 src/pages/my/components/Version/index.tsx create mode 100644 src/pages/my/index.module.scss create mode 100644 src/pages/my/index.tsx create mode 100644 src/utils/index.ts create mode 100644 tsconfig.json create mode 100644 types/global.d.ts create mode 100644 yarn.lock diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..46ee964 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,32 @@ +// babel-preset-taro 更多选项和默认值: +// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md +module.exports = { + presets: [ + [ + 'taro', + { + framework: 'react', + ts: true + }, + ], + ], + plugins: [ + [ + 'import', + { + libraryName: 'taro-hooks', + camel2DashComponentName: false + }, + 'taro-hooks', + ], + [ + "import", + { + "libraryName": "@antmjs/vantui", + "libraryDirectory": "es", + "style": true + }, + "@antmjs/vantui" + ] + ], +}; diff --git a/config.js b/config.js new file mode 100644 index 0000000..2771eec --- /dev/null +++ b/config.js @@ -0,0 +1,7 @@ +export const type = "people"; //office 个人公司 +// wx515bd42ee0db5c5d cityNew +// wx2b2ec2ba5ee694bc 公司 +export const appId = type === "people" ? "wxe50d2cfda682d4d2" : "wx2b2ec2ba5ee694bc"; +export const envConfig=type === "people" ? "citynew-0givkbre03955d8c" : "cloud1-5g5xrgza12a0dd6d"; + +// export const envConfig="prod-4go74loxa6ac34a8" diff --git a/config/dev.js b/config/dev.js new file mode 100644 index 0000000..e32b27e --- /dev/null +++ b/config/dev.js @@ -0,0 +1,28 @@ +module.exports = { + env: { + NODE_ENV: '"development"', + }, + defineConstants: {}, + mini: { + webpackChain: (chain, webpack) => { + chain.merge({ + plugin: { + install: { + plugin: require("terser-webpack-plugin"), + args: [ + { + terserOptions: { + compress: true, // 默认使用terser压缩 + // mangle: false, + keep_classnames: true, // 不改变class名称 + keep_fnames: true, // 不改变函数名称 + }, + }, + ], + }, + }, + }); + }, + }, + h5: {}, +}; diff --git a/config/index.js b/config/index.js new file mode 100644 index 0000000..8069672 --- /dev/null +++ b/config/index.js @@ -0,0 +1,74 @@ +const path=require("path") +const config = { + enableShareTimeline: true,//允许分享到朋友圈 + enableShareAppMessage: true, + projectName: "myApp", + date: "2022-11-13", + designWidth: 750, + deviceRatio: { + 640: 2.34 / 2, + 750: 1, + 828: 1.81 / 2, + }, + sourceRoot: "src", + outputRoot: "dist", + plugins: ['taro-plugin-compiler-optimization'], + defineConstants: {}, + copy: { + patterns: [], + options: {}, + }, + framework: "react", + compiler: 'webpack5', + cache: { + enable: false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache + }, + mini: { + postcss: { + pxtransform: { + enable: true, + config: {}, + }, + url: { + enable: true, + config: { + limit: 1024, // 设定转换尺寸上限 + }, + }, + cssModules: { + enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true + config: { + namingPattern: "module", // 转换模式,取值为 global/module + generateScopedName: "[name]__[local]___[hash:base64:5]", + }, + }, + }, + }, + h5: { + publicPath: "/", + staticDirectory: "static", + postcss: { + autoprefixer: { + enable: true, + config: {}, + }, + cssModules: { + enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true + config: { + namingPattern: "module", // 转换模式,取值为 global/module + generateScopedName: "[name]__[local]___[hash:base64:5]", + }, + }, + }, + }, + alias: { + '@/utils': path.resolve(__dirname, '..', 'src/utils'), + } +}; + +module.exports = function (merge) { + if (process.env.NODE_ENV === "development") { + return merge({}, config, require("./dev")); + } + return merge({}, config, require("./prod")); +}; diff --git a/config/prod.js b/config/prod.js new file mode 100644 index 0000000..6566539 --- /dev/null +++ b/config/prod.js @@ -0,0 +1,36 @@ +module.exports = { + env: { + NODE_ENV: '"production"', + }, + defineConstants: {}, + mini: {}, + h5: { + /** + * WebpackChain 插件配置 + * @docs https://github.com/neutrinojs/webpack-chain + */ + // webpackChain (chain) { + // /** + // * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。 + // * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer + // */ + // chain.plugin('analyzer') + // .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, []) + + // /** + // * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。 + // * @docs https://github.com/chrisvfritz/prerender-spa-plugin + // */ + // const path = require('path') + // const Prerender = require('prerender-spa-plugin') + // const staticDir = path.join(__dirname, '..', 'dist') + // chain + // .plugin('prerender') + // .use(new Prerender({ + // staticDir, + // routes: [ '/pages/index/index' ], + // postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') }) + // })) + // } + }, +}; diff --git a/config/setting.js b/config/setting.js new file mode 100644 index 0000000..e69de29 diff --git a/dist/app.js b/dist/app.js new file mode 100644 index 0000000..da8ede5 --- /dev/null +++ b/dist/app.js @@ -0,0 +1,2 @@ +/*! For license information please see app.js.LICENSE.txt */ +"use strict";require("./prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-TS5T3MDA_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-5ZOEZXK4_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_lodash_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_moment_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-JHQVW7VO_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LACJVGB2_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_plu-b2bd19.js"),require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-HER2BAHA_js.js"),require("./prebundle/remoteEntry.js"),require("./prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_react_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_run-08648c.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_react-dom_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-node_modules_taro_weapp_prebundle_tarojs_taro_js.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94890.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94891.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94892.js"),require("./prebundle/node_modules_taro_weapp_prebundle_sync_recursive-_94893.js"),require("./common"),require("./vendors"),require("./taro"),require("./runtime"),(wx.webpackJsonp=wx.webpackJsonp||[]).push([["app"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/app.ts":function(e,r,t){var n=t("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),o=t("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),s=t("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),u=t("./node_modules/@babel/runtime/helpers/esm/createClass.js"),a=t("./node_modules/@babel/runtime/helpers/esm/inherits.js"),i=t("./node_modules/@babel/runtime/helpers/esm/createSuper.js"),l=t("webpack/container/remote/react"),d=function(e){(0,a.default)(App,e);var r,t=(0,i.default)(App);function App(){return(0,s.default)(this,App),t.apply(this,arguments)}return(0,u.default)(App,[{key:"componentDidMount",value:(r=(0,o.default)((0,n.default)().mark((function _callee(){return(0,n.default)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),_callee)}))),function componentDidMount(){return r.apply(this,arguments)})},{key:"componentDidShow",value:function componentDidShow(){}},{key:"componentDidHide",value:function componentDidHide(){}},{key:"render",value:function render(){return this.props.children}}]),App}(l.Component);r.default=d},"./src/app.ts":function(e,r,t){t("webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime");var n=t("webpack/container/remote/@tarojs/runtime"),o=t("webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime"),s=t("webpack/container/remote/@tarojs/taro"),u=t("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/app.ts"),a=t("webpack/container/remote/react"),i=t("webpack/container/remote/react-dom"),l=t.n(i),d={pages:["pages/home/index","pages/home/components/CheckIn/index","pages/home/components/Certified/index","pages/activityList/index","pages/formSubmit/index","pages/activityList/components/details/index","pages/mountainPeak/index","pages/my/index","pages/my/components/Version/index","pages/my/components/AbountUs/index","pages/my/components/CheckinDetail/index"],permission:{"scope.userLocation":{desc:"你的位置信息将用于小程序位置接口的效果展示"}},requiredPrivateInfos:["getLocation","chooseLocation","chooseAddress"],window:{backgroundTextStyle:"light",navigationBarBackgroundColor:"#fff",navigationBarTitleText:"WeChat",navigationBarTextStyle:"black"},usingComponents:{}};n.window.__taroAppConfig=d;App((0,o.createReactApp)(u.default,a,l(),d));(0,s.initPxTransform)({designWidth:750,deviceRatio:{640:1.17,750:1,828:.905}})},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,r,t){function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(r,{default:function(){return _assertThisInitialized}})},"./node_modules/@babel/runtime/helpers/esm/classCallCheck.js":function(e,r,t){function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}t.d(r,{default:function(){return _classCallCheck}})},"./node_modules/@babel/runtime/helpers/esm/createClass.js":function(e,r,t){t.d(r,{default:function(){return _createClass}});var n=t("./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");function _defineProperties(e,r){for(var t=0;t +