uniapp开发item组件封装,可以用于后期微调使用。
<template>
<view class="item" :class="{border:showBorder}">
<div class=&...
3年前 (2022-01-25)
喜欢
TypeError: Cannot read property 'name' of undefined
15:18:22.800 at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/no...
3年前 (2022-01-24)
喜欢
源码
<template>
<view v-if="status==6" class="evaluation" @click="evaluation">
评价订单
</view&g...
3年前 (2022-01-23)
喜欢
uniapp开发中需要的常用按钮,为了避免重复工作记录下来,方面后期复用。
源码
<template>
<view>
<view v-if="show">
<view v-if="status==...
3年前 (2022-01-23)
喜欢
var timestamp = (new Date()).valueOf();
...
4年前 (2022-01-21)
喜欢
控制器
async add() {
const { ctx } = this;
ctx.body = {
code: 200,
data: ctx.request.body,
};
}
路由
module.exports ...
4年前 (2022-01-21)
喜欢
invalid csrf token
如果是开发模式的话,可以暂时关闭,关闭方法
找到config/config.default.js
添加csrf配置,关闭csrf
// csrf
config.security = {
csrf: {
enabl...
4年前 (2022-01-21)
喜欢
严格传参模式
除了严格模式还有普通的传参模式
控制器
async strictGet() {
const { ctx } = this;
ctx.body = {
code: 200,
data: ctx.params.name,
...
4年前 (2022-01-21)
喜欢
普通传参模式
除了常规模式还有严格的传参模式
控制器
async test() {
const { ctx } = this;
ctx.body = {
code: 200,
data: ctx.query,
};
...
4年前 (2022-01-21)
喜欢
uniapp开发,需要一个页面效果是,选择城市区域,将对应区域的街道渲染出来,然后可以实现复选,在网上并没有找到符合心意的效果,只能自己写了。
效果源码
结合城市选择组件进行使用
<template>
<view class="changepwd...
4年前 (2022-01-20)
喜欢