
小程序
记录日常开发
图灵晚辈
每天进步一点点
展开
-
小程序背景图加二维码合成海报
<view class="pages"> <view class="box"> <swiper bindchange="swiperChange" class="swiper" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-active-color="#FF8722..原创 2021-10-14 18:46:10 · 892 阅读 · 0 评论 -
小程序解决安卓端van-datetime-picker选择时间时,自己滚动问题
代码 <van-popup show="{{ showtime }}" round position="bottom" custom-style="height: 346px" bind:close="onCloseTime" close-icon="cross" closeable> <view class="pbox2 mt-100"> <van-datetime-picker type="year-month" min-date="{{ minDate }}" ma原创 2021-09-05 17:35:35 · 1957 阅读 · 2 评论 -
小程序获取定位扫码打卡功能
<view bindtap="onClockIn"></view> app.json "permission": { "scope.userLocation": { "desc": "你的位置信息将用于小程序定位" } }, // 扫码打卡 onClockIn() { let vm = this wx.getSetting({ success(res) { // res.authSetting['scope.原创 2021-05-14 16:42:41 · 1986 阅读 · 0 评论 -
小程序request对象封装案例
const app = getApp() // 引入app // 根据路由显示不同的加载文字 const setTitle = (url) => { let title = '加载中' switch (url) { case '/user/login': title = '登陆中' break; default: break; } return title }原创 2021-05-08 10:05:11 · 172 阅读 · 0 评论 -
小程序出现Component is not found in path “xxx“ (using by “xxx“)
这个问题是说明引入路径出错 需要到组件json文件usingComponents查看即可原创 2021-04-06 15:56:24 · 2178 阅读 · 0 评论 -
Vue使用wx-open-launch-weapp跳转小程序
官方文档 代码如下 <div class="launchbox"> <!-- gh_c7bf41c3c50e mainpages/home/index --> <wx-open-launch-weapp id="launch-btn" username="跳转小程序id" path="跳转地址" //pages/park/home @launch="onLaunch" @er原创 2021-03-10 17:45:41 · 558 阅读 · 0 评论