安装依赖
npm i axios --save
引入
const axios = require('axios');
使用实例eggjs 使用高德地图查询天气
...
yekong
3年前 (2022-02-02)
喜欢
computed: {
remark: function() {
var msg = this.item.remark.replace(/<\/?[^>]*>/g, ''); //去除HTML Tag
msg = msg.replace(/...
yekong
3年前 (2022-01-31)
喜欢
截取前24个字符
value.substring(0,24)
...
yekong
3年前 (2022-01-31)
喜欢
<template>
<div class="avatar">
<u--image width="64rpx" height="64rpx" :src="configs.f...
yekong
3年前 (2022-01-31)
喜欢
uniapp vue 过滤内容显示组件
/**
* @Author: 858834013@qq.com
* @Name: userType
* @Date: 2022年01月31日
* @Desc: 根据类型返回内容
*/
<template>
<div>...
yekong
3年前 (2022-01-31)
喜欢
uniapp 开发时,发现使用了u-navbar 再在下面使用吸顶u-sticky 会出现重贴的情况
可以调整一下,将想要吸顶的地方和u-navbar放在一块
调整前
<u-navbar leftText=" " leftIconColor="...
yekong
3年前 (2022-01-30)
喜欢
uniapp 开发自定义确认弹窗
<template>
<div>
<div @click="show=true">
<slot></slot>
</div>
<...
yekong
3年前 (2022-01-29)
喜欢
uniapp开发 结合uview单选框样式自定义
<template>
<view class="group_8">
<text class="text_15">添加外部链接地址</text...
yekong
3年前 (2022-01-28)
喜欢
uniapp 开发时,经常会用到瀑布流的效果。记录一下
代码
<template>
<view class="page">
<div class="collectiontotal">
共收藏...
yekong
3年前 (2022-01-27)
喜欢
uniapp开发底部自定义组件。
<template>
<view class="tab-bar-body">
<view class="tab-bar">
<view v-if=&q...
yekong
3年前 (2022-01-27)
喜欢