This commit is contained in:
hackrobot
2025-03-25 07:11:28 -05:00
parent 4f440e4b07
commit 8b22fc63ed
71 changed files with 16185 additions and 3 deletions

1
.env.development Normal file
View File

@@ -0,0 +1 @@
process.env.TARO_API_API="/api"

1
.env.production Normal file
View File

@@ -0,0 +1 @@
process.env.TARO_API_API="https://web.hackrobot.cn"

7
.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
# dist/
deploy_versions/
.temp/
.rn_temp/
node_modules/
.DS_Store
.swc

View File

@@ -1,4 +1,4 @@
# nomadvps
# cityh5
@@ -15,14 +15,14 @@ Already a pro? Just edit this README.md and make it your own. Want to make it ea
```
cd existing_repo
git remote add origin http://gitlab.yidooplanet.com/gitlab-instance-0a899031/nomadvps.git
git remote add origin http://gitlab.yidooplanet.com/gitlab-instance-0a899031/cityh5.git
git branch -M main
git push -uf origin main
```
## Integrate with your tools
- [ ] [Set up project integrations](http://gitlab.yidooplanet.com/gitlab-instance-0a899031/nomadvps/-/settings/integrations)
- [ ] [Set up project integrations](http://gitlab.yidooplanet.com/gitlab-instance-0a899031/cityh5/-/settings/integrations)
## Collaborate with your team

10
babel.config.js Normal file
View File

@@ -0,0 +1,10 @@
// babel-preset-taro 更多选项和默认值:
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
module.exports = {
presets: [
['taro', {
framework: 'react',
ts: false
}]
]
}

10
config/dev.js Normal file
View File

@@ -0,0 +1,10 @@
module.exports = {
env: {
NODE_ENV: '"development"'
},
defineConstants: {
'process.env.TARO_API_API': JSON.stringify("/api")
},
mini: {},
h5: {}
}

111
config/index.js Normal file
View File

@@ -0,0 +1,111 @@
const config = {
projectName: "cityh5",
date: "2023-12-2",
designWidth: 750,
deviceRatio: {
640: 2.34 / 2,
750: 1,
828: 1.81 / 2,
},
sourceRoot: "src",
outputRoot: "dist",
plugins: [],
defineConstants: {},
copy: {
patterns: [],
options: {},
},
framework: "react",
compiler: "webpack5",
cache: {
enable: false, // Webpack 持久化缓存配置建议开启。默认配置请参考https://docs.taro.zone/docs/config-detail#cache
},
mini: {
postcss: {
pxtransform: {
enable: true,
config: {},
},
url: {
enable: true,
config: {
limit: 1024, // 设定转换尺寸上限
},
},
cssModules: {
enable: false, // 默认为 false如需使用 css modules 功能,则设为 true
config: {
namingPattern: "module", // 转换模式,取值为 global/module
generateScopedName: "[name]__[local]___[hash:base64:5]",
},
},
},
},
h5: {
webpackChain (chain) {
chain.module
.rule('markdown')
.test(/\.md$/)
.use('raw-loader')
.loader('raw-loader')
.end();
},
esnextModules: ["taro-ui"],
publicPath: "/",
staticDirectory: "static",
postcss: {
autoprefixer: {
enable: true,
config: {},
},
cssModules: {
enable: false, // 默认为 false如需使用 css modules 功能,则设为 true
config: {
namingPattern: "module", // 转换模式,取值为 global/module
generateScopedName: "[name]__[local]___[hash:base64:5]",
},
},
},
// 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: 10087, // 选择一个适当的端口号
proxy: {
'/api/': {
target: JSON.parse('"http://localhost:8700"'), //本地调试端口
pathRewrite: {
'^/api/': '/'
},
changeOrigin: true
}
},
// 允许特定域名访问
allowedHosts: [
// 'bot.hackrobot.cn'
'nomadyt.com'
],
}
},
};
module.exports = function (merge) {
if (process.env.NODE_ENV === "development") {
return merge({}, config, require("./dev"));
}
return merge({}, config, require("./prod"));
};

38
config/prod.js Normal file
View File

@@ -0,0 +1,38 @@
module.exports = {
env: {
NODE_ENV: '"production"'
},
defineConstants: {
'process.env.TARO_API_API': JSON.stringify("https://web.hackrobot.cn")
},
mini: {},
h5: {
/**
* WebpackChain 插件配置
* @docs https://github.com/neutrinojs/webpack-chain
*/
// webpackChain (chain) {
// /**
// * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。
// * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer
// */
// chain.plugin('analyzer')
// .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
// /**
// * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。
// * @docs https://github.com/chrisvfritz/prerender-spa-plugin
// */
// const path = require('path')
// const Prerender = require('prerender-spa-plugin')
// const staticDir = path.join(__dirname, '..', 'dist')
// chain
// .plugin('prerender')
// .use(new Prerender({
// staticDir,
// routes: [ '/pages/index/index' ],
// postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') })
// }))
// }
}
}

78
package.json Normal file
View File

@@ -0,0 +1,78 @@
{
"name": "",
"version": "1.0.0",
"private": true,
"description": "city",
"templateInfo": {
"name": "h5-youshu",
"typescript": false,
"css": "sass"
},
"scripts": {
"build:h5": "taro build --type h5",
"build:weapp": "taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
"build:tt": "taro build --type tt",
"build:qq": "taro build --type qq",
"dev:h5": "npm run build:h5 -- --watch",
"dev:weapp": "npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:tt": "npm run build:tt -- --watch",
"dev:qq": "npm run build:qq -- --watch"
},
"browserslist": [
"last 3 versions",
"Android >= 4.1",
"ios >= 8"
],
"author": "",
"dependencies": {
"@babel/runtime": "^7.7.7",
"@tarojs/components": "3.6.20",
"@tarojs/helper": "3.6.20",
"@tarojs/plugin-framework-react": "3.6.20",
"@tarojs/plugin-platform-alipay": "3.6.20",
"@tarojs/plugin-platform-h5": "3.6.20",
"@tarojs/plugin-platform-jd": "3.6.20",
"@tarojs/plugin-platform-qq": "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/shared": "3.6.20",
"@tarojs/taro": "3.6.20",
"animate.css": "^4.1.1",
"github-markdown-css": "^5.6.1",
"marked": "^14.1.2",
"raw-loader": "^4.0.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"sr-sdk-h5": "^1.3.1",
"taro-ui": "^3.2.0"
},
"devDependencies": {
"@babel/core": "^7.8.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
"@tarojs/cli": "3.6.20",
"@tarojs/taro-loader": "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",
"eslint": "^8.12.0",
"eslint-config-taro": "3.6.20",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-react-hooks": "^1.6.1",
"postcss": "^8.4.18",
"react-refresh": "^0.11.0",
"stylelint": "9.3.0",
"ts-node": "^10.9.1",
"typescript": "^4.1.0",
"webpack": "^5.78.0"
}
}

15
project.config.json Normal file
View File

@@ -0,0 +1,15 @@
{
"miniprogramRoot": "./dist",
"projectname": "cityh5",
"description": "city",
"appid": "touristappid",
"setting": {
"urlCheck": true,
"es6": false,
"enhance": false,
"compileHotReLoad": false,
"postcss": false,
"minified": false
},
"compileType": "miniprogram"
}

1
roboth5.sh Normal file
View File

@@ -0,0 +1 @@
yarn dev:h5

18
src/app.config.js Normal file
View File

@@ -0,0 +1,18 @@
export default {
pages: [
'pages/index/index',
'pages/my/index',
'pages/meetup/index',
'pages/meetup/Detail/index',
'pages/group/index',
'pages/book/index',
'pages/salon/index',
'pages/sphone/index'
],
window: {
backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#fff',
navigationBarTitleText: 'WeChat',
navigationBarTextStyle: 'black'
}
}

75
src/app.js Normal file
View File

@@ -0,0 +1,75 @@
import { Component } from 'react'
import SDK from 'sr-sdk-h5'
import './app.scss'
import 'animate.css';
import 'taro-ui/dist/style/index.scss' // 全局引入一次即可
/**
* 有数埋点SDK 默认配置
* 使用方法请参考文档 https://mp.zhls.qq.com/youshu-docs/develop/sdk/Taro.html
* 如对有数SDK埋点接入有任何疑问请联系微信sr_data_service
*/
window.srt = new SDK({
/**
* 有数 - ka接入测试用 分配的 app_id对应的业务
*/
token: 'bi72fccc7184ef45f9',
/**
* 传入自定义的后台上报接口若传入则token将无意义
*/
// serverUrl: 'aaa.baidu.com',
/**
* 开启打印调试信息, 默认 false
*/
debug: true,
/**
* 代理配置,自动代理页面浏览事件、页面离开事件、点击事件,默认 false。建议开启
*/
autoTrack: true,
/**
* 自动开始上报,默认 true。建议开启
*/
autoStart: true,
/**
* 上报返回的钩子函数,返回 false 则代表不通过SDK不会清除本地记录会继续重拾
*/
// onUploaded?: () => {},
/**
* 跳过初始化时对 token 的必要检查
* 满足场景服务商转发SDK上报数据在服务端回填appid解决大量小程序同时接入的问题默认false
*/
// skipTokenCheck: false,
/**
* 小程序appid
*/
appid: ''
});
// window.srt.setChan({chan_id: 'xxx'}) // 设置渠道渠道信息将会被设置在props.chan对象中
// window.srt.setUser({user_id: 'xxx'}) // 设置用户信息用户信息将会被设置在props.wx_user对象中
class App extends Component {
componentDidMount () {}
componentDidShow () {}
componentDidHide () {}
// this.props.children 是将要会渲染的页面
render () {
return this.props.children
}
}
export default App

0
src/app.scss Normal file
View File

BIN
src/images/AIGC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
src/images/avatar.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
src/images/book.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 KiB

BIN
src/images/bookqr.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

BIN
src/images/cat.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

131
src/images/demo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 140 KiB

BIN
src/images/emoji.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
src/images/girl.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
src/images/joinGroup.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
src/images/loft.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/images/loft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 KiB

BIN
src/images/meetup.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
src/images/nomad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
src/images/phone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
src/images/qrcode.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
src/images/robot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
src/images/robot192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
src/images/touxiang.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

2
src/images/youtube.svg Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><path fill="red" d="M14.712 4.633a1.754 1.754 0 00-1.234-1.234C12.382 3.11 8 3.11 8 3.11s-4.382 0-5.478.289c-.6.161-1.072.634-1.234 1.234C1 5.728 1 8 1 8s0 2.283.288 3.367c.162.6.635 1.073 1.234 1.234C3.618 12.89 8 12.89 8 12.89s4.382 0 5.478-.289a1.754 1.754 0 001.234-1.234C15 10.272 15 8 15 8s0-2.272-.288-3.367z"/><path fill="#ffffff" d="M6.593 10.11l3.644-2.098-3.644-2.11v4.208z"/></svg>

After

Width:  |  Height:  |  Size: 613 B

106
src/images/yt2.svg Normal file
View File

@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 512 512" xml:space="preserve">
<rect x="64" style="fill:#FFFFFF;" width="384" height="512"/>
<rect id="SVGCleanerId_0" x="106.672" y="370.08" style="fill:#415E72;" width="133.032" height="10.896"/>
<rect id="SVGCleanerId_1" x="106.672" y="412.784" style="fill:#CFDCE5;" width="133.032" height="10.896"/>
<rect id="SVGCleanerId_2" x="106.672" y="434.08" style="fill:#CFDCE5;" width="133.032" height="10.896"/>
<rect id="SVGCleanerId_3" x="106.672" y="455.448" style="fill:#CFDCE5;" width="133.032" height="10.896"/>
<path style="fill:#25B6D2;" d="M391.992,338.224H120.008c-8.8,0-16-7.2-16-16V124.888c0-8.8,7.2-16,16-16h272c8.8,0,16,7.2,16,16
v197.336C408,331.024,400.8,338.224,391.992,338.224z"/>
<rect x="66" y="2" style="fill:#FFFFFF;" width="380" height="508"/>
<path style="fill:#C7D5DD;" d="M444,4v504H68V4H444 M448,0H64v512h384V0L448,0z"/>
<g>
<rect id="SVGCleanerId_0_1_" x="106.672" y="370.08" style="fill:#415E72;" width="133.032" height="10.896"/>
</g>
<g>
<rect id="SVGCleanerId_1_1_" x="106.672" y="412.784" style="fill:#CFDCE5;" width="133.032" height="10.896"/>
</g>
<g>
<rect id="SVGCleanerId_2_1_" x="106.672" y="434.08" style="fill:#CFDCE5;" width="133.032" height="10.896"/>
</g>
<g>
<rect id="SVGCleanerId_3_1_" x="106.672" y="455.448" style="fill:#CFDCE5;" width="133.032" height="10.896"/>
</g>
<path style="fill:#E04F5F;" d="M391.992,338.224H120.008c-8.8,0-16-7.2-16-16V124.888c0-8.8,7.2-16,16-16h272c8.8,0,16,7.2,16,16
v197.336C408,331.024,400.8,338.224,391.992,338.224z"/>
<g>
<rect x="274.96" y="369.04" style="fill:#CFDCE5;" width="133.032" height="25.896"/>
<rect x="274.96" y="405.272" style="fill:#CFDCE5;" width="133.032" height="25.896"/>
<rect x="274.96" y="441.52" style="fill:#CFDCE5;" width="133.032" height="25.896"/>
</g>
<g>
<rect x="274.96" y="441.52" style="fill:#415E72;" width="27.648" height="25.896"/>
<rect x="274.96" y="405.272" style="fill:#415E72;" width="27.648" height="25.896"/>
<rect x="274.96" y="369.04" style="fill:#415E72;" width="27.648" height="25.896"/>
</g>
<g>
<path style="fill:#CFDCE5;" d="M405.328,43.672v26.712h-184.16V43.672H405.328 M408,41H218.504v32.048H408V41L408,41z"/>
<rect x="372.168" y="41" style="fill:#CFDCE5;" width="35.832" height="32.08"/>
</g>
<path style="fill:#E04F5F;" d="M190.168,73.056h-46.92c-1.784,0-3.248-1.456-3.248-3.248v-25.56c0-1.784,1.456-3.248,3.248-3.248
h46.92c1.784,0,3.248,1.456,3.248,3.248v25.56C193.416,71.592,191.944,73.056,190.168,73.056z"/>
<g>
<path style="fill:#FFFFFF;" d="M149.8,53.464h-3.792V51.44h10.056v2.024h-3.832v11.272H149.8L149.8,53.464z"/>
<path style="fill:#FFFFFF;" d="M165.144,61.856c0,1.144,0.04,2.104,0.08,2.888h-2.136l-0.12-1.472h-0.032
c-0.416,0.688-1.36,1.68-3.08,1.68c-1.752,0-3.352-1.048-3.352-4.184V55.12h2.432v5.232c0,1.6,0.52,2.64,1.8,2.64
c0.968,0,1.6-0.688,1.848-1.304c0.088-0.216,0.144-0.472,0.144-0.752V55.12h2.432v6.736H165.144z"/>
<path style="fill:#FFFFFF;" d="M167.688,64.744c0.04-0.656,0.088-1.72,0.088-2.704V50.72h2.432v5.72h0.04
c0.592-0.912,1.632-1.536,3.072-1.536c2.352,0,4.032,1.952,4.008,4.88c0,3.456-2.192,5.176-4.368,5.176
c-1.24,0-2.352-0.48-3.04-1.656h-0.04l-0.12,1.44C169.76,64.744,167.688,64.744,167.688,64.744z M170.2,60.776
c0,0.208,0.024,0.392,0.056,0.576c0.264,0.968,1.104,1.712,2.16,1.712c1.528,0,2.448-1.232,2.448-3.16
c0-1.712-0.808-3.08-2.432-3.08c-0.984,0-1.872,0.72-2.16,1.776c-0.032,0.176-0.08,0.392-0.08,0.632v1.544
C170.192,60.776,170.2,60.776,170.2,60.776z"/>
<path style="fill:#FFFFFF;" d="M181.04,60.616c0.056,1.744,1.416,2.496,2.96,2.496c1.12,0,1.928-0.16,2.672-0.432l0.36,1.68
c-0.84,0.336-1.984,0.6-3.368,0.6c-3.112,0-4.96-1.92-4.96-4.872c0-2.656,1.624-5.176,4.696-5.176c3.128,0,4.152,2.568,4.152,4.688
c0,0.456-0.04,0.808-0.08,1.024L181.04,60.616z M185.264,58.912c0.024-0.88-0.368-2.352-1.992-2.352
c-1.504,0-2.136,1.376-2.232,2.352H185.264z"/>
</g>
<g>
<path style="fill:#415E72;" d="M108.208,64.744v-5.552L104,51.44h2.768l1.6,3.408c0.456,0.992,0.792,1.744,1.152,2.648h0.032
c0.336-0.848,0.712-1.68,1.168-2.648l1.6-3.408h2.744l-4.424,7.704v5.6H108.208z"/>
<path style="fill:#415E72;" d="M123.728,59.84c0,3.544-2.48,5.12-4.936,5.12c-2.72,0-4.816-1.872-4.816-4.944
c0-3.168,2.072-5.096,4.976-5.096C121.824,54.904,123.728,56.92,123.728,59.84z M116.488,59.944c0,1.848,0.904,3.256,2.384,3.256
c1.384,0,2.352-1.36,2.352-3.304c0-1.504-0.672-3.224-2.328-3.224C117.184,56.68,116.488,58.336,116.488,59.944z"/>
<path style="fill:#415E72;" d="M134.344,61.856c0,1.144,0.04,2.104,0.08,2.888h-2.136l-0.128-1.472h-0.032
c-0.416,0.688-1.36,1.68-3.08,1.68c-1.752,0-3.352-1.048-3.352-4.184V55.12h2.432v5.232c0,1.6,0.52,2.64,1.8,2.64
c0.968,0,1.6-0.688,1.848-1.304c0.088-0.216,0.144-0.472,0.144-0.752V55.12h2.432v6.736H134.344z"/>
<path style="fill:#415E72;" d="M389.36,62.336c-4.216,0-7.648-3.432-7.648-7.648s3.432-7.648,7.648-7.648
c4.216,0,7.648,3.432,7.648,7.648S393.576,62.336,389.36,62.336z M389.36,48.768c-3.256,0-5.912,2.656-5.912,5.912
s2.656,5.912,5.912,5.912c3.256,0,5.912-2.656,5.912-5.912S392.616,48.768,389.36,48.768z"/>
<rect x="395.373" y="59.304" transform="matrix(0.7967 -0.6044 0.6044 0.7967 42.2993 252.3526)" style="fill:#415E72;" width="1.728" height="8"/>
</g>
<g>
<path style="fill:#FFFFFF;" d="M234.336,61.504c0.656,0.4,1.616,0.744,2.616,0.744c1.496,0,2.36-0.784,2.36-1.928
c0-1.048-0.6-1.656-2.128-2.248c-1.84-0.656-2.984-1.616-2.984-3.2c0-1.768,1.456-3.064,3.648-3.064
c1.152,0,1.992,0.264,2.496,0.544l-0.4,1.184C239.576,53.328,238.824,53,237.8,53c-1.544,0-2.128,0.912-2.128,1.688
c0,1.056,0.688,1.568,2.248,2.176c1.904,0.752,2.88,1.664,2.88,3.32c0,1.744-1.296,3.256-3.952,3.256
c-1.088,0-2.288-0.328-2.888-0.72L234.336,61.504z"/>
<path style="fill:#FFFFFF;" d="M243.72,59.488c0.032,2.008,1.304,2.808,2.792,2.808c1.056,0,1.688-0.176,2.248-0.416l0.248,1.056
c-0.52,0.24-1.408,0.504-2.704,0.504c-2.496,0-3.984-1.648-3.984-4.088s1.44-4.376,3.8-4.376c2.656,0,3.352,2.32,3.352,3.824
c0,0.296-0.032,0.536-0.056,0.672h-5.696C243.72,59.472,243.72,59.488,243.72,59.488z M248.048,58.448
c0.024-0.936-0.392-2.4-2.048-2.4c-1.496,0-2.144,1.376-2.264,2.4H248.048z"/>
<path style="fill:#FFFFFF;" d="M255.84,63.28l-0.12-1.024h-0.04c-0.456,0.64-1.32,1.208-2.48,1.208c-1.648,0-2.48-1.152-2.48-2.32
c0-1.968,1.744-3.04,4.88-3.016v-0.176c0-0.664-0.184-1.888-1.848-1.888c-0.752,0-1.536,0.24-2.112,0.608l-0.36-0.976
c0.664-0.424,1.648-0.72,2.672-0.72c2.48,0,3.08,1.688,3.08,3.312v3.04c0,0.712,0.032,1.392,0.144,1.936h-1.336V63.28z
M255.616,59.152c-1.616-0.032-3.44,0.248-3.44,1.816c0,0.96,0.64,1.408,1.392,1.408c1.056,0,1.736-0.664,1.96-1.36
c0.056-0.152,0.088-0.328,0.088-0.472V59.152z"/>
<path style="fill:#FFFFFF;" d="M259.472,57.704c0-0.96-0.024-1.776-0.08-2.536h1.288l0.056,1.6h0.056
c0.368-1.088,1.264-1.776,2.256-1.776c0.16,0,0.272,0.008,0.416,0.04v1.392c-0.152-0.032-0.304-0.04-0.504-0.04
c-1.048,0-1.784,0.784-1.984,1.896c-0.032,0.2-0.08,0.424-0.08,0.672v4.328h-1.456v-5.576H259.472z"/>
<path style="fill:#FFFFFF;" d="M270.6,62.984c-0.392,0.208-1.24,0.472-2.344,0.472c-2.44,0-4.04-1.656-4.04-4.136
c0-2.504,1.72-4.312,4.368-4.312c0.872,0,1.648,0.232,2.048,0.416l-0.336,1.136c-0.36-0.208-0.904-0.384-1.72-0.384
c-1.864,0-2.864,1.376-2.864,3.064c0,1.888,1.208,3.04,2.808,3.04c0.84,0,1.392-0.232,1.808-0.4L270.6,62.984z"/>
<path style="fill:#FFFFFF;" d="M272.36,51.384h1.472v5.056h0.032c0.24-0.416,0.608-0.784,1.056-1.032
c0.424-0.248,0.96-0.416,1.504-0.416c1.104,0,2.832,0.664,2.832,3.464v4.824h-1.472v-4.664c0-1.304-0.48-2.408-1.872-2.408
c-0.96,0-1.72,0.664-1.984,1.472c-0.088,0.208-0.112,0.416-0.112,0.712v4.904h-1.472V51.384H272.36z"/>
</g>
<rect x="155.224" y="264" style="fill:#415E72;" width="21.592" height="34.912"/>
<rect x="191.216" y="240.08" style="fill:#FFFFFF;" width="21.592" height="59.064"/>
<rect x="227.208" y="207.248" style="fill:#415E72;" width="21.592" height="91.888"/>
<rect x="263.2" y="148.184" style="fill:#FFFFFF;" width="21.592" height="150.952"/>
<rect x="299.2" y="178.632" style="fill:#415E72;" width="21.592" height="120.48"/>
<rect x="335.184" y="226.944" style="fill:#FFFFFF;" width="21.592" height="72.16"/>
</svg>

After

Width:  |  Height:  |  Size: 8.2 KiB

36
src/images/yt3.svg Normal file
View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 512 512" xml:space="preserve">
<path style="fill:#415E72;" d="M0,355.2v-324c0.104-5.704,4.696-10.296,10.4-10.4h491.2c5.704,0.104,10.296,4.696,10.4,10.4v324H0z"
/>
<g>
<path style="fill:#CFDCE5;" d="M512,355.2v41.6c-0.104,5.704-4.696,10.296-10.4,10.4H10.4c-5.704-0.104-10.296-4.696-10.4-10.4
v-41.6H512z"/>
<rect x="146.4" y="480.8" style="fill:#CFDCE5;" width="219.2" height="10.4"/>
</g>
<polygon style="fill:#AAC1CE;" points="328.8,480.8 183.2,480.8 193.6,407.2 318.4,407.2 "/>
<rect x="20.8" y="41.6" style="fill:#FFFFFF;" width="470.4" height="292.8"/>
<polygon style="fill:#8BA0AE;" points="318.4,407.2 193.6,407.2 187.792,448.28 320.272,420.424 "/>
<path style="fill:#E04F5F;" d="M84.368,64.8h149.728c10.336,0,18.72,8.384,18.72,18.72v99.68c0,10.336-8.384,18.72-18.72,18.72
H84.368c-10.336,0-18.72-8.384-18.72-18.72V83.52C65.648,73.184,74.032,64.8,84.368,64.8z"/>
<polygon style="fill:#FFFFFF;" points="136.56,97.544 198.6,133.36 136.56,169.184 "/>
<g>
<rect x="71.824" y="237.576" style="fill:#CFDCE5;" width="176.24" height="6.616"/>
<rect x="71.824" y="257.76" style="fill:#CFDCE5;" width="176.24" height="6.616"/>
<rect x="71.824" y="277.952" style="fill:#CFDCE5;" width="176.24" height="6.616"/>
<rect x="71.824" y="298.16" style="fill:#CFDCE5;" width="176.24" height="6.616"/>
<rect x="291.04" y="152.8" style="fill:#CFDCE5;" width="155.336" height="30.232"/>
</g>
<rect x="291.04" y="152.8" style="fill:#415E72;" width="32.32" height="30.232"/>
<rect x="291.04" y="109.344" style="fill:#CFDCE5;" width="155.336" height="30.232"/>
<rect x="291.04" y="109.344" style="fill:#E04F5F;" width="32.32" height="30.232"/>
<rect x="291.04" y="65.888" style="fill:#CFDCE5;" width="155.336" height="30.232"/>
<rect x="291.04" y="65.888" style="fill:#415E72;" width="32.32" height="30.232"/>
<rect x="291.04" y="283.192" style="fill:#CFDCE5;" width="155.336" height="30.232"/>
<rect x="291.04" y="283.192" style="fill:#E04F5F;" width="32.32" height="30.232"/>
<rect x="291.04" y="239.728" style="fill:#CFDCE5;" width="155.336" height="30.232"/>
<rect x="291.04" y="239.728" style="fill:#415E72;" width="32.32" height="30.232"/>
<rect x="291.04" y="196.264" style="fill:#CFDCE5;" width="155.336" height="30.232"/>
<rect x="291.04" y="196.264" style="fill:#E04F5F;" width="32.32" height="30.232"/>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

99
src/images/yt4.svg Normal file
View File

@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 512 512" xml:space="preserve">
<circle style="fill:#E8E8E8;" cx="256" cy="256" r="256"/>
<rect id="SVGCleanerId_0" x="115" y="68" style="fill:#FFFFFF;" width="282" height="376"/>
<path id="SVGCleanerId_1" style="fill:#DB2B42;" d="M355.872,316.384H156.128c-6.464,0-11.752-5.288-11.752-11.752v-144.92
c0-6.464,5.288-11.752,11.752-11.752H355.88c6.464,0,11.752,5.288,11.752,11.752v144.92
C367.624,311.096,362.336,316.384,355.872,316.384z"/>
<g>
<rect id="SVGCleanerId_0_1_" x="115" y="68" style="fill:#FFFFFF;" width="282" height="376"/>
</g>
<g>
<path id="SVGCleanerId_1_1_" style="fill:#DB2B42;" d="M355.872,316.384H156.128c-6.464,0-11.752-5.288-11.752-11.752v-144.92
c0-6.464,5.288-11.752,11.752-11.752H355.88c6.464,0,11.752,5.288,11.752,11.752v144.92
C367.624,311.096,362.336,316.384,355.872,316.384z"/>
</g>
<g>
<path style="fill:#E0E0E0;" d="M365.664,100.072v19.616h-135.24v-19.616H365.664 M367.624,98.112h-139.16v23.536h139.16
L367.624,98.112L367.624,98.112z"/>
<rect x="341.312" y="98.112" style="fill:#E0E0E0;" width="26.312" height="23.536"/>
</g>
<path style="fill:#DB2B42;" d="M207.656,121.648H173.2c-1.312,0-2.384-1.072-2.384-2.384v-18.768c0-1.312,1.072-2.384,2.384-2.384
h34.456c1.312,0,2.384,1.072,2.384,2.384v18.768C210.04,120.576,208.96,121.648,207.656,121.648z"/>
<g>
<path style="fill:#FFFFFF;" d="M178.008,107.264h-2.784v-1.488h7.384v1.488h-2.816v8.28h-1.784L178.008,107.264L178.008,107.264z"
/>
<path style="fill:#FFFFFF;" d="M189.28,113.424c0,0.84,0.032,1.544,0.056,2.12h-1.568l-0.088-1.08h-0.024
c-0.304,0.504-1,1.232-2.264,1.232c-1.288,0-2.464-0.768-2.464-3.072v-4.144h1.784v3.84c0,1.176,0.384,1.936,1.32,1.936
c0.712,0,1.176-0.504,1.36-0.96c0.064-0.16,0.104-0.344,0.104-0.552v-4.264h1.784V113.424z"/>
<path style="fill:#FFFFFF;" d="M191.144,115.544c0.032-0.48,0.064-1.264,0.064-1.984v-8.312h1.784v4.2h0.032
c0.432-0.672,1.2-1.128,2.256-1.128c1.728,0,2.96,1.432,2.944,3.584c0,2.536-1.608,3.8-3.208,3.8c-0.912,0-1.728-0.352-2.232-1.216
h-0.032l-0.088,1.056H191.144z M192.992,112.632c0,0.152,0.016,0.288,0.04,0.424c0.192,0.712,0.808,1.256,1.584,1.256
c1.12,0,1.8-0.904,1.8-2.32c0-1.256-0.592-2.264-1.784-2.264c-0.72,0-1.376,0.528-1.584,1.304
c-0.024,0.128-0.056,0.288-0.056,0.464V112.632z"/>
<path style="fill:#FFFFFF;" d="M200.952,112.512c0.04,1.28,1.04,1.832,2.176,1.832c0.824,0,1.416-0.12,1.96-0.32l0.264,1.232
c-0.616,0.248-1.456,0.44-2.472,0.44c-2.288,0-3.64-1.408-3.64-3.576c0-1.952,1.192-3.8,3.448-3.8c2.296,0,3.048,1.888,3.048,3.44
c0,0.336-0.032,0.592-0.056,0.752C205.68,112.512,200.952,112.512,200.952,112.512z M204.056,111.264
c0.016-0.648-0.272-1.728-1.464-1.728c-1.104,0-1.568,1.008-1.64,1.728H204.056z"/>
</g>
<g>
<path style="fill:#2D2D2D;" d="M147.464,115.544v-4.072l-3.088-5.696h2.032l1.176,2.504c0.336,0.728,0.584,1.28,0.848,1.944h0.024
c0.248-0.624,0.52-1.232,0.856-1.944l1.176-2.504h2.016l-3.248,5.656v4.112H147.464z"/>
<path style="fill:#2D2D2D;" d="M158.864,111.944c0,2.6-1.824,3.76-3.624,3.76c-2,0-3.536-1.376-3.536-3.632
c0-2.328,1.52-3.744,3.656-3.744C157.464,108.32,158.864,109.8,158.864,111.944z M153.544,112.024c0,1.36,0.664,2.392,1.752,2.392
c1.016,0,1.728-1,1.728-2.424c0-1.104-0.496-2.368-1.712-2.368C154.056,109.624,153.544,110.84,153.544,112.024z"/>
<path style="fill:#2D2D2D;" d="M166.656,113.424c0,0.84,0.032,1.544,0.056,2.12h-1.568l-0.088-1.08h-0.024
c-0.304,0.504-1,1.232-2.264,1.232c-1.288,0-2.464-0.768-2.464-3.072v-4.144h1.784v3.84c0,1.176,0.384,1.936,1.32,1.936
c0.712,0,1.176-0.504,1.36-0.96c0.064-0.16,0.104-0.344,0.104-0.552v-4.264h1.784V113.424z"/>
<path style="fill:#2D2D2D;" d="M353.936,113.776c-3.096,0-5.616-2.52-5.616-5.616s2.52-5.616,5.616-5.616s5.616,2.52,5.616,5.616
C359.552,111.256,357.032,113.776,353.936,113.776z M353.936,103.816c-2.392,0-4.344,1.952-4.344,4.344s1.952,4.344,4.344,4.344
s4.344-1.952,4.344-4.344S356.328,103.816,353.936,103.816z"/>
<rect x="356.02" y="113.813" transform="matrix(-0.6044 -0.7967 0.7967 -0.6044 484.7665 469.5985)" style="fill:#2D2D2D;" width="5.896" height="1.272"/>
<path style="fill:#2D2D2D;" d="M240.088,113.168c0.48,0.296,1.184,0.544,1.92,0.544c1.096,0,1.736-0.576,1.736-1.416
c0-0.768-0.44-1.216-1.56-1.648c-1.352-0.48-2.192-1.184-2.192-2.352c0-1.296,1.072-2.248,2.68-2.248
c0.848,0,1.464,0.192,1.832,0.4l-0.296,0.872c-0.272-0.152-0.824-0.392-1.576-0.392c-1.136,0-1.56,0.672-1.56,1.24
c0,0.776,0.504,1.152,1.648,1.6c1.4,0.544,2.12,1.216,2.12,2.432c0,1.28-0.952,2.392-2.904,2.392c-0.8,0-1.68-0.24-2.12-0.528
L240.088,113.168z"/>
<path style="fill:#2D2D2D;" d="M246.984,111.688c0.024,1.472,0.96,2.064,2.048,2.064c0.776,0,1.24-0.128,1.648-0.304l0.184,0.776
c-0.384,0.176-1.032,0.368-1.984,0.368c-1.832,0-2.928-1.208-2.928-3s1.056-3.216,2.792-3.216c1.952,0,2.464,1.704,2.464,2.808
c0,0.216-0.024,0.392-0.04,0.496h-4.184V111.688z M250.16,110.92c0.016-0.688-0.288-1.76-1.504-1.76
c-1.096,0-1.576,1.008-1.664,1.76H250.16z"/>
<path style="fill:#2D2D2D;" d="M255.88,114.472l-0.088-0.752h-0.032c-0.336,0.472-0.968,0.888-1.824,0.888
c-1.208,0-1.824-0.848-1.824-1.704c0-1.448,1.28-2.232,3.584-2.216v-0.128c0-0.488-0.136-1.384-1.36-1.384
c-0.552,0-1.128,0.176-1.552,0.448l-0.248-0.72c0.488-0.312,1.208-0.528,1.96-0.528c1.824,0,2.264,1.24,2.264,2.432v2.232
c0,0.52,0.024,1.024,0.104,1.424h-0.984V114.472z M255.72,111.44c-1.184-0.024-2.528,0.184-2.528,1.336
c0,0.704,0.472,1.032,1.024,1.032c0.776,0,1.272-0.488,1.44-1c0.04-0.112,0.064-0.24,0.064-0.344V111.44z"/>
<path style="fill:#2D2D2D;" d="M258.552,110.376c0-0.704-0.016-1.304-0.056-1.864h0.944l0.04,1.176h0.04
c0.272-0.8,0.928-1.304,1.656-1.304c0.12,0,0.2,0.008,0.304,0.032v1.024c-0.112-0.024-0.224-0.032-0.368-0.032
c-0.768,0-1.312,0.576-1.456,1.392c-0.024,0.144-0.056,0.312-0.056,0.496v3.176h-1.072v-4.096H258.552z"/>
<path style="fill:#2D2D2D;" d="M266.72,114.256c-0.288,0.152-0.912,0.344-1.72,0.344c-1.792,0-2.968-1.216-2.968-3.04
c0-1.84,1.264-3.168,3.208-3.168c0.64,0,1.208,0.168,1.504,0.304l-0.248,0.84c-0.264-0.152-0.664-0.28-1.264-0.28
c-1.368,0-2.104,1.008-2.104,2.248c0,1.384,0.888,2.232,2.064,2.232c0.616,0,1.024-0.168,1.328-0.296L266.72,114.256z"/>
<path style="fill:#2D2D2D;" d="M268.016,105.736h1.08v3.712h0.024c0.176-0.304,0.448-0.576,0.776-0.76
c0.312-0.184,0.704-0.304,1.104-0.304c0.808,0,2.08,0.488,2.08,2.544v3.544H272v-3.424c0-0.96-0.352-1.768-1.376-1.768
c-0.704,0-1.264,0.488-1.456,1.08c-0.064,0.152-0.08,0.304-0.08,0.52v3.6h-1.08v-8.744H268.016z"/>
<rect x="146.312" y="340.304" style="fill:#2D2D2D;" width="219.336" height="8"/>
</g>
<g>
<rect x="146.312" y="371.6" style="fill:#E0E0E0;" width="219.336" height="8"/>
<rect x="146.312" y="387.28" style="fill:#E0E0E0;" width="219.336" height="8"/>
<rect x="146.312" y="402.96" style="fill:#E0E0E0;" width="219.336" height="8"/>
</g>
<circle style="fill:#FFFFFF;" cx="201.52" cy="212.16" r="17.248"/>
<g>
<path style="fill:#2D2D2D;" d="M200.696,269.496l-16.664-36.128c0,0-17.48,0.232-17.48,16.32s0,19.816,0,19.816
S200.816,269.496,200.696,269.496z"/>
<path style="fill:#2D2D2D;" d="M202.328,269.496l16.664-36.128c0,0,17.48,0.232,17.48,16.32s0,19.816,0,19.816
S202.216,269.496,202.328,269.496z"/>
</g>
<polygon style="fill:#8AD5DD;" points="201.512,235.144 191.112,235.144 201.512,258.168 211.92,235.144 "/>
<g>
<path style="fill:#FFFFFF;" d="M313.512,259.488h-50.928c-2.848,0-5.168-2.328-5.168-5.168v-45.248
c0-2.848,2.328-5.168,5.168-5.168h50.928c2.848,0,5.168,2.328,5.168,5.168v45.248C318.68,257.16,316.352,259.488,313.512,259.488z"
/>
<polygon style="fill:#FFFFFF;" points="344.296,259.488 325.872,243.976 325.872,219.416 344.296,203.896 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
src/images/ytGpt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

33
src/index.html Normal file
View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="format-detection" content="telephone=no,address=no">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
<!-- <link rel="apple-touch-icon" href="/static/images/images/touxiang.png" /> -->
<link rel="apple-touch-icon" href="/static/images/images/youtube.svg" />
<link
rel="icon"
sizes="192x192"
href="/static/images/images/youtube.svg"
/>
<title>Youtube运营笔记</title>
<meta name="description" content="Youtube运营笔记">
<meta property="og:description" content="Youtube运营笔记">
<meta name="twitter:description" content="Youtube运营笔记">
<script><%= htmlWebpackPlugin.options.script %></script>
<!-- 禁止缓存 -->
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
</head>
<body>
<div id="app"></div>
</body>
</html>

45
src/pages/book/book.md Normal file
View File

@@ -0,0 +1,45 @@
## Youtube运营笔记
> 媒体是普通人的最好的杠杆
从佛系到认真的运营youtube(油管),也快有1年的时间了
在这里分享一些心得,以及踩过的坑
---
## 为什么youtube值得做?
> 成本低
自媒体是普通人最好的杠杆,只需要1部手机,就可以拍摄vlog,也可以剪辑影片
现在的剪辑软件,不仅在手机端可以方便操作,还结合的ai功能,比如
- 语音翻译/克隆
- 自动生成双语字幕
- 特效/音效
随时随地都可以剪辑+上传
> 赚美金,回报高
同样的视频,在不同的平台上传后,收益汇率不一样
油管结算是美金,换成人民,就有7倍左右的购买力
而如果你居住下三四线城市,或者县城,那么由于生活成本低
每月即使1000$的收益,都可以过的不错了
> 商业模式健康
youtube给创作者的收益,长视频是`55%`,短视频shorts是`45%`
可以说是世界上很慷慨的公司了
仅仅是平台广告,就能够带来巨大的收益
不用去接`业配/商单`,以及自己带货,纯粹的视频不会让人厌恶

View File

@@ -0,0 +1,3 @@
export default {
navigationBarTitleText: '一人公司方法论'
}

45
src/pages/book/index.scss Normal file
View File

@@ -0,0 +1,45 @@
// 在 src/index.scss 中引入 GitHub Markdown 主题
@import "github-markdown-css/github-markdown.css";
.Book {
padding: 40px;
.markdown-body {
font-size: 30px;
// color: #72d572;
}
img {
max-width: 100%;
height: auto; /* 保持图像的纵横比 */
}
}
@media (min-width: 1536px) {
.Book {
width: 100%;
// height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
// background-color: yellow;
.book_left {
width: 400px;
height:100%;
background-color: red;
}
.markdown-body {
width: 100%;
max-width: 1400px;
font-size: 22px;
// color: red;
// background-color: #72d572;
}
.book_right {
width: 400px;
height: 100%;
background-color: greenyellow;
}
}
}

129
src/pages/book/index.tsx Normal file
View File

@@ -0,0 +1,129 @@
// @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 infoText from "./info.md";
import bookText from "./book.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();
const [isWeChat, setisWeChat] = useState(false);
const [book, setbook] = useState(window.localStorage.getItem("book"));
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: `${process.env.TARO_API_API}/payh5`, //仅为示例,并非真实的接口地址
// url: "https://pay.hackrobot.cn${process.env.TARO_API_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="Book">
{/* <View className="book_left">1 </View> */}
<View
className="markdown-body" // 添加 GitHub Markdown 主题类
dangerouslySetInnerHTML={{
__html: marked(book == 1 ? bookText : infoText),
}}
></View>
{/* <View className="book_right"> 22</View> */}
{/* <View className="bottomDiv"></View> */}
</View>
);
};
export default Book;

