
微信小程序
宇宙无敌超级暴龙兽
略略略
展开
-
微信小程序---实现手机号发送验证码登录
1.前端页面wxml<!--pages/logins/logins.wxml--><view class="container"> <view class="title">登录</view> <form catchsubmit="login"> <view class="inputView"> <input class="inputText" placeholder="请输入手机号" name=原创 2022-03-06 19:45:48 · 4199 阅读 · 1 评论 -
微信小程序--授权登录
1.wxml通过按钮触发绑定事件,来授权登录。<!-- 如果只是展示用户头像昵称,可以使用 <open-data /> 组件 --><open-data type="userAvatarUrl"></open-data><open-data type="userNickName"></open-data><!-- 需要使用 button 来授权登录 --><button type="primary"原创 2022-03-04 15:31:18 · 670 阅读 · 0 评论 -
微信小程序---获取单条数据
1.wxml(可以使用navigator标签,获取当前id数据)<view class="add"> <block wx:for="{{goodslog}}"> <view class="add1"> <navigator url="/pages/desn/desn?id={{item.id}}"> <image class="pic" src="/i原创 2022-01-16 23:18:28 · 1534 阅读 · 0 评论 -
微信小程序---实现授权登录
1.wxss页面 <button bindtap="getUserProfile"> 获取头像昵称 </button>2.在js中写入getUserProfile(e) { // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认 // 开发者妥善保管用户快速填写的头像昵称,避免重复弹窗 wx.getUserProfile({ desc: '用于完善会员资料', /.原创 2022-03-09 10:10:20 · 719 阅读 · 0 评论 -
微信小程序---实现tab选项卡
1.可以使用插件li-ui,根据个人情况修改详情信息。标签页 Tabs | Lin UI (talelin.com)<l-tabs bind:linchange="changeTabs"> <l-tabpanel tab="商品参数" key="one" slot="one"> <view class="tab-content">商品参数</view> </l-tabpanel>原创 2022-01-16 23:24:11 · 1172 阅读 · 0 评论 -
微信小程序 --- JWT接口鉴权
1.通过 composer 下载插件composer require firebase/php-jwt2.<?phpnamespace app\business; use Firebase\JWT\Key;use think\Exception; class Jwt{ public static function createJwt($userId = 'zq') { $key = md5('zq8876!@!'); //jwt的签发密原创 2022-03-13 19:54:47 · 1493 阅读 · 0 评论 -
微信小程序 ---接口频繁请求
1.通过composer 安装插件composer require topthink/think-throttle2.在 config/throttle.php 配置选项:// 缓存键前缀,防止键值与其他应用冲突 'prefix' => 'throttle_', // 缓存的键,true 表示使用来源ip 'key' => function($throttle, $request) { $user_id=$request->user_原创 2022-03-13 19:43:50 · 898 阅读 · 0 评论 -
微信小程序页面数据布局
1.在wxml里面写入,前端布局页面。 <view class="add"> <block wx:for="{{goodslog}}"> <view class="add1"> <navigator url="/pages/desn/desn?id={{item.id}}"> <image class="pic" src="/img/456.w原创 2022-01-16 23:12:06 · 669 阅读 · 0 评论 -
微信小程序---发送短信验证码时间限制次数
1.wxml页面<view class="container"> <view class="title">登录</view> <form catchsubmit="login"> <view class="inputView"> <input class="inputText" placeholder="请输入手机号" name="phone" bindinput="phone" /> <原创 2022-03-09 10:03:43 · 1675 阅读 · 1 评论 -
微信小程序实现轮播图
1.wwxx页面。<view class="box1" style="margin-top: -120px;"> <view class="container"> <view class="page-body" style="width:100%; height: 500px;"> <view class="page-section page-section-spacing swiper"> <swiper原创 2022-01-16 23:07:17 · 508 阅读 · 0 评论 -
微信小程序--实现下拉加载更多
1.前端的数据动态渲染<view class="box"> <block wx:for="{{list}}"> <navigator url="/pages/xiang/xiang"> <view class="box2"> <view> <image src="/img/iphone.png" style="width: 30%; height:原创 2022-03-06 19:53:43 · 530 阅读 · 0 评论 -
微信小程序实现简单下拉加载更多
微信小程序实现简单下拉加载更多原创 2022-06-12 20:55:49 · 2891 阅读 · 0 评论