From 68ec80e2b383315bb8fc9a250a7e74b3670219d9 Mon Sep 17 00:00:00 2001 From: xiedfchn Date: Sat, 7 Jul 2018 02:06:07 +0100 Subject: [PATCH 1/5] =?UTF-8?q?'=E6=97=A5=E6=8A=A5UI=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=AE=8C=E6=88=90=EF=BC=8C=E5=92=8C=E9=83=A8=E5=88=86=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=8A=9F=E8=83=BD'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc_vue/package.json | 1 + pc_vue/src/api/api.js | 10 +- pc_vue/src/views/note/note.vue | 42 ++++--- pc_vue/static/files/test.md | 165 +++++++++++++++++++++++++ pc_vue/static/z39pc/css/mycss/note.css | 9 +- 5 files changed, 209 insertions(+), 18 deletions(-) create mode 100644 pc_vue/static/files/test.md diff --git a/pc_vue/package.json b/pc_vue/package.json index 6eb3ed14..7bd6185a 100644 --- a/pc_vue/package.json +++ b/pc_vue/package.json @@ -30,6 +30,7 @@ "vue-ga": "^1.0.0", "vue-qart": "^2.1.0", "vue-router": "^2.6.0", + "vue-simplemde": "^0.4.8", "vue-socket.io": "^2.1.1-a", "vuedraggable": "^2.14.1", "vuex": "^2.4.0", diff --git a/pc_vue/src/api/api.js b/pc_vue/src/api/api.js index 6f566499..0b76712e 100644 --- a/pc_vue/src/api/api.js +++ b/pc_vue/src/api/api.js @@ -291,7 +291,7 @@ export const taskautoDel = params => { }; -// 获取登录初始数据. +// 获取登录初始数据. export const usertask = params => { isMobile && token && (params = params || {}) && (params.token = token); return http.get(`${ base }/apix/z39time/usertask`, { "params": params }).then(res => { @@ -451,6 +451,12 @@ export const blogGet = params => { isMobile && token && (params = params || {}) && (params.token = token); return axios.get(`${ base }/api/z39blog`, { "params": params }).then(res => res.data); }; +export const blogFileGet = filename => { + var params; + isMobile && token && (params = params || {}) && (params.token = token); + // return axios.get(`${ base }${ filename }` ).then(res => res.data); + return axios.get('/static/files/note.md'); +} export const blogAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); return axios.post(`${ base }/api/z39blog`, params).then(res => res.data); @@ -582,7 +588,7 @@ export const clockDel = params => { isMobile && token && (params = params || {}) && (params.token = token); return axios.delete(`${ base }/api/z39clock`, { "params": params }).then(res => res.data); }; -// 任务提醒方式的开通状态获取 +// 任务提醒方式的开通状态获取 export const noticeStateGet = params => { isMobile && token && (params = params || {}) && (params.token = token); return http.get(`${ base }/apix/z39notice/noticestate`, { "params": params }).then(res => res.data); diff --git a/pc_vue/src/views/note/note.vue b/pc_vue/src/views/note/note.vue index fc2a999d..db35040d 100644 --- a/pc_vue/src/views/note/note.vue +++ b/pc_vue/src/views/note/note.vue @@ -4,7 +4,7 @@ - +
@@ -32,9 +32,14 @@
  • 同事 D
  • -
    - -
    +
    +
    + + +
    +
    + +
    @@ -50,6 +55,7 @@ import { taskAndTag } from "../../common/mixin"; import { mixinPc } from "../../common/mixinPc"; import moment from 'moment' + import markdownEditor from 'vue-simplemde/src/markdown-editor' import { mapState, mapActions @@ -62,17 +68,19 @@ } export default { // components: { -// 'docute-container': docuteContainer +// 'docute-container': docuteContainer,markdownEditor // }, data() { return { search: '', dateMonth: new Date(), blogList:[], + blog: '', // globalUrl:api. } }, components: { + 'markdown-editor': markdownEditor, 'header-nav':headerNav }, mixins: [taskAndTag,mixinPc], @@ -101,15 +109,18 @@ return moment(time).format('DD')||'' }, changeBlog:function(item){ - var url ; - if( item.filename.indexOf("http") == -1 ){ - url = api.globalUrl+item.filename ; - }else{ - url = item.filename ; - } - var iframeHtml=`` - - $('.docute-iframe-container').html(iframeHtml); + + api.blogFileGet(item.filename).then(res => { + this.blog = res.data.toString(); + }) + var url ; + // if( item.filename.indexOf("http") == -1 ){ + // url = api.globalUrl+item.filename ; + // }else{ + // url = item.filename ; + // } + // var iframeHtml=`` + // $('.docute-iframe-container').html(iframeHtml); } }, mounted() { @@ -122,4 +133,5 @@ @import "../../../static/z39pc/css/noteMain.css"; @import "../../../static/z39pc/css/docute.css"; @import "../../../static/z39pc/css/mycss/note.css"; - \ No newline at end of file + @import '~simplemde/dist/simplemde.min.css'; + diff --git a/pc_vue/static/files/test.md b/pc_vue/static/files/test.md new file mode 100644 index 00000000..18f08e51 --- /dev/null +++ b/pc_vue/static/files/test.md @@ -0,0 +1,165 @@ +# 洗漱2 2018-05-02 + +### 时间清单 +- [x] **xx:xx~05:42** *醒* +- [x] **xx:xx~05:45** *起床* +- [x] ** 06:07~06:21** 自己开始用测试账号使用小程序,体验时间清单系统功能 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-退步-red.svg "-7天时间清单") +- [x] ** 07:29~07:45** *早饭* +- [x] ** 08:48~07:53** *洗漱1* +- [x] ** 08:47~07:55** *厕所* +- [x] ** 07:45~08:02** *洗澡* +- [x] ** 06:28~09:02** 运营书籍知识查看 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 08:00~09:15** 处理第11次appstore审核被拒,重新编译app被发布申请上线 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] **xx:xx~10:30** 和弟沟通,他有很多空闲时间是否可以帮忙来做这些运营工作 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 09:38~11:20** 重新构思周月年目标th1 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-退步-red.svg "-7天时间清单") +- [x] ** 11:20~11:39** 吃瓜子 ![](https://img.shields.io/badge/-杂事-yellowgreen.svg "-7天时间清单") +- [x] ** 12:13~12:31** *腹肌撕裂者T4* +- [x] ** 12:31~12:51** *午饭* +- [x] ** 13:27~14:02** 午睡 ![](https://img.shields.io/badge/-杂事-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-退步-red.svg "-7天时间清单") +- [x] ** 14:43~14:54** 之前想用小程序广告,在微盟填写的信息,对方电话联系过来 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 15:30~15:40** 腾讯广点通电话联系过来,得知微信广告和广点通是独立的 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 15:40~15:55** 微信后台再次开通广告主,提交应用宝上面的app截图信息 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 16:04~16:14** 处理测试平台上提交的报告 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-缺陷bug-red.svg "-7天时间清单") +- [x] **xx:xx~16:49** 在无网络或者网络很差的时候打开小程序会出现白屏的情况 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 17:18~17:35** 评估这周任务每个需要消耗多少时间 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 17:36~17:58** 查看新浪微博官方认证和开放平台中的扶持信息 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 18:49~19:06** 构思方便做周计划未知任务的知识搜索并画手稿图 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 19:15~19:35** *晚饭* +- [x] ** 20:34~20:34** 全职猎人漫画 ![](https://img.shields.io/badge/-杂事-yellowgreen.svg "-7天时间清单") +- [x] ** 21:12~21:24** 新的兼职初次沟通,需要对方发送简历或产品视频说明能力 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 21:24~21:44** 录制加载页面的优化视频说明 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [x] ** 20:36~21:46** *洗漱2* +- [x] ** 17:01~22:01** 下载epub网上所有融资和投资电子书 ![](https://img.shields.io/badge/-重要-yellowgreen.svg "-7天时间清单") +- [ ] 安卓流应用开发 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] APP窗体挂件widget快速操作当前和下个任务的小挂件卡片 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 查看并处理新浪微博开放平台的app对接申请工作 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 体验建议:名言页面内容可以复制以及分享 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] ~~加载进度条放到小程序页面中,资源加载完毕后再进入系统页面~~ ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![取消](https://img.shields.io/badge/取消-16:41-orange.svg "取消-7天时间清单") +- [ ] 解决小程序进入白屏的概率性bug,难点是很难重现,没找到规律 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-缺陷bug-red.svg "-7天时间清单") +- [ ] 每日每周更新记录显示到手机版中 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 构思如何完善习惯养成页面,添加怎样的统计数据 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 用iphoneX录制appstore需要的5.8寸的宣传视频 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 用iphone6录制appstore需要的5.5寸的宣传视频 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 修改app启动图片上面的文字,把疑问句改为正向功能效果 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 构思长远计划中可能使用的小项目名称,方便提前注册避免被注册后无法使用 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] pc端首页设计 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 时间清单APP应用程序描述用markdown的任务和碎片时间信息展示 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 调整现在日报中的网页内容 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 生成2018年的年报并更新到网站系统 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 完善微信公众号信息,重新申请开通广告账号 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 把大的章节页面才分成小节.md文件,并重新排调整summary ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 把电子书的html转换成md文件 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") +- [ ] 转换成目录文件toc.ncx转换成gitbook的summary.md格式 ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") + +### 总结 + +### 观点及其他 + + +### 任务详情 + [x]**录制加载页面的优化视频说明**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-其他-72c7ff.svg "-7天时间清单") +```video + +``` + + [x]**新的兼职初次沟通,需要对方发送简历或产品视频说明能力**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-其他-72c7ff.svg "-7天时间清单") + [x]**构思方便做周计划未知任务的知识搜索并画手稿图**![预计](https://img.shields.io/badge/预计-28m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-想法-72c7ff.svg "-7天时间清单") + ![](http://cdn.7dtime.com/time_tlog/2018-05-02_OZWNZGXZ0VK.png?imageView/2/w/800/h/667) + + [x]**查看新浪微博官方认证和开放平台中的扶持信息**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + 官方公司账号认证费用300+。300的基本费用,另外还有5000的扩展包. 发布广告竞价排名,点击每次最少0.5元. 点击的链接不一定去下载app,下载之后还不一定进入. 这样算下来单个用户的成本就好几块,游戏app用户成本高的100元+. 之前还考虑系统免费,那这样就完全没有资金支持做推广了. + + [x]**微信后台再次开通广告主,提交应用宝上面的app截图信息**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [x]**腾讯广点通电话联系过来,得知微信广告和广点通是独立的**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + 我需要推广小程序只有在微信公众号后台进行操作,同时需要在公众号里面发小程序相关图片产品信息.也需要在公众号里面配置菜单. 对方通过QQ发送了三个报价文件,我先把它保存到了运营目录。 + + [x]**之前想用小程序广告,在微盟填写的信息,对方电话联系过来**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + 帮忙处理广点通相关的广告投放,收取充值广告金额10%的服务费.听对方说:小程序的推广需要在公众号里面配置操作, + + [ ]**安卓流应用开发**![预计](https://img.shields.io/badge/预计-1:30-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-开发-72c7ff.svg "-7天时间清单") + [流应用开发指南](http://ask.dcloud.net.cn/article/406) 似乎流应用并不太区分安卓或苹果. ![7天时间清单](https://img.shields.io/badge/时间-14:25-ff69b4.svg "7天时间清单") 我现在是单页面应用开发,是在一个gis里面动态引用其他分页面的js文件. 无法在软件里面生成引用关系,记忆中之前有看到,直接提交apk可以生成流应用的现在找不到了。直接提交打包成流应用,使用官方流应用app扫描生成的二维码,打开系统显示白屏不知道如何处理? [5+App申请DCloud自动转换服务](http://ask.dcloud.net.cn/article/406) 看到网站上说配置模拟器还挺麻烦的,自己不太熟悉避免浪费时间,就找安卓真机或者其他有经验的人来帮我们解决. + + [x]**处理第11次appstore审核被拒,重新编译app被发布申请上线**![预计](https://img.shields.io/badge/预计-28m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + 1.您的二进制文件不支持 iPad,App Store 将不会显示 iPad 的屏幕快照或 App 预览。 +2.app Store中显示的app名或副标题包含关键字或描述符,这些关键词或描述符不适合在这些元数据项中使用。 +在官方的回复信息和网络上查找到的都是说不需要重新编译app并上传,结果今天再次被官方拒绝,其理由必须通过编译app来解决.这些都是防不胜防的问题,只能根据反馈调整无法前期规避.如果有的话那一定是有经验的人来做. +![](http://cdn.7dtime.com/time_tlog/2018-05-02_ANQWWL7M3R5.png?imageView/2/w/800/h/667) +时间清单-计划的日程任务完成后生成时间记录,高效率总结和提升 +时间日记就像私人助手帮你回顾总结,快速提升自我. +为什么关键词和描述不符合我APP,我就是做这一块啊.是那个词不适合,应该怎样改呢?先减少文字数量来减低关键词. +可以提前编译并修改标题和描述信息作为后备方案,被拒绝时可以快速再次提交.1词性准备多个方案可以避免被它把自己时间划分成多个碎片. + + [ ]**APP窗体挂件widget快速操作当前和下个任务的小挂件卡片**![预计](https://img.shields.io/badge/预计-8:00-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-开发-72c7ff.svg "-7天时间清单") + 百度搜素相关资料找到[iphone如何增加widget](https://jingyan.baidu.com/article/b24f6c820a819b86bfe5dabb.html) [Android平台以Widget方式集成HTML5+SDK方法](http://ask.dcloud.net.cn/article/81) [Android平台以WebView方式集成HTML5+SDK方法](http://ask.dcloud.net.cn/article/80) [IOS平台以WebView方式集成HTML5+SDK方法](http://ask.dcloud.net.cn/article/83).25分钟才百度到相关资料,刚开始说错一个单词浪费8分钟. ![7天时间清单](https://img.shields.io/badge/时间-13:26-ff69b4.svg "7天时间清单") + + [ ]**查看并处理新浪微博开放平台的app对接申请工作**![预计](https://img.shields.io/badge/预计-18m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [微博开放平台](http://open.weibo.com/apps)等待官方审核处理. + + [x]**评估这周任务每个需要消耗多少时间**![预计](https://img.shields.io/badge/预计-40m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") + 错过第一天在创建任务是评估,现在两三天的文件中包含了重复的任务内容,这个时候再来做相关工作,就会以需要整合.把评估时间同步到其他日期的任务上.查找未完成的任务也稍微有点麻烦,实际上大概只会浪费五分钟.实际上没有多少个任务,大概15个任务内. 做的不好的是现在没有对象,长时间任务进行任务拆分,仔细评估时间. + + [x]**在无网络或者网络很差的时候打开小程序会出现白屏的情况**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-测试-72c7ff.svg "-7天时间清单") + 错误现象:在无网络或者网络很差的时候打开小程序会出现白屏的情况 +预期结果:在无网络或者网络很差的时候打开小程序,应该提示无网络或者网络状况差等提示语 +下面截图是我在地下室打开小程序的时候出现的白屏,还有我在手机断网的情况下打开小程序也是白屏 + + [ ]**体验建议:名言页面内容可以复制以及分享**![预计](https://img.shields.io/badge/预计-60m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-测试-72c7ff.svg "-7天时间清单") + [x]**处理测试平台上提交的报告**![预计](https://img.shields.io/badge/预计-30m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-缺陷bug-red.svg "-7天时间清单") + [ ]**加载进度条放到小程序页面中,资源加载完毕后再进入系统页面**![预计](https://img.shields.io/badge/预计-2:00-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-开发-72c7ff.svg "-7天时间清单") + 首页专门加载,另外一个页面使用webview显示h5系统. 注意:小程序和h5加载的网络资源缓存是否相同. 好处:1.第一时间显示加载进度条. 2.小程序消息推送可用. +```mind +-html5加载页面转换才小程序 + -[本地微信开发工具开发测试] + -查询资料:有什么方法或工具 10m + -测试小程序与h5的网络缓存是否公用 + -小程序下载文件后h5再下载的时间 40m + -比对2种代码区别,构思转换方法 20m + -修改代码 + -加载进度动画布局 1h + -进度条逻辑 30m + -测试 30m +``` +任务拆分和评估. ![7天时间清单](https://img.shields.io/badge/时间-11:52-ff69b4.svg "7天时间清单") [微信小程序-利用wxParse将html转为wxml](https://blog.csdn.net/zww1984774346/article/details/54410181) [wepy组件化开发之html转换组件](http:给//www.wxappclub.com/topic/961) [微信小程序脚手架及html转译GUI工具](https://segmentfault.com/a/1190000007409359) [小程序html转wxml,微信小程序用wxParse解析html](https://blog.csdn.net/towtotow/article/details/78497028) [github搜索html wxml](https://github.com/search?l=JavaScript&q=html+wxml&type=Repositorie) ![7天时间清单](https://img.shields.io/badge/时间-12:09-ff69b4.svg "7天时间清单") 小程序自身app和内带的浏览器应该是两部分,我猜测缓存共通的可能性只有20%. 在开发工具中的network也看不到h5资源链接的请求.从这也可以判断出不是一个缓存. 如果不是一个缓存,那自己构思,把加载页面放到小程序中就没有任何意义了.这终究是推测,那要如何进行测试呢?最终是在小程序中加载网络资源,然后进入h5中再次下载.程序可能经常更新,而小程序更新的话是有一个审核期限.程序的主要加载文件最好不要放在小程序中,这样就需要对这些加载的资源文件配置到服务器的配置文件中. 那是否还有其他方式来实现这个需求? +一个月前在测试平台上提交的八个测试,50个人测试也只得出一个结果,在网络情况差的时会出现白屏. 毕竟这个测试自己给的总金额有限,是给的钱不够吗?只有这一个bug钱多充值一点有更多人测试只是忽悠别人.钱给少了得不到自己要的结果. 首先我需要的是解决这个问题,可能是忽悠别人,那叫给别人付费就行了. ![7天时间清单](https://img.shields.io/badge/时间-16:19-ff69b4.svg "7天时间清单") 不知道如何解决,先去休息一会儿吧 ![7天时间清单](https://img.shields.io/badge/时间-16:27-ff69b4.svg "7天时间清单") + + [ ]**解决小程序进入白屏的概率性bug,难点是很难重现,没找到规律**![预计](https://img.shields.io/badge/预计-2:00-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-help-72c7ff.svg "-7天时间清单") ![](https://img.shields.io/badge/-缺陷bug-red.svg "-7天时间清单") + 先尝试把加载页面修改成小程序页面,避免这个页面加载出错.既然页面是白屏那就是加载页面动态添加dom和进度条内容出错.可以直接把这一步工作代码写到首页里,并且在网络异常的时候添加刷新按钮. 最好的情况下是根据实际加载文件显示进度条. 现在是虚假的,随机显示进度条. + + [x]**自己开始用测试账号使用小程序,体验时间清单系统功能**![预计](https://img.shields.io/badge/预计-15m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-经典-72c7ff.svg "-7天时间清单") ![](https://img.shields.io/badge/-退步-red.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + 把自己的账号重新绑定到测试账号.太多任务一下就分神了. + + [x]**和弟沟通,他有很多空闲时间是否可以帮忙来做这些运营工作**![预计](https://img.shields.io/badge/预计-15m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-其他-72c7ff.svg "-7天时间清单") + [x]**重新构思周月年目标th1**![预计](https://img.shields.io/badge/预计-40m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-改变-72c7ff.svg "-7天时间清单") ![](https://img.shields.io/badge/-退步-red.svg "-7天时间清单") ![](https://img.shields.io/badge/-想法-72c7ff.svg "-7天时间清单") + 喝水+吃花生,零食放在水旁边很自然的就分神了. ![7天时间清单](https://img.shields.io/badge/时间-09:48-ff69b4.svg "7天时间清单") +既然那是无法完成,那就先设定一个远大目标,把远大目标拆分成很多小目标之后,先以小目标为一个节点,尽全力实现最近一个小目标,实现一个就紧接着实现下一个,一旦拆分大致目标之后,基本就不要再管他,只要确定不会偏离方向就行.这样既全力以赴不会有失败的挫败感,每一次努力行动都是成长. +愿景提升国人效率百万倍,记忆中已知信息的思维导图. ![7天时间清单](https://img.shields.io/badge/时间-10:46-ff69b4.svg "7天时间清单") +任务拆分和关键指标 对主要的部分进行了关键任务拆分,这些内容有点零散,还不能形成一个完整的系统. ![](http://cdn.7dtime.com/time_tlog/2018-05-02_FZMGSOE8K2B.png?imageView/2/w/800/h/667) + + [ ]**每日每周更新记录显示到手机版中**![预计](https://img.shields.io/badge/预计-2:00-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-开发-72c7ff.svg "-7天时间清单") + [ ]**构思如何完善习惯养成页面,添加怎样的统计数据**![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-想法-72c7ff.svg "-7天时间清单") + [ ]**用iphoneX录制appstore需要的5.8寸的宣传视频**![预计](https://img.shields.io/badge/预计-30m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-help-72c7ff.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [ ]**用iphone6录制appstore需要的5.5寸的宣传视频**![预计](https://img.shields.io/badge/预计-30m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [ ]**修改app启动图片上面的文字,把疑问句改为正向功能效果**![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [ ]**构思长远计划中可能使用的小项目名称,方便提前注册避免被注册后无法使用**![预计](https://img.shields.io/badge/预计-45m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [ ]**pc端首页设计**![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-美术-72c7ff.svg "-7天时间清单") + [ ]**时间清单APP应用程序描述用markdown的任务和碎片时间信息展示**![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + 这种不包含关键词的描述可以很好的展示应用程序的功能和特点,但同时缺少关键词,到底是好还是坏呢?只有想办法尝试. + + [ ]**调整现在日报中的网页内容**![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [ ]**生成2018年的年报并更新到网站系统**![预计](https://img.shields.io/badge/预计-35m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [ ]**完善微信公众号信息,重新申请开通广告账号**![预计](https://img.shields.io/badge/预计-45m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-运营-72c7ff.svg "-7天时间清单") + [x]**下载epub网上所有融资和投资电子书**![预计](https://img.shields.io/badge/预计-15m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-重要-yellowgreen.svg "-7天时间清单") + 认同—赢取支持的艺术没有找到,本身没有电子书.下载太频繁需要再过两个小时操作,晚上同一时间下载的电子书很多.难道是低峰期吗?哪怕是显示了下载太频繁后,返回页面刷新又可以继续下载. + + [x]**全职猎人漫画**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-杂事-yellowgreen.svg "-7天时间清单") + [x]**午睡**![预计](https://img.shields.io/badge/预计-20m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-杂事-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-退步-red.svg "-7天时间清单") + 延迟2次9分钟。 + + [x]**吃瓜子**![](https://img.shields.io/badge/-耗时-orange.svg "-7天时间清单") ![](https://img.shields.io/badge/-杂事-yellowgreen.svg "-7天时间清单") + [ ]**把大的章节页面才分成小节.md文件,并重新排调整summary**![预计](https://img.shields.io/badge/预计-2:00-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-开发-72c7ff.svg "-7天时间清单") + [ ]**把电子书的html转换成md文件**![预计](https://img.shields.io/badge/预计-60m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-开发-72c7ff.svg "-7天时间清单") + [ ]**转换成目录文件toc.ncx转换成gitbook的summary.md格式**![预计](https://img.shields.io/badge/预计-40m-orange.svg "预计-7天时间清单") ![](https://img.shields.io/badge/-紧重-yellowgreen.svg "-7天时间清单") ![](https://img.shields.io/badge/-开发-72c7ff.svg "-7天时间清单") diff --git a/pc_vue/static/z39pc/css/mycss/note.css b/pc_vue/static/z39pc/css/mycss/note.css index 65045f99..44ffbae6 100644 --- a/pc_vue/static/z39pc/css/mycss/note.css +++ b/pc_vue/static/z39pc/css/mycss/note.css @@ -344,10 +344,17 @@ height: auto; position: absolute; top:70px; - right:300px; + right:20px; left:20px; bottom:20px; box-shadow: 1px 1px 5px 0px #888; border-radius: 5px; overflow: hidden; } + +.markdown-editor { + height: 100%; +} +.CodeMirror.cm-s-paper.CodeMirror-wrap { + height: calc(100% - 32px - 49px); +} -- Gitee From 225dcecb6f083e59574cc76750cd99e22a57f250 Mon Sep 17 00:00:00 2001 From: xiedfchn Date: Sat, 7 Jul 2018 23:25:38 +0100 Subject: [PATCH 2/5] added summary section --- pc_vue/src/api/api.js | 9 +- pc_vue/src/views/note/note.vue | 92 ++++++++++++- .../test.md => mdtlog/2018-05/05-02.md} | 0 pc_vue/static/z39pc/css/mycss/note.css | 128 +++++++++++++++++- 4 files changed, 214 insertions(+), 15 deletions(-) rename pc_vue/static/{files/test.md => mdtlog/2018-05/05-02.md} (100%) diff --git a/pc_vue/src/api/api.js b/pc_vue/src/api/api.js index 0b76712e..d9182c9a 100644 --- a/pc_vue/src/api/api.js +++ b/pc_vue/src/api/api.js @@ -13,10 +13,10 @@ if (process.env.NODE_ENV == "development") { //开发环境 base = href.substr(0, href.indexOf(":80")) + ":8361"; console.log("api:", base); } - // base='http://7dtime.tunnel.echomod.cn'; //主选 + base='http://7dtime.tunnel.echomod.cn'; //主选 // base = 'http://d7game.free.ngrok.cc'; //备选1 // base = 'http://thinkido.tunnel.qydev.com'; //备选2 - base = 'https://7dtime.com' //正是服务器 + // base = 'https://7dtime.com' //正是服务器 } else { base = 'https://7dtime.com' //发布环境 // base = 'http://d7game.free.ngrok.cc' @@ -452,10 +452,7 @@ export const blogGet = params => { return axios.get(`${ base }/api/z39blog`, { "params": params }).then(res => res.data); }; export const blogFileGet = filename => { - var params; - isMobile && token && (params = params || {}) && (params.token = token); - // return axios.get(`${ base }${ filename }` ).then(res => res.data); - return axios.get('/static/files/note.md'); + return axios.get(filename); } export const blogAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); diff --git a/pc_vue/src/views/note/note.vue b/pc_vue/src/views/note/note.vue index db35040d..4f6cbaf6 100644 --- a/pc_vue/src/views/note/note.vue +++ b/pc_vue/src/views/note/note.vue @@ -22,7 +22,7 @@ -
    +
    同事
      @@ -32,10 +32,51 @@
    • 同事 D
    +
    +
    + || +
    +
    + 任务总结 +
    +
    +
      +
    • + + + {{task.title}} +
    • +
    +
    +
    +
    +
    + 任务总结 +
    + +
    +
    +
    + + +
    +
    +
    + +
    - - +
    @@ -76,6 +117,11 @@ dateMonth: new Date(), blogList:[], blog: '', + blogContent: '', + selectedTask: '', + taskList: [], + summary: '', + isDisplayed: false, // globalUrl:api. } }, @@ -109,11 +155,11 @@ return moment(time).format('DD')||'' }, changeBlog:function(item){ - + this.blog = item; api.blogFileGet(item.filename).then(res => { - this.blog = res.data.toString(); + this.blogContent = res.data.toString(); }) - var url ; + // var url ; // if( item.filename.indexOf("http") == -1 ){ // url = api.globalUrl+item.filename ; // }else{ @@ -121,10 +167,42 @@ // } // var iframeHtml=`` // $('.docute-iframe-container').html(iframeHtml); - } + }, + onUpdateBlog: function() { + + var fileContent = this.blogContent; + if(!(this.blog)) { + return; + } + var fileName = this.blog.filename; + }, + getTasks: function() { + + var param = { + day: new Date().toISOString().substr(0,10), + } + api.sortdayGet(param).then(data => { + if (data.errno != 0) { + this.showNotice(data.errmsg, 'warning'); + return Promise.reject(data.errmsg); + } + this.taskList=data.data.tasks; + return Promise.resolve(data); + }) + }, + onSubmit: function() { + if(!(this.summary) || !(this.selectedTask)) return; + console.log(this.summary); + this.selectedTask.summary = this.summary; + console.log(this.selectedTask); + }, + onSelectTask: function(task) { + this.selectedTask = task; + }, }, mounted() { this.getBlog(); + this.getTasks(); initPage(); } } diff --git a/pc_vue/static/files/test.md b/pc_vue/static/mdtlog/2018-05/05-02.md similarity index 100% rename from pc_vue/static/files/test.md rename to pc_vue/static/mdtlog/2018-05/05-02.md diff --git a/pc_vue/static/z39pc/css/mycss/note.css b/pc_vue/static/z39pc/css/mycss/note.css index 44ffbae6..5c435798 100644 --- a/pc_vue/static/z39pc/css/mycss/note.css +++ b/pc_vue/static/z39pc/css/mycss/note.css @@ -352,9 +352,133 @@ overflow: hidden; } -.markdown-editor { +.note-main-container #mainContent .markdown-editor { height: 100%; } -.CodeMirror.cm-s-paper.CodeMirror-wrap { +.note-main-container #mainContent .CodeMirror.cm-s-paper.CodeMirror-wrap { height: calc(100% - 32px - 49px); } +.note-main-container #mainContent .blog-summary-container { + position: absolute; + top: 65px; + bottom: 15px; + right: -300px; + background: #f5f7f9; + z-index: 2001; + width: 300px; + border-radius: 5px; + box-shadow: -1px 1px 1px 1px #bfbfbf; + z-index: 3000; + transition: right 0.4s; + transition-timing-function: ease-out; +} +.note-main-container #mainContent .blog-summary-container.isDisplayed{ + right: 0px; +} +.note-main-container #mainContent .blog-summary-container .blog-summary-header{ + border-radius: 5px 5px 0 0; + height: 45px; + color: #fff; + background: #1d88e5; + text-align: center; + line-height: 45px; + font-size: 15px; +} + +.note-main-container #mainContent .blog-summary-container .blog-summary-header .el-icon-close { + color: #fff; + float: right; + font-size: 15px; + position: absolute; + top: 11px; + right: 9px; + cursor: pointer; +} + +.note-main-container #mainContent .blog-summary-content { + +} +.note-main-container #mainContent .blog-summary-summary { + position: absolute; + right: 8px; + left: 8px; + bottom: 50px; + border-radius: 5px; + box-shadow: 0px 0px 5px 1px #bbb; + background: #fff; +} +.note-main-container #mainContent .blog-summary-summary textarea { + resize: none; + outline: none; + min-height: 31px; + height: 150px; + z-index: auto; + position: relative; + line-height: 21px; + font-size: 14px; + transition: none; + background: transparent !important; + border: 0; + width: 100%; + font-family: Arial; + padding: 5px 10px; +} +.note-main-container #mainContent .blog-summary-container .blog-summary-tasks { + border-radius: 5px; + box-shadow: 0px 0px 5px 1px #bbb; + margin: 8px; + background: #fff; + overflow: auto; + height: calc(100% - 46px - 260px); +} + +.note-main-container #mainContent .blog-summary-container .blog-summary-task { + background: #fff; + border-radius: 2px; + position: relative; + width: 100%; + padding: 10px 0 10px 10px; + zoom: 1; + border-bottom: 1px solid #d8d8d8; +} +.note-main-container #mainContent .blog-summary-container .blog-summary-task.selected { + background: #efefef; + color: #333; +} +.note-main-container #mainContent .blog-summary-container .blog-summary-task .el-checkbox__inner { + background: url(../../assets/images/select-false.png) no-repeat center center; + border: 0; +} +.note-main-container #mainContent .blog-summary-container .blog-summary-task .el-checkbox__input.is-checked .el-checkbox__inner { + background: url(../../assets/images/select-true.png) no-repeat center center; + border: 0; +} +.blog-summary-summary-control { + color: #fff; + text-align: center; + position: absolute; + bottom: 10px; + width: 100%; +} + +.blog-summary-summary-control button{ + width: 20%; + background: #1d88e5; + border-color: #1d88e5; +} +.note-main-container #mainContent .blog-summary-toggle { + width: 20px; + height: 70px; + line-height: 70px; + position: absolute; + background-color: #1d88e5; + border-radius: 20px 0 0 20px; + color: #fff; + box-sizing: border-box; + padding-left: 5px; + z-index: -1; + left: -20px; + top: calc(50% - 35px); + cursor: pointer; + box-shadow: -1px 1px 1px 1px #bfbfbf; +} -- Gitee From 1e2249e0bf752787e1b50c01076904caaac2df26 Mon Sep 17 00:00:00 2001 From: xiedfchn Date: Sun, 8 Jul 2018 17:40:46 +0100 Subject: [PATCH 3/5] =?UTF-8?q?'=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E6=97=A5=E6=8A=A5=E7=BC=96=E8=BE=91'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc_vue/src/api/api.js | 9 +- pc_vue/src/views/note/note.vue | 355 +++++++++++++------------ pc_vue/static/z39pc/css/mycss/note.css | 46 +++- 3 files changed, 227 insertions(+), 183 deletions(-) diff --git a/pc_vue/src/api/api.js b/pc_vue/src/api/api.js index d9182c9a..8a236fb5 100644 --- a/pc_vue/src/api/api.js +++ b/pc_vue/src/api/api.js @@ -452,7 +452,10 @@ export const blogGet = params => { return axios.get(`${ base }/api/z39blog`, { "params": params }).then(res => res.data); }; export const blogFileGet = filename => { - return axios.get(filename); + // 跨域问题 + return axios.get(`${ base }${ filename }`).then(res => { + res.data + }); } export const blogAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -462,6 +465,10 @@ export const blogSet = params => { isMobile && token && (params = params || {}) && (params.token = token); return axios.put(`${ base }/api/z39blog`, params).then(res => res.data); }; +export const blogContentUpdate = params => { + isMobile && token && (params = params || {}) && (params.token = token); + return axios.put(`${ base }/api/z39blog`, params).then(res => res.data); +} export const blogDel = params => { isMobile && token && (params = params || {}) && (params.token = token); return axios.delete(`${ base }/api/z39blog`, { "params": params }).then(res => res.data); diff --git a/pc_vue/src/views/note/note.vue b/pc_vue/src/views/note/note.vue index 4f6cbaf6..ce5e1ec7 100644 --- a/pc_vue/src/views/note/note.vue +++ b/pc_vue/src/views/note/note.vue @@ -1,215 +1,234 @@ diff --git a/pc_vue/static/z39pc/css/mycss/note.css b/pc_vue/static/z39pc/css/mycss/note.css index 5c435798..7b961fcc 100644 --- a/pc_vue/static/z39pc/css/mycss/note.css +++ b/pc_vue/static/z39pc/css/mycss/note.css @@ -255,7 +255,7 @@ width: 100%; top:0; padding: 12px 15px; - box-shadow: 1px 1px 5px 0px #888; + box-shadow: 1px 1px 5px #888; border-radius: 2px; background: #fff; } @@ -335,7 +335,7 @@ } .note-main-container #datePicker { float: none; - margin: 0px; + margin: 0; } .note-main-container #datePicker .el-date-editor.el-input { width: 100%; @@ -347,9 +347,9 @@ right:20px; left:20px; bottom:20px; - box-shadow: 1px 1px 5px 0px #888; - border-radius: 5px; - overflow: hidden; + box-shadow: 1px 1px 5px 0 #888; + border-radius: 5px; + overflow: hidden; } .note-main-container #mainContent .markdown-editor { @@ -362,18 +362,17 @@ position: absolute; top: 65px; bottom: 15px; - right: -300px; + right: -350px; background: #f5f7f9; - z-index: 2001; - width: 300px; + z-index: 101; + width: 350px; border-radius: 5px; box-shadow: -1px 1px 1px 1px #bfbfbf; - z-index: 3000; transition: right 0.4s; transition-timing-function: ease-out; } .note-main-container #mainContent .blog-summary-container.isDisplayed{ - right: 0px; + right: 0; } .note-main-container #mainContent .blog-summary-container .blog-summary-header{ border-radius: 5px 5px 0 0; @@ -404,28 +403,44 @@ left: 8px; bottom: 50px; border-radius: 5px; - box-shadow: 0px 0px 5px 1px #bbb; + box-shadow: 0 0 5px 1px #bbb; background: #fff; } +.note-main-container #mainContent .blog-summary-container .blog-summary-summary input { + -webkit-appearance: none; + -moz-appearance: none; + background: #fff none; + width: 100%; + border: none; + border-bottom: 1px solid #bfcbd9; + box-sizing: border-box; + color: #1f2d3d; + font-size: inherit; + height: 36px; + line-height: 1; + outline: 0; + padding: 3px 10px; + transition: border-color .2s cubic-bezier(.645,.045,.355,1); +} .note-main-container #mainContent .blog-summary-summary textarea { resize: none; outline: none; min-height: 31px; - height: 150px; + height: 120px; z-index: auto; position: relative; + color: #1f2d3d; line-height: 21px; font-size: 14px; transition: none; background: transparent !important; border: 0; width: 100%; - font-family: Arial; padding: 5px 10px; } .note-main-container #mainContent .blog-summary-container .blog-summary-tasks { border-radius: 5px; - box-shadow: 0px 0px 5px 1px #bbb; + box-shadow: 0 0 5px 1px #bbb; margin: 8px; background: #fff; overflow: auto; @@ -482,3 +497,6 @@ cursor: pointer; box-shadow: -1px 1px 1px 1px #bfbfbf; } +div.editor-toolbar.fullscreen { + z-index: 1000; +} -- Gitee From d52fe0947baebea1efc89ffc60b801cc12470596 Mon Sep 17 00:00:00 2001 From: xiedfchn Date: Wed, 11 Jul 2018 17:39:41 +0100 Subject: [PATCH 4/5] =?UTF-8?q?'=E6=97=A5=E6=8A=A5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD=E5=AE=8C=E6=88=90'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc_vue/src/api/api.js | 133 ++++++++++++------------- pc_vue/src/views/note/note.vue | 24 ++++- pc_vue/static/z39pc/css/mycss/note.css | 3 + 3 files changed, 87 insertions(+), 73 deletions(-) diff --git a/pc_vue/src/api/api.js b/pc_vue/src/api/api.js index 8a236fb5..4105b294 100644 --- a/pc_vue/src/api/api.js +++ b/pc_vue/src/api/api.js @@ -13,7 +13,7 @@ if (process.env.NODE_ENV == "development") { //开发环境 base = href.substr(0, href.indexOf(":80")) + ":8361"; console.log("api:", base); } - base='http://7dtime.tunnel.echomod.cn'; //主选 + base = 'http://7dtime.tunnel.echomod.cn'; //主选 // base = 'http://d7game.free.ngrok.cc'; //备选1 // base = 'http://thinkido.tunnel.qydev.com'; //备选2 // base = 'https://7dtime.com' //正是服务器 @@ -136,7 +136,7 @@ export const authurl = params => { // ------------------------- 建议 rest相关处理 ------------------------- export const suggestGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/d7suggest`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/d7suggest`, {"params": params}).then(res => res.data); }; export const suggestAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -147,12 +147,12 @@ export const suggestSet = params => { return axios.put(`${ base }/api/d7suggest`, params).then(res => res.data); }; export const suggestDel = params => { - return axios.delete(`${ base }/api/d7suggest`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/d7suggest`, {"params": params}).then(res => res.data); }; // ------------------------- 合作 rest相关处理 ------------------------- export const cooperateGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/d7cooperate`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/d7cooperate`, {"params": params}).then(res => res.data); }; export const cooperateAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -163,7 +163,7 @@ export const cooperateSet = params => { return axios.put(`${ base }/api/d7cooperate`, params).then(res => res.data); }; export const cooperateDel = params => { - return axios.delete(`${ base }/api/d7cooperate`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/d7cooperate`, {"params": params}).then(res => res.data); }; //---------------系统通用接口 结束--------------- @@ -203,7 +203,7 @@ export const getuser = params => { // 群查询 export const groups = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z43group`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z43group`, {"params": params}).then(res => res.data); }; // 群创建 export const groupAdd = params => { @@ -218,7 +218,7 @@ export const groupSet = params => { // 群删除 export const groupDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z43group`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z43group`, {"params": params}).then(res => res.data); }; // 群功能-短信 @@ -235,7 +235,7 @@ export const friends = params => { //和z43phone/phones 一样 }; // 成员查询 export const getProjectFriends = params => { //和z43phone/phones 一样 - return axios.get(`${ base }/api/z39friend`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/api/z39friend`, {"params": params}).then(res => res.data); }; // 成员创建 export const friendAdd = params => { @@ -250,7 +250,7 @@ export const friendSet = params => { // 成员删除 export const friendDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z43friend`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z43friend`, {"params": params}).then(res => res.data); }; // 群成员导入 @@ -266,16 +266,16 @@ export const friendsAdd = params => { // 群成员邀请 export const invitefriends = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/api/z39invite`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/api/z39invite`, {"params": params}).then(res => res.data); }; export const getInviteTitle = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/apix/z39time/getinvitetitle`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/apix/z39time/getinvitetitle`, {"params": params}).then(res => res.data); }; // 获取 app自动记录的任务 export const taskautoGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39taskauto`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39taskauto`, {"params": params}).then(res => res.data); }; export const taskautoAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -287,14 +287,14 @@ export const taskautoPut = params => { }; export const taskautoDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39taskauto`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39taskauto`, {"params": params}).then(res => res.data); }; // 获取登录初始数据. export const usertask = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/apix/z39time/usertask`, { "params": params }).then(res => { + return http.get(`${ base }/apix/z39time/usertask`, {"params": params}).then(res => { token = token || localStorage.getItem('token'); // console.log("token:", token); return Promise.resolve(res.data); @@ -303,113 +303,114 @@ export const usertask = params => { //检查是否登陆 export const checkLogin = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/apix/z39base/userinfo`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/apix/z39base/userinfo`, {"params": params}).then(res => res.data); }; export const days = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/apix/z39time/days`, { "params": params }).then(res => res.data); + return http.get(`${ base }/apix/z39time/days`, {"params": params}).then(res => res.data); }; export const sortdayGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/apix/z39time/sortday`, { "params": params }).then(res => res.data); + return http.get(`${ base }/apix/z39time/sortday`, {"params": params}).then(res => res.data); }; export const sortdayAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/apix/z39time/sortdayadd`, { "params": params }).then(res => res.data); + return http.get(`${ base }/apix/z39time/sortdayadd`, {"params": params}).then(res => res.data); }; // 获取最近常用标签 export const tagsrec = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/apix/z39time/tagsrec`, { "params": params }).then(res => res.data); + return http.get(`${ base }/apix/z39time/tagsrec`, {"params": params}).then(res => res.data); }; // ------------------------- 任务 rest相关处理 ------------------------- export const tasksGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39tasks`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39tasks`, {"params": params}).then(res => res.data); }; export const tasksAdd = params => { var item; for (var i = params.tasks.length - 1; i >= 0; i--) { item = params.tasks[i]; - if (item.title && item.title.length > 100) return Promise.resolve({ errno: 1001, errmsg: "标题最长100字" }); - if (item.desc && item.desc.length > 9000) return Promise.resolve({ errno: 1001, errmsg: "描述最长9000字" }); - }; + if (item.title && item.title.length > 100) return Promise.resolve({errno: 1001, errmsg: "标题最长100字"}); + if (item.desc && item.desc.length > 9000) return Promise.resolve({errno: 1001, errmsg: "描述最长9000字"}); + } + ; isMobile && token && (params = params || {}) && (params.token = token); return axios.post(`${ base }/api/z39tasks`, params).then(res => res.data); }; export const taskGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/api/z39task`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/api/z39task`, {"params": params}).then(res => res.data); }; export const taskAdd = params => { - if (!params.title) return Promise.resolve({ errno: 1001, errmsg: "请输入标题" }); - if (params.title && params.title.length > 100) return Promise.resolve({ errno: 1001, errmsg: "标题最长100字" }); - if (params.desc && params.desc.length > 9000) return Promise.resolve({ errno: 1001, errmsg: "描述最长9000字" }); + if (!params.title) return Promise.resolve({errno: 1001, errmsg: "请输入标题"}); + if (params.title && params.title.length > 100) return Promise.resolve({errno: 1001, errmsg: "标题最长100字"}); + if (params.desc && params.desc.length > 9000) return Promise.resolve({errno: 1001, errmsg: "描述最长9000字"}); isMobile && token && (params = params || {}) && (params.token = token); return axios.post(`${ base }/api/z39task`, params).then(res => res.data); }; export const taskSet = params => { - if (params.title != undefined && params.title.length == 0) return Promise.resolve({ errno: 1001, errmsg: "请输入标题" }); - if (params.title && params.title.length > 100) return Promise.resolve({ errno: 1001, errmsg: "标题最长100字" }); - if (params.desc && params.desc.length > 9000) return Promise.resolve({ errno: 1001, errmsg: "描述最长9000字" }); + if (params.title != undefined && params.title.length == 0) return Promise.resolve({errno: 1001, errmsg: "请输入标题"}); + if (params.title && params.title.length > 100) return Promise.resolve({errno: 1001, errmsg: "标题最长100字"}); + if (params.desc && params.desc.length > 9000) return Promise.resolve({errno: 1001, errmsg: "描述最长9000字"}); isMobile && token && (params = params || {}) && (params.token = token); return axios.put(`${ base }/api/z39task`, params).then(res => res.data); }; export const taskDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39task`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39task`, {"params": params}).then(res => res.data); }; export const taskMend = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/apix/z39time/taskmend`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/apix/z39time/taskmend`, {"params": params}).then(res => res.data); }; export const taskOne = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/apix/z39time/taskone`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/apix/z39time/taskone`, {"params": params}).then(res => res.data); }; // ------------------------- 项目 rest相关处理 ------------------------- export const projects = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39projects`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39projects`, {"params": params}).then(res => res.data); }; export const projectGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/api/z39project`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/api/z39project`, {"params": params}).then(res => res.data); }; export const projectAdd = params => { - if (params.title && params.title.length > 15) return Promise.resolve({ errno: 1001, errmsg: "标题最长15字" }); - if (params.desc && params.desc.length > 100) return Promise.resolve({ errno: 1001, errmsg: "描述最长100字" }); + if (params.title && params.title.length > 15) return Promise.resolve({errno: 1001, errmsg: "标题最长15字"}); + if (params.desc && params.desc.length > 100) return Promise.resolve({errno: 1001, errmsg: "描述最长100字"}); isMobile && token && (params = params || {}) && (params.token = token); return axios.post(`${ base }/api/z39project`, params).then(res => res.data); }; export const projectSet = params => { - if (params.title && params.title.length > 15) return Promise.resolve({ errno: 1001, errmsg: "标题最长15字" }); - if (params.desc && params.desc.length > 100) return Promise.resolve({ errno: 1001, errmsg: "描述最长100字" }); + if (params.title && params.title.length > 15) return Promise.resolve({errno: 1001, errmsg: "标题最长15字"}); + if (params.desc && params.desc.length > 100) return Promise.resolve({errno: 1001, errmsg: "描述最长100字"}); isMobile && token && (params = params || {}) && (params.token = token); return axios.put(`${ base }/api/z39project`, params).then(res => res.data); }; export const projectDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39project`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39project`, {"params": params}).then(res => res.data); }; // ------------------------- 项目成员邀请 处理 ------------------------- export const inviteGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39invite`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39invite`, {"params": params}).then(res => res.data); }; export const inviteTitleGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/apix/z39time/getinvitetitle`, { "params": params }).then(res => res.data); + return http.get(`${ base }/apix/z39time/getinvitetitle`, {"params": params}).then(res => res.data); }; // ------------------------- 标签 rest相关处理 ------------------------- export const tagGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39tag`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39tag`, {"params": params}).then(res => res.data); }; export const tagAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -421,7 +422,7 @@ export const tagSet = params => { }; export const tagDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39tag`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39tag`, {"params": params}).then(res => res.data); }; export const tagsAdd = params => { @@ -437,26 +438,20 @@ export const tagTmpPut = params => { return axios.put(`${ base }/api/z39tagtmp`, params).then(res => res.data); }; export const tagTmpGet = params => { - return axios.get(`${ base }/api/z39tagtmp`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/api/z39tagtmp`, {"params": params}).then(res => res.data); }; export const tagTmpDel = params => { - return axios.delete(`${ base }/api/z39tagtmp`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39tagtmp`, {"params": params}).then(res => res.data); }; // ------------------------- 日报文章 rest相关处理 ------------------------- export const blogs = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/api/z39blogs`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/api/z39blogs`, {"params": params}).then(res => res.data); }; export const blogGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/api/z39blog`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/api/z39blog`, {"params": params}).then(res => res.data); }; -export const blogFileGet = filename => { - // 跨域问题 - return axios.get(`${ base }${ filename }`).then(res => { - res.data - }); -} export const blogAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); return axios.post(`${ base }/api/z39blog`, params).then(res => res.data); @@ -471,7 +466,7 @@ export const blogContentUpdate = params => { } export const blogDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39blog`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39blog`, {"params": params}).then(res => res.data); }; // ------------------------- 项目成员 rest相关处理 ------------------------- @@ -481,7 +476,7 @@ export const blogDel = params => { // }; export const memberGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.get(`${ base }/api/z39friend`, { "params": params }).then(res => res.data); + return axios.get(`${ base }/api/z39friend`, {"params": params}).then(res => res.data); }; export const memberAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -493,13 +488,13 @@ export const memberSet = params => { }; export const memberDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39friend`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39friend`, {"params": params}).then(res => res.data); }; // ------------------------- 重复任务 rest相关处理 ------------------------- export const repeatGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39repeat`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39repeat`, {"params": params}).then(res => res.data); }; export const repeatAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -511,13 +506,13 @@ export const repeatSet = params => { }; export const repeatDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39repeat`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39repeat`, {"params": params}).then(res => res.data); }; // ------------------------- 习惯养成 rest相关处理 ------------------------- export const habitGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39habit`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39habit`, {"params": params}).then(res => res.data); }; export const habitAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -529,13 +524,13 @@ export const habitSet = params => { }; export const habitDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39habit`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39habit`, {"params": params}).then(res => res.data); }; // ------------------------- 标签 rest相关处理 ------------------------- export const tagitemsGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39tagitem`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39tagitem`, {"params": params}).then(res => res.data); }; export const tagitemsAdd = params => { return axios.post(`${ base }/api/z39tagitem`, params).then(res => res.data); @@ -543,7 +538,7 @@ export const tagitemsAdd = params => { export const tagitemGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39tagitem`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39tagitem`, {"params": params}).then(res => res.data); }; export const tagitemAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -555,12 +550,12 @@ export const tagitemSet = params => { }; export const tagitemDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39tagitem`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39tagitem`, {"params": params}).then(res => res.data); }; // ------------------------- 任务音频录音 rest相关处理 ------------------------- export const audioGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39audio`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39audio`, {"params": params}).then(res => res.data); }; export const audioAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -572,13 +567,13 @@ export const audioSet = params => { }; export const audioDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39audio`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39audio`, {"params": params}).then(res => res.data); }; // ------------------------- 任务提醒的闹钟 rest相关处理 ------------------------- export const clockGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/api/z39clock`, { "params": params }).then(res => res.data); + return http.get(`${ base }/api/z39clock`, {"params": params}).then(res => res.data); }; export const clockAdd = params => { isMobile && token && (params = params || {}) && (params.token = token); @@ -590,10 +585,10 @@ export const clockSet = params => { }; export const clockDel = params => { isMobile && token && (params = params || {}) && (params.token = token); - return axios.delete(`${ base }/api/z39clock`, { "params": params }).then(res => res.data); + return axios.delete(`${ base }/api/z39clock`, {"params": params}).then(res => res.data); }; // 任务提醒方式的开通状态获取 export const noticeStateGet = params => { isMobile && token && (params = params || {}) && (params.token = token); - return http.get(`${ base }/apix/z39notice/noticestate`, { "params": params }).then(res => res.data); + return http.get(`${ base }/apix/z39notice/noticestate`, {"params": params}).then(res => res.data); }; diff --git a/pc_vue/src/views/note/note.vue b/pc_vue/src/views/note/note.vue index ce5e1ec7..cda84175 100644 --- a/pc_vue/src/views/note/note.vue +++ b/pc_vue/src/views/note/note.vue @@ -70,7 +70,7 @@
    -
    +