80
src/pages/book/info.md Normal file
View File

@@ -0,0 +1,80 @@
## 前言
> 本文是在线电子书,不定时更新
你看到的`电子书`,一个在线的网页
内容会根据作者的经历和心得,不定时更新
当然,如果你也可以关注公众号: Eric的云游日记, 加群交流
一个人走得开,一群人走的远
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/ytGpt.png?imageSlim" title="" alt="ytGpt.png" width="235">
> 声明:
本人不会针对Youtube内容进行收费
也不进行账号买卖
文中内容仅供参考
---
> nomadyt.com
[nomadyt.com](nomadyt.com) 是`nomad`+`yt`的缩写组合,意思是以油管为收益的数字游民
油管适合做为`副业`尝试
申请ypp通过后,就可以设置视频播放广告,产生美金收益
## Youtube运营笔记
> 媒体是普通人的最好的杠杆
从佛系到认真的运营youtube(油管),也快有1年的时间了
在这里分享一些心得,以及踩过的坑
---
## 为什么youtube值得做?
> 成本低
自媒体是普通人最好的杠杆,只需要1部手机,就可以拍摄vlog,也可以剪辑影片
现在的剪辑软件,不仅在手机端可以方便操作,还结合的ai功能,比如
- 语音翻译/克隆
- 自动生成双语字幕
- 特效/音效
随时随地都可以剪辑+上传
> 赚美金,回报高
同样的视频,在不同的平台上传后,收益汇率不一样
油管结算是美金,换成人民,就有7倍左右的购买力
而如果你居住下三四线城市,或者县城,那么由于生活成本低
每月即使1000$的收益,都可以过的不错了
> 商业模式健康
youtube给创作者的收益,长视频是`55%`,短视频shorts是`45%`
可以说是世界上很慷慨的公司了
仅仅是平台广告,就能够带来巨大的收益
不用去接`业配/商单`,以及自己带货,纯粹的视频不会让人厌恶

