logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

2021-11-06 uniapp前置登录逻辑判断

uniapp前置登录逻辑判断需求:1、新用户直接登录。2、已经登录过的用户在后台验证token,验证通过则直接进入主界面,失败 则跳转到登录界面。实现:登录的逻辑判断主要写在app.vue中onLaunch: function() {console.log('App Launch')// 获取缓存中的登录数据let tokenRes = uni.getStorageSync('token');le

#uni-app
2021-10-08 uniapp页面跳转+传参

1、启动模拟接口1)node ./src/app.js在D:\uniapp素材\heima_shop_server目录下2、在uni.request函数中的成功函数要这么写success: (res) => {this.results=res.data.message}这里缺少=>会得不到数据3、页面的跳转1)navigate跳转方法<navigator url="/pages/

#vue.js#javascript#uni-app
2021-10-08 uniapp验证码登录

uniapp获取验证码登录目标界面页面代码<template><view class="wrap"><view class="top"></view><view class="content"><view class="title">欢迎登录刷题app</view><view class="c_input"&

#uni-app
2021-11-06 uniapp解决scroll-view滑动事件失效问题@scrolltolower

uniapp解决scroll-view滑动事件失效问题@scrolltolower1、首先scroller-view需要给定高度,这里的高度最好不要是width:num%这种类型的,很容易不生效。2、父容器最好也指定高度下面通过举例来说明<template><view class="main"><scroll-view class="scroll-content" s

#uni-app
2021-11-07 Service层注解@Service失败原因及解决办法

Service层注解@Service失败原因及解决办法直接上报错代码Error creating bean with name 'com.mp.mybatis.MybatisApplicationTests': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springfr

#java#spring boot#开发语言
到底了