# TikTokWebDesigner **Repository Path**: xwltz/TikTokWebDesigner ## Basic Information - **Project Name**: TikTokWebDesigner - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-28 - **Last Updated**: 2021-10-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # web-designer ## Project setup ``` yarn install ``` ### Compiles and hot-reloads for development ``` yarn run serve ``` ### Compiles and minifies for production ``` yarn run build ``` ### Run your tests ``` yarn run test ``` ### Lints and fixes files ``` yarn run lint ``` ### Run your unit tests ``` yarn run test:unit ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ## axios 使用方法 #### 异步使用 1. 首页在service/js中引入 ``` import http from '../../utils/axios' ``` 2. 在service/js写入业务逻辑 ``` export function getOptions(id) { let params = { id: id } let header = {} let e = http.get("TikTokOptions", params, header); return e; } ``` 3. 在组件中使用 ``` async initValue() { getOptions(1).then(res =>{ console.log(res.data) }).catch(); } ``` #### 同步使用 1. 首页在service/js中引入 ``` import http from '../../utils/axios' ``` 2. 在service/js写入业务逻辑 ``` export async function getOptions(id) { let params = { id: id } let header = {} let e = await http.getAsync("TikTokOptions", params, header); return e; } ``` 3. 在组件中使用 ``` async initValue() { var value = await getOptions(1); console.log(value) } ``` ## 项目开发日志 ### 2019-12-16 ``` xwltz 1. 新增客服组件(样式未完成) 2. 优化删除组件操作,修复点击冒泡事件 3. 优化框架代码,更加语义化 ``` ### 2019-12-14 ``` xwltz 1. 修复组件无法读取数据的问题 2. 优化框架代码,规范代码 3. 选择图标组件优化,美化样式 4. 修复ViewUI的部分组件下拉弹窗遮罩会被父元素遮挡的问题 5. 新增纯文本组件 6. 新增地图组件 ``` ### 2019-12-13 ``` xwltz 1. 优化项目结构,提升可读性、可维护性 ``` ### 2019-12-11 ``` xwltz 1. 删除多余文件、删除多余依赖 2. 补齐组件库图标 ``` ### 2019-12-06 ``` xwltz 1. 新增基于axios的http请求库 2. 补充组件库的JSON字符串 ``` ``` wgr 1. 添加设计器路由参数配置项,url参数解密,添加获取页面信息接口,绑定数据 2. 添加设计器路由参数配置项 3. 添加url参数解密方法 4. 添加获取页面信息接口,绑定数据 ```