View File

@@ -0,0 +1,3 @@
export default {
navigationBarTitleText: '加入微信群'
}

View 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
View 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;

View File

@@ -0,0 +1,3 @@
export default {
navigationBarTitleText: 'Youtube运营笔记'
}

423
src/pages/index/index.jsx Normal file
View File

@@ -0,0 +1,423 @@
import { Component } from "react";
import Taro from "@tarojs/taro";
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 cat from "../../images/cat.jpg";
import girl from "../../images/girl.jpg";
import emoji from "../../images/emoji.png";
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";
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 robot192 from "../../images/robot192.png";
import youtube from "../../images/youtube.svg";
import youtube2 from "../../images/yt2.svg";
import youtube3 from "../../images/yt3.svg";
import youtube4 from "../../images/yt4.svg";
import ytGpt from "../../images/ytGpt.png";
import demo from "../../images/demo.svg";
// export default class Index extends Component {
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: `${process.env.TARO_API_API}/user/${hashopenid}`, //仅为示例,并非真实的接口地址
// url: `${process.env.TARO_API_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: `${process.env.TARO_API_API}/user/${wxid}`, //仅为示例,并非真实的接口地址
// url: `${process.env.TARO_API_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: `${process.env.TARO_API_API}/user/${urlwxid}`, //仅为示例,并非真实的接口地址
// url: `${process.env.TARO_API_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: `${process.env.TARO_API_API}/user/${urlwxid}`, //仅为示例,并非真实的接口地址
url: `${process.env.TARO_API_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: `${process.env.TARO_API_API}/user/${urlwxid}`, //仅为示例,并非真实的接口地址
url: `${process.env.TARO_API_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: `${
process.env.TARO_API_API
}/tgMessage?openid=${window.localStorage.getItem("openid")}`, //仅为示例,并非真实的接口地址
// url: "https://pay.hackrobot.cn${process.env.TARO_API_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: `${process.env.TARO_API_API}/payh5`,
// url: "${process.env.TARO_API_API}/payh5",
// url: "https://pay.hackrobot.cn${process.env.TARO_API_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");
}
}
);
},
});
};
const goRead = () => {
Taro.navigateTo({
url: "/pages/book/index",
});
};
return (
<>
<View className="index">
{/* 在线图书 */}
{/* 参考资料https://readmake.com/ */}
<View className="index-book animate__animated animate__pulse">
<View className="index_book_left">
<View className="left_title">Youtube运营笔记</View>
<View className="left_text">数字游民-手册1</View>
<View className="left_mobile">
<Text>🚀 油管踩坑笔记</Text>
<Text>1 YPP: 如何加入合作伙伴计划</Text>
<Text>2 基础:系统环境与静态住宅ip</Text>
<Text>3 收款:PIN码验证与外汇结算</Text>
<Text>4 AI:辅助剪辑/生成视频</Text>
{/* <Text>5⃣ -----------------</Text> */}
<Text>🔥 一起实践,交流</Text>
</View>
<View className="left_btn ">
<AtButton
onClick={() => {
goRead();
}}
className="startRead"
type="primary"
size="small"
circle
>
开始阅读
</AtButton>
</View>
</View>
<View className="index_book_img">
<Image
// style="width: 40%px;height:100%;background: #fff;"
src={ytGpt}
/>
</View>
</View>
<View className="svgItems">
<View className="svgItem">
{" "}
<View className="bookImg">
<Image
// style="width: 40%px;height:100%;background: #fff;"
// src={book}
src={youtube2}
/>
<View className="bookImg_text">YPP(合作伙伴计划)</View>
</View>
<View className="bookImg">
<Image
// style="width: 40%px;height:100%;background: #fff;"
// src={book}
src={youtube3}
/>
<View className="bookImg_text">💰赚美金</View>
</View>
<View className="bookImg">
<Image
// style="width: 40%px;height:100%;background: #fff;"
// src={book}
src={youtube4}
/>
<View className="bookImg_text">📷自媒体</View>
</View>
</View>
</View>
</View>
{/* <View className="footer_div"></View> */}
<View className="footer">
{/* <View>《Youtube运营笔记》</View> */}
<View>Copyright © 2025 </View>
</View>
</>
);
};
export default Index;

