.bgf /deep/.u-index-anchor--active {
top: var(--status-bar-height);
}
...
yekong
3周前 (03-26) 71℃
1喜欢
页面添加滚动事件
onPageScroll(res) {
uni.$emit('onPageScroll', res.scrollTop);
},
对应的子组件添加监听
mounted() {
va...
yekong
3周前 (03-26) 77℃
0喜欢
html
<div class="daohang" :class="{ flex: topx < top }">
<div class="leftr" @click=&qu...
yekong
3周前 (03-26) 70℃
0喜欢
修改pages.json
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText&...
yekong
3周前 (03-24) 73℃
0喜欢
onLaunch: function () {
// app 锁定横屏
// plus.screen.lockOrientation("landscape-primary");
// app 锁定竖屏
plus.scree...
yekong
4周前 (03-15) 143℃
0喜欢
main.js 引用 /MinRequest.js /api.js
import Vue from 'vue'
import App from './App'
import MinRequest from './MinRequest.js...
yekong
2个月前 (02-24) 633℃
6喜欢
原生标题栏按钮配置
{
"path": "pages/goods/goods-admin",
"style": {
"naviga...
yekong
2个月前 (01-31) 290℃
2喜欢
this.$nextTick(function() {
setTimeout(() => { uni.pageScrollTo({scrollTop: 99999, duration: 0});}, 50);
...
yekong
3个月前 (01-27) 494℃
3喜欢
安装依赖
npm install --save vuex-persistedstate
修改store/index.js
import createPersistedState from 'vuex-persistedstate'
const vuexPers...
yekong
3个月前 (01-25) 233℃
0喜欢
<scroll-view
scroll-y
:scroll-top="scrollTop">
</scroll-view>
gotop() {
...
yekong
3个月前 (01-20) 518℃
0喜欢