https://github.com/minooo/attract-fans-utils
https://github.com/minooo/attract-fans-utils
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/minooo/attract-fans-utils
- Owner: minooo
- Created: 2018-07-17T09:51:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T02:53:14.000Z (almost 8 years ago)
- Last Synced: 2025-02-10T15:32:28.800Z (over 1 year ago)
- Language: JavaScript
- Size: 1.1 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 嘟嘟科技-[公众号吸粉工具管理后台]-前端项目
## 前端备忘
- [create-react-app 指北](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md)
- [react-router](https://reacttraining.com/react-router/web/guides/philosophy)
# 一些必要讲解的
- 支持直接引入图片
```js
import React from 'react';
import logo from './logo.png'; // Tell Webpack this JS file uses this image
console.log(logo); // /logo.84287d09.png
function Header() {
// Import result is the URL of your image
return
;
}
export default Header;
```
## 打包
```
打包后,将build下的文件部署到 dolife-public/attract-fans-utils-static/backend
然后把index.html 传给后台人员。
```
## Nav使用
一共有三个参数
```js
finish: 当前的活动是否开启,开启之后不能在进入基本设置页面。
poster_id:任务的id,只有创建海报页面需要。
submit:当前页面是否提交。
```