188
src/pages/index/index.scss Normal file
View File

@@ -0,0 +1,188 @@
.index {
// background-color: #002329;
// width: 100vw;
// height: 100vh;
// padding-left: 100px;
// padding-right: 100px;
.index-book {
margin-top: 80px;
// width: 100%;
min-height: 300px;
// padding: 20px;
display: flex;
flex-direction: column-reverse;
align-items: center;
justify-content: space-between;
// background-color: #f0f0f0;
// background-color: #f0f5ff;
// background-color: yellow;
.index_book_left {
width: 600px;
min-height: 300px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
// background-color: rgb(208, 255, 0);
.left_title {
font-size: 50px;
font-weight: 700;
color: #69b1ff;
}
.left_text {
font-size: 30px;
}
.left_mobile {
margin-top: 20px;
width: 100%;
font-size: 30px;
display: flex;
flex-direction: column;
// align-items: center;
// justify-content: space-around;
// background-color: yellow;
}
.left_btn {
margin-top: 40px;
// background-color: aqua;
// display: none;
.startRead {
width: 200px;
}
}
}
.index_book_img {
width: 400px;
height: 400px;
}
}
.svgItems {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
// background-color: yellow;
margin-top: 20px;
// padding: 20px;
.bookImg {
display: none;
}
}
.index_btn {
// background-color: yellow;
.startRead {
width: 200px;
}
}
}
@media (min-width: 1536px) {
.index {
padding: 100px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
// background-color: aqua;
.index-book {
width: 100%;
max-width: 1400px;
// max-width: 2000px;
// padding: 20px;
display: flex;
flex-direction: row;
align-items: center;
// justify-content: center;
justify-content: space-between;
background-color: #f0f5ff;
border-radius: 20px;
.index_book_left {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
// background-color: yellow;
// background-color: #69b1ff;
.left_mobile {
display: none;
}
.left_btn {
display: flex;
.startRead {
// display: flex;
width: 200px;
}
}
}
.index_book_img {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
// background-color: yellow;
}
}
.svgItems {
// width: 1400px;
width: 100%;
max-width: 1400px;
margin-top: 80px;
// padding: 0px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
// background-color: #69b1ff;
// background-color: yellow;
// background-color: brown;
.svgItem {
// min-width: 1400px;
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
// background-color: #69b1ff;
.bookImg {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
// background-color: yellow;
.bookImg_text {
margin-top: 20px;
font-size: 30px;
}
}
}
}
.index_btn {
.startRead {
display: none;
}
}
}
}
.footer {
position: absolute;
bottom: 0px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 60px;
// margin-bottom: 20px;
font-size: 14px;
// background-color: yellow;
}

