uni-App
柔光dyx
这个作者很懒,什么都没留下…
展开
-
uni-app中使用jsencrypt
1.在工具栏的”视图“下打开终端或者ctrl+`2.安装jsencrypt ,安装的东西都会在node_module下npm i jsencrypt3.在需要加密的文档中引入import JSEncrypt from '../../node_modules/jsencrypt/bin/jsencrypt.js'4.js部分var encrypt = new JSEncrypt(); let publicKye = `-----BEGIN PUBLIC KEY-----MIGfMA0GC原创 2021-06-02 15:16:44 · 2296 阅读 · 0 评论 -
uni-app知识点2
一、路由跳转的时候传值//在起始页面跳转到test.vue页面并传递参数uni.navigateTo({ url: 'test?id=1&name=uniapp'});// 在test.vue页面接受参数export default { onLoad: function (option) { //option为object类型,会序列化上个页面传递的参数 console.log(option.id); //打印出上个页面传递的参数。 con原创 2021-05-21 12:00:41 · 102 阅读 · 0 评论 -
uni-app 动态修改导航名称
一级页面methods: { //在点击list跳转的时候携带id传参到listSecond页面 toLs(index,name) { this.getIndex = index uni.navigateTo({ // url: "../listSecond/listSecond?id=" + this.id url: `../listSecond/listSecond?id=${this.id}&name=${name}` }) }原创 2021-04-30 13:58:15 · 739 阅读 · 0 评论 -
uni-App使用1
uni-App:接口调用:get方式: function() { // 发起请求 uni.request({ url: '/captcha/sent?m=1', //接口地址,通过?可以传递,或者{}。 method:"GET", success: (res) => { console.log(res) } }); }post方式: function() { /原创 2021-04-15 13:23:56 · 71 阅读 · 0 评论