route(Object)
此为一个路由跳转方法,内部是对uni多个路由跳转api的封装,更方便使用
export default{
onLoad() {
setTimeout(() => {
uni.$u.route({
url: 'pages/co...
yekong
2年前 (2022-04-28) 2226℃
0喜欢
guid(length = 32, firstU = true, radix = 62)
该函数可以生产一个全局唯一、随机的guid,默认首字母为u,可以用于当做元素的id或者class名等需要唯一,随机字符串的地方,因为id或者class不能以数字开头。
length <...
yekong
2年前 (2022-04-28) 4144℃
2喜欢
Property or method "$u" is not defined on the instance but referenced during render. Make sure that this property is reactive, eit...
yekong
2年前 (2022-04-28) 2579℃
0喜欢
uniapp开发 使用uview http请求显示加载状态。
加载状态
uni.showLoading({
title: 'loading'
})
代码封装
// 此vm参数为页面的实例,可以通过它引用vuex中的变量
import configs from './con...
yekong
2年前 (2022-04-12) 2612℃
2喜欢
uniapp开发一个微信小程序,需要用到一个日历排班功能。
但是遇到一个问题就是,点击更新了内容后,日历上的自定义内容没有更新。排查发现组件只会在show变化时才会更新。修改了一下源文件搞定。
找到 uview/uni_modules/uview-ui/components/u...
yekong
2年前 (2022-02-15) 3180℃
8喜欢
uniapp 开发app时,需要上传图片后,将图片拼接成一个字符串。穿给接口。
<template>
<u-upload :width='width+"rpx"' :height='height+"rpx"' :file...
yekong
2年前 (2022-02-15) 1970℃
1喜欢
uniapp开发,图片处理交给图片组件
<template>
<u--image lazyLoad="true" :fade="true" duration="450" :width="wi...
yekong
2年前 (2022-02-13) 2153℃
1喜欢
<template>
<div class="comprehensive">
<div class="comprehensive-num">
{{data.average}}<text...
yekong
2年前 (2022-02-13) 903℃
0喜欢
uniapp 微信小程序使用腾讯云存储cos上传图片组件二次封装,实现图片上传,此组件是基于腾讯云存储cos上传,使用前,需要安装对应的组件和依赖。uniapp 微信小程序使用腾讯云对象存储cos 文档地址
<template>
<div class=&qu...
yekong
2年前 (2022-02-09) 1643℃
1喜欢
uniapp 开发 需要一些模板以便于快速实现,避免重复工作
<template>
<view class="flex-col page">
<view class="flex-col group_5"&...
yekong
2年前 (2022-02-09) 1299℃
0喜欢
uniapp使用uview开发微信小程序日历动态渲染
<template>
<view>
<u-calendar title="可服务时间" @close="gethide" :show="s...
yekong
2年前 (2022-02-08) 1300℃
5喜欢
uniapp 开发时,发现使用了u-navbar 再在下面使用吸顶u-sticky 会出现重贴的情况
可以调整一下,将想要吸顶的地方和u-navbar放在一块
调整前
<u-navbar leftText=" " leftIconColor="...
yekong
2年前 (2022-01-30) 2041℃
0喜欢
uniapp 开发自定义确认弹窗
<template>
<div>
<div @click="show=true">
<slot></slot>
</div>
<...
yekong
2年前 (2022-01-29) 2886℃
4喜欢
uniapp开发 结合uview单选框样式自定义
<template>
<view class="group_8">
<text class="text_15">添加外部链接地址</text...
yekong
2年前 (2022-01-28) 2584℃
2喜欢
<template>
<view class="list">
<tab></tab>
<div class="listitem" @click="getplay(it...
yekong
2年前 (2022-01-26) 1747℃
2喜欢
uniapp开发item组件封装,可以用于后期微调使用。
<template>
<view class="item" :class="{border:showBorder}">
<div class=&...
yekong
2年前 (2022-01-25) 909℃
0喜欢
TypeError: Cannot read property 'name' of undefined
15:18:22.800 at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/no...
yekong
2年前 (2022-01-24) 2731℃
3喜欢
源码
<template>
<view v-if="status==6" class="evaluation" @click="evaluation">
评价订单
</view&g...
yekong
2年前 (2022-01-23) 902℃
2喜欢
uniapp开发中需要的常用按钮,为了避免重复工作记录下来,方面后期复用。
源码
<template>
<view>
<view v-if="show">
<view v-if="status==...
yekong
2年前 (2022-01-23) 1348℃
0喜欢
uniapp开发,需要一个页面效果是,选择城市区域,将对应区域的街道渲染出来,然后可以实现复选,在网上并没有找到符合心意的效果,只能自己写了。
效果源码
结合城市选择组件进行使用
<template>
<view class="changepwd...
yekong
2年前 (2022-01-20) 858℃
3喜欢