View 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: `${process.env.TARO_API_API}/payh5`, //仅为示例,并非真实的接口地址
// url: "https://pay.hackrobot.cn${process.env.TARO_API_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;

View File

@@ -0,0 +1,11 @@
.Detail{
.bottomBtn{
display: flex;
position: fixed;
bottom: 0px;
width: 100%;
}
}

155
src/pages/meetup/index.jsx Normal file
View 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;

View 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%;
}
}

View File

@@ -0,0 +1,3 @@
export default {
navigationBarTitleText: '模版页面'
}

View File

@@ -0,0 +1,4 @@
.Model{
padding: 40px;
}

31
src/pages/model/index.tsx Normal file
View 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
View 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
View 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%;
}
}

View File

@@ -0,0 +1,3 @@
export default {
navigationBarTitleText: '副业沙龙'
}

View 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;
}
}

217
src/pages/planet/index.tsx Normal file
View File

@@ -0,0 +1,217 @@
// @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";
import joinGroup from "../../images/joinGroup.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: `${process.env.TARO_API_API}/payh5`, //仅为示例,并非真实的接口地址
// url: "https://pay.hackrobot.cn${process.env.TARO_API_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&nbsp;&nbsp;&nbsp; */}
</View>
<View className="at-article__content">
<View className="at-article__section">
<View className="at-article__h2"></View>
<View className="at-article__h3">| 📣</View>
<View className="at-article__p">
,/
</View>
<br />
<View className="at-article__h3">| 📋</View>
<View className="at-article__p">
,
<br />
:
<br />
1
<br />
2
<br />
3AIGC /
</View>
<br />
<View className="at-article__h3">| </View>
<View className="at-article__p">
🚫广
<br />
🚫
<br />
<br />
,@
{/* <br />
💰价格29元/人 (场地成本) */}
</View>
<br />
{meetup == 1 ? (
<View className="at-article__h3">| 入群口令:3399</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={joinGroup}
/>
</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", 2900);
} else {
setmeetupQR(true);
}
}
}}
>
{meetup == 1 ? "入群口令: 3399" : `立即加入`}
</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;

