使用百度vue-baidu-map
实际运行
代码
<template>
<div class="maps">
<div class="zhnj">
</div>
...
yekong
3年前 (2022-01-06)
喜欢
<template>
<view class="content">
<view class="header">
<div class="t...
yekong
3年前 (2022-01-06)
喜欢
api文件
config/api.js
const http = uni.$u.http
import qs from 'qs'
export const getcity = (id, config = {}) => http.get('/moc...
yekong
3年前 (2022-01-06)
喜欢
城市选择页面
<template>
<view class="citylist">
<scroll-view :style="{ height: windowH }" scroll-y...
yekong
3年前 (2022-01-06)
喜欢
宝塔
一个面板管理工具,用过wdcp 最后选择了宝塔,很多需要的功能基本都可以在后台一键安装,满足了
宝塔服务器面板,一键全能部署及管理,邀请连接
点我领取
ssl一键申请
可以在后台一键申请SSL证书,一键部署。轻松开启https
反向代理
前端项目部署到线上是接口时往往会出...
yekong
3年前 (2022-01-06)
喜欢
yApi在自己的服务器上安装了,但是为了减少服务器压力,需要关闭注册。
config.json添加
"closeRegister":true,
然后重启这里使用的pm2
pm2 restart 4
...
yekong
3年前 (2022-01-06)
喜欢
直接在宝塔 软件商店 搜索安装数据库即可
...
yekong
3年前 (2022-01-05)
喜欢
安装前需要先安装MongoDB数据库
安装
npm install -g yapi-cli --registry https://registry.npm.taobao.org
yapi server
配置
yapi server运行后会提示访问,进行配置,按照提示配置完成后...
yekong
3年前 (2022-01-05)
喜欢
官网
ApiPost = 接口调试+接口文档快速生成+接口文档规范化管理+Mock API+接口流程测试。
生成Mock数据
后端可以通过先编写Mock数据给前端,从而让前端提前进入接口调用、前端开发状态。
生成程序代码
ApiPost提供主流语言代码自动生成功能。每编写一个接口...
yekong
3年前 (2022-01-04)
喜欢
var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
console.log(randomNum)
...
yekong
3年前 (2022-01-04)
喜欢