uniapp
一个强大的框架,小程序,移动端APP
清风明月**
这个作者很懒,什么都没留下…
展开
-
利用数组map遍历得到新数组
【代码】利用数组map遍历得到新数组。原创 2022-08-23 17:24:52 · 783 阅读 · 0 评论 -
文字动态轮播功能
示例:代码展示:原创 2022-06-11 17:34:03 · 187 阅读 · 0 评论 -
uniapp锚点定位
给最外层大盒子添加了高度(min-height: 100%;) goTop(){ uni.createSelectorQuery().select('.shoplist').boundingClientRect(data => {// 需要跳转到的节点 uni.createSelectorQuery().select('.goods').boundingClientRect(res => { // 当前页面最外层节点 // console.log(data...原创 2022-05-26 15:04:03 · 277 阅读 · 0 评论 -
uniapp点击加载更多
<view class="presons"> <view class="record"> <view class="record_a">跟团记录</view> <view class="uni-list-cell-db">只看我带来的订单</view> <switch @change="switch2Change" /> </view> <view class..原创 2022-05-25 19:06:15 · 482 阅读 · 0 评论 -
uniapp写微信授权登录
html部分<button class="login-btn" type="primary" @click="getUserInfo"> 微信用户一键登录 </button>js部分 /** * * 获取用户信息 */ getUserInfo() { // 展示加载框 uni.showLoading({ title: '加载中', }); u...原创 2022-05-24 16:52:46 · 1098 阅读 · 2 评论 -
uniapp编写单选按钮
<view style="display: flex;justify-content: space-between;"> <h3>切换店铺营业状态</h3> <uni-icons type="closeempty" size="20"></uni-icons> </view> <view style="display: flex;flex-direction: column;">...原创 2022-05-20 15:17:43 · 271 阅读 · 0 评论 -
uniapp下拉弹出层
<html> <picker @change="onRecipientChangeSelect" :value="recipientIndex" :range="recipient" range-key="name"> <view class="uni-input p-0"> {{recipient[recipientIndex].name}}<text class="iconfo...原创 2022-05-11 15:49:40 · 832 阅读 · 0 评论 -
uniapp自定义导航栏
<template> <view> <uni-nav-bar left-icon="left" @clickLeft="back"> <view class="titlenav" @click="onchange"> <text class="tit_a">{{titles}}</text> <uni-icons type="bottom" size="15" v-if="jiantou">...原创 2022-05-10 18:47:38 · 552 阅读 · 0 评论 -
uniapp全选与单选
<template> <view> <q-addBtn @openAdd="openPage('add')"></q-addBtn> <view class="d-flex a-center j-end bg-white"> <view class="flex-1"> <q-search @search="openPopupSearch"></q-search> </vie.原创 2022-04-19 13:39:38 · 567 阅读 · 0 评论