Compare commits
72 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55bc780e93 | ||
|
|
df07eb8971 | ||
|
|
b599aebfcc | ||
|
|
737ee3ce76 | ||
|
|
1b8160d154 | ||
|
|
e55e5cea40 | ||
|
|
464e73229e | ||
|
|
3dfea0de3e | ||
|
|
859b13d886 | ||
|
|
9c4b588909 | ||
|
|
2ef02e1cb8 | ||
|
|
a51c8ee66f | ||
|
|
4a154a0cb0 | ||
|
|
6f36f219ea | ||
|
|
b579bac84a | ||
|
|
4b27c16d44 | ||
|
|
999897ba6a | ||
|
|
7407f95197 | ||
|
|
3bc929afa3 | ||
|
|
fa1d8cddec | ||
|
|
8134ccb2eb | ||
|
|
596f800d7d | ||
|
|
434c0ca274 | ||
|
|
6a9f89f7d5 | ||
|
|
5676354a3f | ||
|
|
29ab494d4d | ||
|
|
7429d4cb02 | ||
|
|
e93170af3c | ||
|
|
958825b20c | ||
|
|
bd5a310ba3 | ||
|
|
dd1970458c | ||
|
|
0e0fed4ecc | ||
|
|
e3599c3afc | ||
|
|
05e0dc3511 | ||
|
|
33c3a6de8e | ||
|
|
25ed0f182f | ||
|
|
9058cdb3ac | ||
|
|
d9d95b12b7 | ||
|
|
a1aef1d15c | ||
|
|
6642856bbb | ||
|
|
621b54d83e | ||
|
|
c0df39db6a | ||
|
|
e4736b19c4 | ||
|
|
376cc14cc8 | ||
|
|
bc72d18a89 | ||
|
|
921713a7bf | ||
|
|
d936c60623 | ||
|
|
f6246b2fc9 | ||
|
|
138e03fad9 | ||
|
|
3836a222b4 | ||
|
|
15d8704089 | ||
|
|
984fa6f990 | ||
|
|
bb4a4373b7 | ||
|
|
db016d875a | ||
|
|
faaf30ccbd | ||
|
|
c6424983ab | ||
|
|
9cde1db298 | ||
|
|
4bfdb70144 | ||
|
|
ac5c955a8c | ||
|
|
46cd9fbb0f | ||
|
|
7b7f9529a8 | ||
|
|
009ded91f2 | ||
|
|
7c81e29fea | ||
|
|
7195361a4f | ||
|
|
19b4aa7960 | ||
|
|
16d997881d | ||
|
|
6226b591ff | ||
|
|
c7f25cb21a | ||
|
|
ec15ae8faa | ||
|
|
a336c930dc | ||
|
|
3d6d6901b8 | ||
|
|
79970d9371 |
7
.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
dist/
|
||||||
|
deploy_versions/
|
||||||
|
.temp/
|
||||||
|
.rn_temp/
|
||||||
|
node_modules/
|
||||||
|
.DS_Store
|
||||||
|
.swc
|
||||||
109
config/index.js
@@ -1,74 +1,109 @@
|
|||||||
const config = {
|
const config = {
|
||||||
projectName: 'cityh5',
|
projectName: "cityh5",
|
||||||
date: '2023-12-2',
|
date: "2023-12-2",
|
||||||
designWidth: 750,
|
designWidth: 750,
|
||||||
deviceRatio: {
|
deviceRatio: {
|
||||||
640: 2.34 / 2,
|
640: 2.34 / 2,
|
||||||
750: 1,
|
750: 1,
|
||||||
828: 1.81 / 2
|
828: 1.81 / 2,
|
||||||
},
|
},
|
||||||
sourceRoot: 'src',
|
sourceRoot: "src",
|
||||||
outputRoot: 'dist',
|
outputRoot: "dist",
|
||||||
plugins: [],
|
plugins: [],
|
||||||
defineConstants: {
|
defineConstants: {},
|
||||||
},
|
|
||||||
copy: {
|
copy: {
|
||||||
patterns: [
|
patterns: [],
|
||||||
],
|
options: {},
|
||||||
options: {
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
framework: 'react',
|
framework: "react",
|
||||||
compiler: 'webpack5',
|
compiler: "webpack5",
|
||||||
cache: {
|
cache: {
|
||||||
enable: false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
|
enable: false, // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
|
||||||
},
|
},
|
||||||
mini: {
|
mini: {
|
||||||
postcss: {
|
postcss: {
|
||||||
pxtransform: {
|
pxtransform: {
|
||||||
enable: true,
|
enable: true,
|
||||||
config: {
|
config: {},
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
enable: true,
|
enable: true,
|
||||||
config: {
|
config: {
|
||||||
limit: 1024 // 设定转换尺寸上限
|
limit: 1024, // 设定转换尺寸上限
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
cssModules: {
|
cssModules: {
|
||||||
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
|
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
|
||||||
config: {
|
config: {
|
||||||
namingPattern: 'module', // 转换模式,取值为 global/module
|
namingPattern: "module", // 转换模式,取值为 global/module
|
||||||
generateScopedName: '[name]__[local]___[hash:base64:5]'
|
generateScopedName: "[name]__[local]___[hash:base64:5]",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
h5: {
|
h5: {
|
||||||
publicPath: '/',
|
webpackChain (chain) {
|
||||||
staticDirectory: 'static',
|
chain.module
|
||||||
|
.rule('markdown')
|
||||||
|
.test(/\.md$/)
|
||||||
|
.use('raw-loader')
|
||||||
|
.loader('raw-loader')
|
||||||
|
.end();
|
||||||
|
},
|
||||||
|
esnextModules: ["taro-ui"],
|
||||||
|
publicPath: "/",
|
||||||
|
staticDirectory: "static",
|
||||||
postcss: {
|
postcss: {
|
||||||
autoprefixer: {
|
autoprefixer: {
|
||||||
enable: true,
|
enable: true,
|
||||||
config: {
|
config: {},
|
||||||
}
|
|
||||||
},
|
},
|
||||||
cssModules: {
|
cssModules: {
|
||||||
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
|
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
|
||||||
config: {
|
config: {
|
||||||
namingPattern: 'module', // 转换模式,取值为 global/module
|
namingPattern: "module", // 转换模式,取值为 global/module
|
||||||
generateScopedName: '[name]__[local]___[hash:base64:5]'
|
generateScopedName: "[name]__[local]___[hash:base64:5]",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// customRoutes: {
|
||||||
|
// // "页面路径": "自定义路由"
|
||||||
|
// "/pages/index/index": "/index",
|
||||||
|
// // '/pages/detail/index': ['/detail'], // 可以通过数组为页面配置多个自定义路由
|
||||||
|
// "pages/my/index": "/my",
|
||||||
|
// "pages/meetup/index": "/meetup",
|
||||||
|
// "pages/meetup/Detail/index": "/detail",
|
||||||
|
// },
|
||||||
|
router: {
|
||||||
|
// basename: '/myapp',
|
||||||
|
mode: "hash", // 或者是 'browser'
|
||||||
|
},
|
||||||
|
// defineConstants: {
|
||||||
|
// HOST: '"/api"'
|
||||||
|
// },
|
||||||
|
devServer: {
|
||||||
|
// host: 'nomad.hackrobot.cn', // 替换为您的域名
|
||||||
|
// port: 10086, // 选择一个适当的端口号
|
||||||
|
proxy: {
|
||||||
|
'/api/': {
|
||||||
|
target: JSON.parse('"http://localhost:8700"'), //本地调试端口
|
||||||
|
pathRewrite: {
|
||||||
|
'^/api/': '/'
|
||||||
|
},
|
||||||
|
changeOrigin: true
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// 允许特定域名访问
|
||||||
|
allowedHosts: [
|
||||||
|
'nomad.hackrobot.cn'
|
||||||
|
],
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
module.exports = function (merge) {
|
module.exports = function (merge) {
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === "development") {
|
||||||
return merge({}, config, require('./dev'))
|
return merge({}, config, require("./dev"));
|
||||||
}
|
}
|
||||||
return merge({}, config, require('./prod'))
|
return merge({}, config, require("./prod"));
|
||||||
}
|
};
|
||||||
|
|||||||
43
package.json
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "cityh5",
|
"name": "",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "city",
|
"description": "city",
|
||||||
@@ -32,42 +32,47 @@
|
|||||||
"@babel/runtime": "^7.7.7",
|
"@babel/runtime": "^7.7.7",
|
||||||
"@tarojs/components": "3.6.20",
|
"@tarojs/components": "3.6.20",
|
||||||
"@tarojs/helper": "3.6.20",
|
"@tarojs/helper": "3.6.20",
|
||||||
"@tarojs/plugin-platform-weapp": "3.6.20",
|
"@tarojs/plugin-framework-react": "3.6.20",
|
||||||
"@tarojs/plugin-platform-alipay": "3.6.20",
|
"@tarojs/plugin-platform-alipay": "3.6.20",
|
||||||
"@tarojs/plugin-platform-tt": "3.6.20",
|
"@tarojs/plugin-platform-h5": "3.6.20",
|
||||||
"@tarojs/plugin-platform-swan": "3.6.20",
|
|
||||||
"@tarojs/plugin-platform-jd": "3.6.20",
|
"@tarojs/plugin-platform-jd": "3.6.20",
|
||||||
"@tarojs/plugin-platform-qq": "3.6.20",
|
"@tarojs/plugin-platform-qq": "3.6.20",
|
||||||
"@tarojs/plugin-platform-h5": "3.6.20",
|
"@tarojs/plugin-platform-swan": "3.6.20",
|
||||||
|
"@tarojs/plugin-platform-tt": "3.6.20",
|
||||||
|
"@tarojs/plugin-platform-weapp": "3.6.20",
|
||||||
|
"@tarojs/react": "3.6.20",
|
||||||
"@tarojs/runtime": "3.6.20",
|
"@tarojs/runtime": "3.6.20",
|
||||||
"@tarojs/shared": "3.6.20",
|
"@tarojs/shared": "3.6.20",
|
||||||
"@tarojs/taro": "3.6.20",
|
"@tarojs/taro": "3.6.20",
|
||||||
"@tarojs/plugin-framework-react": "3.6.20",
|
"animate.css": "^4.1.1",
|
||||||
"@tarojs/react": "3.6.20",
|
"github-markdown-css": "^5.6.1",
|
||||||
"react-dom": "^18.0.0",
|
"marked": "^14.1.2",
|
||||||
|
"raw-loader": "^4.0.2",
|
||||||
"react": "^18.0.0",
|
"react": "^18.0.0",
|
||||||
"sr-sdk-h5": "^1.3.1"
|
"react-dom": "^18.0.0",
|
||||||
|
"sr-sdk-h5": "^1.3.1",
|
||||||
|
"taro-ui": "^3.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.8.0",
|
"@babel/core": "^7.8.0",
|
||||||
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
|
||||||
"@tarojs/cli": "3.6.20",
|
"@tarojs/cli": "3.6.20",
|
||||||
"@types/webpack-env": "^1.13.6",
|
|
||||||
"postcss": "^8.4.18",
|
|
||||||
"@types/react": "^18.0.0",
|
|
||||||
"webpack": "^5.78.0",
|
|
||||||
"@tarojs/taro-loader": "3.6.20",
|
"@tarojs/taro-loader": "3.6.20",
|
||||||
"@tarojs/webpack5-runner": "3.6.20",
|
"@tarojs/webpack5-runner": "3.6.20",
|
||||||
|
"@types/node": "^18.15.11",
|
||||||
|
"@types/react": "^18.0.0",
|
||||||
|
"@types/webpack-env": "^1.13.6",
|
||||||
"babel-preset-taro": "3.6.20",
|
"babel-preset-taro": "3.6.20",
|
||||||
|
"eslint": "^8.12.0",
|
||||||
"eslint-config-taro": "3.6.20",
|
"eslint-config-taro": "3.6.20",
|
||||||
"eslint": "^8.12.0","eslint": "^8.12.0",
|
|
||||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
|
|
||||||
"react-refresh": "^0.11.0",
|
|
||||||
"eslint-plugin-react": "^7.8.2",
|
|
||||||
"eslint-plugin-import": "^2.12.0",
|
"eslint-plugin-import": "^2.12.0",
|
||||||
|
"eslint-plugin-react": "^7.8.2",
|
||||||
"eslint-plugin-react-hooks": "^1.6.1",
|
"eslint-plugin-react-hooks": "^1.6.1",
|
||||||
|
"postcss": "^8.4.18",
|
||||||
|
"react-refresh": "^0.11.0",
|
||||||
"stylelint": "9.3.0",
|
"stylelint": "9.3.0",
|
||||||
"typescript": "^4.1.0",
|
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"@types/node": "^18.15.11"
|
"typescript": "^4.1.0",
|
||||||
|
"webpack": "^5.78.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
export default {
|
export default {
|
||||||
pages: [
|
pages: [
|
||||||
'pages/index/index'
|
'pages/index/index',
|
||||||
|
'pages/my/index',
|
||||||
|
'pages/meetup/index',
|
||||||
|
'pages/meetup/Detail/index',
|
||||||
|
'pages/group/index',
|
||||||
|
'pages/book/index',
|
||||||
|
'pages/salon/index',
|
||||||
|
|
||||||
|
|
||||||
],
|
],
|
||||||
window: {
|
window: {
|
||||||
backgroundTextStyle: 'light',
|
backgroundTextStyle: 'light',
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { Component } from 'react'
|
|||||||
import SDK from 'sr-sdk-h5'
|
import SDK from 'sr-sdk-h5'
|
||||||
|
|
||||||
import './app.scss'
|
import './app.scss'
|
||||||
|
import 'taro-ui/dist/style/index.scss' // 全局引入一次即可
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 有数埋点SDK 默认配置
|
* 有数埋点SDK 默认配置
|
||||||
|
|||||||
BIN
src/images/AIGC.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
src/images/avatar.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
src/images/book.png
Normal file
|
After Width: | Height: | Size: 623 KiB |
BIN
src/images/bookqr.jpg
Normal file
|
After Width: | Height: | Size: 326 KiB |
BIN
src/images/cat.jpg
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
src/images/coffee192.png
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
src/images/doller.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
src/images/emoji.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
src/images/eric.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
src/images/girl.jpg
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
src/images/loft.jpg
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
src/images/loft.png
Normal file
|
After Width: | Height: | Size: 966 KiB |
BIN
src/images/meetup.jpg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
src/images/nomad.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
src/images/nomadvloglife.png
Normal file
|
After Width: | Height: | Size: 120 KiB |
BIN
src/images/phone.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/images/qrcode.png
Normal file
|
After Width: | Height: | Size: 131 KiB |
BIN
src/images/robot.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
src/images/touxiang.png
Normal file
|
After Width: | Height: | Size: 154 KiB |
BIN
src/images/travel.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
src/images/web.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
src/images/wenwen.jpg
Normal file
|
After Width: | Height: | Size: 68 KiB |
@@ -8,7 +8,12 @@
|
|||||||
<meta name="format-detection" content="telephone=no,address=no">
|
<meta name="format-detection" content="telephone=no,address=no">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="white">
|
<meta name="apple-mobile-web-app-status-bar-style" content="white">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
|
||||||
<title>cityh5</title>
|
<link rel="apple-touch-icon" href="/static/images/images/coffee192.png" />
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
sizes="192x192"
|
||||||
|
href="/static/images/images/coffee192.png">
|
||||||
|
<title>异度星球</title>
|
||||||
<script><%= htmlWebpackPlugin.options.script %></script>
|
<script><%= htmlWebpackPlugin.options.script %></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
3
src/pages/book/index.config.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
navigationBarTitleText: '一人公司方法论'
|
||||||
|
}
|
||||||
26
src/pages/book/index.scss
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
// 在 src/index.scss 中引入 GitHub Markdown 主题
|
||||||
|
@import 'github-markdown-css/github-markdown.css';
|
||||||
|
|
||||||
|
.Book {
|
||||||
|
padding: 40px;
|
||||||
|
// font-size: 30px !important;
|
||||||
|
// color: #666;
|
||||||
|
|
||||||
|
.markdown-body{
|
||||||
|
font-size: 30px !important;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto; /* 保持图像的纵横比 */
|
||||||
|
}
|
||||||
|
.formCode {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
.codeBtn {
|
||||||
|
background-color: aquamarine;
|
||||||
|
// height: 80px;
|
||||||
|
// color: red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
62
src/pages/book/index.tsx
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
import { Component } from "react";
|
||||||
|
import { View, Text, Image } from "@tarojs/components";
|
||||||
|
import "./index.scss";
|
||||||
|
import { AtButton, AtInput, AtTabBar } from "taro-ui";
|
||||||
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
|
import { AtGrid } from "taro-ui";
|
||||||
|
import { Swiper, SwiperItem } from "@tarojs/components";
|
||||||
|
import { AtCard } from "taro-ui";
|
||||||
|
import { AtImagePicker } from "taro-ui";
|
||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import { AtAvatar } from "taro-ui";
|
||||||
|
import { AtTag } from "taro-ui";
|
||||||
|
import { AtList, AtListItem } from "taro-ui";
|
||||||
|
import { AtForm, AtMessage } from "taro-ui";
|
||||||
|
import { marked } from "marked";
|
||||||
|
import markdownText from "./text.md";
|
||||||
|
|
||||||
|
marked.setOptions({
|
||||||
|
breaks: true, // 是否回车换行
|
||||||
|
gfm: true, //使用经批准的 GitHub Flavored Markdown (GFM) 规范
|
||||||
|
// pedantic: true, //严格模式
|
||||||
|
// highlight(code:any, lang:any) {
|
||||||
|
// // 语法高亮
|
||||||
|
// let val = code;
|
||||||
|
// if (lang) {
|
||||||
|
// val = hljs.highlight(lang, code).value;
|
||||||
|
// } else {
|
||||||
|
// val = hljs.highlightAuto(code).value;
|
||||||
|
// }
|
||||||
|
// return val;
|
||||||
|
// },
|
||||||
|
});
|
||||||
|
|
||||||
|
// const renderer = new marked.Renderer();
|
||||||
|
// // 使用拓展
|
||||||
|
// marked.use({ renderer });
|
||||||
|
|
||||||
|
// export default class Index extends Component {
|
||||||
|
const Book = () => {
|
||||||
|
const [markText, setmarkText] = useState();
|
||||||
|
|
||||||
|
useEffect(() => {}, []);
|
||||||
|
|
||||||
|
const handleClick = (value) => {
|
||||||
|
// 跳转到目的页面,在当前页面打开
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/index/index",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<View className="Book">
|
||||||
|
<View
|
||||||
|
className="markdown-body" // 添加 GitHub Markdown 主题类
|
||||||
|
dangerouslySetInnerHTML={{ __html: marked(markdownText) }}
|
||||||
|
></View>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Book;
|
||||||
49
src/pages/book/text.md
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
## 一人公司方法论
|
||||||
|
|
||||||
|
> 公司化运营业务,但并不是注册企业主体
|
||||||
|
|
||||||
|
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/book.png?imageSlim" title="" alt="book.png" width="248">
|
||||||
|
|
||||||
|
这本书是基于H5页面的`单页书籍`,会不定时更新
|
||||||
|
|
||||||
|
本主要基于个人的学习,实践,总结一套方法论,包含了`道`和`术`
|
||||||
|
|
||||||
|
读者可以参考借鉴
|
||||||
|
|
||||||
|
主题包含并不限于以下:
|
||||||
|
|
||||||
|
- 云手机+微信机器人+AIGC+边缘计算
|
||||||
|
|
||||||
|
- youtube频道获利
|
||||||
|
|
||||||
|
- 独立开发者
|
||||||
|
|
||||||
|
- 跨境电商
|
||||||
|
|
||||||
|
- 旅行+远程办公
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 简介
|
||||||
|
|
||||||
|
> 数字游民实践者
|
||||||
|
|
||||||
|
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/avatar.jpg?imageSlim" title="" alt="avatar.jpg" width="254">
|
||||||
|
|
||||||
|
曾经是程序员,业余开发软件工具
|
||||||
|
|
||||||
|
有公司主体,运营跨境电商亚马逊
|
||||||
|
|
||||||
|
平时爱折腾技术,以`树莓派`为主
|
||||||
|
|
||||||
|
目前方向是偏户外/旅行
|
||||||
|
|
||||||
|
以youtube频道作为副资产获利
|
||||||
|
|
||||||
|
最近在策划`coffeechat以及小型沙龙`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 持续更新中
|
||||||
|
|
||||||
|
> 有建议请私聊
|
||||||
3
src/pages/group/index.config.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
navigationBarTitleText: '加入微信群'
|
||||||
|
}
|
||||||
13
src/pages/group/index.scss
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
.group{
|
||||||
|
padding: 40px;
|
||||||
|
|
||||||
|
.formCode{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
.codeBtn{
|
||||||
|
background-color: aquamarine;
|
||||||
|
// height: 80px;
|
||||||
|
// color: red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
130
src/pages/group/index.tsx
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
import { Component } from "react";
|
||||||
|
import { View, Text, Image } from "@tarojs/components";
|
||||||
|
import "./index.scss";
|
||||||
|
import { AtButton, AtInput, AtTabBar } from "taro-ui";
|
||||||
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
|
import { AtGrid } from "taro-ui";
|
||||||
|
import { Swiper, SwiperItem } from "@tarojs/components";
|
||||||
|
import { AtCard } from "taro-ui";
|
||||||
|
import { AtImagePicker } from "taro-ui";
|
||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import { AtAvatar } from "taro-ui";
|
||||||
|
import { AtTag } from "taro-ui";
|
||||||
|
import { AtList, AtListItem } from "taro-ui";
|
||||||
|
import { AtForm, AtMessage } from "taro-ui";
|
||||||
|
|
||||||
|
// export default class Index extends Component {
|
||||||
|
const Group = () => {
|
||||||
|
const [current, setcurrent] = useState(2);
|
||||||
|
const [wxid, setwxid] = useState(null);
|
||||||
|
const [phoneNum, setphoneNum] = useState(null);
|
||||||
|
const [vCode, setvCode] = useState(null);
|
||||||
|
const [waitTime, setWaitTime] = useState(0); // 等待秒数
|
||||||
|
const [isButtonDisabled, setIsButtonDisabled] = useState(false); // 按钮是否禁用
|
||||||
|
|
||||||
|
useEffect(() => {}, []);
|
||||||
|
|
||||||
|
const handleClick = (value) => {
|
||||||
|
// 跳转到目的页面,在当前页面打开
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/index/index",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const startTimer = () => {
|
||||||
|
setIsButtonDisabled(true);
|
||||||
|
let localWaitTime = 60; // 使用局部变量
|
||||||
|
|
||||||
|
// 更新状态的函数
|
||||||
|
const updateTime = () => {
|
||||||
|
if (localWaitTime <= 0) {
|
||||||
|
clearInterval(timer);
|
||||||
|
setIsButtonDisabled(false);
|
||||||
|
setWaitTime(0);
|
||||||
|
} else {
|
||||||
|
setWaitTime(localWaitTime);
|
||||||
|
localWaitTime -= 1;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 设定计时器
|
||||||
|
const timer = setInterval(updateTime, 1000);
|
||||||
|
// 初始调用
|
||||||
|
updateTime();
|
||||||
|
};
|
||||||
|
|
||||||
|
const validatePhoneNumber=(phoneNum) =>{
|
||||||
|
// 检查是否为11位数字
|
||||||
|
const phoneRegex = /^[0-9]{11}$/;
|
||||||
|
return phoneRegex.test(phoneNum);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<View className="group">
|
||||||
|
<AtForm
|
||||||
|
onSubmit={(event) => {
|
||||||
|
console.log("onSubmit-event--", event[0]?.detail?.value);
|
||||||
|
}}
|
||||||
|
onReset={(event) => {
|
||||||
|
// 重置数据
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<AtInput
|
||||||
|
name="phoneNum"
|
||||||
|
border={false}
|
||||||
|
title="手机号"
|
||||||
|
type="phone"
|
||||||
|
placeholder="请输入"
|
||||||
|
value={phoneNum}
|
||||||
|
disabled={isButtonDisabled}
|
||||||
|
onChange={(value) => {
|
||||||
|
console.log("value", value);
|
||||||
|
setphoneNum(value);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<View className="formCode">
|
||||||
|
<AtInput
|
||||||
|
name="vCode"
|
||||||
|
title="验证码"
|
||||||
|
type="number"
|
||||||
|
placeholder="请输入4位数字"
|
||||||
|
|
||||||
|
value={vCode}
|
||||||
|
onChange={(value) => {
|
||||||
|
setvCode(value);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<AtButton
|
||||||
|
className="codeBtn"
|
||||||
|
onClick={() => {
|
||||||
|
if (!!phoneNum & !!validatePhoneNumber(phoneNum)) {
|
||||||
|
// 提交手机数据
|
||||||
|
setIsButtonDisabled(true);
|
||||||
|
startTimer(); // 开始防抖计时
|
||||||
|
} else {
|
||||||
|
Taro.atMessage({
|
||||||
|
message: "请检查手机号",
|
||||||
|
type: `warning`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
// type="primary"
|
||||||
|
disabled={isButtonDisabled}
|
||||||
|
>
|
||||||
|
{isButtonDisabled ? `${waitTime} 秒` : "获取"}
|
||||||
|
</AtButton>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<AtButton formType="submit" type="primary">
|
||||||
|
{"提交"}
|
||||||
|
</AtButton>
|
||||||
|
</AtForm>
|
||||||
|
|
||||||
|
<AtMessage />
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Group;
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
export default {
|
export default {
|
||||||
navigationBarTitleText: '首页'
|
navigationBarTitleText: '数字游民工具箱'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,824 @@
|
|||||||
import { Component } from 'react'
|
import { Component } from "react";
|
||||||
import { View, Text } from '@tarojs/components'
|
import Taro from "@tarojs/taro";
|
||||||
import './index.scss'
|
import { View, Text, Image, Button } from "@tarojs/components";
|
||||||
|
import "./index.scss";
|
||||||
|
import { AtTabBar } from "taro-ui";
|
||||||
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
|
import { AtGrid } from "taro-ui";
|
||||||
|
import { Swiper, SwiperItem } from "@tarojs/components";
|
||||||
|
import { AtCard } from "taro-ui";
|
||||||
|
import { AtImagePicker } from "taro-ui";
|
||||||
|
import { AtButton } from "taro-ui";
|
||||||
|
import { AtSearchBar } from "taro-ui";
|
||||||
|
import { Picker } from "@tarojs/components";
|
||||||
|
import { AtList, AtListItem, AtNavBar, AtTag, AtMessage } from "taro-ui";
|
||||||
|
import {
|
||||||
|
AtModal,
|
||||||
|
AtModalHeader,
|
||||||
|
AtModalContent,
|
||||||
|
AtModalAction,
|
||||||
|
AtAvatar,
|
||||||
|
AtAccordion,
|
||||||
|
} from "taro-ui";
|
||||||
|
import { AtToast } from "taro-ui";
|
||||||
|
import { AtIcon } from "taro-ui";
|
||||||
|
import { VIEW } from "@tarojs/runtime";
|
||||||
|
import "animate.css";
|
||||||
|
import touxiang from "../../images/touxiang.png";
|
||||||
|
import eric from "../../images/eric.jpg";
|
||||||
|
import cat from "../../images/cat.jpg";
|
||||||
|
import girl from "../../images/girl.jpg";
|
||||||
|
|
||||||
export default class Index extends Component {
|
import emoji from "../../images/emoji.png";
|
||||||
componentDidMount () { }
|
import phone from "../../images/phone.png";
|
||||||
|
import robot from "../../images/robot.png";
|
||||||
|
import nomad from "../../images/nomad.png";
|
||||||
|
import book from "../../images/book.png";
|
||||||
|
import qrcode from "../../images/qrcode.png";
|
||||||
|
|
||||||
componentWillUnmount () { }
|
import meetup from "../../images/meetup.jpg";
|
||||||
|
import bookqr from "../../images/bookqr.jpg";
|
||||||
|
import loft from "../../images/loft.png";
|
||||||
|
import AIGC from "../../images/AIGC.png";
|
||||||
|
import wenwen from "../../images/wenwen.jpg";
|
||||||
|
import web from "../../images/web.png";
|
||||||
|
import travel from "../../images/travel.png";
|
||||||
|
import doller from "../../images/doller.png";
|
||||||
|
|
||||||
componentDidShow () { }
|
|
||||||
|
|
||||||
componentDidHide () { }
|
|
||||||
|
|
||||||
render () {
|
import coffee192 from "../../images/coffee192.png";
|
||||||
return (
|
|
||||||
<View className='index'>
|
// export default class Index extends Component {
|
||||||
<Text>Hello world!</Text>
|
const Index = () => {
|
||||||
|
const [current, setcurrent] = useState(0);
|
||||||
|
const [openId, setopenId] = useState(null);
|
||||||
|
const [wxid, setwxid] = useState(null);
|
||||||
|
const [userInfo, setuserInfo] = useState({});
|
||||||
|
|
||||||
|
const [open, setopen] = useState(false);
|
||||||
|
const [referer, setreferer] = useState(window.document.referrer);
|
||||||
|
|
||||||
|
const [isOpened, setisOpened] = useState(false);
|
||||||
|
const [meetupQR, setmeetupQR] = useState(false);
|
||||||
|
|
||||||
|
const [bookToast, setbookToast] = useState(false);
|
||||||
|
const [meetupToast, setmeetupToast] = useState(false);
|
||||||
|
|
||||||
|
const [joinMeetup, setjoinMeetup] = useState(false);
|
||||||
|
const [bookpay, setbookpay] = useState(0);
|
||||||
|
|
||||||
|
const [isWeChat, setisWeChat] = useState(false);
|
||||||
|
|
||||||
|
const getOpenidFromUrl = (url) => {
|
||||||
|
const pattern = /[?&]openid=([^&#]+)/;
|
||||||
|
const match = url.match(pattern);
|
||||||
|
if (match) {
|
||||||
|
return match[1];
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 是否在微信客户端
|
||||||
|
const isWeChatFun = () => {
|
||||||
|
var ua = navigator.userAgent.toLowerCase();
|
||||||
|
if (ua.indexOf("micromessenger") != -1) {
|
||||||
|
setisWeChat(true);
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
setisWeChat(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 获取openid
|
||||||
|
const getOpenid = () => {
|
||||||
|
// let newparams = Taro.getCurrentInstance().router.params;
|
||||||
|
// let urlopenid = newparams.openid;
|
||||||
|
|
||||||
|
// hash模式
|
||||||
|
// http://192.168.31.245:10086/?openid=o7LFAwR32hWGq9XOpd7ZxK1wZxq8#/pages/index/index
|
||||||
|
let hashopenid = null;
|
||||||
|
if (window.location.href.includes("openid")) {
|
||||||
|
hashopenid = getOpenidFromUrl(window.location.href);
|
||||||
|
} else {
|
||||||
|
// hashopenid = window.localStorage.getItem("openid");
|
||||||
|
}
|
||||||
|
if (!!hashopenid && hashopenid != "undefined" && hashopenid != "null") {
|
||||||
|
// 获取到openid
|
||||||
|
window.localStorage.setItem("openid", hashopenid);
|
||||||
|
setopenId(hashopenid);
|
||||||
|
|
||||||
|
// window.alert(hashopenid);
|
||||||
|
// 查询数据库是否存在openid
|
||||||
|
Taro.request({
|
||||||
|
method: "GET",
|
||||||
|
url: `/api/user/${hashopenid}`, //仅为示例,并非真实的接口地址
|
||||||
|
// url: `/api/user/${window.localStorage.getItem("openid")}`, //仅为示例,并非真实的接口地址
|
||||||
|
success: function (res) {
|
||||||
|
if (res?.data?.userInfo) {
|
||||||
|
// 有完整的用户信息userInfo
|
||||||
|
setuserInfo(res?.data?.userInfo);
|
||||||
|
window.localStorage.setItem("userInfo", userInfo);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
complete: function (finy) {
|
||||||
|
// 获取wxid参数
|
||||||
|
getWxidFromUrl();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
let nowUrl = window.location.href;
|
||||||
|
window.localStorage.removeItem("openid");
|
||||||
|
let payUrl = `https://payjs.cn/api/openid?mchid=1561724891&callback_url=${nowUrl}`;
|
||||||
|
window.location.href = payUrl;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 获取更新用户信息
|
||||||
|
const getUserinfo = (wxid) => {
|
||||||
|
Taro.request({
|
||||||
|
method: "GET",
|
||||||
|
url: `/api/user/${wxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
// url: `/api/user/${window.localStorage.getItem("openid")}`, //仅为示例,并非真实的接口地址
|
||||||
|
success: function (res) {
|
||||||
|
if (res?.data?.userInfo) {
|
||||||
|
//判断wxid是否存在
|
||||||
|
if (res?.data?.userInfo?.openid) {
|
||||||
|
// 有完整的用户信息userInfo
|
||||||
|
setuserInfo(res?.data?.userInfo);
|
||||||
|
window.localStorage.setItem("userInfo", userInfo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
complete: function (finy) {},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 获取url中的wxid
|
||||||
|
const getWxidFromUrl = () => {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const urlwxid = urlParams.get("wxid");
|
||||||
|
if (!!urlwxid) {
|
||||||
|
setwxid(urlwxid);
|
||||||
|
window.localStorage.setItem("wxid", wxid);
|
||||||
|
// 优先查询openid是否存在数据库
|
||||||
|
Taro.request({
|
||||||
|
method: "GET",
|
||||||
|
url: `/api/user/${urlwxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
// url: `/api/user/${window.localStorage.getItem("openid")}`, //仅为示例,并非真实的接口地址
|
||||||
|
success: function (res) {
|
||||||
|
if (res?.data?.userInfo) {
|
||||||
|
//判断wxid是否存在
|
||||||
|
if (res?.data?.userInfo?.openid) {
|
||||||
|
// window.alert(res?.data?.userInfo?.openid);
|
||||||
|
// window.alert(window.localStorage.getItem("openid"));
|
||||||
|
|
||||||
|
if (
|
||||||
|
res?.data?.userInfo?.openid !==
|
||||||
|
window.localStorage.getItem("openid")
|
||||||
|
) {
|
||||||
|
// 删除其他用户的wxid
|
||||||
|
window.localStorage.removeItem("userInfo");
|
||||||
|
window.localStorage.removeItem("openid");
|
||||||
|
window.localStorage.removeItem("wxid");
|
||||||
|
window.location.href = "http://nomad.hackrobot.cn";
|
||||||
|
} else {
|
||||||
|
// 有完整的用户信息userInfo
|
||||||
|
setuserInfo(res?.data?.userInfo);
|
||||||
|
window.localStorage.setItem("userInfo", userInfo);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// 绑定wxid与openid到数据库
|
||||||
|
wxidTapopenid(urlwxid);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// 新增wxid用户
|
||||||
|
}
|
||||||
|
},
|
||||||
|
complete: function (finy) {
|
||||||
|
// tg消息通知
|
||||||
|
tgMessage();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// tg消息通知
|
||||||
|
tgMessage();
|
||||||
|
}
|
||||||
|
return wxid;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 绑定wxid与openid
|
||||||
|
const wxidTapopenid = (newWxid) => {
|
||||||
|
const userUpdateData = {
|
||||||
|
openid: window.localStorage.getItem("openid"), // 只更新 openid 字段
|
||||||
|
};
|
||||||
|
Taro.request({
|
||||||
|
method: "PUT",
|
||||||
|
// url: `/api/user/${urlwxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
url: `/api/user/${newWxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
data: userUpdateData,
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
success: function (res) {},
|
||||||
|
fail: function (err) {},
|
||||||
|
complete: function (finy) {},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 新增openid用户
|
||||||
|
const addopenidUser = () => {
|
||||||
|
const userUpdateData = {
|
||||||
|
openid: window.localStorage.getItem("openid"), // 只更新 openid 字段
|
||||||
|
};
|
||||||
|
Taro.request({
|
||||||
|
method: "GET",
|
||||||
|
// url: `/api/user/${urlwxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
url: `/api/user/${window.localStorage.getItem("openid")}`, //仅为示例,并非真实的接口地址
|
||||||
|
data: userUpdateData,
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
success: function (res) {},
|
||||||
|
fail: function (err) {},
|
||||||
|
complete: function (finy) {},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 网页查看通知
|
||||||
|
const tgMessage = () => {
|
||||||
|
Taro.request({
|
||||||
|
method: "GET",
|
||||||
|
url: `/api/tgMessage?openid=${window.localStorage.getItem("openid")}`, //仅为示例,并非真实的接口地址
|
||||||
|
// url: "https://pay.hackrobot.cn/api/payh5", //仅为示例,并非真实的接口地址
|
||||||
|
success: function (res) {
|
||||||
|
console.log("访问提醒发送成功");
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 入群申请
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
let inwechat = isWeChatFun();
|
||||||
|
if (inwechat) {
|
||||||
|
// 获取openId
|
||||||
|
getOpenid();
|
||||||
|
} else {
|
||||||
|
// window.alert('不在微信')
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// alert(window.localStorage.getItem("bookpay"))
|
||||||
|
setbookpay(window.localStorage.getItem("bookpay"));
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const goBack = () => {
|
||||||
|
Taro.navigateBack({});
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleClick = (value) => {
|
||||||
|
// window.alert(value)
|
||||||
|
setopen(value);
|
||||||
|
};
|
||||||
|
|
||||||
|
const payh5 = (type, total_fee = 1000) => {
|
||||||
|
// console.log("111");
|
||||||
|
Taro.request({
|
||||||
|
method: "POST",
|
||||||
|
url: "/api/payh5", //仅为示例,并非真实的接口地址
|
||||||
|
// url: "https://pay.hackrobot.cn/api/payh5", //仅为示例,并非真实的接口地址
|
||||||
|
|
||||||
|
data: {
|
||||||
|
callback_url: window.location.href,
|
||||||
|
openid: window.localStorage.getItem("openid"),
|
||||||
|
total_fee: total_fee, // 金额,单位:分
|
||||||
|
type: type, //订单类型 book/meetup/video/vip
|
||||||
|
},
|
||||||
|
header: {
|
||||||
|
"content-type": "application/json", // 默认值
|
||||||
|
},
|
||||||
|
success: function (res) {
|
||||||
|
console.log(res.data);
|
||||||
|
// window.alert(res.data.jsapi);
|
||||||
|
WeixinJSBridge.invoke(
|
||||||
|
"getBrandWCPayRequest",
|
||||||
|
{
|
||||||
|
// 以下6个支付参数通过payjs的jsapi接口获取
|
||||||
|
// appId: "wxc5205a653b0259bf",
|
||||||
|
// timeStamp: "1701401644",
|
||||||
|
// nonceStr: "KhOYB0wFV6j9qyQK",
|
||||||
|
// package: "prepay_id=wx01113404850024729b35f4d69b73500000",
|
||||||
|
// signType: "MD5",
|
||||||
|
// paySign: "2A823C8D47CCF871C6C65A56DC228CF8",
|
||||||
|
...(res?.data?.jsapi ?? {}),
|
||||||
|
},
|
||||||
|
function (res) {
|
||||||
|
// 支付成功
|
||||||
|
if (res.err_msg == "get_brand_wcpay_request:ok") {
|
||||||
|
window.localStorage.setItem(type, 1); //订单类型 book/meetup/video/vip
|
||||||
|
WeixinJSBridge.call("closeWindow");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<View className="index">
|
||||||
|
{/* <Button
|
||||||
|
onClick={() => {
|
||||||
|
// 跳转到目的页面,在当前页面打开
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/group/index",
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
111
|
||||||
|
</Button> */}
|
||||||
|
|
||||||
|
{/* 公众号 */}
|
||||||
|
<View
|
||||||
|
className="index-title"
|
||||||
|
onClick={() => {
|
||||||
|
// window.location.href=""
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<AtAvatar
|
||||||
|
size="small"
|
||||||
|
circle
|
||||||
|
// image="https://www.hackrobot.cn/wp-content/uploads/2023/05/cropped-cropped-Screenshot-2023-05-22-at-17.26.38.png"
|
||||||
|
image={eric}
|
||||||
|
></AtAvatar>
|
||||||
|
<View className="yidooplanet">Eric</View>
|
||||||
</View>
|
</View>
|
||||||
)
|
|
||||||
}
|
{/* 标签 */}
|
||||||
}
|
<View className="index-tags animate__animated animate__pulse">
|
||||||
|
<AtTag className="index-AtTag" type="primary" AtNavBar={true} circle>
|
||||||
|
youtuber
|
||||||
|
</AtTag>
|
||||||
|
<AtTag className="index-AtTag" type="primary" AtNavBar={true} circle>
|
||||||
|
跨境电商
|
||||||
|
</AtTag>
|
||||||
|
<AtTag className="index-AtTag" type="primary" AtNavBar={true} circle>
|
||||||
|
独立开发者
|
||||||
|
</AtTag>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<View className="index-article">
|
||||||
|
{/* className="at-article__p" */}
|
||||||
|
<View>
|
||||||
|
普通的独立开发者,网站: 🌏<span className="web" onClick={()=>{
|
||||||
|
window.location.href = "https://nomadcna.com";
|
||||||
|
// window.open("https://nomadcna.com", "_blank");
|
||||||
|
}}>nomadcna</span>
|
||||||
|
<br />
|
||||||
|
副业是做youtuber,跨境电商
|
||||||
|
{/* <br />
|
||||||
|
努力成为一个<span className="spanText">数字游民</span>ing😎 */}
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* 付费合集 */}
|
||||||
|
<View className="index-list">
|
||||||
|
<AtList>
|
||||||
|
<AtListItem
|
||||||
|
title="数字游民"
|
||||||
|
arrow="right"
|
||||||
|
// hasBorder={false}
|
||||||
|
thumb={travel}
|
||||||
|
onClick={() => {
|
||||||
|
window.location.href =
|
||||||
|
// "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3403853254399082501#wechat_redirect";
|
||||||
|
"https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzkxMDczMjczNQ==&action=getalbum&album_id=3562989123101065222#wechat_redirect";
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<AtListItem
|
||||||
|
title="副业"
|
||||||
|
arrow="right"
|
||||||
|
// hasBorder={false}
|
||||||
|
thumb={doller}
|
||||||
|
onClick={() => {
|
||||||
|
window.location.href =
|
||||||
|
// "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3403853254399082501#wechat_redirect";
|
||||||
|
"https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzkxMDczMjczNQ==&action=getalbum&album_id=3697673352731754503#wechat_redirect";
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
{/* <AtListItem
|
||||||
|
title="云手机"
|
||||||
|
arrow="right"
|
||||||
|
// hasBorder={false}
|
||||||
|
thumb={phone}
|
||||||
|
onClick={() => {
|
||||||
|
window.location.href =
|
||||||
|
// "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3403853254399082501#wechat_redirect";
|
||||||
|
"https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3555705062712901639#wechat_redirect";
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<AtListItem
|
||||||
|
title="微信机器人"
|
||||||
|
arrow="right"
|
||||||
|
// hasBorder={false}
|
||||||
|
thumb={robot}
|
||||||
|
onClick={() => {
|
||||||
|
window.location.href =
|
||||||
|
// "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3545545030499270661#wechat_redirect";
|
||||||
|
"https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3629790245010128902#wechat_redirect";
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<AtListItem
|
||||||
|
title="AIGC"
|
||||||
|
arrow="right"
|
||||||
|
// hasBorder={false}
|
||||||
|
thumb={AIGC}
|
||||||
|
onClick={() => {
|
||||||
|
window.location.href =
|
||||||
|
// "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3545545030499270661#wechat_redirect";
|
||||||
|
"https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3635342254190739460#wechat_redirect";
|
||||||
|
}}
|
||||||
|
/> */}
|
||||||
|
{/* <AtListItem
|
||||||
|
title="数字游民"
|
||||||
|
arrow="right"
|
||||||
|
// hasBorder={false}
|
||||||
|
thumb={nomad}
|
||||||
|
onClick={() => {
|
||||||
|
window.location.href =
|
||||||
|
"https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzU4NTgyNDUxNw==&action=getalbum&album_id=3545541605766168582#wechat_redirect";
|
||||||
|
}}
|
||||||
|
/> */}
|
||||||
|
</AtList>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* 在线图书 */}
|
||||||
|
{/* 参考资料https://readmake.com/ */}
|
||||||
|
<View className="index-book">
|
||||||
|
<View className="bookImg">
|
||||||
|
<Image
|
||||||
|
style="width: 40%px;height:100%;background: #fff;"
|
||||||
|
src={book}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
<View className="book-middle"></View>
|
||||||
|
<View className="nomad-right">
|
||||||
|
<View className="nomad-title">
|
||||||
|
<Image
|
||||||
|
style="width: 30px;height:30px;background: #fff;"
|
||||||
|
src={nomad}
|
||||||
|
/>
|
||||||
|
<View className="bookNmae">一人公司</View>
|
||||||
|
</View>
|
||||||
|
<View className="subtitle">多元自动化收入</View>
|
||||||
|
<View className="bookText">
|
||||||
|
{/* 两个核心主题: <br /> */}
|
||||||
|
1. 云手机+微信机器人+AIGC
|
||||||
|
<br />
|
||||||
|
2. youtube获利 <br />
|
||||||
|
3. 跨境电商
|
||||||
|
<br />
|
||||||
|
4. 独立开发者
|
||||||
|
<br />
|
||||||
|
5. 旅行与远程办公
|
||||||
|
<br />
|
||||||
|
</View>
|
||||||
|
<View
|
||||||
|
className="bookPrice"
|
||||||
|
onClick={() => {
|
||||||
|
// 19元解锁书籍
|
||||||
|
// payh5("bookpay", 10);
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/book/index",
|
||||||
|
});
|
||||||
|
|
||||||
|
return false;
|
||||||
|
if (!!userInfo?.ebook) {
|
||||||
|
// 已预约
|
||||||
|
Taro.atMessage({
|
||||||
|
message: "已预约成功",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (!!wxid) {
|
||||||
|
// 发起预约
|
||||||
|
const userUpdateData = {
|
||||||
|
ebook: 1, // 只更新 openid 字段
|
||||||
|
};
|
||||||
|
Taro.request({
|
||||||
|
method: "PUT",
|
||||||
|
// url: `/api/user/${urlwxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
url: `/api/user/${wxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
data: userUpdateData,
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
success: function (res) {
|
||||||
|
// 预约成功
|
||||||
|
// Taro.atMessage({
|
||||||
|
// message: "预约成功",
|
||||||
|
// type: "success",
|
||||||
|
// });
|
||||||
|
|
||||||
|
if (res.data.code == "200") {
|
||||||
|
setbookToast(true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: function (err) {},
|
||||||
|
complete: function (finy) {
|
||||||
|
// setTimeout(() => {
|
||||||
|
// window.location.reload();
|
||||||
|
// }, 2000);
|
||||||
|
// getUserinfo()
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
setmeetupQR(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
className="join"
|
||||||
|
// style={{ backgroundColor: !!userInfo?.ebook ? "#1890ff" : null }}
|
||||||
|
style={{
|
||||||
|
backgroundColor: !!userInfo?.ebook ? "#1890ff" : "#1890ff",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{/* {!!userInfo?.ebook ? "已预约" : "预约"} */}
|
||||||
|
{/* {!!userInfo?.ebook ? "未完结" : "未完结"} */}
|
||||||
|
{bookpay == 1 ? "查看" : "阅读"}
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* 已付费的用户才展示活动 */}
|
||||||
|
<View className="index-meetup animate__animated animate__pulse">
|
||||||
|
<AtCard
|
||||||
|
// note="提示文字"
|
||||||
|
// extra="2024/09/18"
|
||||||
|
// extra="已报名:4人"
|
||||||
|
title="线下沙龙"
|
||||||
|
thumb="http://img12.360buyimg.com/jdphoto/s72x72_jfs/t10660/330/203667368/1672/801735d7/59c85643N31e68303.png"
|
||||||
|
>
|
||||||
|
<View className="meetup-card">
|
||||||
|
{/* 左边 */}
|
||||||
|
<View className="meetup-left">
|
||||||
|
<Image
|
||||||
|
style="width: 100%;height: 100px;background: #fff;"
|
||||||
|
// src={meetup}
|
||||||
|
src={loft}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* 右边 */}
|
||||||
|
<View className="meetup-right">
|
||||||
|
<View className="title"> 自由交流&副业 | 沙龙(6人) </View>
|
||||||
|
<View className="address">
|
||||||
|
<AtIcon value="map-pin" size="30" color="#F00"></AtIcon>
|
||||||
|
<span>深圳市-南山区</span>
|
||||||
|
</View>
|
||||||
|
<View className="meetBtn">
|
||||||
|
{/* <View>
|
||||||
|
<AtIcon value="clock" size="30" color="#F00"></AtIcon>
|
||||||
|
19:00--21:00
|
||||||
|
</View> */}
|
||||||
|
<View className="meetupSrcItem">
|
||||||
|
{[touxiang, girl, cat, wenwen].map((item, index) => {
|
||||||
|
return (
|
||||||
|
<View className="meetupSrc">
|
||||||
|
<Image
|
||||||
|
style="width: 20px;height: 20px;background: #fff;"
|
||||||
|
src={item}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</View>
|
||||||
|
<View
|
||||||
|
className="join"
|
||||||
|
style={{
|
||||||
|
backgroundColor: !!userInfo?.activity_status
|
||||||
|
? "#1890ff"
|
||||||
|
: // : null,
|
||||||
|
"#1890ff",
|
||||||
|
//
|
||||||
|
}}
|
||||||
|
onClick={() => {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/salon/index",
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
if (userInfo?.activity_status == "1") {
|
||||||
|
// 已预约
|
||||||
|
Taro.atMessage({
|
||||||
|
message: "已预约成功",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
} else if (userInfo?.activity_status == "2") {
|
||||||
|
// 已预约
|
||||||
|
Taro.atMessage({
|
||||||
|
message: "审核中",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (!!wxid) {
|
||||||
|
// 发起预约
|
||||||
|
const userUpdateData = {
|
||||||
|
activity_status: "2", // 审核中
|
||||||
|
};
|
||||||
|
Taro.request({
|
||||||
|
method: "PUT",
|
||||||
|
// url: `/api/user/${urlwxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
url: `/api/user/${wxid}`, //仅为示例,并非真实的接口地址
|
||||||
|
data: userUpdateData,
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
success: function (res) {
|
||||||
|
// 预约成功
|
||||||
|
// Taro.atMessage({
|
||||||
|
// message: "预约成功",
|
||||||
|
// type: "success",
|
||||||
|
// });
|
||||||
|
if (res.data.code == "200") {
|
||||||
|
setmeetupToast(true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: function (err) {},
|
||||||
|
complete: function (finy) {
|
||||||
|
window.location.reload();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
setmeetupQR(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{/* {userInfo?.activity_status == "2"
|
||||||
|
? "审核中"
|
||||||
|
: userInfo?.activity_status == "1"
|
||||||
|
? "已报名"
|
||||||
|
: // : "立即报名"}
|
||||||
|
"已满"} */}
|
||||||
|
{`查看`}
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</AtCard>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* 软件下载 */}
|
||||||
|
<View className="software">
|
||||||
|
<View className="emojiTitle">
|
||||||
|
<span style={{ color: "green" }}>|</span> 我写的软件工具
|
||||||
|
</View>
|
||||||
|
<View className="emojitext">
|
||||||
|
<View>
|
||||||
|
<AtIcon value="file-generic" size="30" color="#F00"></AtIcon>{" "}
|
||||||
|
markdown转emoji编辑器
|
||||||
|
</View>
|
||||||
|
<AtIcon
|
||||||
|
value="download-cloud"
|
||||||
|
size="30"
|
||||||
|
color="#F00"
|
||||||
|
onClick={() => {
|
||||||
|
setisOpened(true);
|
||||||
|
}}
|
||||||
|
></AtIcon>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* <View className="software-emoji">
|
||||||
|
<Image
|
||||||
|
style="width: 80%;height: 240px;background: #fff;"
|
||||||
|
src={emoji}
|
||||||
|
/>
|
||||||
|
</View> */}
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* 付费入群 */}
|
||||||
|
{/* <View>付费入群</View> */}
|
||||||
|
|
||||||
|
{/* 联系我 */}
|
||||||
|
{/* {!wxid && !Object.keys(userInfo)?.length > 0 ? (
|
||||||
|
<View className="contack">
|
||||||
|
<View className="wechatNum">微信号: hackrobot</View>
|
||||||
|
<Image
|
||||||
|
style="width: 185px;height: 200px;background: #fff;"
|
||||||
|
src={qrcode}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
) : null} */}
|
||||||
|
|
||||||
|
{/* <View className="payBtn">
|
||||||
|
<AtButton type="primary">立即购买 -- 29.8元</AtButton>
|
||||||
|
</View> */}
|
||||||
|
|
||||||
|
<View className="emojiModel">
|
||||||
|
{/* 软件下载模态窗 */}
|
||||||
|
<AtModal isOpened={isOpened}>
|
||||||
|
<AtModalHeader>emoji编辑器</AtModalHeader>
|
||||||
|
<AtModalContent>
|
||||||
|
<View className="modelText">
|
||||||
|
emoji编辑器是将markdown转换成标准的emoji格式
|
||||||
|
<br />
|
||||||
|
适用于各种图文场景
|
||||||
|
<br />
|
||||||
|
- 平台:小红书/微博/微信"小绿书"朋友圈
|
||||||
|
<br />- 评论区
|
||||||
|
</View>
|
||||||
|
{/* 软件图片展示 */}
|
||||||
|
<View className="model-emoji">
|
||||||
|
<Image
|
||||||
|
style="width: 100%;height: 240px;background: #fff;"
|
||||||
|
src={emoji}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
{/* <View>
|
||||||
|
百度网盘链接:https://pan.baidu.com/s/1XXVnMimjUD8qVdmaVhb6rg?pwd=hqyo
|
||||||
|
<br />
|
||||||
|
提取码:hqyo
|
||||||
|
</View> */}
|
||||||
|
</AtModalContent>
|
||||||
|
<AtModalAction>
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
setisOpened(false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
取消
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
window.location.href =
|
||||||
|
"https://pan.baidu.com/s/1XXVnMimjUD8qVdmaVhb6rg?pwd=hqyo";
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
下载
|
||||||
|
</Button>
|
||||||
|
</AtModalAction>
|
||||||
|
</AtModal>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<View className="meetupQR">
|
||||||
|
{/* 软件下载模态窗 */}
|
||||||
|
<AtModal isOpened={meetupQR}>
|
||||||
|
<AtModalHeader>咨询沙龙</AtModalHeader>
|
||||||
|
<AtModalContent>
|
||||||
|
{/* <View className="modelText">
|
||||||
|
1.加微信好友
|
||||||
|
<br />
|
||||||
|
2.发送关键词: 数字游民
|
||||||
|
</View> */}
|
||||||
|
{/* 软件图片展示 */}
|
||||||
|
<View className="model-emoji">
|
||||||
|
<Image
|
||||||
|
// style="width: 100%;height: 240px;background: #fff;"
|
||||||
|
src={qrcode}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</AtModalContent>
|
||||||
|
<AtModalAction>
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
setmeetupQR(false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
知道了
|
||||||
|
</Button>
|
||||||
|
</AtModalAction>
|
||||||
|
</AtModal>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* 腾讯云推广: https://curl.qcloud.com/8bJ1d9U0 */}
|
||||||
|
{/* <View></View> */}
|
||||||
|
|
||||||
|
<AtMessage />
|
||||||
|
<AtToast
|
||||||
|
isOpened={bookToast}
|
||||||
|
hasMask={true}
|
||||||
|
text={"预约成功"}
|
||||||
|
icon={"check"}
|
||||||
|
onClose={() => {
|
||||||
|
window.location.reload();
|
||||||
|
}}
|
||||||
|
></AtToast>
|
||||||
|
<AtToast
|
||||||
|
isOpened={meetupToast}
|
||||||
|
text={"报名成功"}
|
||||||
|
icon={"check"}
|
||||||
|
hasMask={true}
|
||||||
|
onClose={() => {
|
||||||
|
window.location.reload();
|
||||||
|
}}
|
||||||
|
></AtToast>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Index;
|
||||||
|
|||||||
@@ -0,0 +1,234 @@
|
|||||||
|
.index {
|
||||||
|
// background-color: #002329;
|
||||||
|
// width: 100vw;
|
||||||
|
// height: 100vh;
|
||||||
|
padding: 40px;
|
||||||
|
|
||||||
|
.index-title {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
font-weight: 700;
|
||||||
|
align-items: center;
|
||||||
|
.yidooplanet {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.index-tags {
|
||||||
|
margin-top: 20px;
|
||||||
|
.index-AtTag {
|
||||||
|
background-color: rgb(99 102 241);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.index-article {
|
||||||
|
margin-top: 60px;
|
||||||
|
// background-color: yellow;
|
||||||
|
font-size: 30px;
|
||||||
|
.web{
|
||||||
|
color:chocolate
|
||||||
|
}
|
||||||
|
.spanText {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.index-list {
|
||||||
|
margin-top: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.index-book {
|
||||||
|
margin-top: 60px;
|
||||||
|
// width: 100%;
|
||||||
|
height: 300px;
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
// justify-content: center;
|
||||||
|
// background-color: #f0f0f0;
|
||||||
|
background-color: #f0f5ff;
|
||||||
|
.bookImg {
|
||||||
|
width: 40%;
|
||||||
|
height: 100%;
|
||||||
|
// background-color: #1bb14e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.book-middle {
|
||||||
|
width: 20px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.nomad-right {
|
||||||
|
// margin-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
// align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
// background-color: yellow;
|
||||||
|
// width: 100%;
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.nomad-title {
|
||||||
|
font-size: 35px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
// justify-content: space-between;
|
||||||
|
// background-color: red;
|
||||||
|
.bookNmae {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.subtitle {
|
||||||
|
font-size: 20px;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
.bookText {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.bookPrice {
|
||||||
|
font-size: 30px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
.join {
|
||||||
|
font-size: 20px;
|
||||||
|
width: 100px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: #1bb14e;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 15%;
|
||||||
|
position: relative;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.software {
|
||||||
|
margin-top: 60px;
|
||||||
|
font-size: 30px;
|
||||||
|
padding: 30px;
|
||||||
|
.emojiTitle {
|
||||||
|
color: rgb(99 102 241);
|
||||||
|
}
|
||||||
|
.emojitext {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
|
.software-emoji {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.index-meetup {
|
||||||
|
margin-top: 60px;
|
||||||
|
|
||||||
|
.meetup-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
// background-color: yellow;
|
||||||
|
|
||||||
|
.meetup-left {
|
||||||
|
width: 50%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
// background-color: red;
|
||||||
|
}
|
||||||
|
.meetup-right {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-left: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
// align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
// background-color: green;
|
||||||
|
flex: 1;
|
||||||
|
.title {
|
||||||
|
}
|
||||||
|
.address {
|
||||||
|
// margin-top: 30px;
|
||||||
|
}
|
||||||
|
.meetBtn {
|
||||||
|
display: flex;
|
||||||
|
// flex-direction: row-reverse;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.meetupSrcItem{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
// background-color: red;
|
||||||
|
|
||||||
|
.meetupSrc {
|
||||||
|
// width: 20px;
|
||||||
|
// height:20px;
|
||||||
|
border-radius: 15%;
|
||||||
|
// background-color: yellow;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.join {
|
||||||
|
width: 100px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: #1bb14e;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 15%;
|
||||||
|
position: relative;
|
||||||
|
// bottom: 10px;
|
||||||
|
right: -10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.contack {
|
||||||
|
margin-top: 60px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
.wechatNum {
|
||||||
|
font-size: 34px;
|
||||||
|
color: #1bb14e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.emojiModel {
|
||||||
|
.modelText {
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
.model-emoji {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.payBtn {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
177
src/pages/meetup/Detail/index.jsx
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
import { Component } from "react";
|
||||||
|
import { View, Text, Image } from "@tarojs/components";
|
||||||
|
import "./index.scss";
|
||||||
|
import { AtTabBar } from "taro-ui";
|
||||||
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
|
import { AtGrid } from "taro-ui";
|
||||||
|
import { Swiper, SwiperItem } from "@tarojs/components";
|
||||||
|
import { AtCard } from "taro-ui";
|
||||||
|
import { AtImagePicker } from "taro-ui";
|
||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import { AtAvatar } from "taro-ui";
|
||||||
|
import { AtButton } from "taro-ui";
|
||||||
|
// import Taro from "@tarojs/taro";
|
||||||
|
|
||||||
|
import { AtList, AtListItem } from "taro-ui";
|
||||||
|
|
||||||
|
// export default class Index extends Component {
|
||||||
|
const Detail = () => {
|
||||||
|
const [current, setcurrent] = useState(2);
|
||||||
|
const [id, setid] = useState(null);
|
||||||
|
const [openid, setopenid] = useState(null);
|
||||||
|
const [joinMeetup, setjoinMeetup] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
let newparams = Taro.getCurrentInstance().router.params;
|
||||||
|
let newId = newparams.id;
|
||||||
|
if (newId) {
|
||||||
|
setid(newId);
|
||||||
|
}
|
||||||
|
let newjoinMeetup=window.localStorage.getItem('joinMeetup')
|
||||||
|
setjoinMeetup(newjoinMeetup)
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
// const handleClick = (value) => {
|
||||||
|
// console.log("value", value);
|
||||||
|
// setcurrent(value);
|
||||||
|
// if (value == 2) {
|
||||||
|
// // 跳转到目的页面,在当前页面打开
|
||||||
|
// Taro.navigateTo({
|
||||||
|
// url: "/pages/my/index",
|
||||||
|
// });
|
||||||
|
// } else if (value == 0) {
|
||||||
|
// Taro.navigateTo({
|
||||||
|
// url: "/pages/index/index",
|
||||||
|
// });
|
||||||
|
// } else {
|
||||||
|
// Taro.navigateTo({
|
||||||
|
// url: "/pages/meetup/index",
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
|
||||||
|
const onBridgeReady = () => {
|
||||||
|
WeixinJSBridge.call("hideOptionMenu");
|
||||||
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
let $instance = Taro.getCurrentInstance();
|
||||||
|
// console.log("11");
|
||||||
|
console.log($instance.router.params);
|
||||||
|
// if (typeof WeixinJSBridge == "undefined") {
|
||||||
|
// if (document.addEventListener) {
|
||||||
|
// document.addEventListener("WeixinJSBridgeReady", onBridgeReady, false);
|
||||||
|
// } else if (document.attachEvent) {
|
||||||
|
// document.attachEvent("WeixinJSBridgeReady", onBridgeReady);
|
||||||
|
// document.attachEvent("onWeixinJSBridgeReady", onBridgeReady);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const joinmeet = () => {
|
||||||
|
// console.log("111");
|
||||||
|
Taro.request({
|
||||||
|
method:'POST',
|
||||||
|
url: "/api/payh5", //仅为示例,并非真实的接口地址
|
||||||
|
// url: "https://pay.hackrobot.cn/api/payh5", //仅为示例,并非真实的接口地址
|
||||||
|
|
||||||
|
data: {
|
||||||
|
callback_url:window.location.href,
|
||||||
|
openid:window.localStorage.getItem('openid')
|
||||||
|
},
|
||||||
|
header: {
|
||||||
|
"content-type": "application/json", // 默认值
|
||||||
|
},
|
||||||
|
success: function (res) {
|
||||||
|
console.log(res.data);
|
||||||
|
// window.alert(res.data.jsapi);
|
||||||
|
WeixinJSBridge.invoke(
|
||||||
|
"getBrandWCPayRequest",
|
||||||
|
{
|
||||||
|
// 以下6个支付参数通过payjs的jsapi接口获取
|
||||||
|
// appId: "wxc5205a653b0259bf",
|
||||||
|
// timeStamp: "1701401644",
|
||||||
|
// nonceStr: "KhOYB0wFV6j9qyQK",
|
||||||
|
// package: "prepay_id=wx01113404850024729b35f4d69b73500000",
|
||||||
|
// signType: "MD5",
|
||||||
|
// paySign: "2A823C8D47CCF871C6C65A56DC228CF8",
|
||||||
|
...res?.data?.jsapi??{},
|
||||||
|
},
|
||||||
|
function (res) {
|
||||||
|
if (res.err_msg == "get_brand_wcpay_request:ok") {
|
||||||
|
setjoinMeetup(true)
|
||||||
|
window.localStorage.setItem('joinMeetup',true)
|
||||||
|
WeixinJSBridge.call("closeWindow");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
return (
|
||||||
|
<View className="Detail">
|
||||||
|
{/* <Text>Hello world!</Text> */}
|
||||||
|
{/* <AtAvatar image='https://cdn.huodongxing.com/logo/202312/8732019012100/promoteMini.png'></AtAvatar> */}
|
||||||
|
<View>
|
||||||
|
<Image
|
||||||
|
style="width:100%;height: 200px;background: #fff;"
|
||||||
|
src={
|
||||||
|
"https://7084298024874.huodongxing.com/file/ue/20211008/115427740E13BBD5BD7B56940467DC03B4/30435083489707317.jpeg"
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
<AtList>
|
||||||
|
<AtListItem title="[副业交流] 沙龙茶话会" onClick={() => {}} />
|
||||||
|
<AtListItem title="日期" extraText="2023/12/06" arrow="" />
|
||||||
|
<AtListItem title="报名人数" extraText="4/10" arrow="" />
|
||||||
|
<AtListItem
|
||||||
|
title="地点"
|
||||||
|
note="广东省深圳市福田区石厦地铁站C口"
|
||||||
|
extraText=""
|
||||||
|
/>
|
||||||
|
{/* <AtListItem title='禁用状态' disabled extraText='详细信息' /> */}
|
||||||
|
</AtList>
|
||||||
|
|
||||||
|
{/* <AtList>
|
||||||
|
<AtListItem
|
||||||
|
title="联系我们"
|
||||||
|
note=""
|
||||||
|
arrow="right"
|
||||||
|
iconInfo={{ size: 25, color: "#78A4FA", value: "calendar" }}
|
||||||
|
/>
|
||||||
|
<AtListItem
|
||||||
|
title="版本日志"
|
||||||
|
note=""
|
||||||
|
extraText=""
|
||||||
|
arrow="right"
|
||||||
|
iconInfo={{ size: 25, color: "#FF4949", value: "bookmark" }}
|
||||||
|
/>
|
||||||
|
</AtList> */}
|
||||||
|
|
||||||
|
<View>
|
||||||
|
<AtButton
|
||||||
|
className="bottomBtn"
|
||||||
|
type="primary"
|
||||||
|
onClick={() => joinmeet()}
|
||||||
|
disabled={joinMeetup}
|
||||||
|
>
|
||||||
|
{!!joinMeetup?'已报名':'立即报名'}
|
||||||
|
</AtButton>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
{/* <View className="indexTablebar">
|
||||||
|
<AtTabBar
|
||||||
|
tabList={[
|
||||||
|
{ title: "首页", text: "" },
|
||||||
|
{ title: "活动" },
|
||||||
|
{ title: "我的" },
|
||||||
|
]}
|
||||||
|
onClick={(value) => handleClick(value)}
|
||||||
|
current={current}
|
||||||
|
/>
|
||||||
|
</View> */}
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Detail;
|
||||||
11
src/pages/meetup/Detail/index.scss
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
.Detail{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.bottomBtn{
|
||||||
|
display: flex;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
155
src/pages/meetup/index.jsx
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
import { Component } from "react";
|
||||||
|
import { View, Text, Image } from "@tarojs/components";
|
||||||
|
import "./index.scss";
|
||||||
|
import { AtTabBar } from "taro-ui";
|
||||||
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
|
import { AtGrid } from "taro-ui";
|
||||||
|
import { Swiper, SwiperItem } from "@tarojs/components";
|
||||||
|
import { AtCard } from "taro-ui";
|
||||||
|
import { AtImagePicker } from "taro-ui";
|
||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import { AtButton } from "taro-ui";
|
||||||
|
|
||||||
|
import { Picker } from "@tarojs/components";
|
||||||
|
import { AtList, AtListItem } from "taro-ui";
|
||||||
|
import { AtNavBar } from "taro-ui";
|
||||||
|
|
||||||
|
// export default class Index extends Component {
|
||||||
|
const Meetup = () => {
|
||||||
|
const [current, setcurrent] = useState(1);
|
||||||
|
const [joinMeetup, setjoinMeetup] = useState(false);
|
||||||
|
|
||||||
|
const [pickData, setpickData] = useState({
|
||||||
|
selector: ["美国", "中国", "巴西", "日本"],
|
||||||
|
selectorChecked: "美国",
|
||||||
|
timeSel: "12:01",
|
||||||
|
dateSel: "2018-04-22",
|
||||||
|
});
|
||||||
|
const handleClick = (value) => {
|
||||||
|
console.log("value", value);
|
||||||
|
setcurrent(value);
|
||||||
|
if (value == 2) {
|
||||||
|
// 跳转到目的页面,在当前页面打开
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/my/index",
|
||||||
|
});
|
||||||
|
} else if (value == 0) {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/index/index",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/meetup/index",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const goBack = () => {
|
||||||
|
// window.history.back();
|
||||||
|
Taro.navigateBack({
|
||||||
|
// delta: 2
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
let newjoinMeetup = window.localStorage.getItem("joinMeetup");
|
||||||
|
setjoinMeetup(newjoinMeetup);
|
||||||
|
|
||||||
|
// window.localStorage.removeItem("joinMeetup");
|
||||||
|
// setjoinMeetup(false)
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<View className="my">
|
||||||
|
{/* <AtNavBar
|
||||||
|
// onClickRgIconSt={handleClick}
|
||||||
|
// onClickRgIconNd={handleClick}
|
||||||
|
// onClickLeftIcon={goBack}
|
||||||
|
// leftIconType="chevron-left"
|
||||||
|
color="#000"
|
||||||
|
title="活动列表"
|
||||||
|
// leftText='返回'
|
||||||
|
// rightFirstIconType='bullet-list'
|
||||||
|
// rightSecondIconType='user'
|
||||||
|
/> */}
|
||||||
|
{/* <Text>Hello world!</Text> */}
|
||||||
|
|
||||||
|
{/* <View className="page-section">
|
||||||
|
<View>
|
||||||
|
<Picker mode="selector" range={pickData.selector} onChange={() => {}}>
|
||||||
|
<AtList>
|
||||||
|
<AtListItem
|
||||||
|
title="国家地区"
|
||||||
|
extraText={pickData.selectorChecked}
|
||||||
|
/>
|
||||||
|
</AtList>
|
||||||
|
</Picker>
|
||||||
|
</View>
|
||||||
|
<View>
|
||||||
|
<Picker mode="selector" range={pickData.selector} onChange={() => {}}>
|
||||||
|
<AtList>
|
||||||
|
<AtListItem
|
||||||
|
title="国家地区"
|
||||||
|
extraText={pickData.selectorChecked}
|
||||||
|
/>
|
||||||
|
</AtList>
|
||||||
|
</Picker>
|
||||||
|
</View>
|
||||||
|
</View> */}
|
||||||
|
|
||||||
|
<AtCard
|
||||||
|
note=""
|
||||||
|
extra=""
|
||||||
|
title="[副业交流] 沙龙茶话会"
|
||||||
|
thumb="http://www.logoquan.com/upload/list/20180421/logoquan15259400209.PNG"
|
||||||
|
>
|
||||||
|
<View className="meetupCard">
|
||||||
|
{" "}
|
||||||
|
<View className="left">
|
||||||
|
{" "}
|
||||||
|
<Image
|
||||||
|
style="width: 150px;height: 100px;background: #fff;"
|
||||||
|
src={
|
||||||
|
"https://7084298024874.huodongxing.com/file/ue/20211008/115427740E13BBD5BD7B56940467DC03B4/30435083489707317.jpeg"
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
<View className="right">
|
||||||
|
<View className="up">
|
||||||
|
<span style={{ color: "green" }}>[已报名]</span> 4/10
|
||||||
|
</View>
|
||||||
|
<View className="middle">2023/12/06 星期三</View>
|
||||||
|
<View className="down">
|
||||||
|
<AtButton
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
className="submitBtn"
|
||||||
|
disabled={joinMeetup}
|
||||||
|
onClick={() => {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/meetup/Detail/index",
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{!!joinMeetup ? "已报名" : "立即报名"}
|
||||||
|
</AtButton>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</AtCard>
|
||||||
|
|
||||||
|
<View className="indexTablebar">
|
||||||
|
<AtTabBar
|
||||||
|
tabList={[
|
||||||
|
{ title: "首页", text: "" },
|
||||||
|
{ title: "活动" },
|
||||||
|
{ title: "我的" },
|
||||||
|
]}
|
||||||
|
onClick={(value) => handleClick(value)}
|
||||||
|
current={current}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Meetup;
|
||||||
42
src/pages/meetup/index.scss
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
.my{
|
||||||
|
margin-top: 20px;
|
||||||
|
|
||||||
|
.page-section{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meetupCard {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
.right {
|
||||||
|
// background-color: yellow;
|
||||||
|
width: 100%;
|
||||||
|
margin-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
.down {
|
||||||
|
width: 200px;
|
||||||
|
// background-color: aqua;
|
||||||
|
position: relative;
|
||||||
|
bottom: 10px;
|
||||||
|
right: -120px;
|
||||||
|
// display: flex;
|
||||||
|
// flex-direction: column-reverse;
|
||||||
|
// justify-content:flex-end
|
||||||
|
// position: relative;
|
||||||
|
.submitBtn {
|
||||||
|
// width: 200px;
|
||||||
|
// position: absolute;
|
||||||
|
// right: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.indexTablebar {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
3
src/pages/model/index.config.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
navigationBarTitleText: '模版页面'
|
||||||
|
}
|
||||||
4
src/pages/model/index.scss
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
.Model{
|
||||||
|
padding: 40px;
|
||||||
|
|
||||||
|
}
|
||||||
31
src/pages/model/index.tsx
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
import { Component } from "react";
|
||||||
|
import { View, Text, Image } from "@tarojs/components";
|
||||||
|
import "./index.scss";
|
||||||
|
import { AtButton, AtInput, AtTabBar } from "taro-ui";
|
||||||
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
|
import { AtGrid } from "taro-ui";
|
||||||
|
import { Swiper, SwiperItem } from "@tarojs/components";
|
||||||
|
import { AtCard } from "taro-ui";
|
||||||
|
import { AtImagePicker } from "taro-ui";
|
||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import { AtAvatar } from "taro-ui";
|
||||||
|
import { AtTag } from "taro-ui";
|
||||||
|
import { AtList, AtListItem } from "taro-ui";
|
||||||
|
import { AtForm, AtMessage } from "taro-ui";
|
||||||
|
|
||||||
|
// export default class Index extends Component {
|
||||||
|
const Model = () => {
|
||||||
|
useEffect(() => {}, []);
|
||||||
|
|
||||||
|
const handleClick = (value) => {
|
||||||
|
// 跳转到目的页面,在当前页面打开
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/index/index",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return <View className="Model">模版</View>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Model;
|
||||||
92
src/pages/my/index.jsx
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
import { Component } from "react";
|
||||||
|
import { View, Text, Image } from "@tarojs/components";
|
||||||
|
import "./index.scss";
|
||||||
|
import { AtTabBar } from "taro-ui";
|
||||||
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
|
import { AtGrid } from "taro-ui";
|
||||||
|
import { Swiper, SwiperItem } from "@tarojs/components";
|
||||||
|
import { AtCard } from "taro-ui";
|
||||||
|
import { AtImagePicker } from "taro-ui";
|
||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import { AtAvatar } from "taro-ui";
|
||||||
|
import { AtTag } from "taro-ui";
|
||||||
|
import { AtList, AtListItem } from "taro-ui";
|
||||||
|
import avatar from "../../images/avatar.jpg";
|
||||||
|
|
||||||
|
// export default class Index extends Component {
|
||||||
|
const My = () => {
|
||||||
|
const [current, setcurrent] = useState(2);
|
||||||
|
const [wxid, setwxid] = useState(null);
|
||||||
|
|
||||||
|
useEffect(()=>{
|
||||||
|
getWxid()
|
||||||
|
},[])
|
||||||
|
|
||||||
|
const getWxid = () => {
|
||||||
|
let newWxid = window.localStorage.getItem("wxid");
|
||||||
|
if (!!newWxid) {
|
||||||
|
setwxid(newWxid);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleClick = (value) => {
|
||||||
|
console.log("value", value);
|
||||||
|
setcurrent(value);
|
||||||
|
if (value == 2) {
|
||||||
|
// 跳转到目的页面,在当前页面打开
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/my/index",
|
||||||
|
});
|
||||||
|
} else if (value == 0) {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/index/index",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/meetup/index",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (
|
||||||
|
<View className="my">
|
||||||
|
{/* <Text>Hello world!</Text> */}
|
||||||
|
|
||||||
|
<View className="myAtAvatar">
|
||||||
|
<AtAvatar className="AtAvatar" image={avatar}></AtAvatar>
|
||||||
|
<AtTag type="primary" circle>
|
||||||
|
新注册用户
|
||||||
|
</AtTag>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<AtList>
|
||||||
|
<AtListItem
|
||||||
|
title="联系我们"
|
||||||
|
note=""
|
||||||
|
arrow="right"
|
||||||
|
iconInfo={{ size: 25, color: "#78A4FA", value: "calendar" }}
|
||||||
|
/>
|
||||||
|
<AtListItem
|
||||||
|
title="版本日志"
|
||||||
|
note=""
|
||||||
|
extraText=""
|
||||||
|
arrow="right"
|
||||||
|
iconInfo={{ size: 25, color: "#FF4949", value: "bookmark" }}
|
||||||
|
/>
|
||||||
|
</AtList>
|
||||||
|
|
||||||
|
<View className="indexTablebar">
|
||||||
|
<AtTabBar
|
||||||
|
tabList={[
|
||||||
|
{ title: "首页", text: "" },
|
||||||
|
{ title: "活动" },
|
||||||
|
{ title: "我的" },
|
||||||
|
]}
|
||||||
|
onClick={(value) => handleClick(value)}
|
||||||
|
current={current}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default My;
|
||||||
23
src/pages/my/index.scss
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
.my{
|
||||||
|
|
||||||
|
.myAtAvatar{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
height: 300px;
|
||||||
|
// background-color: #f4ffb8;
|
||||||
|
// padding-left: 20px;
|
||||||
|
// padding-right: 20px;
|
||||||
|
.AtAvatar{
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.indexTablebar {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
3
src/pages/salon/index.config.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
navigationBarTitleText: '副业沙龙'
|
||||||
|
}
|
||||||
23
src/pages/salon/index.scss
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
.Model {
|
||||||
|
padding: 20px;
|
||||||
|
|
||||||
|
.bottomDiv {
|
||||||
|
width: 100%;
|
||||||
|
height: 100px;
|
||||||
|
// background-color: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
.joinSalon {
|
||||||
|
// position: relative;
|
||||||
|
bottom: 20px;
|
||||||
|
position: fixed;
|
||||||
|
width: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.model-emoji {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
224
src/pages/salon/index.tsx
Normal file
@@ -0,0 +1,224 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
import { Component } from "react";
|
||||||
|
import { View, Text, Image, Button } from "@tarojs/components";
|
||||||
|
import "./index.scss";
|
||||||
|
import { AtButton, AtInput, AtTabBar } from "taro-ui";
|
||||||
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
|
import { AtGrid } from "taro-ui";
|
||||||
|
import { Swiper, SwiperItem } from "@tarojs/components";
|
||||||
|
import { AtCard } from "taro-ui";
|
||||||
|
import { AtImagePicker } from "taro-ui";
|
||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import { AtTag } from "taro-ui";
|
||||||
|
import { AtList, AtListItem } from "taro-ui";
|
||||||
|
import { AtForm, AtMessage } from "taro-ui";
|
||||||
|
import loft from "../../images/loft.png";
|
||||||
|
import nomadvloglife from "../../images/nomadvloglife.png";
|
||||||
|
|
||||||
|
import {
|
||||||
|
AtModal,
|
||||||
|
AtModalHeader,
|
||||||
|
AtModalContent,
|
||||||
|
AtModalAction,
|
||||||
|
AtAvatar,
|
||||||
|
AtAccordion,
|
||||||
|
} from "taro-ui";
|
||||||
|
|
||||||
|
import qrcode from "../../images/qrcode.png";
|
||||||
|
|
||||||
|
// export default class Index extends Component {
|
||||||
|
const Salon = () => {
|
||||||
|
const [meetupQR, setmeetupQR] = useState(false);
|
||||||
|
const [isWeChat, setisWeChat] = useState(false);
|
||||||
|
const [meetup, setmeetup] = useState(window.localStorage.getItem("meetup"));
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
isWeChatFun();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const handleClick = (value) => {
|
||||||
|
// 跳转到目的页面,在当前页面打开
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/index/index",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 是否在微信客户端
|
||||||
|
const isWeChatFun = () => {
|
||||||
|
var ua = navigator.userAgent.toLowerCase();
|
||||||
|
if (ua.indexOf("micromessenger") != -1) {
|
||||||
|
setisWeChat(true);
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
setisWeChat(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const payh5 = (type, total_fee = 1000) => {
|
||||||
|
// console.log("111");
|
||||||
|
Taro.request({
|
||||||
|
method: "POST",
|
||||||
|
url: "/api/payh5", //仅为示例,并非真实的接口地址
|
||||||
|
// url: "https://pay.hackrobot.cn/api/payh5", //仅为示例,并非真实的接口地址
|
||||||
|
|
||||||
|
data: {
|
||||||
|
callback_url: window.location.href,
|
||||||
|
openid: window.localStorage.getItem("openid"),
|
||||||
|
total_fee: total_fee, // 金额,单位:分
|
||||||
|
type: type, //订单类型 book/meetup/video/vip
|
||||||
|
},
|
||||||
|
header: {
|
||||||
|
"content-type": "application/json", // 默认值
|
||||||
|
},
|
||||||
|
success: function (res) {
|
||||||
|
console.log(res.data);
|
||||||
|
// window.alert(res.data.jsapi);
|
||||||
|
WeixinJSBridge.invoke(
|
||||||
|
"getBrandWCPayRequest",
|
||||||
|
{
|
||||||
|
// 以下6个支付参数通过payjs的jsapi接口获取
|
||||||
|
// appId: "wxc5205a653b0259bf",
|
||||||
|
// timeStamp: "1701401644",
|
||||||
|
// nonceStr: "KhOYB0wFV6j9qyQK",
|
||||||
|
// package: "prepay_id=wx01113404850024729b35f4d69b73500000",
|
||||||
|
// signType: "MD5",
|
||||||
|
// paySign: "2A823C8D47CCF871C6C65A56DC228CF8",
|
||||||
|
...(res?.data?.jsapi ?? {}),
|
||||||
|
},
|
||||||
|
function (res) {
|
||||||
|
// 支付成功
|
||||||
|
if (res.err_msg == "get_brand_wcpay_request:ok") {
|
||||||
|
window.localStorage.setItem(type, 1); //订单类型 book/meetup/video/vip
|
||||||
|
WeixinJSBridge.call("closeWindow");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<View className="Model">
|
||||||
|
<View className="meetup-left">
|
||||||
|
<Image style="width: 100%;height: 100px;background: #fff;" src={loft} />
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<View className="at-article">
|
||||||
|
<View className="at-article__h1">自由交流&副业 | 线下沙龙</View>
|
||||||
|
<View className="at-article__info">
|
||||||
|
{/* 2017-05-07 */}
|
||||||
|
异度星球
|
||||||
|
</View>
|
||||||
|
<View className="at-article__content">
|
||||||
|
<View className="at-article__section">
|
||||||
|
<View className="at-article__h2">活动介绍</View>
|
||||||
|
<View className="at-article__h3">| 📣coffeechat</View>
|
||||||
|
<View className="at-article__p">
|
||||||
|
本活动是个人基于coffeechat的另一种形式
|
||||||
|
<br />
|
||||||
|
由于很多小伙伴1V1交流会紧张,提议旁听
|
||||||
|
<br />
|
||||||
|
所以组织小型的沙龙(6人),自由交流
|
||||||
|
</View>
|
||||||
|
<br />
|
||||||
|
<View className="at-article__h3">| 📋时间地点</View>
|
||||||
|
<View className="at-article__p">
|
||||||
|
暂未与商业场地进行合作
|
||||||
|
<br />
|
||||||
|
1️⃣地点:南山区--loft民宿
|
||||||
|
<br />
|
||||||
|
2️⃣6人成行 (最多8人)
|
||||||
|
<br />
|
||||||
|
3️⃣非固定日期 [进沙龙群]
|
||||||
|
</View>
|
||||||
|
<br />
|
||||||
|
{/* ❌ */}
|
||||||
|
<View className="at-article__h3">| 非商业,非盈利性质</View>
|
||||||
|
<View className="at-article__p">
|
||||||
|
🚫禁止营销推广
|
||||||
|
<br />
|
||||||
|
{/* 🚫标榜:"留学海归""博士硕士""大咖大V""大厂"等
|
||||||
|
<br />
|
||||||
|
声明:"一人公司","自由职业","副业",有很多组织,或者个人,会举办专题的活动,以及"高端XX局",固定周期,流程体系化,并以此盈利.{" "}
|
||||||
|
<br />
|
||||||
|
本沙龙不属于此类
|
||||||
|
<br /> */}
|
||||||
|
✅请对"职业/学历/大公司" 祛魅
|
||||||
|
<br />
|
||||||
|
💰价格39元/人 (场地成本)
|
||||||
|
</View>
|
||||||
|
<br />
|
||||||
|
{meetup == 1 ? (
|
||||||
|
<View className="at-article__h3">| ☕已报名,请添加好友</View>
|
||||||
|
) : (
|
||||||
|
null
|
||||||
|
)}
|
||||||
|
{meetup == 1 ? (
|
||||||
|
<View className="at-article__p">
|
||||||
|
{`ID:${window.localStorage.getItem("openid")}`}
|
||||||
|
</View>
|
||||||
|
) : null}
|
||||||
|
{/* 已报名 */}
|
||||||
|
{meetup == 1 ? (
|
||||||
|
<View className="model-emoji">
|
||||||
|
<Image
|
||||||
|
style="width: 240px;height: 240px;background: #fff;"
|
||||||
|
// src={qrcode}
|
||||||
|
src={nomadvloglife}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
) : null}
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<View className="bottomDiv"></View>
|
||||||
|
{/* 判断有没有wxid,是否女性 */}
|
||||||
|
<AtButton
|
||||||
|
type="primary"
|
||||||
|
size="normal"
|
||||||
|
className="joinSalon"
|
||||||
|
onClick={() => {
|
||||||
|
if (meetup == 1) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
if (!!isWeChat) {
|
||||||
|
payh5("meetup", 3900);
|
||||||
|
} else {
|
||||||
|
setmeetupQR(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{meetup == 1 ? "已报名" : `立即报名`}
|
||||||
|
</AtButton>
|
||||||
|
|
||||||
|
<View className="meetupQR">
|
||||||
|
{/* 软件下载模态窗 */}
|
||||||
|
<AtModal isOpened={meetupQR}>
|
||||||
|
<AtModalHeader>咨询沙龙</AtModalHeader>
|
||||||
|
<AtModalContent>
|
||||||
|
<View className="model-emoji">
|
||||||
|
<Image
|
||||||
|
// style="width: 100%;height: 240px;background: #fff;"
|
||||||
|
src={qrcode}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</AtModalContent>
|
||||||
|
<AtModalAction>
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
setmeetupQR(false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
知道了
|
||||||
|
</Button>
|
||||||
|
</AtModalAction>
|
||||||
|
</AtModal>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Salon;
|
||||||
91
yarn.lock
@@ -2823,6 +2823,11 @@ ajv@^8.0.0, ajv@^8.9.0:
|
|||||||
require-from-string "^2.0.2"
|
require-from-string "^2.0.2"
|
||||||
uri-js "^4.2.2"
|
uri-js "^4.2.2"
|
||||||
|
|
||||||
|
animate.css@^4.1.1:
|
||||||
|
version "4.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/animate.css/-/animate.css-4.1.1.tgz#614ec5a81131d7e4dc362a58143f7406abd68075"
|
||||||
|
integrity sha512-+mRmCTv6SbCmtYJCN4faJMNFVNN5EuCTTprDTAo7YzIGji2KADmakjVA3+8mVDkZ2Bf09vayB35lSQIex2+QaQ==
|
||||||
|
|
||||||
ansi-align@^3.0.0:
|
ansi-align@^3.0.0:
|
||||||
version "3.0.1"
|
version "3.0.1"
|
||||||
resolved "https://registry.npmmirror.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59"
|
resolved "https://registry.npmmirror.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59"
|
||||||
@@ -3826,7 +3831,7 @@ class-utils@^0.3.5:
|
|||||||
isobject "^3.0.0"
|
isobject "^3.0.0"
|
||||||
static-extend "^0.1.1"
|
static-extend "^0.1.1"
|
||||||
|
|
||||||
classnames@^2.2.5:
|
classnames@^2.2.5, classnames@^2.2.6:
|
||||||
version "2.3.2"
|
version "2.3.2"
|
||||||
resolved "https://registry.npmmirror.com/classnames/-/classnames-2.3.2.tgz#351d813bf0137fcc6a76a16b88208d2560a0d924"
|
resolved "https://registry.npmmirror.com/classnames/-/classnames-2.3.2.tgz#351d813bf0137fcc6a76a16b88208d2560a0d924"
|
||||||
integrity sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==
|
integrity sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==
|
||||||
@@ -4446,6 +4451,11 @@ data-urls@^4.0.0:
|
|||||||
whatwg-mimetype "^3.0.0"
|
whatwg-mimetype "^3.0.0"
|
||||||
whatwg-url "^12.0.0"
|
whatwg-url "^12.0.0"
|
||||||
|
|
||||||
|
dayjs@^1.7.7:
|
||||||
|
version "1.11.10"
|
||||||
|
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.10.tgz#68acea85317a6e164457d6d6947564029a6a16a0"
|
||||||
|
integrity sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==
|
||||||
|
|
||||||
debug@2.6.9, debug@^2.2.0, debug@^2.3.3:
|
debug@2.6.9, debug@^2.2.0, debug@^2.3.3:
|
||||||
version "2.6.9"
|
version "2.6.9"
|
||||||
resolved "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
resolved "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
||||||
@@ -6235,6 +6245,11 @@ git-clone@^0.1.0:
|
|||||||
resolved "https://registry.npmmirror.com/git-clone/-/git-clone-0.1.0.tgz#0d76163778093aef7f1c30238f2a9ef3f07a2eb9"
|
resolved "https://registry.npmmirror.com/git-clone/-/git-clone-0.1.0.tgz#0d76163778093aef7f1c30238f2a9ef3f07a2eb9"
|
||||||
integrity sha512-zs9rlfa7HyaJAKG9o+V7C6qfMzyc+tb1IIXdUFcOBcR1U7siKy/uPdauLlrH1mc0vOgUwIv4BF+QxPiiTYz3Rw==
|
integrity sha512-zs9rlfa7HyaJAKG9o+V7C6qfMzyc+tb1IIXdUFcOBcR1U7siKy/uPdauLlrH1mc0vOgUwIv4BF+QxPiiTYz3Rw==
|
||||||
|
|
||||||
|
github-markdown-css@^5.6.1:
|
||||||
|
version "5.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/github-markdown-css/-/github-markdown-css-5.6.1.tgz#8ca3d5c3d93d79ea429fddafea091347ab374f78"
|
||||||
|
integrity sha512-DItLFgHd+s7HQmk63YN4/TdvLeRqk1QP7pPKTTPrDTYoI5x7f/luJWSOZxesmuxBI2srHp8RDyoZd+9WF+WK8Q==
|
||||||
|
|
||||||
giturl@^1.0.0:
|
giturl@^1.0.0:
|
||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
resolved "https://registry.npmmirror.com/giturl/-/giturl-1.0.3.tgz#27f9d1f251d138eb2a5a56cc9dd8512b0fc0bbc6"
|
resolved "https://registry.npmmirror.com/giturl/-/giturl-1.0.3.tgz#27f9d1f251d138eb2a5a56cc9dd8512b0fc0bbc6"
|
||||||
@@ -8100,7 +8115,7 @@ lodash.uniq@^4.5.0:
|
|||||||
resolved "https://registry.npmmirror.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
|
resolved "https://registry.npmmirror.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
|
||||||
integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==
|
integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==
|
||||||
|
|
||||||
"lodash@4.6.1 || ^4.16.1", lodash@^4.17.11, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4:
|
"lodash@4.6.1 || ^4.16.1", lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4:
|
||||||
version "4.17.21"
|
version "4.17.21"
|
||||||
resolved "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
|
resolved "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
|
||||||
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
|
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
|
||||||
@@ -8275,6 +8290,11 @@ markdown-table@^1.1.0:
|
|||||||
resolved "https://registry.npmmirror.com/markdown-table/-/markdown-table-1.1.3.tgz#9fcb69bcfdb8717bfd0398c6ec2d93036ef8de60"
|
resolved "https://registry.npmmirror.com/markdown-table/-/markdown-table-1.1.3.tgz#9fcb69bcfdb8717bfd0398c6ec2d93036ef8de60"
|
||||||
integrity sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q==
|
integrity sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q==
|
||||||
|
|
||||||
|
marked@^14.1.2:
|
||||||
|
version "14.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/marked/-/marked-14.1.2.tgz#3cbc26b2d6832be32b75ae0746e0968c781b6156"
|
||||||
|
integrity sha512-f3r0yqpz31VXiDB/wj9GaOB0a2PRLQl6vJmXiFrniNwjkKdvakqJRULhjFKJpxOchlCRiG5fcacoUZY5Xa6PEQ==
|
||||||
|
|
||||||
math-random@^1.0.1:
|
math-random@^1.0.1:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
resolved "https://registry.npmmirror.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c"
|
resolved "https://registry.npmmirror.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c"
|
||||||
@@ -9967,7 +9987,7 @@ promise-polyfill@^7.1.0:
|
|||||||
resolved "https://registry.npmmirror.com/promise-polyfill/-/promise-polyfill-7.1.2.tgz#ab05301d8c28536301622d69227632269a70ca3b"
|
resolved "https://registry.npmmirror.com/promise-polyfill/-/promise-polyfill-7.1.2.tgz#ab05301d8c28536301622d69227632269a70ca3b"
|
||||||
integrity sha512-FuEc12/eKqqoRYIGBrUptCBRhobL19PS2U31vMNTfyck1FxPyMfgsXyW4Mav85y/ZN1hop3hOwRlUDok23oYfQ==
|
integrity sha512-FuEc12/eKqqoRYIGBrUptCBRhobL19PS2U31vMNTfyck1FxPyMfgsXyW4Mav85y/ZN1hop3hOwRlUDok23oYfQ==
|
||||||
|
|
||||||
prop-types@^15.8.1:
|
prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1:
|
||||||
version "15.8.1"
|
version "15.8.1"
|
||||||
resolved "https://registry.npmmirror.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
|
resolved "https://registry.npmmirror.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
|
||||||
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
|
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
|
||||||
@@ -10111,6 +10131,14 @@ raw-body@2.5.1:
|
|||||||
iconv-lite "0.4.24"
|
iconv-lite "0.4.24"
|
||||||
unpipe "1.0.0"
|
unpipe "1.0.0"
|
||||||
|
|
||||||
|
raw-loader@^4.0.2:
|
||||||
|
version "4.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-4.0.2.tgz#1aac6b7d1ad1501e66efdac1522c73e59a584eb6"
|
||||||
|
integrity sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==
|
||||||
|
dependencies:
|
||||||
|
loader-utils "^2.0.0"
|
||||||
|
schema-utils "^3.0.0"
|
||||||
|
|
||||||
rc-config-loader@^4.0.0:
|
rc-config-loader@^4.0.0:
|
||||||
version "4.1.3"
|
version "4.1.3"
|
||||||
resolved "https://registry.npmmirror.com/rc-config-loader/-/rc-config-loader-4.1.3.tgz#1352986b8a2d8d96d6fd054a5bb19a60c576876a"
|
resolved "https://registry.npmmirror.com/rc-config-loader/-/rc-config-loader-4.1.3.tgz#1352986b8a2d8d96d6fd054a5bb19a60c576876a"
|
||||||
@@ -10149,6 +10177,21 @@ react-is@^17.0.1:
|
|||||||
resolved "https://registry.npmmirror.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
|
resolved "https://registry.npmmirror.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
|
||||||
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
|
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
|
||||||
|
|
||||||
|
react-native-animatable@1.3.3:
|
||||||
|
version "1.3.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-native-animatable/-/react-native-animatable-1.3.3.tgz#a13a4af8258e3bb14d0a9d839917e9bb9274ec8a"
|
||||||
|
integrity sha512-2ckIxZQAsvWn25Ho+DK3d1mXIgj7tITkrS4pYDvx96WyOttSvzzFeQnM2od0+FUMzILbdHDsDEqZvnz1DYNQ1w==
|
||||||
|
dependencies:
|
||||||
|
prop-types "^15.7.2"
|
||||||
|
|
||||||
|
react-native-modal@^13.0.0:
|
||||||
|
version "13.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-native-modal/-/react-native-modal-13.0.1.tgz#691f1e646abb96fa82c1788bf18a16d585da37cd"
|
||||||
|
integrity sha512-UB+mjmUtf+miaG/sDhOikRfBOv0gJdBU2ZE1HtFWp6UixW9jCk/bhGdHUgmZljbPpp0RaO/6YiMmQSSK3kkMaw==
|
||||||
|
dependencies:
|
||||||
|
prop-types "^15.6.2"
|
||||||
|
react-native-animatable "1.3.3"
|
||||||
|
|
||||||
react-reconciler@0.27.0:
|
react-reconciler@0.27.0:
|
||||||
version "0.27.0"
|
version "0.27.0"
|
||||||
resolved "https://registry.npmmirror.com/react-reconciler/-/react-reconciler-0.27.0.tgz#360124fdf2d76447c7491ee5f0e04503ed9acf5b"
|
resolved "https://registry.npmmirror.com/react-reconciler/-/react-reconciler-0.27.0.tgz#360124fdf2d76447c7491ee5f0e04503ed9acf5b"
|
||||||
@@ -11271,7 +11314,7 @@ strict-uri-encode@^2.0.0:
|
|||||||
resolved "https://registry.npmmirror.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
|
resolved "https://registry.npmmirror.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
|
||||||
integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==
|
integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==
|
||||||
|
|
||||||
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2:
|
"string-width-cjs@npm:string-width@^4.2.0":
|
||||||
version "4.2.3"
|
version "4.2.3"
|
||||||
resolved "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
resolved "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
||||||
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
||||||
@@ -11288,6 +11331,15 @@ string-width@^2.1.0, string-width@^2.1.1:
|
|||||||
is-fullwidth-code-point "^2.0.0"
|
is-fullwidth-code-point "^2.0.0"
|
||||||
strip-ansi "^4.0.0"
|
strip-ansi "^4.0.0"
|
||||||
|
|
||||||
|
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2:
|
||||||
|
version "4.2.3"
|
||||||
|
resolved "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
||||||
|
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
||||||
|
dependencies:
|
||||||
|
emoji-regex "^8.0.0"
|
||||||
|
is-fullwidth-code-point "^3.0.0"
|
||||||
|
strip-ansi "^6.0.1"
|
||||||
|
|
||||||
string-width@^5.0.1, string-width@^5.1.2:
|
string-width@^5.0.1, string-width@^5.1.2:
|
||||||
version "5.1.2"
|
version "5.1.2"
|
||||||
resolved "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
|
resolved "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
|
||||||
@@ -11368,7 +11420,7 @@ stringify-entities@^1.0.1:
|
|||||||
is-alphanumerical "^1.0.0"
|
is-alphanumerical "^1.0.0"
|
||||||
is-hexadecimal "^1.0.0"
|
is-hexadecimal "^1.0.0"
|
||||||
|
|
||||||
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
|
||||||
version "6.0.1"
|
version "6.0.1"
|
||||||
resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
||||||
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
||||||
@@ -11389,6 +11441,13 @@ strip-ansi@^4.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
ansi-regex "^3.0.0"
|
ansi-regex "^3.0.0"
|
||||||
|
|
||||||
|
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
||||||
|
version "6.0.1"
|
||||||
|
resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
||||||
|
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
||||||
|
dependencies:
|
||||||
|
ansi-regex "^5.0.1"
|
||||||
|
|
||||||
strip-ansi@^7.0.1:
|
strip-ansi@^7.0.1:
|
||||||
version "7.1.0"
|
version "7.1.0"
|
||||||
resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
|
resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
|
||||||
@@ -11673,6 +11732,17 @@ tar-stream@^1.5.2:
|
|||||||
to-buffer "^1.1.1"
|
to-buffer "^1.1.1"
|
||||||
xtend "^4.0.0"
|
xtend "^4.0.0"
|
||||||
|
|
||||||
|
taro-ui@^3.2.0:
|
||||||
|
version "3.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/taro-ui/-/taro-ui-3.2.0.tgz#daa861d91694544ec8d30ee2e4d9e412832cb239"
|
||||||
|
integrity sha512-C3A2DaWQ7yCgQQEEEVbGQLByc4Op86py/AgIk0HLDUvp5rzLkpPSyMZWY7TvYroyyyy+ARt6BmDcLinT80xUUw==
|
||||||
|
dependencies:
|
||||||
|
classnames "^2.2.6"
|
||||||
|
dayjs "^1.7.7"
|
||||||
|
lodash "^4.17.10"
|
||||||
|
prop-types "^15.7.2"
|
||||||
|
react-native-modal "^13.0.0"
|
||||||
|
|
||||||
terser-webpack-plugin@^5.1.3, terser-webpack-plugin@^5.3.7:
|
terser-webpack-plugin@^5.1.3, terser-webpack-plugin@^5.3.7:
|
||||||
version "5.3.9"
|
version "5.3.9"
|
||||||
resolved "https://registry.npmmirror.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz#832536999c51b46d468067f9e37662a3b96adfe1"
|
resolved "https://registry.npmmirror.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz#832536999c51b46d468067f9e37662a3b96adfe1"
|
||||||
@@ -12703,7 +12773,7 @@ widest-line@^3.1.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
string-width "^4.0.0"
|
string-width "^4.0.0"
|
||||||
|
|
||||||
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
|
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
|
||||||
version "7.0.0"
|
version "7.0.0"
|
||||||
resolved "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
resolved "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
||||||
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
||||||
@@ -12721,6 +12791,15 @@ wrap-ansi@^6.0.1:
|
|||||||
string-width "^4.1.0"
|
string-width "^4.1.0"
|
||||||
strip-ansi "^6.0.0"
|
strip-ansi "^6.0.0"
|
||||||
|
|
||||||
|
wrap-ansi@^7.0.0:
|
||||||
|
version "7.0.0"
|
||||||
|
resolved "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
||||||
|
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
||||||
|
dependencies:
|
||||||
|
ansi-styles "^4.0.0"
|
||||||
|
string-width "^4.1.0"
|
||||||
|
strip-ansi "^6.0.0"
|
||||||
|
|
||||||
wrap-ansi@^8.1.0:
|
wrap-ansi@^8.1.0:
|
||||||
version "8.1.0"
|
version "8.1.0"
|
||||||
resolved "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
|
resolved "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
|
||||||
|
|||||||