Compare commits
No commits in common. 'master' and 'LvYH_branch' have entirely different histories.
master
...
LvYH_branc
Before Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 164 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 86 KiB |
@ -1,3 +0,0 @@
|
|||||||
# 默认忽略的文件
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
@ -1,12 +0,0 @@
|
|||||||
<component name="ArtifactManager">
|
|
||||||
<artifact type="jar" name="OCR_baidu:jar">
|
|
||||||
<output-path>$PROJECT_DIR$/out/artifacts/OCR_baidu_jar</output-path>
|
|
||||||
<root id="archive" name="OCR_baidu.jar">
|
|
||||||
<element id="module-output" name="OCR_baidu" />
|
|
||||||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/json-20160810.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/slf4j-simple-1.7.25.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/aip-java-sdk-4.16.11.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/slf4j-api-1.7.25.jar" path-in-jar="/" />
|
|
||||||
</root>
|
|
||||||
</artifact>
|
|
||||||
</component>
|
|
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="CompilerConfiguration">
|
|
||||||
<annotationProcessing>
|
|
||||||
<profile default="true" name="Default" enabled="true" />
|
|
||||||
</annotationProcessing>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,9 +0,0 @@
|
|||||||
<component name="libraryTable">
|
|
||||||
<library name="aip-java-sdk-4.16.11">
|
|
||||||
<CLASSES>
|
|
||||||
<root url="jar://$PROJECT_DIR$/lib/aip-java-sdk-4.16.11.jar!/" />
|
|
||||||
</CLASSES>
|
|
||||||
<JAVADOC />
|
|
||||||
<SOURCES />
|
|
||||||
</library>
|
|
||||||
</component>
|
|
@ -1,11 +0,0 @@
|
|||||||
<component name="libraryTable">
|
|
||||||
<library name="json-20160810">
|
|
||||||
<CLASSES>
|
|
||||||
<root url="jar://$PROJECT_DIR$/lib/json-20160810.jar!/" />
|
|
||||||
</CLASSES>
|
|
||||||
<JAVADOC />
|
|
||||||
<SOURCES>
|
|
||||||
<root url="jar://$PROJECT_DIR$/lib/json-20160810.jar!/" />
|
|
||||||
</SOURCES>
|
|
||||||
</library>
|
|
||||||
</component>
|
|
@ -1,9 +0,0 @@
|
|||||||
<component name="libraryTable">
|
|
||||||
<library name="slf4j-api-1.7.25">
|
|
||||||
<CLASSES>
|
|
||||||
<root url="jar://$PROJECT_DIR$/lib/slf4j-api-1.7.25.jar!/" />
|
|
||||||
</CLASSES>
|
|
||||||
<JAVADOC />
|
|
||||||
<SOURCES />
|
|
||||||
</library>
|
|
||||||
</component>
|
|
@ -1,9 +0,0 @@
|
|||||||
<component name="libraryTable">
|
|
||||||
<library name="slf4j-simple-1.7.25">
|
|
||||||
<CLASSES>
|
|
||||||
<root url="jar://$PROJECT_DIR$/lib/slf4j-simple-1.7.25.jar!/" />
|
|
||||||
</CLASSES>
|
|
||||||
<JAVADOC />
|
|
||||||
<SOURCES />
|
|
||||||
</library>
|
|
||||||
</component>
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="CodeInsightWorkspaceSettings">
|
|
||||||
<option name="optimizeImportsOnTheFly" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
|
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/OCR_baidu.iml" filepath="$PROJECT_DIR$/OCR_baidu.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,124 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="Palette2">
|
|
||||||
<group name="Swing">
|
|
||||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
|
||||||
<initial-values>
|
|
||||||
<property name="text" value="Button" />
|
|
||||||
</initial-values>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
|
||||||
<initial-values>
|
|
||||||
<property name="text" value="RadioButton" />
|
|
||||||
</initial-values>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
|
||||||
<initial-values>
|
|
||||||
<property name="text" value="CheckBox" />
|
|
||||||
</initial-values>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
|
||||||
<initial-values>
|
|
||||||
<property name="text" value="Label" />
|
|
||||||
</initial-values>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
||||||
<preferred-size width="150" height="-1" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
||||||
<preferred-size width="150" height="-1" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
||||||
<preferred-size width="150" height="-1" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
|
||||||
<preferred-size width="200" height="200" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
|
||||||
<preferred-size width="200" height="200" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
|
||||||
<preferred-size width="-1" height="20" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
|
||||||
</item>
|
|
||||||
</group>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,53 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="AutoImportSettings">
|
|
||||||
<option name="autoReloadType" value="SELECTIVE" />
|
|
||||||
</component>
|
|
||||||
<component name="ChangeListManager">
|
|
||||||
<list default="true" id="df78773e-dd80-4766-8285-f044837e315a" name="变更" comment="" />
|
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
||||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
||||||
</component>
|
|
||||||
<component name="Git.Settings">
|
|
||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../../.." />
|
|
||||||
</component>
|
|
||||||
<component name="MarkdownSettingsMigration">
|
|
||||||
<option name="stateVersion" value="1" />
|
|
||||||
</component>
|
|
||||||
<component name="ProjectId" id="2I8n2RJqDuEdA4rT9gP1o3Hi6sl" />
|
|
||||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
||||||
<component name="ProjectViewState">
|
|
||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
|
||||||
<option name="showLibraryContents" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="PropertiesComponent"><![CDATA[{
|
|
||||||
"keyToString": {
|
|
||||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true"
|
|
||||||
}
|
|
||||||
}]]></component>
|
|
||||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
|
|
||||||
<component name="TaskManager">
|
|
||||||
<task active="true" id="Default" summary="默认任务">
|
|
||||||
<changelist id="df78773e-dd80-4766-8285-f044837e315a" name="变更" comment="" />
|
|
||||||
<created>1669571873455</created>
|
|
||||||
<option name="number" value="Default" />
|
|
||||||
<option name="presentableId" value="Default" />
|
|
||||||
<updated>1669571873455</updated>
|
|
||||||
</task>
|
|
||||||
<servers />
|
|
||||||
</component>
|
|
||||||
<component name="Vcs.Log.Tabs.Properties">
|
|
||||||
<option name="TAB_STATES">
|
|
||||||
<map>
|
|
||||||
<entry key="MAIN">
|
|
||||||
<value>
|
|
||||||
<State />
|
|
||||||
</value>
|
|
||||||
</entry>
|
|
||||||
</map>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,3 +0,0 @@
|
|||||||
Manifest-Version: 1.0
|
|
||||||
Main-Class: OCR
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="JAVA_MODULE" version="4">
|
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
||||||
<exclude-output />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="aip-java-sdk-4.16.11" level="project" />
|
|
||||||
<orderEntry type="library" name="json-20160810" level="project" />
|
|
||||||
<orderEntry type="library" name="slf4j-api-1.7.25" level="project" />
|
|
||||||
<orderEntry type="library" name="slf4j-simple-1.7.25" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
@ -1,3 +0,0 @@
|
|||||||
Manifest-Version: 1.0
|
|
||||||
Main-Class: HealthCode
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
Manifest-Version: 1.0
|
|
||||||
Main-Class: HealthCode
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
Manifest-Version: 1.0
|
|
||||||
Main-Class: HealthCode
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
{
|
|
||||||
"pages": [
|
|
||||||
"pages/home/home",
|
|
||||||
"pages/administrator_log/administrator_log",
|
|
||||||
"pages/user_log/user_log",
|
|
||||||
"pages/set/set",
|
|
||||||
"pages/user/user",
|
|
||||||
"pages/v6_administrator/v6_administrator",
|
|
||||||
"pages/v7_out_school/v7_out_school",
|
|
||||||
"pages/v8_in_school/v8_in_school",
|
|
||||||
"pages/v9_manual/v9_manual",
|
|
||||||
"pages/v10_auto/v10_auto",
|
|
||||||
"pages/v11_success/v11_success",
|
|
||||||
"pages/v12_submit_info/v12_submit_info",
|
|
||||||
"pages/v13_look_info/v13_look_info",
|
|
||||||
"pages/v15_scan_the_code/v15_scan_the_code",
|
|
||||||
"pages/info/info",
|
|
||||||
"pages/v19_test/v19_test",
|
|
||||||
"pages/v16_user_state/v16_user_state"
|
|
||||||
],
|
|
||||||
"window": {
|
|
||||||
"navigationBarBackgroundColor": "#00F5FF",
|
|
||||||
"navigationBarTextStyle": "white",
|
|
||||||
"navigationBarTitleText": "学生出入校管理",
|
|
||||||
"backgroundColor": "#000000",
|
|
||||||
"backgroundTextStyle": "dark"
|
|
||||||
},
|
|
||||||
"tabBar": {
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"pagePath": "pages/home/home",
|
|
||||||
"text": "首页",
|
|
||||||
"iconPath": "/static/image/home.png",
|
|
||||||
"selectedIconPath": "static/image/home-o.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pagePath": "pages/set/set",
|
|
||||||
"text": "简介",
|
|
||||||
"iconPath": "/static/image/my.png",
|
|
||||||
"selectedIconPath": "static/image/my-o.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
@ -1,45 +0,0 @@
|
|||||||
<!-- 雪花效果 -->
|
|
||||||
<scroll-view scroll-y="true">
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<!-- 主页面 -->
|
|
||||||
<view class="container">
|
|
||||||
<text style="height: 40rpx;"></text>
|
|
||||||
<view class="login-icon">
|
|
||||||
<image class="login-img" src="/static/image/CAUC.png"></image>
|
|
||||||
</view>
|
|
||||||
<view class="login-from">
|
|
||||||
|
|
||||||
<!--账号-->
|
|
||||||
<view class="inputView">
|
|
||||||
<image class="nameImage" src="/static/image/CAUC.png"></image>
|
|
||||||
<label class="loginLab">账号</label>
|
|
||||||
<input class="inputText" placeholder="请输入管理员账号" bindinput="usernameInput" />
|
|
||||||
</view>
|
|
||||||
<view class="line"></view>
|
|
||||||
|
|
||||||
<!--密码-->
|
|
||||||
<view class="inputView">
|
|
||||||
<image class="keyImage" src="/static/image/CAUC.png"></image>
|
|
||||||
<label class="loginLab">密码</label>
|
|
||||||
<input class="inputText" password="true" placeholder="请输入密码" bindinput="passwordInput" />
|
|
||||||
</view>
|
|
||||||
<view style="height: 20rpx;"></view>
|
|
||||||
<!-- <view class="s_view">
|
|
||||||
<button class="saveBtn" bindtap="to1" >注册</button>
|
|
||||||
<button class="submitBtn" bindtap="to2" >忘记密码</button>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<!--按钮-->
|
|
||||||
<view class="loginBtnView">
|
|
||||||
<button class="loginBtn" type="primary" bindtap="bindViewTap">登录</button>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</scroll-view>
|
|
||||||
<view>
|
|
||||||
<image wx:for="{{snows}}" wx:key="index" src="/static/image/CAUC.png" style="left:{{snows[index]}}rpx" animation="{{animation[index]}}" class='snow' data-index='{{index}}' />
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,138 +0,0 @@
|
|||||||
page{
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 1、表格的整体样式 */
|
|
||||||
.container {
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
padding: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
/* background-color: rgb(156, 23, 78) */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*2、登录的图片样式*/
|
|
||||||
.login-icon{
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 3、用来设置登录图片的宽度 */
|
|
||||||
.login-img{
|
|
||||||
|
|
||||||
width: 500rpx;
|
|
||||||
height: 500rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*4、表单内容*/
|
|
||||||
.login-from {
|
|
||||||
/* 设置表格上方的高度 */
|
|
||||||
margin-top: 20px;
|
|
||||||
flex: auto;
|
|
||||||
height:100%;
|
|
||||||
}
|
|
||||||
/* 5、设置输入的框 */
|
|
||||||
.inputView {
|
|
||||||
/* background-color: #fff; */
|
|
||||||
line-height: 50px;
|
|
||||||
border-radius:40px;
|
|
||||||
border:1px solid #161515;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*6、设置输入框旁边的图片*/
|
|
||||||
.nameImage, .keyImage {
|
|
||||||
margin-left: 22px;
|
|
||||||
width: 18px;
|
|
||||||
height: 16px
|
|
||||||
}
|
|
||||||
/* 7、设置账号、密码字体的颜色 */
|
|
||||||
.loginLab {
|
|
||||||
margin: 15px 15px 15px 10px;
|
|
||||||
color:blue;
|
|
||||||
font-size: 14px
|
|
||||||
}
|
|
||||||
/* 8、进行提示输入的框是灰色的 */
|
|
||||||
.inputText {
|
|
||||||
flex: block;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
margin-right: 22px;
|
|
||||||
margin-top: 11px;
|
|
||||||
color: gray;
|
|
||||||
font-size: 14px
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 9、 内部框图进行相应的分割*/
|
|
||||||
.line {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* .line {
|
|
||||||
width: 100%;
|
|
||||||
height: 1px;
|
|
||||||
background-color: #cccccc;
|
|
||||||
margin-top: 1px;
|
|
||||||
} */
|
|
||||||
|
|
||||||
/*10、设置按钮*/
|
|
||||||
.loginBtnView {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
/* background-color:#DCDCDC; */
|
|
||||||
margin-top: 0px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
padding-bottom: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loginBtn {
|
|
||||||
width: 90%;
|
|
||||||
margin-top: 40px;
|
|
||||||
border-radius:10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 设置字体颜色 */
|
|
||||||
.bxj{
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
/* 用来设置注册和忘记密码 */
|
|
||||||
.saveBtn {
|
|
||||||
width: 50% !important;
|
|
||||||
float:left;
|
|
||||||
font-weight: 100;
|
|
||||||
font-size: 10px;
|
|
||||||
}
|
|
||||||
.submitBtn {
|
|
||||||
width: 50% !important;
|
|
||||||
float:right;
|
|
||||||
font-size: 10px
|
|
||||||
|
|
||||||
}
|
|
||||||
.s_view{
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 雪花效果特效 */
|
|
||||||
page {
|
|
||||||
background: linear-gradient(180deg, #6699CC 0%, #B8DBF0 100%);
|
|
||||||
background-attachment: fixed;
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center top;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.snow {
|
|
||||||
width: fit-content;
|
|
||||||
position: absolute;
|
|
||||||
top: -100rpx;
|
|
||||||
width: 30rpx;
|
|
||||||
height: 27rpx;
|
|
||||||
z-index: 11;
|
|
||||||
}
|
|
||||||
|
|
||||||
.snow:nth-child(2n+2) {
|
|
||||||
width: 35rpx;
|
|
||||||
height: 33rpx;
|
|
||||||
}
|
|
@ -1,113 +0,0 @@
|
|||||||
// pages/index/index.js
|
|
||||||
Page({
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
|
||||||
message:"你好nihao",
|
|
||||||
datalist:['黑夜','白天','中午'],
|
|
||||||
userinfo:{
|
|
||||||
name:"白雪健",
|
|
||||||
age:20
|
|
||||||
},
|
|
||||||
Image1:["/static/image/apic2098.jpg","/static/image/apic2098.jpg"]
|
|
||||||
},
|
|
||||||
|
|
||||||
uploadimage:function(){
|
|
||||||
var that = this;
|
|
||||||
wx.chooseMedia({
|
|
||||||
mediaType: ['image','video'],
|
|
||||||
sourceType: ['album', 'camera'],
|
|
||||||
maxDuration: 30,
|
|
||||||
camera: 'back',
|
|
||||||
success(res) {
|
|
||||||
|
|
||||||
console.log(res),
|
|
||||||
console.log(res.tempFiles[0].tempFilePath),
|
|
||||||
that.setData({
|
|
||||||
Image1:that.data.Image1.concat(res.tempFiles[0].tempFilePath)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
// clearimage:function(){
|
|
||||||
// this.setData({
|
|
||||||
// Image1:''
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
|
|
||||||
// 输入用户名所采取的行动
|
|
||||||
|
|
||||||
fakeCallback:function(e){
|
|
||||||
console.log(1)
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad(options) {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
},
|
|
||||||
clickme:function(){
|
|
||||||
wx.navigateTo({
|
|
||||||
url: '/pages/administrator_log/administrator_log',
|
|
||||||
})
|
|
||||||
},
|
|
||||||
clickme1:function(){
|
|
||||||
wx.navigateTo({
|
|
||||||
url: '/pages/user_log/user_log',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
@ -1,61 +0,0 @@
|
|||||||
<!--pages/index/index.wxml-->
|
|
||||||
<!-- span标签 -->
|
|
||||||
<view class="banner">
|
|
||||||
<swiper indicator-dots indicator-color="rgba(255,255,255,0.5)"
|
|
||||||
indicator-active-color="#fff" circular autoplay interval="4000">
|
|
||||||
<swiper-item><image src="/static/image/1.jpg"></image></swiper-item>
|
|
||||||
<swiper-item><image src="/static/image/2.jpg"></image></swiper-item>
|
|
||||||
<swiper-item><image src="/static/image/3.jpg"></image></swiper-item>
|
|
||||||
</swiper>
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="header">
|
|
||||||
<!-- 代码 -->
|
|
||||||
<image class="bg_ware" src="https://codermoyv.gitee.io/coder-moyv/assets/images/wechat/bg_wave.gif"></image>
|
|
||||||
|
|
||||||
|
|
||||||
<view class="content">
|
|
||||||
<view class="menu">
|
|
||||||
<view class="item">
|
|
||||||
<image src="/static/image/CAUC.png" bindtap="clickme1" class="image1"></image>
|
|
||||||
<text style="color: bisque;">用户</text>
|
|
||||||
</view>
|
|
||||||
<view class="item">
|
|
||||||
<image src="/static/image/CAUC.png" bindtap="clickme" class="image1"></image>
|
|
||||||
<text style="color: bisque;">管理员</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- </view>
|
|
||||||
<view wx:for="{{datalist}}">{{index}}-{{item}}</view>
|
|
||||||
<view wx:for="{{userinfo}}">{{index}}-{{item}}</view> -->
|
|
||||||
|
|
||||||
<!-- 上传图片 -->
|
|
||||||
<!-- <view>请上传图片</view>
|
|
||||||
<view >
|
|
||||||
<image wx:for="{{Image1}}" src="{{item}}"></image>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view bindtap="uploadimage"> <button>请上传图片</button></view> -->
|
|
||||||
|
|
||||||
<!-- 输入用户名 -->
|
|
||||||
<!-- <view>您输入了{{message}}</view>
|
|
||||||
<view>
|
|
||||||
<input model:value="{{message}}" bindinput="fakeCallback"/>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,64 +0,0 @@
|
|||||||
/* pages/index/index.wxss */
|
|
||||||
.c1{
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
.image1{
|
|
||||||
width: 200rpx;
|
|
||||||
height: 200rpx;
|
|
||||||
/* 如果要设置圆角的话 */
|
|
||||||
border-radius: 100rpx;
|
|
||||||
}
|
|
||||||
.menu{
|
|
||||||
display: flex;
|
|
||||||
/* 规定主轴的方向 */
|
|
||||||
flex-direction: row;
|
|
||||||
/* 元素在主轴方向的排列方式 我用的是平均排列*/
|
|
||||||
justify-content: space-around;
|
|
||||||
/* 元素在负轴方向如何展示 */
|
|
||||||
/* align-items: center; */
|
|
||||||
|
|
||||||
}
|
|
||||||
/* 缺个空格差点g。 */
|
|
||||||
.menu .item{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
/* 元素在负轴方向如何展示 */
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 设置背景图片 */
|
|
||||||
|
|
||||||
.banner{
|
|
||||||
|
|
||||||
width: 100%;
|
|
||||||
height: 550rpx;
|
|
||||||
}
|
|
||||||
.banner swiper{
|
|
||||||
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.banner image{
|
|
||||||
|
|
||||||
width: 100%;
|
|
||||||
height: 550rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header {
|
|
||||||
position: relative;
|
|
||||||
height:300rpx;
|
|
||||||
background: linear-gradient(to bottom, #56ccf2, #2f80ed);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg_ware {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
bottom: -2rpx;
|
|
||||||
width: 100%;
|
|
||||||
mix-blend-mode: screen;
|
|
||||||
height: 120rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,139 +0,0 @@
|
|||||||
// pages/info/info.js
|
|
||||||
var app = getApp();
|
|
||||||
Page({
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
|
||||||
list:[],
|
|
||||||
image:[]
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad(options) {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady() {
|
|
||||||
|
|
||||||
},
|
|
||||||
// 返回通过的信息
|
|
||||||
backR:function(){
|
|
||||||
// console.log(abc)
|
|
||||||
// console.log(abc.currentTarget.dataset.abc)
|
|
||||||
wx.request({
|
|
||||||
url: 'http://127.0.0.1:2020/access',
|
|
||||||
data: {
|
|
||||||
data:this.data.list[2],
|
|
||||||
condition:'通过'
|
|
||||||
},
|
|
||||||
dataType: JSON,
|
|
||||||
enableCache: true,
|
|
||||||
enableHttp2: true,
|
|
||||||
enableQuic: true,
|
|
||||||
method: 'POST',
|
|
||||||
timeout: 0,
|
|
||||||
success: (result) => {
|
|
||||||
console.log(this.data.list[2])
|
|
||||||
wx.redirectTo({
|
|
||||||
url: '/pages/v9_manual/v9_manual',
|
|
||||||
})
|
|
||||||
// console.log(result.data)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//返回不通过的信息
|
|
||||||
backE:function(){
|
|
||||||
// console.log(abc)
|
|
||||||
wx.request({
|
|
||||||
url: 'http://127.0.0.1:2020/access',
|
|
||||||
dataType: JSON,
|
|
||||||
enableCache: true,
|
|
||||||
enableHttp2: true,
|
|
||||||
enableQuic: true,
|
|
||||||
method: 'POST',
|
|
||||||
timeout: 0,
|
|
||||||
|
|
||||||
data:{
|
|
||||||
data:this.data.list[2],
|
|
||||||
condition:'不通过'
|
|
||||||
},
|
|
||||||
success: (result) => {
|
|
||||||
wx.redirectTo({
|
|
||||||
url: '/pages/v9_manual/v9_manual',
|
|
||||||
})
|
|
||||||
// console.log(2)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow() {
|
|
||||||
console.log(app.globalData.no)
|
|
||||||
var that = this;
|
|
||||||
wx.request({
|
|
||||||
url: 'http://127.0.0.1:2020/info',
|
|
||||||
dataType: JSON,
|
|
||||||
method: 'GET',
|
|
||||||
timeout: 0,
|
|
||||||
success: (res) => {
|
|
||||||
// console.log(res.data)
|
|
||||||
var p = JSON.parse(res.data)
|
|
||||||
// console.log(app.globalData.no)
|
|
||||||
// console.log(p.test1[app.globalData.no])
|
|
||||||
// console.log(p.image)
|
|
||||||
// console.log(p)
|
|
||||||
// console.log(p.test1[app.globalData.no])
|
|
||||||
that.setData({
|
|
||||||
list:p.test1[app.globalData.no],
|
|
||||||
image:p.image[app.globalData.no]
|
|
||||||
})
|
|
||||||
// console.log(this.data.list[2])
|
|
||||||
// console.log(that.data.image)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
<!--pages/info/info.wxml-->
|
|
||||||
<!-- 循环遍历人员详细信息的列表 -->
|
|
||||||
<view wx:for="{{list}}">
|
|
||||||
<view>{{item}}</view>
|
|
||||||
</view>
|
|
||||||
<!-- <view>{{index}}</view> -->
|
|
||||||
<!-- 对base64编码进行解码成图片 -->
|
|
||||||
<view>
|
|
||||||
<view wx:for="{{image}}">
|
|
||||||
<!-- 设置图片的样式,两张图片并排 -->
|
|
||||||
<view class="school-list">
|
|
||||||
<view class="school-list-info" >
|
|
||||||
<image class="school-list-photo" src="data:image/png;base64,{{item}}"></image>
|
|
||||||
<!-- <text class="school-list-desc">{{item.content}}</text> -->
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<!-- 设置是否给通过 -->
|
|
||||||
</view>
|
|
||||||
<button bindtap="backR" >通过</button>
|
|
||||||
<view style="height: 50rpx;"></view>
|
|
||||||
<button bindtap="backE" >不通过</button>
|
|
||||||
<!-- 设置一些间距 -->
|
|
||||||
<view style="height: 100rpx;"></view>
|
|
||||||
</view>
|
|
||||||
<!-- <view>{{image}}</view> -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
/* pages/info/info.wxss */
|
|
||||||
.schoollist{
|
|
||||||
margin-top: 20rpx;
|
|
||||||
}
|
|
||||||
.school-list-info{
|
|
||||||
float: left;
|
|
||||||
margin-left: 20rpx;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.school-list-photo{
|
|
||||||
width: 350rpx;
|
|
||||||
height: 700rpx;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
@ -1,45 +0,0 @@
|
|||||||
<!-- 雪花效果 -->
|
|
||||||
<scroll-view scroll-y="true">
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<!-- 主页面 -->
|
|
||||||
<view class="container">
|
|
||||||
<text style="height: 40rpx;"></text>
|
|
||||||
<view class="login-icon">
|
|
||||||
<image class="login-img" src="/static/image/CAUC.png"></image>
|
|
||||||
</view>
|
|
||||||
<view class="login-from">
|
|
||||||
|
|
||||||
<!--账号-->
|
|
||||||
<view class="inputView">
|
|
||||||
<image class="nameImage" src="/static/image/CAUC.png"></image>
|
|
||||||
<label class="loginLab">账号</label>
|
|
||||||
<input class="inputText" placeholder="请输入用户账号" bindinput="usernameInput" />
|
|
||||||
</view>
|
|
||||||
<view class="line"></view>
|
|
||||||
|
|
||||||
<!--密码-->
|
|
||||||
<view class="inputView">
|
|
||||||
<image class="keyImage" src="/static/image/CAUC.png"></image>
|
|
||||||
<label class="loginLab">密码</label>
|
|
||||||
<input class="inputText" password="true" placeholder="请输入密码" bindinput="passwordInput" />
|
|
||||||
</view>
|
|
||||||
<view style="height: 20rpx;"></view>
|
|
||||||
<!-- <view class="s_view">
|
|
||||||
<button class="saveBtn" bindtap="to1" >注册</button>
|
|
||||||
<button class="submitBtn" bindtap="to2" >忘记密码</button>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<!--按钮-->
|
|
||||||
<view class="loginBtnView">
|
|
||||||
<button class="loginBtn" type="primary" bindtap="bindViewTap">登录</button>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</scroll-view>
|
|
||||||
<view>
|
|
||||||
<image wx:for="{{snows}}" wx:key="index" src="/static/image/CAUC.png" style="left:{{snows[index]}}rpx" animation="{{animation[index]}}" class='snow' data-index='{{index}}' />
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,138 +0,0 @@
|
|||||||
page{
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 1、表格的整体样式 */
|
|
||||||
.container {
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
padding: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
/* background-color: rgb(156, 23, 78) */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*2、登录的图片样式*/
|
|
||||||
.login-icon{
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 3、用来设置登录图片的宽度 */
|
|
||||||
.login-img{
|
|
||||||
|
|
||||||
width: 500rpx;
|
|
||||||
height: 500rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*4、表单内容*/
|
|
||||||
.login-from {
|
|
||||||
/* 设置表格上方的高度 */
|
|
||||||
margin-top: 20px;
|
|
||||||
flex: auto;
|
|
||||||
height:100%;
|
|
||||||
}
|
|
||||||
/* 5、设置输入的框 */
|
|
||||||
.inputView {
|
|
||||||
/* background-color: #fff; */
|
|
||||||
line-height: 50px;
|
|
||||||
border-radius:40px;
|
|
||||||
border:1px solid #161515;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*6、设置输入框旁边的图片*/
|
|
||||||
.nameImage, .keyImage {
|
|
||||||
margin-left: 22px;
|
|
||||||
width: 18px;
|
|
||||||
height: 16px
|
|
||||||
}
|
|
||||||
/* 7、设置账号、密码字体的颜色 */
|
|
||||||
.loginLab {
|
|
||||||
margin: 15px 15px 15px 10px;
|
|
||||||
color:blue;
|
|
||||||
font-size: 14px
|
|
||||||
}
|
|
||||||
/* 8、进行提示输入的框是灰色的 */
|
|
||||||
.inputText {
|
|
||||||
flex: block;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
margin-right: 22px;
|
|
||||||
margin-top: 11px;
|
|
||||||
color: gray;
|
|
||||||
font-size: 14px
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 9、 内部框图进行相应的分割*/
|
|
||||||
.line {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* .line {
|
|
||||||
width: 100%;
|
|
||||||
height: 1px;
|
|
||||||
background-color: #cccccc;
|
|
||||||
margin-top: 1px;
|
|
||||||
} */
|
|
||||||
|
|
||||||
/*10、设置按钮*/
|
|
||||||
.loginBtnView {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
/* background-color:#DCDCDC; */
|
|
||||||
margin-top: 0px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
padding-bottom: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loginBtn {
|
|
||||||
width: 90%;
|
|
||||||
margin-top: 40px;
|
|
||||||
border-radius:10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 设置字体颜色 */
|
|
||||||
.bxj{
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
/* 用来设置注册和忘记密码 */
|
|
||||||
.saveBtn {
|
|
||||||
width: 50% !important;
|
|
||||||
float:left;
|
|
||||||
font-weight: 100;
|
|
||||||
font-size: 10px;
|
|
||||||
}
|
|
||||||
.submitBtn {
|
|
||||||
width: 50% !important;
|
|
||||||
float:right;
|
|
||||||
font-size: 10px
|
|
||||||
|
|
||||||
}
|
|
||||||
.s_view{
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 雪花效果特效 */
|
|
||||||
page {
|
|
||||||
background: linear-gradient(180deg, #6699CC 0%, #B8DBF0 100%);
|
|
||||||
background-attachment: fixed;
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center top;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.snow {
|
|
||||||
width: fit-content;
|
|
||||||
position: absolute;
|
|
||||||
top: -100rpx;
|
|
||||||
width: 30rpx;
|
|
||||||
height: 27rpx;
|
|
||||||
z-index: 11;
|
|
||||||
}
|
|
||||||
|
|
||||||
.snow:nth-child(2n+2) {
|
|
||||||
width: 35rpx;
|
|
||||||
height: 33rpx;
|
|
||||||
}
|
|
@ -1,71 +0,0 @@
|
|||||||
// pages/v11_success/v11_success.js
|
|
||||||
Page({
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
|
||||||
|
|
||||||
},
|
|
||||||
c1:function(){
|
|
||||||
wx.switchTab({
|
|
||||||
url: '/pages/home/home',
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad(options) {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
<!--pages/v11_success/v11_success.wxml-->
|
|
||||||
<view style="height: 100rpx;"></view>
|
|
||||||
<!--按钮-->
|
|
||||||
<view class="loginBtnView">
|
|
||||||
<button class="loginBtn" type="warn" >成功提交表单</button>
|
|
||||||
<view style="height: 100rpx;"></view>
|
|
||||||
<navigator url="/pages/user/user"><button class="loginBtn" type="primary" >点击返回用户首页</button> </navigator>
|
|
||||||
|
|
||||||
<view style="height: 100rpx;"></view>
|
|
||||||
<button class="loginBtn" type="primary" bindtap="c1" >点击返回首页</button>
|
|
||||||
|
|
||||||
</view>
|
|
@ -1 +0,0 @@
|
|||||||
/* pages/v11_success/v11_success.wxss */
|
|
@ -1,66 +0,0 @@
|
|||||||
// pages/v10_auto/v10_auto.js
|
|
||||||
Page({
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad(options) {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
<!--pages/v10_auto/v10_auto.wxml-->
|
|
||||||
<text>pages/v10_auto/v10_auto.wxml</text>
|
|
@ -1 +0,0 @@
|
|||||||
/* pages/v10_auto/v10_auto.wxss */
|
|
@ -1,66 +0,0 @@
|
|||||||
// pages/v12_submit_info/v12_submit_info.js
|
|
||||||
Page({
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad(options) {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,2 +0,0 @@
|
|||||||
<!--pages/v12_submit_info/v12_submit_info.wxml-->
|
|
||||||
<text>pages/v12_submit_info/v12_submit_info.wxml</text>
|
|
@ -1,156 +0,0 @@
|
|||||||
// pages/v6_administrator/v6_administrator.js
|
|
||||||
Page({
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
|
||||||
|
|
||||||
swiperList: [
|
|
||||||
{
|
|
||||||
type: 'video',
|
|
||||||
url: 'https://static.51dh.com.cn/dbp/12/98/4494bd8a6e0fcd4a992f25a42bea28f8d1fb.mp4'
|
|
||||||
}, {
|
|
||||||
type: 'image',
|
|
||||||
url: 'https://i.postimg.cc/mgsKJGLw/susu1.jpg'
|
|
||||||
}, {
|
|
||||||
|
|
||||||
type: 'image',
|
|
||||||
url: 'https://i.postimg.cc/qRRLS16Q/susu0.jpg',
|
|
||||||
}, {
|
|
||||||
|
|
||||||
type: 'image',
|
|
||||||
url: 'https://i.postimg.cc/pXDp6RXq/susu3.jpg'
|
|
||||||
}, {
|
|
||||||
|
|
||||||
type: 'image',
|
|
||||||
url: 'https://i.postimg.cc/XJmpTvCD/susu2.jpg'
|
|
||||||
}, {
|
|
||||||
|
|
||||||
type: 'image',
|
|
||||||
url: 'https://i.postimg.cc/76br1jzJ/susu1.jpg'
|
|
||||||
}, {
|
|
||||||
|
|
||||||
type: 'image',
|
|
||||||
url: 'https://i.postimg.cc/pXDp6RXq/susu3.jpg'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
|
|
||||||
type: 'image',
|
|
||||||
url: 'https://i.postimg.cc/XJmpTvCD/susu2.jpg'
|
|
||||||
},
|
|
||||||
],
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad: function (options) {
|
|
||||||
this.tauchSwiper('swiperList');
|
|
||||||
},
|
|
||||||
|
|
||||||
// 初始化tauchSwiper
|
|
||||||
tauchSwiper(name) {
|
|
||||||
let list = this.data[name];
|
|
||||||
for (let i = 0; i < list.length; i++) {
|
|
||||||
// Math.abs(x) 函数返回指定数字 “x“ 的绝对值
|
|
||||||
list[i].zIndex = parseInt(list.length / 2) + 1 - Math.abs(i - parseInt(list.length / 2))
|
|
||||||
list[i].mLeft = i - parseInt(list.length / 2)
|
|
||||||
}
|
|
||||||
this.setData({
|
|
||||||
swiperList: list
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// tauchSwiper触摸开始
|
|
||||||
tauchStart(e) {
|
|
||||||
this.setData({
|
|
||||||
tauchStart: e.touches[0].pageX
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// tauchSwiper计算方向
|
|
||||||
tauchMove(e) {
|
|
||||||
this.setData({
|
|
||||||
direction: e.touches[0].pageX - this.data.tauchStart > 0 ? 'right' : 'left'
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// tauchSwiper计算滚动
|
|
||||||
tauchEnd(e) {
|
|
||||||
let direction = this.data.direction;
|
|
||||||
let list = this.data.swiperList;
|
|
||||||
if (direction == 'right') {
|
|
||||||
let mLeft = list[0].mLeft;
|
|
||||||
let zIndex = list[0].zIndex;
|
|
||||||
for (let i = 1; i < list.length; i++) {
|
|
||||||
list[i - 1].mLeft = list[i].mLeft
|
|
||||||
list[i - 1].zIndex = list[i].zIndex
|
|
||||||
}
|
|
||||||
list[list.length - 1].mLeft = mLeft;
|
|
||||||
list[list.length - 1].zIndex = zIndex;
|
|
||||||
this.setData({
|
|
||||||
swiperList: list
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
let mLeft = list[list.length - 1].mLeft;
|
|
||||||
let zIndex = list[list.length - 1].zIndex;
|
|
||||||
for (let i = list.length - 1; i > 0; i--) {
|
|
||||||
list[i].mLeft = list[i - 1].mLeft
|
|
||||||
list[i].zIndex = list[i - 1].zIndex
|
|
||||||
}
|
|
||||||
list[0].mLeft = mLeft;
|
|
||||||
list[0].zIndex = zIndex;
|
|
||||||
this.setData({
|
|
||||||
swiperList: list
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
<!--pages/v6_administrator/v6_administrator.wxml-->
|
|
||||||
<view class="header">
|
|
||||||
<!-- 代码 -->
|
|
||||||
<image class="bg_ware" src="https://codermoyv.gitee.io/coder-moyv/assets/images/wechat/bg_wave.gif"></image>
|
|
||||||
<!-- 进入到主页面 -->
|
|
||||||
|
|
||||||
<view class="menu">
|
|
||||||
<view class="item">
|
|
||||||
<navigator url="/pages/v13_look_info/v13_look_info"><image class="image1" src="/static/image/CAUC.png" ></image></navigator>
|
|
||||||
<text style="color: bisque;">查看疫情信息</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="item">
|
|
||||||
<navigator url="/pages/v9_manual/v9_manual"><image class="image1" src="/static/image/CAUC.png" ></image></navigator>
|
|
||||||
<text style="color: bisque;">审批</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 轮播图 -->
|
|
||||||
<view class="swiper-box" bindtouchmove="tauchMove" bindtouchstart="tauchStart" bindtouchend="tauchEnd">
|
|
||||||
<view class="item-box {{item.zIndex==1?'none':''}}" wx:for="{{swiperList}}" wx:key="index" style="--index:{{item.zIndex}};--left:{{item.mLeft}}">
|
|
||||||
<view class="swiper-item">
|
|
||||||
<image src="{{item.url}}" mode="aspectFill" wx:if="{{item.type=='image'}}"></image>
|
|
||||||
<video src="{{item.url}}" autoplay loop muted show-play-btn="{{false}}" controls="{{false}}" objectFit="cover" wx:if="{{item.type=='video'}}"></video>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
@ -1,104 +0,0 @@
|
|||||||
/* pages/index/index.wxss */
|
|
||||||
.c1{
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
.image1{
|
|
||||||
width: 200rpx;
|
|
||||||
height: 200rpx;
|
|
||||||
/* 如果要设置圆角的话 */
|
|
||||||
border-radius: 100rpx;
|
|
||||||
}
|
|
||||||
.menu{
|
|
||||||
display: flex;
|
|
||||||
/* 规定主轴的方向 */
|
|
||||||
flex-direction: row;
|
|
||||||
/* 元素在主轴方向的排列方式 我用的是平均排列*/
|
|
||||||
justify-content: space-around;
|
|
||||||
/* 元素在负轴方向如何展示 */
|
|
||||||
/* align-items: center; */
|
|
||||||
|
|
||||||
}
|
|
||||||
/* 缺个空格差点g。 */
|
|
||||||
.menu .item{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
/* 元素在负轴方向如何展示 */
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 波浪的渲染 */
|
|
||||||
.header {
|
|
||||||
position: relative;
|
|
||||||
height:450rpx;
|
|
||||||
background: linear-gradient(to bottom, #56ccf2, #2f80ed);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg_ware {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
bottom: -2rpx;
|
|
||||||
width: 100%;
|
|
||||||
mix-blend-mode: screen;
|
|
||||||
height: 120rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 轮播图 */
|
|
||||||
.swiper-item image,
|
|
||||||
.swiper-item video {
|
|
||||||
width: 100%;
|
|
||||||
display: block;
|
|
||||||
height: 100%;
|
|
||||||
margin: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
image {
|
|
||||||
max-width: 100%;
|
|
||||||
display: inline-block;
|
|
||||||
position: relative;
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.swiper-box {
|
|
||||||
height: 420rpx;
|
|
||||||
position: relative;
|
|
||||||
max-width: 750rpx;
|
|
||||||
overflow: hidden;
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin-top: 90rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.swiper-box .item-box {
|
|
||||||
position: absolute;
|
|
||||||
width: 300rpx;
|
|
||||||
height: 380rpx;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 50%;
|
|
||||||
margin: auto;
|
|
||||||
transition: all 0.2s ease-in 0s;
|
|
||||||
opacity: 1;
|
|
||||||
box-shadow: 0px 13rpx 12rpx rgba(0, 0, 0, .5);
|
|
||||||
border-radius: 15rpx;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.swiper-box .item-box.none {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.swiper-box .item-box .swiper-item {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
border-radius: 6rpx;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.swiper-box .item-box {
|
|
||||||
transform: scale(calc(0.5 + var(--index) / 10));
|
|
||||||
margin-left: calc(var(--left) * 100rpx - 150rpx);
|
|
||||||
z-index: var(--index);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,265 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
Page({
|
|
||||||
data: {
|
|
||||||
name: '', //姓名
|
|
||||||
sno:" ",//学号
|
|
||||||
|
|
||||||
phone: '', //手机号
|
|
||||||
time:"",//入校时间,
|
|
||||||
door:"",//校门
|
|
||||||
city:"",//省市
|
|
||||||
area:"",//区
|
|
||||||
address:"",//详细地址
|
|
||||||
images: [] ,//存放图片的数组
|
|
||||||
|
|
||||||
test:[],
|
|
||||||
},
|
|
||||||
|
|
||||||
// 个人简介
|
|
||||||
bindTextAreaBlur(e) {
|
|
||||||
this.setData({
|
|
||||||
describe: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//点击添加按钮上传图片
|
|
||||||
chooseImage: function(e) {
|
|
||||||
var that = this
|
|
||||||
wx.chooseMedia({
|
|
||||||
sizeType: ['original', 'compressed'], //可选择原图或压缩后的图片
|
|
||||||
sourceType: ['album', 'camera'], //可选择性开放访问相册、相机
|
|
||||||
success: res => {
|
|
||||||
// console.log(res)
|
|
||||||
var team_image = wx.getFileSystemManager().readFileSync(res.tempFiles[0].tempFilePath, "base64") //将图片进行base64编码。
|
|
||||||
if (this.data.images.length <= 2) {
|
|
||||||
|
|
||||||
const test = this.data.test.concat(team_image)
|
|
||||||
const images = this.data.images.concat(res.tempFiles[0].tempFilePath)
|
|
||||||
// 限制最多只能留下2张照片
|
|
||||||
that.setData({
|
|
||||||
test:test,
|
|
||||||
images: images
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
wx.showToast({
|
|
||||||
title: '最多只能选择三张照片',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000,
|
|
||||||
mask: true
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
removeImage(e) {
|
|
||||||
const idx = e.target.dataset.idx;
|
|
||||||
console.log(e.target.dataset.idx);
|
|
||||||
this.data.images.splice(idx, 1);
|
|
||||||
var del_image = this.data.images;
|
|
||||||
this.setData({
|
|
||||||
images: del_image
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleImagePreview(e) {
|
|
||||||
const idx = e.target.dataset.idx
|
|
||||||
const images = this.data.images
|
|
||||||
wx.previewImage({
|
|
||||||
current: images[idx], //当前预览的图片
|
|
||||||
urls: images, //所有要预览的图片
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
upload_info: function() {
|
|
||||||
var images_list = []; //设置了一个空数组进行储存服务器端图片路径
|
|
||||||
var phone_reg = /^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/; //手机正则
|
|
||||||
|
|
||||||
var that = this;
|
|
||||||
//验证表单信息
|
|
||||||
if (that.data.name == '') {
|
|
||||||
wx.showToast({
|
|
||||||
title: '姓名不能为空',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000,
|
|
||||||
mask: true
|
|
||||||
})
|
|
||||||
} else if (that.data.phone == '' || phone_reg.test(that.data.phone) == false) {
|
|
||||||
wx.showToast({
|
|
||||||
title: '请输入正确的手机号码',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000,
|
|
||||||
mask: true
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
// 进行request请求
|
|
||||||
wx.request({
|
|
||||||
url: 'http://127.0.0.1:2020/out_school',
|
|
||||||
data: {name:this.data.name,
|
|
||||||
sno:this.data.sno,
|
|
||||||
phone:this.data.phone,
|
|
||||||
time:this.data.time,
|
|
||||||
door:this.data.door,
|
|
||||||
city:this.data.city,
|
|
||||||
area:this.data.area,
|
|
||||||
address:this.data.address,
|
|
||||||
// images:this.data.images,
|
|
||||||
test:this.data.test,
|
|
||||||
type:'出校'
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
enableCache: true,
|
|
||||||
enableHttp2: true,
|
|
||||||
enableQuic: true,
|
|
||||||
method: 'POST',
|
|
||||||
timeout: 0,
|
|
||||||
success: (result) => {
|
|
||||||
console.log(result)
|
|
||||||
if(result.data=='1'){
|
|
||||||
wx.navigateTo({
|
|
||||||
url: '/pages/v11_success/v11_success',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if(result.data=='2'){
|
|
||||||
wx.showModal({
|
|
||||||
cancelColor: 'cancelColor',
|
|
||||||
title: '您已经提交过申请,请在通过情况中查看',
|
|
||||||
success: function (res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
console.log('用户点击确定')
|
|
||||||
} else {
|
|
||||||
console.log('用户点击取消')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if(result.data=='3'){
|
|
||||||
wx.showModal({
|
|
||||||
cancelColor: 'cancelColor',
|
|
||||||
title: '您目前状态为出校,不能提交出校申请',
|
|
||||||
success: function (res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
console.log('用户点击确定')
|
|
||||||
} else {
|
|
||||||
console.log('用户点击取消')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
fail: (res) => {
|
|
||||||
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
// 姓名
|
|
||||||
name: function(e) {
|
|
||||||
// console.log(e)
|
|
||||||
this.setData({
|
|
||||||
name: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 电话
|
|
||||||
phone: function(e) {
|
|
||||||
this.setData({
|
|
||||||
phone: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//学号
|
|
||||||
sno: function(e) {
|
|
||||||
this.setData({
|
|
||||||
sno: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
//时间
|
|
||||||
time: function(e) {
|
|
||||||
this.setData({
|
|
||||||
time: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 校门
|
|
||||||
door: function(e) {
|
|
||||||
this.setData({
|
|
||||||
door: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//省市
|
|
||||||
city: function(e) {
|
|
||||||
this.setData({
|
|
||||||
city: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
//区
|
|
||||||
area: function(e) {
|
|
||||||
this.setData({
|
|
||||||
area: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//详细地址
|
|
||||||
address: function(e) {
|
|
||||||
this.setData({
|
|
||||||
address: e.detail.value
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady: function() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow: function() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide: function() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload: function() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh: function() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom: function() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage: function() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|