摘要:
准备数据: interface ISandState { value: string text: string checked: boolean } const INIT_SAND_STATE: ISandState[] = [ { value: '1', text: '在售', checked: 阅读全文
摘要:
tsx: import React, { useEffect, useState } from 'react' import Taro from '@tarojs/taro' import { View, ScrollView } from '@tarojs/components' import a 阅读全文
摘要:
数据: [ { "description": "gethouseData", "request": { "method": "GET", "uri": "/api/house/surround", "queries": { "type": "交通" } }, "response": { "statu 阅读全文
摘要:
tsx: import React, { Component } from 'react' import Taro from '@tarojs/taro' import { View, Text, ScrollView } from '@tarojs/components' import class 阅读全文
摘要:
显示第一个,其他隐藏: $('.newhouse-content').delegate('.activity-more', 'click', function () { //.activity-more多个,不使用each->click实现 let $listItem = $(this).paren 阅读全文
摘要:
tsx: <ScrollView className="album-tabs" scrollX> <View className="tab-item actived"> <Text>效果图</Text> </View> <View className="tab-item"> <Text>样板图</T 阅读全文
摘要:
分包使用tabar,tabar定义的页面不能分包: pages: [ 'pages/index/index', 'pages/user/login/phone/index', 'pages/chat/index', 'pages/search/index', 'pages/user/index' ] 阅读全文
摘要:
查询组件: import React, { useState, useEffect } from 'react' import Taro from '@tarojs/taro' import classnames from 'classnames' import { map, includes } 阅读全文
摘要:
tsx: import React, { useEffect, useState } from 'react' import { View, Text, ScrollView, Image } from '@tarojs/components' import classnames from 'cla 阅读全文
摘要:
html: <div class="filter-content filter-content-border" id="bubbleFilter"> <div class="filter-item clearfix"> <label class="filter-label">区域:</label> 阅读全文