text-decoration:line-through
...
3年前 (2022-01-26)
喜欢
uniapp微信小程序开发,根据经纬度获取城市信息。
getcity(latitude, longitude) {
var that = this;
uni.request({
header: {
"Content-Type&quo...
3年前 (2022-01-26)
喜欢
getLocation() {
var that = this;
uni.getLocation({
type: 'wgs84',
geocode: true, //设置该参数为true可直接获取经纬度及城市信息
success: f...
3年前 (2022-01-26)
喜欢
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();
...
3年前 (2022-01-21)
喜欢
控制器
async add() {
const { ctx } = this;
ctx.body = {
code: 200,
data: ctx.request.body,
};
}
路由
module.exports ...
3年前 (2022-01-21)
喜欢
invalid csrf token
如果是开发模式的话,可以暂时关闭,关闭方法
找到config/config.default.js
添加csrf配置,关闭csrf
// csrf
config.security = {
csrf: {
enabl...
3年前 (2022-01-21)
喜欢