随笔分类 - Uni-app
摘要:一、效果图 二、代码示例 qianming.js export const qianming = { data() { return { windowWidth: 0, pixelRatio: 0, context: null, points: [], oldPoints: [], qm_width
阅读全文
摘要:一、文档 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
阅读全文
摘要:一、开发文档 https://uniapp.dcloud.net.cn/tutorial/app-oauth-apple.html 二、示例 appleLogin() { uni.login({ provider: 'apple', success: function(loginRes) { con
阅读全文
摘要:一、配置 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
阅读全文
摘要:一、配置 1、微信开放平台,创建移动应用与绑定小程序 2、manifest.json,填写移动应用的appid 二、打开小程序 plus.share.getServices(res => { var is_weixin = res.find(i => i.id 'weixin'); if (is_w
阅读全文
摘要:一、安装环境 可从Oracle官方下载jre安装包:https://www.oracle.com/java/technologies/downloads/#java8 将jre命令添加到临时环境变量中 二、生成证书 keytool -genkey -alias testalias -keyalg R
阅读全文
摘要:一、需求 没有登录时直接跳转到登录页,登录成功后,每次都跳转到首页。 二、实现 1、在manifest.json中关闭默认启动界面:splashscreen中属性都改为false 2、在App.vue中添onLaunch中加如下代码
阅读全文
摘要:插件地址:https://ext.dcloud.net.cn/plugin?id=9055 一、效果图
阅读全文
摘要:一、代码 <template> <view> </view> </template> <script> export default { name:"child", data() { return { }; }, props: { }, beforeCreate() { console.log('实
阅读全文
摘要:一、功能介绍 通过公众号发送模板消息跳转到小程序查看工资条详情。支持手写签名、确认。 二、效果图 三、后端效果图
阅读全文
摘要:一、安装插件 npm i dplayer -S npm i hls.js -S 二、代码示例 <template> <view class="content"> <div id="dplayer" style="height: 450px; width: 800rpx;"></div> </view
阅读全文
摘要:一、效果图 二、http.js网络请求封装 import { config } from '../config.js' import md5 from 'js-md5' import { aes_encrypt, aes_decrypt } from '@/utils/aes_endecrypt.j
阅读全文
摘要:一、代码 在manifest.json中配置,官网文档:https://uniapp.dcloud.io/component/mp-weixin-plugin "mp-weixin" : { "appid" : "", "setting" : { "urlCheck" : false, "minif
阅读全文
摘要:一、下载uni-app插件 下载地址:https://ext.dcloud.net.cn/plugin?id=183 二、示例 <view class="content padding-lr"> <uParse :content="goodsInfo.content" :imageProp="ima
阅读全文
摘要:一、效果图 1、小程序 二、源码 <template> <view> <scroll-view scroll-x class="bg-white nav" scroll-with-animation :scroll-left="scrollLeft"> <view class="cu-item" :
阅读全文
摘要:一、APP <template> <view> <!-- #ifdef APP-PLUS --> <button class="" @click="appLogin">APP微信授权登录</button> <!-- #endif --> </view> </template> <script> ex
阅读全文