...
|
...
|
@@ -66,7 +66,8 @@ export default class Index extends Component { |
|
|
async getResource() {
|
|
|
const pk = await getPrivateKey();
|
|
|
Taro.setStorage({ key: 'verifyKey', data: pk });
|
|
|
return commonModel.resource(contentCode.index).then(res => {
|
|
|
console.log(contentCode.index);
|
|
|
return commonModel.resource(contentCode.index).then(res => {
|
|
|
if (res && res.code === 200) {
|
|
|
this.setState({
|
|
|
floors: res.data
|
...
|
...
|
@@ -224,7 +225,7 @@ export default class Index extends Component { |
|
|
onScrollToLower={this.onScrollToLower}>
|
|
|
|
|
|
|
|
|
<Resources isRefresh={isRefresh} floors={floors}></Resources>
|
|
|
<Resources isRefresh={ isRefresh } floors = { floors } code={ contentCode.index}></Resources>
|
|
|
<FilterMenu filterMenu={filterMenu} tabs={tabs} tabClass="border" fromPage="index"></FilterMenu>
|
|
|
{
|
|
|
list &&
|
...
|
...
|
|