'init'
This commit is contained in:
45
src/pages/book/book.md
Normal file
45
src/pages/book/book.md
Normal file
@@ -0,0 +1,45 @@
|
||||
## Youtube运营笔记
|
||||
|
||||
> 媒体是普通人的最好的杠杆
|
||||
|
||||
从佛系到认真的运营youtube(油管),也快有1年的时间了
|
||||
|
||||
在这里分享一些心得,以及踩过的坑
|
||||
|
||||
---
|
||||
|
||||
## 为什么youtube值得做?
|
||||
|
||||
> 成本低
|
||||
|
||||
自媒体是普通人最好的杠杆,只需要1部手机,就可以拍摄vlog,也可以剪辑影片
|
||||
现在的剪辑软件,不仅在手机端可以方便操作,还结合的ai功能,比如
|
||||
|
||||
- 语音翻译/克隆
|
||||
|
||||
- 自动生成双语字幕
|
||||
|
||||
- 特效/音效
|
||||
|
||||
|
||||
随时随地都可以剪辑+上传
|
||||
|
||||
> 赚美金,回报高
|
||||
|
||||
同样的视频,在不同的平台上传后,收益汇率不一样
|
||||
|
||||
油管结算是美金,换成人民,就有7倍左右的购买力
|
||||
|
||||
而如果你居住下三四线城市,或者县城,那么由于生活成本低
|
||||
|
||||
每月即使1000$的收益,都可以过的不错了
|
||||
|
||||
> 商业模式健康
|
||||
|
||||
youtube给创作者的收益,长视频是`55%`,短视频shorts是`45%`
|
||||
|
||||
可以说是世界上很慷慨的公司了
|
||||
|
||||
仅仅是平台广告,就能够带来巨大的收益
|
||||
|
||||
不用去接`业配/商单`,以及自己带货,纯粹的视频不会让人厌恶
|
||||
3
src/pages/book/index.config.js
Normal file
3
src/pages/book/index.config.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
navigationBarTitleText: '一人公司方法论'
|
||||
}
|
||||
45
src/pages/book/index.scss
Normal file
45
src/pages/book/index.scss
Normal 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
129
src/pages/book/index.tsx
Normal 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;
|
||||
8
src/pages/book/info.md
Normal file
8
src/pages/book/info.md
Normal file
@@ -0,0 +1,8 @@
|
||||
🚀 技术杠杆与变现
|
||||
1️⃣ PVE: 压榨硬件,超融合,虚拟机
|
||||
2️⃣ frp: 内网穿透
|
||||
3️⃣ Docker 与 K8S:容器化部署
|
||||
4️⃣ GPU:本地大模型,私有化部署
|
||||
5️⃣ OTG:边缘计算 npu 与机器视觉
|
||||
|
||||
内容待更新,目录已上线
|
||||
Reference in New Issue
Block a user