上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: 主要思路 1. 先对当天缓存 2. 再次点击或者获取的时候进行对比 // 是否当前日期 isDay(){ // 测试 // let newDay = (new Date()).getMinutes(); let newDay = (new Date()).getDate(); // 今天 let l 阅读全文
posted @ 2023-01-18 13:08 Panax 阅读(160) 评论(0) 推荐(0) 编辑
摘要: const moment = require('./moment.min.js') module.exports = { formateDate: function (time, fmt = 'yyyy-MM-dd hh:mm:ss') { let _this = new Date(time) le 阅读全文
posted @ 2022-11-16 11:30 Panax 阅读(112) 评论(0) 推荐(0) 编辑
摘要: // (function () { var calc = { /* 函数,加法函数,用来得到精确的加法结果 说明:javascript的加法结果会有误差,在两个浮点数相加的时候会比较明显。这个函数返回较为精确的加法结果。 参数:arg1:第一个加数;arg2第二个加数;d要保留的小数位数(可以不传此 阅读全文
posted @ 2022-11-16 11:27 Panax 阅读(448) 评论(0) 推荐(0) 编辑
摘要: export const getAddress = function (wx) { return new Promise((resolve, reject) => { let _this = this wx.getSetting({ success: (res) => { let authSetti 阅读全文
posted @ 2022-11-16 11:15 Panax 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 'use strict' import { getToken } from './auth' const baseUrl1 = 'https://xxx'. // 域名地址 var Request = function (url, data, method="get",header,code=200 阅读全文
posted @ 2022-11-16 11:04 Panax 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 新建一个另外的组件 // components/noRecord/index.js Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { } }) 阅读全文
posted @ 2022-11-16 10:47 Panax 阅读(24) 评论(0) 推荐(0) 编辑
摘要: <!--components/noRecord/index.wxml--> <view class="mod_no_record"> <view class="content"> <image src="/imgs/no_record.png" alt srcset class="img" mode 阅读全文
posted @ 2022-11-16 10:40 Panax 阅读(18) 评论(0) 推荐(0) 编辑
摘要: <swiper class="{{swiperClass}}" current="{{activeTab}}" duration="{{duration}}" bindchange="handleSwiperChange" > <swiper-item wx:for="{{tabs}}" wx:ke 阅读全文
posted @ 2022-11-16 10:20 Panax 阅读(58) 评论(0) 推荐(0) 编辑
摘要: <scroll-view class="main_con" bindscrolltolower="getOrderList" // 写请求事件 scroll-y="true" > </scroll-view> 可以加上 scroll-with-animation = 'true' 平滑滚动 阅读全文
posted @ 2022-11-16 10:17 Panax 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1. view 代替了原来的div标签。 2. wx:if 代替了原来的v-if 。wx:elif. 代替了原来的v-else-if 。 3: text 代替了原来的p 标签。 4. catch:tap 或者bind:tap 代替了click 事件,且不支持修饰符。 5. 自定义data-id属性, 阅读全文
posted @ 2022-11-16 09:55 Panax 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 21 下一页