actooors / shumessage_web Goto Github PK
View Code? Open in Web Editor NEW我们致力于将SHU Message打造为SHU信息分享与交流平台。本项目是wap端
Home Page: https://www.shumsg.cn
License: GNU General Public License v3.0
我们致力于将SHU Message打造为SHU信息分享与交流平台。本项目是wap端
Home Page: https://www.shumsg.cn
License: GNU General Public License v3.0
评论选择图片后,切换到其他页面,图片不消失
已无法正常记录和还原scrollTop
动态页面的sticky表现异常
由于跨域问题,链接无法正常显示
在消息详情界面或者动态详情界面,当热门评论和最新评论重复出现某一条评论时候,给该评论点赞,热门评论和最新评论不会同步更改,回复也同理。
评论不能只评论图片,只选中图片的话发送按钮不弹出来
图片大小有限制
你好 想交流一下 dayjs 的使用方法
let now = dayjs()
let diff = now.diff(moment, 'seconds')
if (diff >= 60) {//超过60秒吗
diff = now.diff(moment, 'minutes')
if (diff >= 60) {//超过60分钟吗
diff = now.diff(moment, 'hours')
if (diff > 24) {//超过24小时吗
diff = now.diff(moment, 'months')
if (diff >= 1) {//超过1个月吗
if (diff >= 12) {//超过12个月吗
return `${now.diff(moment, 'years')}年前`
} else {
return `${diff}个月前`
}
} else {
return `${now.diff(moment, 'days')}天前`
}
} else {
return `${diff}小时前`
}
} else {
return `${diff}分钟前`
}
这里的代码可以使用 dayjs 官方的 relativeTime 插件实现呀 https://github.com/iamkun/dayjs/blob/dev/docs/en/Plugin.md#relativetime
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn')
dayjs.extend(relativeTime)
dayjs().from(dayjs('1990')) // 2 年前
从回复详情回退到评论详情时,滚动条回到了最上方,没有保存状态,这个体验很不好。
很多时候点击搜索需要两下才能正常响应
在页面内部仍然会出现橡皮筋效应:如scroll组件,将导致无法顺滑下拉刷新。
scroll组件首次数据渲染的loadIcon显示不出来了
目前由于升级了https,而学校站点一般都是http,会导致blocked:mixed-content,因而引入的外部css样式全部失败,站点都是无css的。
可以利用这个特点,写一个css静态文件,每个页面都引用它,使得页面布局较为舒适。
关注页面下拉时的toast很丑
关注页面的“没有更多了”位置不正确
如题,就是点了那三个按钮没有反应.点微信按钮的话苹果安卓都是有反应的.
在非seo页面进行分享时,分享的内容一直是第一次分享的内容,没有变化。
并且分享出去的页面url有问题,点开无法显示正确内容。
并且,建议在分享后隐藏分享bar。
选中一个评论,会在热门评论和最新评论的相同index下都选中。
拉起输入法后,回复框无法选中导致无法粘贴等操作。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.