上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: 效果图 js uploadHeader: { token: "", userId: "" }, dialogImageUrl:"", dialogVisible:false, RecordOperation:{ imgList:[ // {imgList:[{url:"https://img.jd9 阅读全文
posted @ 2020-08-21 14:37 shuihanxiao 阅读(4308) 评论(0) 推荐(0)
摘要: var ua = window.navigator.userAgent.toLowerCase(); console.log(ua); if (ua.match(/MicroMessenger/i) == 'micromessenger') { console.log("微信内置浏览器") } 阅读全文
posted @ 2020-08-17 19:05 shuihanxiao 阅读(1127) 评论(0) 推荐(0)
摘要: 这次我主要想总结一下微信小程序实现上下滚动消息提醒,主要是利用swiper组件来实现,swiper组件在小程序中是滑块视图容器。 我们通过vertical属性(默认为false,实现默认左右滚动)设置为true来实现上下滚动。 (需要注意的是:只要你的swiper存在vertical属性,无论你给值 阅读全文
posted @ 2020-08-11 14:27 shuihanxiao 阅读(2098) 评论(0) 推荐(0)
摘要: pickerBeginDateBefore: { disabledDate(value) { if (new Date(value).getTime() + 3600 * 1000 * 24 < new Date().getTime()) { return true } return false } 阅读全文
posted @ 2020-07-27 17:08 shuihanxiao 阅读(1454) 评论(0) 推荐(0)
摘要: 样式展示 下拉框引入组件 wxml 父向子组件传值 prop-total="{{total}}" <single-dropdown-select prop-total="{{total}}" prop-value="{{ currentSelectText }}" prop-array='{{sel 阅读全文
posted @ 2020-07-24 10:26 shuihanxiao 阅读(925) 评论(0) 推荐(0)
摘要: import Taro, { Component } from '@tarojs/taro' import { Block, View, Image, Text, CheckboxGroup, RadioGroup, Label, ScrollView, RichText } from '@taro 阅读全文
posted @ 2020-06-21 17:45 shuihanxiao 阅读(1525) 评论(0) 推荐(0)
摘要: function findIndexByKeyValue(arr, key, valuetosearch) { for (var i = 0; i < arr.length; i++) { if (arr[i][key] == valuetosearch) { return i; } } retur 阅读全文
posted @ 2020-06-16 11:42 shuihanxiao 阅读(377) 评论(0) 推荐(0)
摘要: 1.前端导出,不需要调用后台接口后台导出,前端直接实现导出功能 导出table数据 js 引入 import FileSaver from "file-saver"; import XLSX from "xlsx"; table id out-table <el-table v-loading="d 阅读全文
posted @ 2020-05-29 16:49 shuihanxiao 阅读(5585) 评论(0) 推荐(0)
摘要: 1、获取input输入的值 wxml代码如下 <input bindinput="bindModel" type="text" class="input" placeholder="请输入兑换码" value='{{exchangeCode}}' data-model="exchageCode"/> 阅读全文
posted @ 2020-05-29 16:45 shuihanxiao 阅读(3462) 评论(0) 推荐(0)
摘要: 注意两点即可: 1.苹果只认识 yyyy/mmmm/dddd/ 这类格式的日期 2.如果输出后还要进行处理日期对比,苹果默认会带中文字,如:年月日,需要转成上面1当中的日期格式在转时间戳进行比较 GetDateDiff(checked_in) { //将xxxx-xx-xx的时间格式,转换为 xxx 阅读全文
posted @ 2020-05-13 17:52 shuihanxiao 阅读(1450) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页