View File

@@ -0,0 +1,3 @@
export default {
navigationBarTitleText: '异度星球'
}

View File

@@ -0,0 +1,35 @@
.Model {
padding: 20px;
.bottomDiv {
width: 100%;
height: 100px;
// background-color: yellow;
}
.joinSalon {
// position: relative;
bottom: 20px;
position: fixed;
width: 700px;
font-weight: 600;
background-color:#72D572 ;
border-color: #72D572 ;;
}
.model-emoji {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
.no-border {
border: none;
overflow: hidden;
width: 100%;
height: 100vh;
scrollbar-width: none; /* Firefox */
}

248
src/pages/salon/index.tsx Normal file
View File

@@ -0,0 +1,248 @@
// @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";
import joinGroup from "../../images/joinGroup.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: `${process.env.TARO_API_API}/payh5`, //仅为示例,并非真实的接口地址
// url: "https://pay.hackrobot.cn${process.env.TARO_API_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>
{meetup != 1 ? (
<View className="at-article">
<View className="at-article__h1"></View>
<View className="at-article__info">
{/* 2017-05-07&nbsp;&nbsp;&nbsp; */}
</View>
<View className="at-article__content">
<View className="at-article__section">
<View className="at-article__h2"></View>
<View className="at-article__h3">| 📣</View>
<View className="at-article__p">
{/* 微信群是一个交流技术的平台,不限软件/硬件 */}
<br />
<br />
{/* <br />
长期更新 */}
</View>
<br />
<View className="at-article__h3">| 📋</View>
<View className="at-article__p">
{/* 微信群只是一个沟通平台,与其他伙伴搭桥
<br /> */}
:
<br />
1
<br />
2
<br />
3AIGC /
</View>
<br />
<View className="at-article__h3">| 🟩</View>
<View className="at-article__p">
{/* 『微信群』是一个沟通平台,
<br />
加入后,会显示『入群口令』
<br /> */}
</View>
<br />
<View className="at-article__h3">| 🔊</View>
<View className="at-article__p">
🚫广
<br />
{/* 🚫恶意捣乱
<br />
<br /> */}
@群主
</View>
<br />
</View>
</View>
</View>
) : (
<View>
<View>
<View className="at-article__h3">| :<span style={{color:"red"}}>3399</span></View>
<View className="at-article__p">
{`ID:${window.localStorage.getItem("openid")}`}
</View>
<View className="model-emoji">
<Image
// style="width: 100%;height: 240px;background: #fff;"
src={qrcode}
/>
</View>
<View className="model-emoji">
<Image
style="width: 240px;height: 240px;background: #fff;"
// src={qrcode}
src={joinGroup}
/>
</View>
</View>
{/* webview=社区 */}
{/* <iframe
className="no-border"
src="https://memos.nomadcna.com/"
></iframe> */}
</View>
)}
<View className="bottomDiv"></View>
{/* 判断有没有wxid,是否女性 */}
{meetup != 1 ? (
<AtButton
type="primary"
size="normal"
className="joinSalon"
onClick={() => {
if (meetup == 1) {
return false;
} else {
if (!!isWeChat) {
// 1元
payh5("meetup", 100);
} else {
setmeetupQR(true);
}
}
}}
>
{/* {meetup == 1 ? "已加入" : `立即加入`} */}
{`立即加入 ¥1`}
</AtButton>
) : null}
<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;

View File

@@ -0,0 +1,3 @@
export default {
navigationBarTitleText: '云手机'
}

View File

@@ -0,0 +1,37 @@
// 在 src/index.scss 中引入 GitHub Markdown 主题
@import 'github-markdown-css/github-markdown.css';
.Sphone {
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;
}
}
.joinSalon {
// position: relative;
// bottom: 20px;
// position: fixed;
width: 700px;
font-weight: 600;
background-color:#72D572 ;
border-color: #72D572 ;;
}
}

