Initial commit
This commit is contained in:
33
pages/index/index.wxml
Normal file
33
pages/index/index.wxml
Normal file
@@ -0,0 +1,33 @@
|
||||
<!-- index.wxml -->
|
||||
<view class="container">
|
||||
<!-- 页面标题 -->
|
||||
<view class="title">OCR识别系统</view>
|
||||
|
||||
<!-- 中间区域 -->
|
||||
<view class="middle-section">
|
||||
<!-- 中间上半部分:扫码按钮 -->
|
||||
<view class="scan-button-container">
|
||||
<view class="speed-mode-switch">
|
||||
<text class="switch-label">加速模式</text>
|
||||
<switch checked="{{speedMode}}" bindchange="toggleSpeedMode" />
|
||||
</view>
|
||||
<view class="scan-button" bindtap="scanCode">
|
||||
<text class="scan-button-text">扫码</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 中间下半部分:图片预览 -->
|
||||
<view class="image-preview-container">
|
||||
<view class="image-preview" wx:if="{{imagePath}}">
|
||||
<image src="{{imagePath}}" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 长形用户认证按钮 -->
|
||||
<view class="auth-button-container">
|
||||
<button class="auth-button" bindtap="userAuth">
|
||||
<text class="auth-button-text">用户认证</text>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user