随笔分类 -  Uni-app

摘要:一、效果图 二、代码示例 qianming.js export const qianming = { data() { return { windowWidth: 0, pixelRatio: 0, context: null, points: [], oldPoints: [], qm_width 阅读全文
posted @ 2024-07-27 15:51 样子2018 阅读(246) 评论(0) 推荐(0) 编辑
摘要:一、文档 https://uniapp.dcloud.net.cn/api/plugins/universal-links.html#%E8%83%8C%E6%99%AF%E4%BB%8B%E7%BB%8D 二、配置 1、登录苹果开发者中心找到对应的APPID,配置Associated Domain 阅读全文
posted @ 2024-05-20 09:56 样子2018 阅读(1261) 评论(0) 推荐(0) 编辑
摘要:一、开发文档 https://uniapp.dcloud.net.cn/tutorial/app-oauth-apple.html 二、示例 appleLogin() { uni.login({ provider: 'apple', success: function(loginRes) { con 阅读全文
posted @ 2024-05-20 09:22 样子2018 阅读(273) 评论(0) 推荐(0) 编辑
摘要:一、配置 1、uni-push1.0文档 https://uniapp.dcloud.net.cn/unipush-v1.html 2、服务端推送文档 https://docs.getui.com/getui/server/rest_v2/push/ 二、客户端 1、App.vue import p 阅读全文
posted @ 2024-03-23 10:06 样子2018 阅读(1060) 评论(0) 推荐(0) 编辑
摘要:一、配置 1、微信开放平台,创建移动应用与绑定小程序 2、manifest.json,填写移动应用的appid 二、打开小程序 plus.share.getServices(res => { var is_weixin = res.find(i => i.id 'weixin'); if (is_w 阅读全文
posted @ 2024-03-23 09:44 样子2018 阅读(524) 评论(0) 推荐(0) 编辑
摘要:一、安装环境 可从Oracle官方下载jre安装包:https://www.oracle.com/java/technologies/downloads/#java8 将jre命令添加到临时环境变量中 二、生成证书 keytool -genkey -alias testalias -keyalg R 阅读全文
posted @ 2024-01-18 10:03 样子2018 阅读(1539) 评论(0) 推荐(0) 编辑
摘要:一、需求 没有登录时直接跳转到登录页,登录成功后,每次都跳转到首页。 二、实现 1、在manifest.json中关闭默认启动界面:splashscreen中属性都改为false 2、在App.vue中添onLaunch中加如下代码 阅读全文
posted @ 2024-01-15 10:09 样子2018 阅读(1010) 评论(0) 推荐(0) 编辑
摘要:插件地址:https://ext.dcloud.net.cn/plugin?id=9055 一、效果图 阅读全文
posted @ 2022-12-02 15:55 样子2018 阅读(361) 评论(0) 推荐(0) 编辑
摘要:一、代码 <template> <view> </view> </template> <script> export default { name:"child", data() { return { }; }, props: { }, beforeCreate() { console.log('实 阅读全文
posted @ 2022-11-26 16:39 样子2018 阅读(114) 评论(0) 推荐(0) 编辑
摘要:一、功能介绍 通过公众号发送模板消息跳转到小程序查看工资条详情。支持手写签名、确认。 二、效果图 三、后端效果图 阅读全文
posted @ 2022-11-26 15:10 样子2018 阅读(536) 评论(0) 推荐(0) 编辑
摘要:一、安装插件 npm i dplayer -S npm i hls.js -S 二、代码示例 <template> <view class="content"> <div id="dplayer" style="height: 450px; width: 800rpx;"></div> </view 阅读全文
posted @ 2022-09-22 16:33 样子2018 阅读(1733) 评论(0) 推荐(0) 编辑
摘要:一、效果图 阅读全文
posted @ 2022-05-09 10:55 样子2018 阅读(288) 评论(0) 推荐(0) 编辑
摘要:一、效果图 二、http.js网络请求封装 import { config } from '../config.js' import md5 from 'js-md5' import { aes_encrypt, aes_decrypt } from '@/utils/aes_endecrypt.j 阅读全文
posted @ 2022-05-04 14:22 样子2018 阅读(1139) 评论(0) 推荐(0) 编辑
摘要:一、效果图 阅读全文
posted @ 2021-06-19 08:42 样子2018 阅读(512) 评论(0) 推荐(0) 编辑
摘要:一、代码 在manifest.json中配置,官网文档:https://uniapp.dcloud.io/component/mp-weixin-plugin "mp-weixin" : { "appid" : "", "setting" : { "urlCheck" : false, "minif 阅读全文
posted @ 2021-06-05 11:21 样子2018 阅读(223) 评论(0) 推荐(0) 编辑
摘要:一、效果图 阅读全文
posted @ 2020-04-24 09:59 样子2018 阅读(234) 评论(0) 推荐(0) 编辑
摘要:一、下载uni-app插件 下载地址:https://ext.dcloud.net.cn/plugin?id=183 二、示例 <view class="content padding-lr"> <uParse :content="goodsInfo.content" :imageProp="ima 阅读全文
posted @ 2020-04-03 14:38 样子2018 阅读(12600) 评论(1) 推荐(0) 编辑
摘要:一、效果图 1、小程序 二、源码 <template> <view> <scroll-view scroll-x class="bg-white nav" scroll-with-animation :scroll-left="scrollLeft"> <view class="cu-item" : 阅读全文
posted @ 2020-03-23 14:15 样子2018 阅读(2390) 评论(2) 推荐(0) 编辑
摘要:一、APP <template> <view> <!-- #ifdef APP-PLUS --> <button class="" @click="appLogin">APP微信授权登录</button> <!-- #endif --> </view> </template> <script> ex 阅读全文
posted @ 2020-03-19 14:34 样子2018 阅读(12004) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示