uniapp 动态修改顶部导航栏右侧按钮 titleNView(APP-PLUS、H5) 1 <script> 2 export default { 3 onReady() { 4 // 已渲染 5 var pages = getCurrentPages(); 6 var page = pages[pages.length - 1]; 7 8 // #ifdef H5 9 document.querySelector('.uni-page-head-ft .uni-page-head-btn ....
// #ifdef H5if(show){if(index===0){document.querySelectorAll('.uni-page-head-hd .uni-page-head-btn')[1].classList.add('uni-page-head-btn-red-dot');}else{document.querySelector('.uni-page-head-ft .uni-page-head-btn').classList.add('uni-page-head-btn-red-dot');}}else{if...
<template> <view id="k"> <view class="u-page"> <uni-page> <uni-page-head uni-page-head-type="default" style="background-color: #f1f1f1"> <div class="uni-page-head" style="background-color: #f1f1f1;color: rgb(0, 0, 0);"> <div class="uni-page-head-hd" style="margin-...
uni.pageScrollTo({ scrollTop: 99999, duration: 0, //小程序如果有滚动效果 input的焦点也会随着页面滚动... }); },150) } // #endif // #ifndef MP-WEIXIN uni.pageScrollTo({ scrollTop: 99999, duration: 100 }); // #endif if(this.showFunBtn){ this.showFunBtn = false; } // #ifde...
<template><view><page-headtitle="通过scheme打开三方app示例"></page-head><buttonclass="button"@click="openBrowser('https://uniapp.dcloud.io/h5')">使用浏览器打开指定URL</button><buttonclass="button"@click="openMarket()">使用应用商店打开指定App</button><buttonclass="button"@click="openMark...
<page-head title="通过scheme打开三方app示例"></page-head> <button class="button" @click="openBrowser('https://uniapp.dcloud.io/h5')">使用浏览器打开指定URL</button> <button class="button" @click="openMarket()">使用应用商店打开指定App</button> ...
class: "uni-page-head-btn", onClick: _cache[1] || (_cache[1] = (...args) => $options._back(...args)) onClick: _cache[1] || (_cache[1] = (...args) => $options._back && $options._back(...args)) }, [ createVNode("i", { style: {color: _ctx.color, fontSize:...
var v= document.getElementsByClassName('uni-page-head-btn')v[0].style.display='' 2023-04-12 回复喜欢 wjjhhh app上不行 2022-08-17 回复喜欢 南柯一梦 完全🉑 2021-07-13 回复喜欢 Okey 我这边写的代码好像是不行 2021-01-29 回复喜欢 推荐阅读 uniapp实现滑...
/deep/.uni-page-head { display: none !important;z-index: -1 !important; } /* #endif */ </style> 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26.
<view class="btn-area"> <button @tap="bindSendDanmu" class="page-body-button" formType="submit">发送弹幕</button> </view> </view> </view> </view> </template> <script> export default { data() { return { title: 'video', ...