151
src/pages/sphone/index.tsx Normal file
View File

@@ -0,0 +1,151 @@
// @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 infoText from "./info.md";
import payText from "./pay.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 Sphone = () => {
const [markText, setmarkText] = useState();
const [isWeChat, setisWeChat] = useState(false);
const [sphone, setsphone] = useState(window.localStorage.getItem("sphone"));
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: `${process.env.TARO_API_API}/payh5`, //仅为示例,并非真实的接口地址
// url: "https://pay.hackrobot.cn${process.env.TARO_API_API}/payh5", //仅为示例,并非真实的接口地址
data: {
callback_url: window.location.href,
openid: window.localStorage.getItem("openid"),
total_fee: total_fee, // 金额,单位:分
type: type, //订单类型 sphone/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); //订单类型 sphone/meetup/video/vip
WeixinJSBridge.call("closeWindow");
}
}
);
},
});
};
return (
<View className="Sphone">
<View
className="markdown-body" // 添加 GitHub Markdown 主题类
dangerouslySetInnerHTML={{
__html: marked(sphone == 1 ? payText : infoText),
}}
></View>
<View className="bottomDiv"></View>
{/* 判断有没有wxid,是否女性 */}
{sphone != 1 ? (
<AtButton
type="primary"
size="normal"
className="joinSalon"
onClick={() => {
if (sphone == 1) {
return false;
} else {
if (!!isWeChat) {
// 180元
payh5("sphone", 18000);
} else {
// setmeetupQR(true);
}
}
}}
>
{/* {meetup == 1 ? "已加入" : `立即加入`} */}
{`阅读更多 80`}
</AtButton>
) : null}
</View>
);
};
export default Sphone;

