11 2020 档案

摘要:event.ts: import api from '@services/api' import { hasLogin } from '@services/login' import app from '@services/request' import storage from './storag 阅读全文
posted @ 2020-11-27 15:00 Nyan 阅读(173) 评论(0) 推荐(0) 编辑
摘要:定义单个Picker选项组件: import React, { useEffect, useState } from 'react' import { View, PickerView, PickerViewColumn } from '@tarojs/components' import clas 阅读全文
posted @ 2020-11-20 10:48 Nyan 阅读(1604) 评论(0) 推荐(0) 编辑
摘要:封装单个picker: import React, { useState } from 'react' import { View, PickerView, PickerViewColumn } from '@tarojs/components' import classnames from 'cl 阅读全文
posted @ 2020-11-12 17:38 Nyan 阅读(1974) 评论(0) 推荐(0) 编辑
摘要:// 列表整块轮播 (function ($) { FCZX.globalNamespace('FCZX.Switch'); FCZX.Switch = function (opt) { this._init(opt) } $.extend(FCZX.Switch.prototype, { isMo 阅读全文
posted @ 2020-11-06 17:44 Nyan 阅读(491) 评论(0) 推荐(0) 编辑
摘要:html: <!-- 自动轮播 start --> <div class="home-show"> <ul class="show-list"> <li class="show-item"> <a href="" style="background: url(http://pics-house.xy 阅读全文
posted @ 2020-11-06 14:55 Nyan 阅读(266) 评论(0) 推荐(0) 编辑
摘要:时间显示处理方法: // 格式化时间段 const toTimeSolt = (h: number) => { let bt = ''; if (0 <= h && h <= 3) bt = '凌晨'; if (4 <= h && h <= 8) bt = '早上'; if (9 <= h && h 阅读全文
posted @ 2020-11-03 19:12 Nyan 阅读(377) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示