
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
在项目中,会遇到列表页到详情页,然后回到列表页还停留在当前位置,退出列表页后取消页面缓存的需求,所以就用到了keepAlive动态缓存方法第一步:在路由里配置开启缓存:{path: '/p/:id/:pinyin',name: 'Atlas',component: () => import('@/pages/atlas'),meta: {requiresAuth: false,title:
原因场景:此处已塌陷解决方法:// 适配手机底部塌陷问题padding-bottom: env(safe-area-inset-bottom);完整css代码:.tabbars {position: fixed;z-index: 99;left: 0;right: 0;bottom: 0;display: flex;justify-content: center;align-items: cent
html:<!-- 拍照识别 --><uni-popup ref="photograph" type="center" :animation="false"><view class="popup-content photographCenter":style="'height: '+scrollheights+'px;box-sizing: border-box;bo
先看效果图:直接上代码:view片段:inputs是搜索关键词的值<view class="text" @click="gsClick(item,index)" v-for="(item,index) in 16" :key="index"><rich-text :nodes="`${this.brightKeyword('百度有限公司',inputs)}`"></r

业务需求:我需要用小程序web-view嵌入h5地图页面,然后点击h5页面导航功能调起小程序内置地图第一步: 现在你的h5项目导入或者链接式导入微信jssdkvue导入:npm install weixin-js-sdk --save连接式导入:http://res.wx.qq.com/open/js/jweixin-1.6.0.js然后,在需要的页面配置使用:此接口让后端封装好,直接去调用,注意
vue路由配置:const router = new VueRouter({base: process.env.BASE_URL,//hash模式下部署到服务器访问没问题,history就不行,需要在服务器上配置mode: 'history',routes})vue.config.js配置:module.exports = {lintOnSave: false,publicPath: proces
新建的uniapp项目会有个app.vue文件,在此文件下onLaunch应用生命周期封装一个方法(把全局变量定义一下):注意:onLaunch应用生命周期只会触发一次<script>export default {//全局变量globalData: {//用于判断用户是否登录(默认为否)userLogin: false,},onLaunch: function() {console.







