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