工作备忘录
常用资源
项目梳理
测试环境和正式环境的差异
sysConfigure.properties
文件
SystemEnvironment=0 // 0 测试环境 // 1 正式环境
1
亮狮网官网项目注意事项
- 注意node环境 版本8.9.0 否则下载依赖会报错
- 项目采用了
prerender-spa-plugin
插件 预编译优化seo 打包时候需要注意 - 正式环境和测试环境需要修改main.js中的全局变量
//测试
Vue.prototype.$api_ysapi = "http://116.62.68.26:8080" //yhcms
Vue.prototype.$api_ysapi_zs = "http://116.62.68.26:8080" //api地址
Vue.prototype.$api_img_url = 'http://116.62.68.26/'; //图片的地址
// Mr.long
// Vue.prototype.$api_ysapi = "http://zhangxlorgcom.picp.io:42995";
//正式
// Vue.prototype.$api_ysapi = "https://omc.liangshipower.com"; //yhcms
// Vue.prototype.$api_ysapi_zs = "https://app.ursoffice.com";//app后台正式服域名(Mr.long /yskjApp/)
// // Vue.prototype.$api_img_url = 'http://omc.liangshipower.com:81/';//图片的地址
// Vue.prototype.$api_img_url = 'https://img.liangshipower.com/';//图片的地址
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
使用linear-gradient控制背景渐变
<div class="bruce">
<div class="gradient-bg">iCSS</div>
</div>
1
2
3
2
3
.gradient-bg {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
font-weight: bold;
font-size: 100px;
color: #fff;
background: linear-gradient(135deg,#2997d0,#e26014,#1f54bf) left center/400% 400%;
animation: move 10s infinite;
}
@keyframes move {
0%,
100% {
background-position-x: left;
}
50% {
background-position-x: right;
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
erp 项目改造流程
- 子组件与父组件之间的通信
- 引入全局方法
- php 创建接口名 需要在
\WWW\laravel\resources\assets\js\api\api.js
配置 - php
\WWW\laravel\app\Http\Controllers\Contract
在对应文件中 创建接口