Commit 4e8496c2 authored by wangqinghua's avatar wangqinghua

用车申请

发现页面的分页
parent 19b6b116
/**
* Automatically generated file. DO NOT MODIFY
*/
package io.ionic.smart19.starter.test;
public final class BuildConfig {
public static final boolean DEBUG = false;
public static final String APPLICATION_ID = "io.ionic.smart19.starter.test";
public static final String BUILD_TYPE = "release";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 40502;
public static final String VERSION_NAME = "4.5.2";
}
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package io.ionic.smart19.starter.test;
public final class R {
public static final class attr {
/**
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*/
public static final int coordinatorLayoutStyle=0x7f010000;
/**
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*/
public static final int font=0x7f010001;
/**
* <p>May be a string value, using '\\;' to escape characters such as
* '\\n' or '\\uxxxx' for a unicode character;
*/
public static final int fontProviderAuthority=0x7f010002;
/**
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*/
public static final int fontProviderCerts=0x7f010003;
/**
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>async</td><td>1</td><td></td></tr>
* <tr><td>blocking</td><td>0</td><td></td></tr>
* </table>
*/
public static final int fontProviderFetchStrategy=0x7f010004;
/**
* <p>May be an integer value, such as "<code>100</code>".
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>forever</td><td>ffffffff</td><td></td></tr>
* </table>
*/
public static final int fontProviderFetchTimeout=0x7f010005;
/**
* <p>May be a string value, using '\\;' to escape characters such as
* '\\n' or '\\uxxxx' for a unicode character;
*/
public static final int fontProviderPackage=0x7f010006;
/**
* <p>May be a string value, using '\\;' to escape characters such as
* '\\n' or '\\uxxxx' for a unicode character;
*/
public static final int fontProviderQuery=0x7f010007;
/**
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>italic</td><td>1</td><td></td></tr>
* <tr><td>normal</td><td>0</td><td></td></tr>
* </table>
*/
public static final int fontStyle=0x7f010008;
/**
* <p>May be an integer value, such as "<code>100</code>".
*/
public static final int fontWeight=0x7f010009;
/**
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*/
public static final int keylines=0x7f01000a;
/**
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*/
public static final int layout_anchor=0x7f01000b;
/**
* <p>Must be one or more (separated by '|') of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>bottom</td><td>50</td><td></td></tr>
* <tr><td>center</td><td>11</td><td></td></tr>
* <tr><td>center_horizontal</td><td>1</td><td></td></tr>
* <tr><td>center_vertical</td><td>10</td><td></td></tr>
* <tr><td>clip_horizontal</td><td>8</td><td></td></tr>
* <tr><td>clip_vertical</td><td>80</td><td></td></tr>
* <tr><td>end</td><td>800005</td><td></td></tr>
* <tr><td>fill</td><td>77</td><td></td></tr>
* <tr><td>fill_horizontal</td><td>7</td><td></td></tr>
* <tr><td>fill_vertical</td><td>70</td><td></td></tr>
* <tr><td>left</td><td>3</td><td></td></tr>
* <tr><td>right</td><td>5</td><td></td></tr>
* <tr><td>start</td><td>800003</td><td></td></tr>
* <tr><td>top</td><td>30</td><td></td></tr>
* </table>
*/
public static final int layout_anchorGravity=0x7f01000c;
/**
* <p>May be a string value, using '\\;' to escape characters such as
* '\\n' or '\\uxxxx' for a unicode character;
*/
public static final int layout_behavior=0x7f01000d;
/**
* <p>Must be one or more (separated by '|') of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>all</td><td>77</td><td></td></tr>
* <tr><td>bottom</td><td>50</td><td></td></tr>
* <tr><td>end</td><td>800005</td><td></td></tr>
* <tr><td>left</td><td>3</td><td></td></tr>
* <tr><td>none</td><td>0</td><td></td></tr>
* <tr><td>right</td><td>5</td><td></td></tr>
* <tr><td>start</td><td>800003</td><td></td></tr>
* <tr><td>top</td><td>30</td><td></td></tr>
* </table>
*/
public static final int layout_dodgeInsetEdges=0x7f01000e;
/**
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>bottom</td><td>50</td><td></td></tr>
* <tr><td>end</td><td>800005</td><td></td></tr>
* <tr><td>left</td><td>3</td><td></td></tr>
* <tr><td>none</td><td>0</td><td></td></tr>
* <tr><td>right</td><td>5</td><td></td></tr>
* <tr><td>start</td><td>800003</td><td></td></tr>
* <tr><td>top</td><td>30</td><td></td></tr>
* </table>
*/
public static final int layout_insetEdge=0x7f01000f;
/**
* <p>May be an integer value, such as "<code>100</code>".
*/
public static final int layout_keyline=0x7f010010;
/**
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
* <p>May be a color value, in the form of "<code>#<i>rgb</i></code>",
* "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or
* "<code>#<i>aarrggbb</i></code>".
*/
public static final int statusBarBackground=0x7f010011;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs=0x7f020000;
}
public static final class color {
public static final int notification_action_color_filter=0x7f030000;
public static final int notification_icon_bg_color=0x7f030001;
public static final int notification_material_background_media_default_color=0x7f030002;
public static final int primary_text_default_material_dark=0x7f030003;
public static final int ripple_material_light=0x7f030004;
public static final int secondary_text_default_material_dark=0x7f030005;
public static final int secondary_text_default_material_light=0x7f030006;
}
public static final class dimen {
public static final int compat_button_inset_horizontal_material=0x7f040000;
public static final int compat_button_inset_vertical_material=0x7f040001;
public static final int compat_button_padding_horizontal_material=0x7f040002;
public static final int compat_button_padding_vertical_material=0x7f040003;
public static final int compat_control_corner_material=0x7f040004;
public static final int notification_action_icon_size=0x7f040005;
public static final int notification_action_text_size=0x7f040006;
public static final int notification_big_circle_margin=0x7f040007;
public static final int notification_content_margin_start=0x7f040008;
public static final int notification_large_icon_height=0x7f040009;
public static final int notification_large_icon_width=0x7f04000a;
public static final int notification_main_column_padding_top=0x7f04000b;
public static final int notification_media_narrow_margin=0x7f04000c;
public static final int notification_right_icon_size=0x7f04000d;
public static final int notification_right_side_padding_top=0x7f04000e;
public static final int notification_small_icon_background_padding=0x7f04000f;
public static final int notification_small_icon_size_as_large=0x7f040010;
public static final int notification_subtext_size=0x7f040011;
public static final int notification_top_pad=0x7f040012;
public static final int notification_top_pad_large_text=0x7f040013;
}
public static final class drawable {
public static final int notification_action_background=0x7f050000;
public static final int notification_bg=0x7f050001;
public static final int notification_bg_low=0x7f050002;
public static final int notification_bg_low_normal=0x7f050003;
public static final int notification_bg_low_pressed=0x7f050004;
public static final int notification_bg_normal=0x7f050005;
public static final int notification_bg_normal_pressed=0x7f050006;
public static final int notification_icon_background=0x7f050007;
public static final int notification_template_icon_bg=0x7f050008;
public static final int notification_template_icon_low_bg=0x7f050009;
public static final int notification_tile_bg=0x7f05000a;
public static final int notify_panel_notification_icon_bg=0x7f05000b;
public static final int screen=0x7f05000c;
}
public static final class id {
public static final int action0=0x7f060000;
public static final int action_container=0x7f060001;
public static final int action_divider=0x7f060002;
public static final int action_image=0x7f060003;
public static final int action_text=0x7f060004;
public static final int actions=0x7f060005;
public static final int all=0x7f060006;
public static final int async=0x7f060007;
public static final int blocking=0x7f060008;
public static final int bottom=0x7f060009;
public static final int cancel_action=0x7f06000a;
public static final int center=0x7f06000b;
public static final int center_horizontal=0x7f06000c;
public static final int center_vertical=0x7f06000d;
public static final int chronometer=0x7f06000e;
public static final int clip_horizontal=0x7f06000f;
public static final int clip_vertical=0x7f060010;
public static final int end=0x7f060011;
public static final int end_padder=0x7f060012;
public static final int fill=0x7f060013;
public static final int fill_horizontal=0x7f060014;
public static final int fill_vertical=0x7f060015;
public static final int forever=0x7f060016;
public static final int icon=0x7f060017;
public static final int icon_group=0x7f060018;
public static final int info=0x7f060019;
public static final int italic=0x7f06001a;
public static final int left=0x7f06001b;
public static final int line1=0x7f06001c;
public static final int line3=0x7f06001d;
public static final int media_actions=0x7f06001e;
public static final int none=0x7f06001f;
public static final int normal=0x7f060020;
public static final int notification_background=0x7f060021;
public static final int notification_main_column=0x7f060022;
public static final int notification_main_column_container=0x7f060023;
public static final int right=0x7f060024;
public static final int right_icon=0x7f060025;
public static final int right_side=0x7f060026;
public static final int start=0x7f060027;
public static final int status_bar_latest_event_content=0x7f060028;
public static final int tag_transition_group=0x7f060029;
public static final int text=0x7f06002a;
public static final int text2=0x7f06002b;
public static final int time=0x7f06002c;
public static final int title=0x7f06002d;
public static final int top=0x7f06002e;
}
public static final class integer {
public static final int cancel_button_image_alpha=0x7f070000;
public static final int status_bar_notification_info_maxnum=0x7f070001;
}
public static final class layout {
public static final int notification_action=0x7f080000;
public static final int notification_action_tombstone=0x7f080001;
public static final int notification_media_action=0x7f080002;
public static final int notification_media_cancel_action=0x7f080003;
public static final int notification_template_big_media=0x7f080004;
public static final int notification_template_big_media_custom=0x7f080005;
public static final int notification_template_big_media_narrow=0x7f080006;
public static final int notification_template_big_media_narrow_custom=0x7f080007;
public static final int notification_template_custom_big=0x7f080008;
public static final int notification_template_icon_group=0x7f080009;
public static final int notification_template_lines_media=0x7f08000a;
public static final int notification_template_media=0x7f08000b;
public static final int notification_template_media_custom=0x7f08000c;
public static final int notification_template_part_chronometer=0x7f08000d;
public static final int notification_template_part_time=0x7f08000e;
}
public static final class mipmap {
public static final int icon=0x7f090000;
}
public static final class string {
public static final int activity_name=0x7f0a0000;
public static final int app_name=0x7f0a0001;
public static final int launcher_name=0x7f0a0002;
public static final int status_bar_notification_info_overflow=0x7f0a0003;
}
public static final class style {
public static final int TextAppearance_Compat_Notification=0x7f0b0000;
public static final int TextAppearance_Compat_Notification_Info=0x7f0b0001;
public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0b0002;
public static final int TextAppearance_Compat_Notification_Line2=0x7f0b0003;
public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0b0004;
public static final int TextAppearance_Compat_Notification_Media=0x7f0b0005;
public static final int TextAppearance_Compat_Notification_Time=0x7f0b0006;
public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0b0007;
public static final int TextAppearance_Compat_Notification_Title=0x7f0b0008;
public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0b0009;
public static final int Widget_Compat_NotificationActionContainer=0x7f0b000a;
public static final int Widget_Compat_NotificationActionText=0x7f0b000b;
public static final int Widget_Support_CoordinatorLayout=0x7f0b000c;
}
public static final class styleable {
/**
* Attributes that can be used with a CoordinatorLayout.
* <p>Includes the following attributes:</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Attribute</th><th>Description</th></tr>
* <tr><td><code>{@link #CoordinatorLayout_keylines io.ionic.smart19.starter.test:keylines}</code></td><td></td></tr>
* <tr><td><code>{@link #CoordinatorLayout_statusBarBackground io.ionic.smart19.starter.test:statusBarBackground}</code></td><td></td></tr>
* </table>
* @see #CoordinatorLayout_keylines
* @see #CoordinatorLayout_statusBarBackground
*/
public static final int[] CoordinatorLayout={
0x7f01000a, 0x7f010011
};
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#keylines}
* attribute's value can be found in the {@link #CoordinatorLayout} array.
*
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*
* @attr name io.ionic.smart19.starter.test:keylines
*/
public static final int CoordinatorLayout_keylines=0;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#statusBarBackground}
* attribute's value can be found in the {@link #CoordinatorLayout} array.
*
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
* <p>May be a color value, in the form of "<code>#<i>rgb</i></code>",
* "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or
* "<code>#<i>aarrggbb</i></code>".
*
* @attr name io.ionic.smart19.starter.test:statusBarBackground
*/
public static final int CoordinatorLayout_statusBarBackground=1;
/**
* Attributes that can be used with a CoordinatorLayout_Layout.
* <p>Includes the following attributes:</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Attribute</th><th>Description</th></tr>
* <tr><td><code>{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
* <tr><td><code>{@link #CoordinatorLayout_Layout_layout_anchor io.ionic.smart19.starter.test:layout_anchor}</code></td><td></td></tr>
* <tr><td><code>{@link #CoordinatorLayout_Layout_layout_anchorGravity io.ionic.smart19.starter.test:layout_anchorGravity}</code></td><td></td></tr>
* <tr><td><code>{@link #CoordinatorLayout_Layout_layout_behavior io.ionic.smart19.starter.test:layout_behavior}</code></td><td></td></tr>
* <tr><td><code>{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges io.ionic.smart19.starter.test:layout_dodgeInsetEdges}</code></td><td></td></tr>
* <tr><td><code>{@link #CoordinatorLayout_Layout_layout_insetEdge io.ionic.smart19.starter.test:layout_insetEdge}</code></td><td></td></tr>
* <tr><td><code>{@link #CoordinatorLayout_Layout_layout_keyline io.ionic.smart19.starter.test:layout_keyline}</code></td><td></td></tr>
* </table>
* @see #CoordinatorLayout_Layout_android_layout_gravity
* @see #CoordinatorLayout_Layout_layout_anchor
* @see #CoordinatorLayout_Layout_layout_anchorGravity
* @see #CoordinatorLayout_Layout_layout_behavior
* @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
* @see #CoordinatorLayout_Layout_layout_insetEdge
* @see #CoordinatorLayout_Layout_layout_keyline
*/
public static final int[] CoordinatorLayout_Layout={
0x010100b3, 0x7f01000b, 0x7f01000c, 0x7f01000d,
0x7f01000e, 0x7f01000f, 0x7f010010
};
/**
* <p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
* attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
*
* <p>Must be one or more (separated by '|') of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>bottom</td><td>50</td><td></td></tr>
* <tr><td>center</td><td>11</td><td></td></tr>
* <tr><td>center_horizontal</td><td>1</td><td></td></tr>
* <tr><td>center_vertical</td><td>10</td><td></td></tr>
* <tr><td>clip_horizontal</td><td>8</td><td></td></tr>
* <tr><td>clip_vertical</td><td>80</td><td></td></tr>
* <tr><td>end</td><td>800005</td><td></td></tr>
* <tr><td>fill</td><td>77</td><td></td></tr>
* <tr><td>fill_horizontal</td><td>7</td><td></td></tr>
* <tr><td>fill_vertical</td><td>70</td><td></td></tr>
* <tr><td>left</td><td>3</td><td></td></tr>
* <tr><td>right</td><td>5</td><td></td></tr>
* <tr><td>start</td><td>800003</td><td></td></tr>
* <tr><td>top</td><td>30</td><td></td></tr>
* </table>
*
* @attr name android:layout_gravity
*/
public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#layout_anchor}
* attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
*
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*
* @attr name io.ionic.smart19.starter.test:layout_anchor
*/
public static final int CoordinatorLayout_Layout_layout_anchor=1;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#layout_anchorGravity}
* attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
*
* <p>Must be one or more (separated by '|') of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>bottom</td><td>50</td><td></td></tr>
* <tr><td>center</td><td>11</td><td></td></tr>
* <tr><td>center_horizontal</td><td>1</td><td></td></tr>
* <tr><td>center_vertical</td><td>10</td><td></td></tr>
* <tr><td>clip_horizontal</td><td>8</td><td></td></tr>
* <tr><td>clip_vertical</td><td>80</td><td></td></tr>
* <tr><td>end</td><td>800005</td><td></td></tr>
* <tr><td>fill</td><td>77</td><td></td></tr>
* <tr><td>fill_horizontal</td><td>7</td><td></td></tr>
* <tr><td>fill_vertical</td><td>70</td><td></td></tr>
* <tr><td>left</td><td>3</td><td></td></tr>
* <tr><td>right</td><td>5</td><td></td></tr>
* <tr><td>start</td><td>800003</td><td></td></tr>
* <tr><td>top</td><td>30</td><td></td></tr>
* </table>
*
* @attr name io.ionic.smart19.starter.test:layout_anchorGravity
*/
public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#layout_behavior}
* attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
*
* <p>May be a string value, using '\\;' to escape characters such as
* '\\n' or '\\uxxxx' for a unicode character;
*
* @attr name io.ionic.smart19.starter.test:layout_behavior
*/
public static final int CoordinatorLayout_Layout_layout_behavior=3;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#layout_dodgeInsetEdges}
* attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
*
* <p>Must be one or more (separated by '|') of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>all</td><td>77</td><td></td></tr>
* <tr><td>bottom</td><td>50</td><td></td></tr>
* <tr><td>end</td><td>800005</td><td></td></tr>
* <tr><td>left</td><td>3</td><td></td></tr>
* <tr><td>none</td><td>0</td><td></td></tr>
* <tr><td>right</td><td>5</td><td></td></tr>
* <tr><td>start</td><td>800003</td><td></td></tr>
* <tr><td>top</td><td>30</td><td></td></tr>
* </table>
*
* @attr name io.ionic.smart19.starter.test:layout_dodgeInsetEdges
*/
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#layout_insetEdge}
* attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
*
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>bottom</td><td>50</td><td></td></tr>
* <tr><td>end</td><td>800005</td><td></td></tr>
* <tr><td>left</td><td>3</td><td></td></tr>
* <tr><td>none</td><td>0</td><td></td></tr>
* <tr><td>right</td><td>5</td><td></td></tr>
* <tr><td>start</td><td>800003</td><td></td></tr>
* <tr><td>top</td><td>30</td><td></td></tr>
* </table>
*
* @attr name io.ionic.smart19.starter.test:layout_insetEdge
*/
public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#layout_keyline}
* attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
*
* <p>May be an integer value, such as "<code>100</code>".
*
* @attr name io.ionic.smart19.starter.test:layout_keyline
*/
public static final int CoordinatorLayout_Layout_layout_keyline=6;
/**
* Attributes that can be used with a FontFamily.
* <p>Includes the following attributes:</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Attribute</th><th>Description</th></tr>
* <tr><td><code>{@link #FontFamily_fontProviderAuthority io.ionic.smart19.starter.test:fontProviderAuthority}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamily_fontProviderCerts io.ionic.smart19.starter.test:fontProviderCerts}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamily_fontProviderFetchStrategy io.ionic.smart19.starter.test:fontProviderFetchStrategy}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamily_fontProviderFetchTimeout io.ionic.smart19.starter.test:fontProviderFetchTimeout}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamily_fontProviderPackage io.ionic.smart19.starter.test:fontProviderPackage}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamily_fontProviderQuery io.ionic.smart19.starter.test:fontProviderQuery}</code></td><td></td></tr>
* </table>
* @see #FontFamily_fontProviderAuthority
* @see #FontFamily_fontProviderCerts
* @see #FontFamily_fontProviderFetchStrategy
* @see #FontFamily_fontProviderFetchTimeout
* @see #FontFamily_fontProviderPackage
* @see #FontFamily_fontProviderQuery
*/
public static final int[] FontFamily={
0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005,
0x7f010006, 0x7f010007
};
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#fontProviderAuthority}
* attribute's value can be found in the {@link #FontFamily} array.
*
* <p>May be a string value, using '\\;' to escape characters such as
* '\\n' or '\\uxxxx' for a unicode character;
*
* @attr name io.ionic.smart19.starter.test:fontProviderAuthority
*/
public static final int FontFamily_fontProviderAuthority=0;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#fontProviderCerts}
* attribute's value can be found in the {@link #FontFamily} array.
*
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*
* @attr name io.ionic.smart19.starter.test:fontProviderCerts
*/
public static final int FontFamily_fontProviderCerts=1;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#fontProviderFetchStrategy}
* attribute's value can be found in the {@link #FontFamily} array.
*
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>async</td><td>1</td><td></td></tr>
* <tr><td>blocking</td><td>0</td><td></td></tr>
* </table>
*
* @attr name io.ionic.smart19.starter.test:fontProviderFetchStrategy
*/
public static final int FontFamily_fontProviderFetchStrategy=2;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#fontProviderFetchTimeout}
* attribute's value can be found in the {@link #FontFamily} array.
*
* <p>May be an integer value, such as "<code>100</code>".
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>forever</td><td>ffffffff</td><td></td></tr>
* </table>
*
* @attr name io.ionic.smart19.starter.test:fontProviderFetchTimeout
*/
public static final int FontFamily_fontProviderFetchTimeout=3;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#fontProviderPackage}
* attribute's value can be found in the {@link #FontFamily} array.
*
* <p>May be a string value, using '\\;' to escape characters such as
* '\\n' or '\\uxxxx' for a unicode character;
*
* @attr name io.ionic.smart19.starter.test:fontProviderPackage
*/
public static final int FontFamily_fontProviderPackage=4;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#fontProviderQuery}
* attribute's value can be found in the {@link #FontFamily} array.
*
* <p>May be a string value, using '\\;' to escape characters such as
* '\\n' or '\\uxxxx' for a unicode character;
*
* @attr name io.ionic.smart19.starter.test:fontProviderQuery
*/
public static final int FontFamily_fontProviderQuery=5;
/**
* Attributes that can be used with a FontFamilyFont.
* <p>Includes the following attributes:</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Attribute</th><th>Description</th></tr>
* <tr><td><code>{@link #FontFamilyFont_android_font android:font}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamilyFont_android_fontWeight android:fontWeight}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamilyFont_android_fontStyle android:fontStyle}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamilyFont_font io.ionic.smart19.starter.test:font}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamilyFont_fontStyle io.ionic.smart19.starter.test:fontStyle}</code></td><td></td></tr>
* <tr><td><code>{@link #FontFamilyFont_fontWeight io.ionic.smart19.starter.test:fontWeight}</code></td><td></td></tr>
* </table>
* @see #FontFamilyFont_android_font
* @see #FontFamilyFont_android_fontWeight
* @see #FontFamilyFont_android_fontStyle
* @see #FontFamilyFont_font
* @see #FontFamilyFont_fontStyle
* @see #FontFamilyFont_fontWeight
*/
public static final int[] FontFamilyFont={
0x01010532, 0x01010533, 0x0101053f, 0x7f010001,
0x7f010008, 0x7f010009
};
/**
* <p>This symbol is the offset where the {@link android.R.attr#font}
* attribute's value can be found in the {@link #FontFamilyFont} array.
*
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*
* @attr name android:font
*/
public static final int FontFamilyFont_android_font=0;
/**
* <p>This symbol is the offset where the {@link android.R.attr#fontWeight}
* attribute's value can be found in the {@link #FontFamilyFont} array.
*
* <p>May be an integer value, such as "<code>100</code>".
*
* @attr name android:fontWeight
*/
public static final int FontFamilyFont_android_fontWeight=1;
/**
* <p>This symbol is the offset where the {@link android.R.attr#fontStyle}
* attribute's value can be found in the {@link #FontFamilyFont} array.
*
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>italic</td><td>1</td><td></td></tr>
* <tr><td>normal</td><td>0</td><td></td></tr>
* </table>
*
* @attr name android:fontStyle
*/
public static final int FontFamilyFont_android_fontStyle=2;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#font}
* attribute's value can be found in the {@link #FontFamilyFont} array.
*
* <p>May be a reference to another resource, in the form
* "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme
* attribute in the form
* "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>".
*
* @attr name io.ionic.smart19.starter.test:font
*/
public static final int FontFamilyFont_font=3;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#fontStyle}
* attribute's value can be found in the {@link #FontFamilyFont} array.
*
* <p>Must be one of the following constant values.</p>
* <table>
* <colgroup align="left" />
* <colgroup align="left" />
* <colgroup align="left" />
* <tr><th>Constant</th><th>Value</th><th>Description</th></tr>
* <tr><td>italic</td><td>1</td><td></td></tr>
* <tr><td>normal</td><td>0</td><td></td></tr>
* </table>
*
* @attr name io.ionic.smart19.starter.test:fontStyle
*/
public static final int FontFamilyFont_fontStyle=4;
/**
* <p>This symbol is the offset where the {@link io.ionic.smart19.starter.test.R.attr#fontWeight}
* attribute's value can be found in the {@link #FontFamilyFont} array.
*
* <p>May be an integer value, such as "<code>100</code>".
*
* @attr name io.ionic.smart19.starter.test:fontWeight
*/
public static final int FontFamilyFont_fontWeight=5;
}
public static final class xml {
public static final int camera_provider_paths=0x7f0d0000;
public static final int config=0x7f0d0001;
public static final int opener_paths=0x7f0d0002;
public static final int provider_paths=0x7f0d0003;
}
}
\ No newline at end of file
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
package io.ionic.smart19.starter.test;
import android.os.Bundle;
import org.apache.cordova.*;
public class MainActivity extends CordovaActivity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// enable Cordova apps to be started in the background
Bundle extras = getIntent().getExtras();
if (extras != null && extras.getBoolean("cdvStartInBackground", false)) {
moveTaskToBack(true);
}
// Set by <content src="index.html" /> in config.xml
loadUrl(launchUrl);
}
}
import {Injectable} from "@angular/core";import {HttpClient} from "@angular/common/http";import {Http} from "@angular/http";import {Observable} from "rxjs/Observable";import {AppGlobal} from "../../service/http.service";import {CommonService} from "../../provide/common.service"; @Injectable()export class ServeService { constructor( private http: HttpClient, //该请求 将结果转为json private commonSer: CommonService, private https: Http, //该请求不转json ) { } getAllOrganization(data): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/sysmanagement/org/getAllOrganization?' + this.commonSer.toQuery(data)); } /** 物品领用 **/ //办公用品列表 searchSupplies(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/officesupplies/searchSupplies', this.commonSer.toFormData(data)); } //物品详情 supplyDetail(params): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/detail/' + params); } //保存订单 saveOrder(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/saveOrder', data); } //查询订单 myOrder(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/myOrder', this.commonSer.toFormData(data)); } //类型列表 getTypeList(): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/officesupplies/getTypeList', null); } //购物车 shoppingCar(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/shoppingCar', this.commonSer.toFormData(data)); } //更新购物车 saveOrderSuppy(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/saveOrderSuppy', data); } //删除购物车物品 deleteOrderSuppy(params): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/deleteOrderSuppy/' + params); } /** 会议室预定 **/ queryMeetingRoomByDate(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/queryMeetingRoomByDate', this.commonSer.toFormData(data)); } //预定详情 meetDetail(params): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/detail/' + params); } //会议室列表 getRoomList(): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/getRoomList', null); } //部领导列表 getLeaders(): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/getLeaders', null); } //保存会议申请 saveApply(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/saveApply', data); } }
\ No newline at end of file
import {Injectable} from "@angular/core";import {HttpClient} from "@angular/common/http";import {Http} from "@angular/http";import {Observable} from "rxjs/Observable";import {AppGlobal} from "../../service/http.service";import {CommonService} from "../../provide/common.service"; @Injectable()export class ServeService { constructor( private http: HttpClient, //该请求 将结果转为json private commonSer: CommonService, private https: Http, //该请求不转json ) { } getAllOrganization(data): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/sysmanagement/org/getAllOrganization?' + this.commonSer.toQuery(data)); } /** 物品领用 **/ //办公用品列表 searchSupplies(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/officesupplies/searchSupplies', this.commonSer.toFormData(data)); } //物品详情 supplyDetail(params): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/detail/' + params); } //保存订单 saveOrder(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/saveOrder', data); } //查询订单 myOrder(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/myOrder', this.commonSer.toFormData(data)); } //类型列表 getTypeList(): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/officesupplies/getTypeList', null); } //购物车 shoppingCar(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/shoppingCar', this.commonSer.toFormData(data)); } //更新购物车 saveOrderSuppy(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/saveOrderSuppy', data); } //删除购物车物品 deleteOrderSuppy(params): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/ordermanage/deleteOrderSuppy/' + params); } /** 会议室预定 **/ queryMeetingRoomByDate(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/queryMeetingRoomByDate', this.commonSer.toFormData(data)); } //预定详情 meetDetail(params): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/detail/' + params); } //会议室列表 getRoomList(): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/getRoomList', null); } //部领导列表 getLeaders(): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/getLeaders', null); } //保存会议申请 saveApply(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/meetingapply/saveApply', data); } /** 用车申请 **/ saveCarApply(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/carapply/saveApply', data); } }
\ No newline at end of file
......
<ion-header>
<ion-navbar>
<ion-title>用车申请</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
</ion-content>
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
@Component({
selector: 'page-car-apply',
templateUrl: 'car-apply.html',
})
export class CarApplyPage {
constructor(public navCtrl: NavController, public navParams: NavParams) {
}
ionViewDidLoad() {
console.log('ionViewDidLoad CarApplyPage');
}
}
<!--
Generated template for the UseCarPage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header>
<ion-navbar>
<ion-title>useCar</ion-title>
</ion-navbar>
<ion-title>用车申请</ion-title>
<ion-buttons end>
<button ion-button (click)="addMeet()">
<span ion-text style="font-size: 1.4rem" class="color-fff margin-right-10">申请用车</span>
</button>
</ion-buttons>
</ion-navbar>
<div class="duty">
<div class="dutyItem" (click)="change(1)">
<span class="{{changeType == 1?'duty-title':''}}">用车安排</span>
</div>
<div class="dutyItem" (click)="change(2)">
<span class="{{changeType == 2?'duty-title':''}}">我的申请</span>
</div>
</div>
</ion-header>
<ion-content padding>
<ion-content>
<ion-content direction="y" scrollbar-y="true">
<ng-container *ngIf="changeType == 1">
<ion-calendar [(ngModel)]="date"
(onChange)="getApply($event)"
[options]="options"
type="string"
format="YYYY-MM-DD">
</ion-calendar>
<div class="room">
<div class="already">
<p>已预定会议室</p>
<div class="morning">
<div class="morning-text">
上午
</div>
<div class="morning-room">
<span (click)="goApplyEdit(item1)" *ngFor="let item1 of room?.morningUse">
{{item1.name}}(已预定)
</span>
</div>
</div>
<div class="afternoon">
<div class="afternoon-text">
下午
</div>
<div class="morning-room">
<span (click)="goApplyEdit(item2)" *ngFor="let item2 of room?.afternoonUse">
{{item2.name}}(已预定)
</span>
</div>
</div>
</div>
<div class="notYet">
<p>可预定会议室</p>
<div class="morning">
<div class="morning-text">
上午
</div>
<div class="morning-room">
<span (click)="goApply()" *ngFor="let item3 of room?.morningNotUse">
{{item3.name}}(可预定)
</span>
</div>
</div>
<div class="afternoon">
<div class="afternoon-text">
上午
</div>
<div class="morning-room">
<span (click)="goApply()" *ngFor="let item4 of room?.afternoonNotUse">
{{item4.name}}(可预定)
</span>
</div>
</div>
</div>
</div>
</ng-container>
<ng-container *ngIf="changeType == 2">
<div class="duty-content">
</div>
</ng-container>
</ion-content>
</ion-content>
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { UseCarPage } from './use-car';
import {NgModule} from '@angular/core';
import {IonicPageModule} from 'ionic-angular';
import {UseCarPage} from './use-car';
import {CarApplyPage} from "./car-apply/car-apply";
import {CalendarModule} from "ion2-calendar";
@NgModule({
declarations: [
UseCarPage,
],
imports: [
IonicPageModule.forChild(UseCarPage),
],
declarations: [
UseCarPage,
CarApplyPage
],
imports: [
CalendarModule,
IonicPageModule.forChild(UseCarPage),
],
entryComponents: [
CarApplyPage
]
})
export class UseCarPageModule {}
export class UseCarPageModule {
}
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
/**
* Generated class for the UseCarPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
import {CalendarComponentOptions} from "ion2-calendar";
import {monthCh, weekDay} from "../../../app/main";
import {ServeService} from "../serve.service";
import {DatePipe} from "@angular/common";
import {RoomApplyPage} from "../meet-room/room-apply/room-apply";
@IonicPage()
@Component({
......@@ -15,11 +13,51 @@ import { IonicPage, NavController, NavParams } from 'ionic-angular';
})
export class UseCarPage {
constructor(public navCtrl: NavController, public navParams: NavParams) {
changeType = 1;
date = new Date();
options: CalendarComponentOptions = {
from: new Date(2000, 0, 1),
monthFormat: 'YYYY 年 MM 月 ',
weekdays: weekDay,
monthPickerFormat: monthCh,
pickMode: 'single',
color: 'danger'
};
room;
constructor(public navCtrl: NavController, public navParams: NavParams,
private serveSer: ServeService, public datePipe: DatePipe) {
}
ionViewDidEnter() {
const date = this.datePipe.transform(new Date(), 'yyyy-MM-dd');
this.getApply(date);
}
getApply(date) {
const data = {'dateStr': date}
this.serveSer.queryMeetingRoomByDate(data).subscribe(
(res) => {
this.room = res.data;
}
)
}
addMeet() {
this.navCtrl.push(RoomApplyPage);
}
change(type) {
this.changeType = type;
}
goApplyEdit(item) {
this.navCtrl.push(RoomApplyPage, {id: item.applyId});
}
ionViewDidLoad() {
console.log('ionViewDidLoad UseCarPage');
goApply() {
this.navCtrl.push(RoomApplyPage);
}
}
......@@ -88,103 +88,105 @@
</div>
</div>
<ion-slides #contentSlides>
<ng-container *ngFor="let new of slideArr;let i = index;">
<ion-slide>
<ion-content>
<div class="search-content">
<ng-container *ngFor="let item of slideList[i];">
<div *ngIf="obj.childrenName != '你问我答'" class="search-item" (click)="goToDetail(item)">
<p class="item-info">
<span class="item-source">{{item.source}}</span>
<span>{{item.publishTime | date:'yyyy-MM-dd'}}</span>
</p>
<div class="item-news">
<ion-row class="news-item">
<div id="swiper-discover" class="swiper-container">
<div class="swiper-wrapper">
<ng-container *ngFor="let new of slideList;let i = index;">
<div class="swiper-slide">
<ion-content>
<div class="search-content">
<ng-container *ngFor="let item of new;">
<div *ngIf="obj.childrenName != '你问我答'" class="search-item" (click)="goToDetail(item)">
<p class="item-info">
<span class="item-source">{{item.source}}</span>
<span>{{item.publishTime | date:'yyyy-MM-dd'}}</span>
</p>
<div class="item-news">
<ion-row class="news-item">
<!-- 标题图片 -->
<ng-container *ngIf="item.path">
<ng-container *ngIf="item.resourceType == 1">
<ion-col col-8 class="news-left">
<p class="news-title">{{item.title}}
<ion-icon *ngIf="new.topTime"
class="icon-fire iconfont"></ion-icon>
</p>
</ion-col>
<ion-col col-4 class="news-right">
<img src="{{picture + item.path}}">
</ion-col>
</ng-container>
<ng-container *ngIf="item.resourceType == 2">
<ion-col col-12 class="news-left">
<p class="news-title">{{item.title}}
<ion-icon *ngIf="new.topTime"
class="icon-fire iconfont"></ion-icon>
</p>
</ion-col>
</ng-container>
<!-- 视频 -->
<ng-container *ngIf="item.resourceType == 3">
<ion-col col-12 class="news-left">
<p class="news-title">{{item.title}}
<ion-icon *ngIf="new.topTime"
class="icon-fire iconfont"></ion-icon>
</p>
<div style="width: 100%;max-height: 180px;">
<video width="100%" height="100%"
crossorigin="anonymous"
(canplay)="loadVideo($event)"
(play)="clickVideo($event)"
preload="metadata"
controls="controls" muted="muted">
<source [src]="picture +item.path+ '#t=2' ">
您的浏览器不支持 html5。
</video>
</div>
</ion-col>
</ng-container>
<!-- 标题图片 -->
<ng-container *ngIf="item.path">
<ng-container *ngIf="item.resourceType == 1">
<ion-col col-8 class="news-left">
<p class="news-title">{{item.title}}
<ion-icon *ngIf="item.topTime"
class="icon-fire iconfont"></ion-icon>
</p>
</ion-col>
<ion-col col-4 class="news-right">
<img src="{{picture + item.path}}">
</ion-col>
</ng-container>
<ng-container *ngIf="!item.path">
<ng-container *ngIf="item.resourceType == 2">
<ion-col col-12 class="news-left">
<p class="news-title">{{item.title}}
<ion-icon *ngIf="new.topTime"
<ion-icon *ngIf="item.topTime"
class="icon-fire iconfont"></ion-icon>
</p>
</ion-col>
</ng-container>
</ion-row>
</div>
</div>
<div *ngIf="obj.childrenName =='你问我答' " class="search-item"
(click)="goToResponse(item)">
<p style="margin: 0;" class="item-info">
<span>{{item.dateTime | date:'yyyy-MM-dd'}}</span>
</p>
<div class="item-news">
<ion-row class="news-item">
<ion-col col-8 class="news-left">
<p style="margin: 0;" class="news-title">
<span *ngIf="item.type == 1">(判断)</span>
<span *ngIf="item.type == 2">(单选)</span>
<span *ngIf="item.type == 3">(多选)</span>
<span *ngIf="item.type == 4">(问答)</span>
{{item.stem}}
<!-- 视频 -->
<ng-container *ngIf="item.resourceType == 3">
<ion-col col-12 class="news-left">
<p class="news-title">{{item.title}}
<ion-icon *ngIf="item.topTime"
class="icon-fire iconfont"></ion-icon>
</p>
<div style="width: 100%;max-height: 180px;">
<video width="100%" height="100%"
crossorigin="anonymous"
(canplay)="loadVideo($event)"
(play)="clickVideo($event)"
preload="metadata"
controls="controls" muted="muted">
<source [src]="picture +item.path+ '#t=2' ">
您的浏览器不支持 html5。
</video>
</div>
</ion-col>
</ng-container>
</ng-container>
<ng-container *ngIf="!item.path">
<ion-col col-12 class="news-left">
<p class="news-title">{{item.title}}
<ion-icon *ngIf="item.topTime"
class="icon-fire iconfont"></ion-icon>
</p>
</ion-col>
<ion-col col-4 class="news-right">
</ion-col>
</ion-row>
</div>
</ng-container>
</ion-row>
</div>
</ng-container>
</div>
</ion-content>
</div>
</ng-container>
</div>
</div>
</div>
<div *ngIf="obj.childrenName =='你问我答' " class="search-item"
(click)="goToResponse(item)">
<p style="margin: 0;" class="item-info">
<span>{{item.dateTime | date:'yyyy-MM-dd'}}</span>
</p>
<div class="item-news">
<ion-row class="news-item">
<ion-col col-8 class="news-left">
<p style="margin: 0;" class="news-title">
<span *ngIf="item.type == 1">(判断)</span>
<span *ngIf="item.type == 2">(单选)</span>
<span *ngIf="item.type == 3">(多选)</span>
<span *ngIf="item.type == 4">(问答)</span>
{{item.stem}}
</p>
</ion-col>
<ion-col col-4 class="news-right">
</ion-col>
</ion-row>
</div>
</div>
</ng-container>
</div>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content
loadingSpinner="bubbles"
loadingText="加载中"></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content>
</ion-slide>
</ng-container>
</ion-slides>
<ion-fab *ngIf="indexChildren == '55'" right bottom>
<button ion-fab color="light" (click)="issue()">
......
......@@ -32,6 +32,7 @@ export class DiscoverPage {
@ViewChild('scrollTab') scrollTab: ElementRef;
@ViewChild(Content) content: Content;
@ViewChild('slideContent') slideContent: Content;
@ViewChild(Slides) slides: Slides;
//所属板块类型:
//1党章党规,2系列讲话,3中央精神,4本市部署,5通知公告,6党建动态,7工作提示,8党务参考
......@@ -194,13 +195,14 @@ export class DiscoverPage {
noReadNum;
slideList = [];
slideList = new Array(7); //数组的改变 会导致上拉加载更多失效。。
slideArr = new Array(7);
toIndex;
//分页
pageCount = AppGlobal.pageCount;
pageNum = 1;
totalNum; //总条数
isPublish = false;
swiper;
......@@ -237,7 +239,6 @@ export class DiscoverPage {
});
this.initSwiper();
this.getBanner();
this.slideList.length = 7;
this.scrollHeight();
timer(20).subscribe(() => {
this.itemWidth = window.screen.width / 4;
......@@ -279,33 +280,6 @@ export class DiscoverPage {
//初始化swiper
initSwiper() {
let that = this;
that.swiper = new Swiper('#swiper-discover', {
speed: 1000,
autoplay: false,
observer: true,
observeParents: true,
observeSlideChildren: true,
loop: false,
on: {
slideChangeTransitionEnd: function () {
that.swiper.update();
that.changeParent(that.tabsList[this.activeIndex]);
const distancs = this.activeIndex * that.itemWidth / 2; //滑动的长度
that.newContentParent.nativeElement.scrollLeft = distancs;
// let scrollInter = window.setInterval(() => {
// if (distancs == that.newContentParent.nativeElement.scrollLeft) {
// window.clearInterval(scrollInter);
// } else if (distancs > that.newContentParent.nativeElement.scrollLeft) {
// that.newContentParent.nativeElement.scrollLeft++;
// } else if (distancs < that.newContentParent.nativeElement.scrollLeft) {
// that.newContentParent.nativeElement.scrollLeft--;
// } else {
// window.clearInterval(scrollInter);
// }
// }, 1)
}
}
});
that.swiperImg = new Swiper('#swiper-slide', {
speed: 1000,
autoplay: {
......@@ -410,21 +384,21 @@ export class DiscoverPage {
this.tabsSer.stuffPage(data).subscribe(
(res) => {
this.newList = res.data.list;
this.totalNum = res.data.total;
this.newList.forEach(e => {
if (e.attachments && e.attachments.length > 0) {
if(e.attachments[0].resourceType != 2){
if (e.attachments[0].resourceType != 2) {
e.path = e.attachments[0].path;
e.resourceType = e.attachments[0].resourceType;
}else if(e.attachments.length > 1){
} else if (e.attachments.length > 1) {
e.path = e.attachments[1].path;
e.resourceType = e.attachments[1].resourceType;
}
}
});
this.swiper.slideTo(this.indexParent, 500);
this.slides.slideTo(this.indexParent, 500);
this.slideList[this.indexParent] = this.newList;
console.log(this.newList);
this.getMore(res);
}
)
}
......@@ -547,6 +521,38 @@ export class DiscoverPage {
)
}
//上拉加载更多
doInfinite(e) {
if (this.totalNum == this.slideList[this.indexParent]) {
e.complete();
return false;
}
this.pageNum++;
const data = {
pageNum: this.pageNum,
pageCount: this.pageCount,
isRecent: this.isRecent,
obj: {
'plateType': this.obj.plateType,
'resourceType': this.resourceType,
"relatePlateType": this.relatePlateType
}
};
this.tabsSer.stuffPage(data).subscribe(
(res) => {
this.totalNum = res.data.total;
res.data.list.forEach(e => {
if (e.attachments && e.attachments.length > 0) {
e.path = e.attachments[0].path;
e.resourceType = e.attachments[0].resourceType;
}
this.slideList[this.indexParent].push(e);
});
e.complete();
}
)
}
//前往搜索页面
goToSearch() {
this.navCtrl.push(SearchNewPage);
......@@ -620,5 +626,9 @@ export class DiscoverPage {
}
}
slideChanged() {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment