Compare commits
No commits in common. 'master' and 'fuzh_branch' have entirely different histories.
master
...
fuzh_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,66 +0,0 @@
|
||||
// pages/v10_auto/v10_auto.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
@ -1,2 +0,0 @@
|
||||
<!--pages/v10_auto/v10_auto.wxml-->
|
||||
<text>pages/v10_auto/v10_auto.wxml</text>
|
@ -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,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": {}
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
<view class='box'>
|
||||
<view class="section">
|
||||
<input placeholder="姓名" bindblur="name" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view class="section">
|
||||
<input placeholder="学号" bindblur="sno" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<input type='number' placeholder="电话" bindblur="phone" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<input placeholder="时间" bindblur="time" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view class="section">
|
||||
<input placeholder="校门" bindblur="door" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view class="section">
|
||||
<input placeholder="省市" bindblur="city" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view class="section">
|
||||
<input placeholder="区" bindblur="area" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<input placeholder="详细地址" bindblur="address" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <view class="section" style='height:165px;'>
|
||||
<textarea class='texta' bindblur="bindTextAreaBlur" placeholder="个人简介" />
|
||||
</view> -->
|
||||
<view class='upload_img'>
|
||||
<view class='upload_img_btn'>
|
||||
<view class='title'>
|
||||
<view class='shu'></view>
|
||||
<text>核酸报告,健康码图片</text>
|
||||
</view>
|
||||
<button type="primary" size="mini" bindtap="chooseImage" class='btn'>添加</button>
|
||||
</view>
|
||||
<view class='img_box' id='imgs' style='display:flex;justify-content: space-between;padding-top:10px;'>
|
||||
<!-- 存放上传的图片的盒子 -->
|
||||
<block wx:for="{{images}}" wx:key="*this">
|
||||
<view class="q-image-wrap imgs">
|
||||
<!-- 图片缩略图 -->
|
||||
<image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleImagePreview"></image>
|
||||
<!-- 移除图片的按钮 -->
|
||||
<view class="q-image-remover delete" data-idx="{{index}}" bindtap="removeImage">删除</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view>{{images}}</view> -->
|
||||
<view class='btn_box'>
|
||||
<button type="primary" bindtap="upload_info" class='upload_info'>提交表单</button>
|
||||
|
||||
</view>
|
||||
</view>
|
@ -1,265 +0,0 @@
|
||||
.box{
|
||||
background-color: #efeff4;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.input-placeholder{
|
||||
font-size: 16px;
|
||||
}
|
||||
.section{
|
||||
width: 100%;
|
||||
height: 55px;
|
||||
box-sizing: border-box;
|
||||
padding-top: 15px;
|
||||
font-size: 16px;
|
||||
display: flex;
|
||||
}
|
||||
.section input{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
border-radius: 6px;
|
||||
background-color:#FFF;
|
||||
height: 40px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 45px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 26px 26px;
|
||||
background-position: 10px 7px;
|
||||
}
|
||||
.sex_age_box{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
padding: 0 5%;
|
||||
|
||||
}
|
||||
.section_sex{
|
||||
width: 47.5%;
|
||||
margin-top:15px;
|
||||
background-color: #FFF;
|
||||
height: 40px;
|
||||
border-radius: 6px;
|
||||
font-size: 16px;
|
||||
color: #777777;
|
||||
}
|
||||
.imgs_sex{
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
display: inline-block;
|
||||
margin: 7px 5% 0 4%;
|
||||
}
|
||||
.text_sex{
|
||||
position: relative;
|
||||
top: -7px;
|
||||
}
|
||||
.section_age{
|
||||
width: 47.5%;
|
||||
margin-top:15px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.section_age input{
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
border-radius: 6px;
|
||||
background-color:#FFF;
|
||||
height: 40px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 45px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 26px 26px;
|
||||
background-position: 10px 7px;
|
||||
}
|
||||
.texta{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
border-radius: 6px;
|
||||
background-color:#FFF;
|
||||
height: 150px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
.upload_img{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
background-color: #FFF;
|
||||
margin-top: 15px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.upload_img_btn{
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
border-bottom:1px solid #dddddd;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.upload_img_btn text{
|
||||
font-size: 17px;
|
||||
color: #777777;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.btn{
|
||||
height: 30px;
|
||||
margin: 15px 15px 0 0;
|
||||
}
|
||||
.img_box{
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
}
|
||||
.imgs{
|
||||
width: 47.5%;
|
||||
height: 180px;
|
||||
}
|
||||
.imgs image{
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
}
|
||||
.delete{
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
color: red;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.expert_choice{
|
||||
width: 90%;
|
||||
margin: 15px auto;
|
||||
border-radius: 6px;
|
||||
background-color: #FFF;
|
||||
box-sizing: border-box;
|
||||
padding: 0 15px 15px 15px;
|
||||
font-size: 17px;
|
||||
}
|
||||
.msg{
|
||||
color: #777777;
|
||||
}
|
||||
.choice_box{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 10px;
|
||||
width: 100%;
|
||||
background: linear-gradient(to right, #A4DFA5 , #86D78A ,#A4DFA5);
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
color: #FFF;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
}
|
||||
.choice_msg{
|
||||
margin-top: 10px;
|
||||
font-size: 13px;
|
||||
color: #000;
|
||||
}
|
||||
.expert_checkbox{
|
||||
margin-top: 20px;
|
||||
font-size: 12px;
|
||||
color: #777777;
|
||||
}
|
||||
.checkbox{
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
checkbox-group{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
checkbox .wx-checkbox-input{
|
||||
border-radius: 50%;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
margin-top: -4px;
|
||||
}
|
||||
/* 日期选择 */
|
||||
.picker_group {
|
||||
height: 85rpx;
|
||||
line-height: 85rpx;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color: #888;
|
||||
border-bottom: 1rpx solid #efefef;
|
||||
|
||||
}
|
||||
.picker_group picker {
|
||||
/* background-color: yellow; */
|
||||
color: #64bff1;
|
||||
height: 55rpx;
|
||||
line-height: 55rpx;
|
||||
margin: 0 2%;
|
||||
padding: 0 2%;
|
||||
border: 1rpx solid #64bff1;
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
.me_interval{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
background-color: #FFF;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.me_interval text{
|
||||
font-size: 17px;
|
||||
color: #777777;
|
||||
margin-left: 15px;
|
||||
}
|
||||
.picker_group{
|
||||
margin-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border: none;
|
||||
}
|
||||
.picker_group picker{
|
||||
padding: 0 5%;
|
||||
}
|
||||
.hospitalize{
|
||||
width: 90%;
|
||||
margin: 15px auto;
|
||||
background-color: #FFF;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.hospitalize text{
|
||||
font-size: 17px;
|
||||
color: #777777;
|
||||
margin-left: 15px;
|
||||
}
|
||||
.radio-group{
|
||||
margin-left: 15px;
|
||||
font-size: 15px;
|
||||
color: #777777;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 35px;
|
||||
}
|
||||
.btn_box{
|
||||
box-sizing: border-box;
|
||||
padding: 20px 5% 50px;
|
||||
}
|
||||
.name_box{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.name_box input{
|
||||
width: 47.5%;
|
||||
height: 30px;
|
||||
border: 1px solid #DDD;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.hedden{
|
||||
display: none;
|
||||
}
|
||||
.show{
|
||||
display: flex;
|
||||
}
|
||||
.title{
|
||||
display: flex;
|
||||
}
|
||||
.shu{
|
||||
width: 3px;
|
||||
height: 26px;
|
||||
background: #07afff;
|
||||
margin: 17px 0 15px 17px;
|
||||
}
|
@ -1,269 +0,0 @@
|
||||
|
||||
|
||||
Page({
|
||||
data: {
|
||||
name: '', //姓名
|
||||
sno:" ",//学号
|
||||
|
||||
phone: '', //手机号
|
||||
time:"",//入校时间,
|
||||
door:"",//校门
|
||||
city:"",//省市
|
||||
area:"",//区
|
||||
address:"",//详细地址
|
||||
images: [] ,//存放图片的数组
|
||||
|
||||
test:[],
|
||||
|
||||
xxx:"",
|
||||
},
|
||||
|
||||
// 个人简介
|
||||
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编码。
|
||||
console.log(team_image)
|
||||
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/in_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": {}
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
<view class='box'>
|
||||
<view class="section">
|
||||
<input placeholder="姓名" bindblur="name" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view class="section">
|
||||
<input placeholder="学号" bindblur="sno" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<input type='number' placeholder="电话" bindblur="phone" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<input placeholder="时间" bindblur="time" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view class="section">
|
||||
<input placeholder="校门" bindblur="door" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view class="section">
|
||||
<input placeholder="省市" bindblur="city" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view class="section">
|
||||
<input placeholder="区" bindblur="area" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<input placeholder="详细地址" bindblur="address" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
|
||||
<!-- <view class="section">
|
||||
<input model:value="{{xxx}}" placeholder="xxxx" bindblur="address" style='background-image: url("/static/image/CAUC.png");' />
|
||||
</view>
|
||||
<view>{{xxx}}</view> -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <view class="section" style='height:165px;'>
|
||||
<textarea class='texta' bindblur="bindTextAreaBlur" placeholder="个人简介" />
|
||||
</view> -->
|
||||
<view class='upload_img'>
|
||||
<view class='upload_img_btn'>
|
||||
<view class='title'>
|
||||
<view class='shu'></view>
|
||||
<text>核酸报告,健康码图片</text>
|
||||
</view>
|
||||
<button type="primary" size="mini" bindtap="chooseImage" class='btn'>添加</button>
|
||||
</view>
|
||||
<view class='img_box' id='imgs' style='display:flex;justify-content: space-between;padding-top:10px;'>
|
||||
<!-- 存放上传的图片的盒子 -->
|
||||
<block wx:for="{{images}}" wx:key="*this">
|
||||
<view class="q-image-wrap imgs">
|
||||
<!-- 图片缩略图 -->
|
||||
<image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleImagePreview"></image>
|
||||
<!-- 移除图片的按钮 -->
|
||||
<view class="q-image-remover delete" data-idx="{{index}}" bindtap="removeImage">删除</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view>{{images}}</view> -->
|
||||
<view class='btn_box'>
|
||||
<button type="primary" bindtap="upload_info" class='upload_info'>提交表单</button>
|
||||
|
||||
</view>
|
||||
</view>
|
@ -1,265 +0,0 @@
|
||||
.box{
|
||||
background-color: #efeff4;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.input-placeholder{
|
||||
font-size: 16px;
|
||||
}
|
||||
.section{
|
||||
width: 100%;
|
||||
height: 55px;
|
||||
box-sizing: border-box;
|
||||
padding-top: 15px;
|
||||
font-size: 16px;
|
||||
display: flex;
|
||||
}
|
||||
.section input{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
border-radius: 6px;
|
||||
background-color:#FFF;
|
||||
height: 40px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 45px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 26px 26px;
|
||||
background-position: 10px 7px;
|
||||
}
|
||||
.sex_age_box{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
padding: 0 5%;
|
||||
|
||||
}
|
||||
.section_sex{
|
||||
width: 47.5%;
|
||||
margin-top:15px;
|
||||
background-color: #FFF;
|
||||
height: 40px;
|
||||
border-radius: 6px;
|
||||
font-size: 16px;
|
||||
color: #777777;
|
||||
}
|
||||
.imgs_sex{
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
display: inline-block;
|
||||
margin: 7px 5% 0 4%;
|
||||
}
|
||||
.text_sex{
|
||||
position: relative;
|
||||
top: -7px;
|
||||
}
|
||||
.section_age{
|
||||
width: 47.5%;
|
||||
margin-top:15px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.section_age input{
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
border-radius: 6px;
|
||||
background-color:#FFF;
|
||||
height: 40px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 45px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 26px 26px;
|
||||
background-position: 10px 7px;
|
||||
}
|
||||
.texta{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
border-radius: 6px;
|
||||
background-color:#FFF;
|
||||
height: 150px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
.upload_img{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
background-color: #FFF;
|
||||
margin-top: 15px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.upload_img_btn{
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
border-bottom:1px solid #dddddd;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.upload_img_btn text{
|
||||
font-size: 17px;
|
||||
color: #777777;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.btn{
|
||||
height: 30px;
|
||||
margin: 15px 15px 0 0;
|
||||
}
|
||||
.img_box{
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
}
|
||||
.imgs{
|
||||
width: 47.5%;
|
||||
height: 180px;
|
||||
}
|
||||
.imgs image{
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
}
|
||||
.delete{
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
color: red;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.expert_choice{
|
||||
width: 90%;
|
||||
margin: 15px auto;
|
||||
border-radius: 6px;
|
||||
background-color: #FFF;
|
||||
box-sizing: border-box;
|
||||
padding: 0 15px 15px 15px;
|
||||
font-size: 17px;
|
||||
}
|
||||
.msg{
|
||||
color: #777777;
|
||||
}
|
||||
.choice_box{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 10px;
|
||||
width: 100%;
|
||||
background: linear-gradient(to right, #A4DFA5 , #86D78A ,#A4DFA5);
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
color: #FFF;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
}
|
||||
.choice_msg{
|
||||
margin-top: 10px;
|
||||
font-size: 13px;
|
||||
color: #000;
|
||||
}
|
||||
.expert_checkbox{
|
||||
margin-top: 20px;
|
||||
font-size: 12px;
|
||||
color: #777777;
|
||||
}
|
||||
.checkbox{
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
checkbox-group{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
checkbox .wx-checkbox-input{
|
||||
border-radius: 50%;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
margin-top: -4px;
|
||||
}
|
||||
/* 日期选择 */
|
||||
.picker_group {
|
||||
height: 85rpx;
|
||||
line-height: 85rpx;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color: #888;
|
||||
border-bottom: 1rpx solid #efefef;
|
||||
|
||||
}
|
||||
.picker_group picker {
|
||||
/* background-color: yellow; */
|
||||
color: #64bff1;
|
||||
height: 55rpx;
|
||||
line-height: 55rpx;
|
||||
margin: 0 2%;
|
||||
padding: 0 2%;
|
||||
border: 1rpx solid #64bff1;
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
.me_interval{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
background-color: #FFF;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.me_interval text{
|
||||
font-size: 17px;
|
||||
color: #777777;
|
||||
margin-left: 15px;
|
||||
}
|
||||
.picker_group{
|
||||
margin-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border: none;
|
||||
}
|
||||
.picker_group picker{
|
||||
padding: 0 5%;
|
||||
}
|
||||
.hospitalize{
|
||||
width: 90%;
|
||||
margin: 15px auto;
|
||||
background-color: #FFF;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.hospitalize text{
|
||||
font-size: 17px;
|
||||
color: #777777;
|
||||
margin-left: 15px;
|
||||
}
|
||||
.radio-group{
|
||||
margin-left: 15px;
|
||||
font-size: 15px;
|
||||
color: #777777;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 35px;
|
||||
}
|
||||
.btn_box{
|
||||
box-sizing: border-box;
|
||||
padding: 20px 5% 50px;
|
||||
}
|
||||
.name_box{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.name_box input{
|
||||
width: 47.5%;
|
||||
height: 30px;
|
||||
border: 1px solid #DDD;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.hedden{
|
||||
display: none;
|
||||
}
|
||||
.show{
|
||||
display: flex;
|
||||
}
|
||||
.title{
|
||||
display: flex;
|
||||
}
|
||||
.shu{
|
||||
width: 3px;
|
||||
height: 26px;
|
||||
background: #07afff;
|
||||
margin: 17px 0 15px 17px;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
<!--pages/v9_manual/v9_manual.wxml-->
|
||||
<!-- <view style="height: 100rpx;"></view> -->
|
||||
<text>审批</text>
|
||||
<!-- <view style="height: 100rpx;"></view>
|
||||
<text>每次载入得到的人名信息如下</text> -->
|
||||
<!-- <view bindtap="pulldata">点击刷新</view> -->
|
||||
<!-- <view>{{name}}</view>
|
||||
<view>{{test}}</view> -->
|
||||
<view wx:for="{{list}}" bindtap="toinfo" data-abc="{{index}}" class="container">
|
||||
<view class="item">
|
||||
<!-- {{index}} -->
|
||||
<text>{{item[2]}}</text>
|
||||
<image src="/static/image/my-o.png" class="image1"></image>
|
||||
<!-- <text>100</text> -->
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
@ -1,13 +0,0 @@
|
||||
/* pages/v9_manual/v9_manual.wxss */
|
||||
.item{
|
||||
padding: 40rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.image1{
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
/* 如果要设置圆角的话 */
|
||||
border-radius: 25rpx;
|
||||
}
|