2020年3月3日

摘要: 开启倒计时,直接保存到vuex中,且存储到本地持久化 // state.js const runTime = localStorage.getItem('time'); paymentRunTime:runTime // mutations.js TimeReduction(state) { thi 阅读全文
posted @ 2020-03-03 00:36 LeeToLee 阅读(1270) 评论(0) 推荐(0)

2020年2月29日

摘要: element路由跳转 阅读全文
posted @ 2020-02-29 11:32 LeeToLee 阅读(3404) 评论(0) 推荐(0)

2020年2月28日

摘要: Uncaught TypeError: Cannot read property 'disabled' of null 阅读全文
posted @ 2020-02-28 22:03 LeeToLee 阅读(1626) 评论(0) 推荐(0)

2020年2月23日

摘要: vue 上传图片 阅读全文
posted @ 2020-02-23 22:56 LeeToLee 阅读(4878) 评论(0) 推荐(0)

2020年2月22日

摘要: token 授权 阅读全文
posted @ 2020-02-22 18:51 LeeToLee 阅读(906) 评论(0) 推荐(0)
 
摘要: axios设置请求头中的Authorization信息: GET请求 this.$axios.get('/url', { headers: { 'Authorization': 'Bearer '+localStorage.getItem('token') ... }, params: { para 阅读全文
posted @ 2020-02-22 18:00 LeeToLee 阅读(10489) 评论(0) 推荐(0)

2020年2月21日

摘要: vuex,购物车 阅读全文
posted @ 2020-02-21 14:51 LeeToLee 阅读(700) 评论(0) 推荐(1)

2020年2月18日

摘要: vue-router 阅读全文
posted @ 2020-02-18 15:04 LeeToLee 阅读(615) 评论(0) 推荐(0)

2020年2月16日

摘要: 在 vue 项目中,通过 v-for 循环出的买家秀中,点赞功能,点击一项只对这一项有作用 首先,在组件中,两个点赞图标,这里使用阿里巴巴矢量图标库, v-if 和 v-else 显示其中一个。如下代码 <p class="zan"> <i class="icon iconfont icon-wei 阅读全文
posted @ 2020-02-16 17:19 LeeToLee 阅读(1410) 评论(0) 推荐(0)

2020年2月13日

摘要: item{ display: flex; justify-content: space-between; //两端对齐 flex-wrap: wrap; //换行 } 阅读全文
posted @ 2020-02-13 21:39 LeeToLee 阅读(1255) 评论(0) 推荐(0)