摘要: 1、使用DatePicker 日期选择器得到的日期格式是这样的 解决方案,添加 value-format="yyyy-MM-dd" <el-date-picker type="date" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" v- 阅读全文
posted @ 2019-10-16 11:32 龙卷风吹毁停车场 阅读(1378) 评论(0) 推荐(0)
摘要: 安装两个依赖环境 yarn add babel-polyfill -D yarn add babel-preset-es2015 babel-cli -D 在main.js中引入babel-polyfill import 'babel-polyfill' 在webpack.base.conf.js文 阅读全文
posted @ 2019-10-12 09:44 龙卷风吹毁停车场 阅读(2303) 评论(0) 推荐(0)
摘要: 1 2 //此行代码解决switch在表格中点击没有效果 3 10 11 12 阅读全文
posted @ 2019-09-25 10:59 龙卷风吹毁停车场 阅读(6867) 评论(0) 推荐(1)
摘要: 注:上传图片需要结合element-ui的upload上传 首先第一步:安装vue-quill-editor或quill两个模块 yarn add vue-quill-editor -D yarn add quill -D 然后再main.js文件中引入 1 import QuillEditor f 阅读全文
posted @ 2019-09-22 18:17 龙卷风吹毁停车场 阅读(1593) 评论(0) 推荐(0)
摘要: 安装可以解析eleToken 的模块 阅读全文
posted @ 2019-09-22 15:17 龙卷风吹毁停车场 阅读(638) 评论(0) 推荐(1)
摘要: 1 import Vue from 'vue' 2 import Router from 'vue-router' 3 Vue.use(Router) 4 import Index from '@/page/index' 5 6 let router = new Router({ 7 routes: 阅读全文
posted @ 2019-09-22 14:56 龙卷风吹毁停车场 阅读(383) 评论(0) 推荐(0)
摘要: 在项目开发中遇到的需求,这点写第一个dome 监听父组件传过来的值发送变化 在子组件中 <template> <div class="components">{{mes}}</div> </template> <script> export default { props:['message'],/ 阅读全文
posted @ 2019-08-21 17:54 龙卷风吹毁停车场 阅读(255) 评论(0) 推荐(0)
摘要: 如果我给body设置成一个宽高为200px的正方形,背景为红色,但是整个html也变成了红色,而且是整个浏览器屏幕都是红的,怎么来处理,如下 给html单独设置一个背景颜色,比如为白色#fff,在给body设置成红色,这样就能看见我body是一个宽高为200px,背景为红色的正方形 阅读全文
posted @ 2019-08-21 15:48 龙卷风吹毁停车场 阅读(897) 评论(0) 推荐(0)
摘要: 说明: 此项目是h5+app项目,不是此项目,请勿参考 context是this curPayType是支付的方式 ordercode当前订单号 1 Alipay(curPayType,ordercode){2 if(curPayType){//微信支付 3 context.$fetch.post( 阅读全文
posted @ 2019-08-21 10:50 龙卷风吹毁停车场 阅读(447) 评论(0) 推荐(0)
摘要: 设置安全域名,否则会提示商家参数格式有误,请联系商家解决 var self = plus.webview.currentWebview(); // res.data.url 后台返回的支付链接 // wxpay 窗口标识 //https://xxxx.xxxxx.cn是当前请求支付接口的域名 var 阅读全文
posted @ 2019-08-19 15:29 龙卷风吹毁停车场 阅读(193) 评论(0) 推荐(0)