51
src/pages/sphone/info.md Normal file
View File

@@ -0,0 +1,51 @@
## 云手机教程
> docker部署
![2024-12-22-01-00-03-Escrcpy.png](https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/2024-12-22-01-00-03-Escrcpy.png?imageSlim)
> 原生安卓AOSP
![2025-01-06-01-40-05-EscrcpyMirror-rk3588_s(WIFI).png](https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/2025-01-06-01-40-05-EscrcpyMirror-rk3588_s(WIFI).png?imageSlim)
***
## 目录
- 云手机设备指北
- 硬件选型
- 方案1:docker容器化安卓
- 虚拟化的优缺点/设置
- 方案2:主板+原生AOSP
- root权限与magisk配置
- OTG外设配件
- 内网穿透
- 远程控制:云控
- 魔法:多开/群控/应用变量/gps/ip属地
- 应用场景:无人直播/机器人bot/RPA自动化+数据爬虫
- 杂谈~~
***
## 简述
教程属于`操作类,不是原理`
比如不涉及:内核编译,ROM定制,虚拟化
图文+视频录制
长期更新

79
src/pages/sphone/pay.md Normal file
View File

@@ -0,0 +1,79 @@
## 云手机教程
> docker部署
![2024-12-22-01-00-03-Escrcpy.png](https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/2024-12-22-01-00-03-Escrcpy.png?imageSlim)
> 原生安卓AOSP
![2025-01-06-01-40-05-EscrcpyMirror-rk3588_s(WIFI).png](https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/2025-01-06-01-40-05-EscrcpyMirror-rk3588_s(WIFI).png?imageSlim)
***
## 目录
- 云手机设备指北
- 硬件选型
- 方案1:docker容器化安卓
- 虚拟化的优缺点/设置
- 方案2:主板+原生AOSP
- root权限与magisk配置
- OTG外设配件
- 内网穿透
- 远程控制:云控
- 魔法:多开/群控/应用变量/gps/ip属地
- 应用场景:无人直播/机器人bot/RPA自动化+数据爬虫
- 杂谈~~
***
## 简述
教程属于`操作类,不是原理`
比如不涉及:内核编译,ROM定制,虚拟化
图文+视频录制
长期更新
***
## 云手机设备指北
这里说的云手机,默认指的
1. 开源硬件:ARM主板,
2. 设置安卓系统
3. 远程控制
***
## 硬件选型
建议购买RK3588芯片的开发板
- 香橙派5plus
- nvme ssd硬盘
- TF卡:用于测试系统
- 2个支持`uvc协议+带麦克风`的摄像头
教程正在更新中,视频录制操作过程,请等待

12960
yarn.lock Normal file

File diff suppressed because it is too large Load Diff