From bf9ff43046b860bcab7e5653c8799bb95e539945 Mon Sep 17 00:00:00 2001
From: zuoxiao <zuoxiao>
Date: 星期四, 07 八月 2025 10:09:12 +0800
Subject: [PATCH] 更新项目配置,将登录方式从账号密码登录改为验证码登录,以支持新的登录策略。
---
pages/createIrrigation/createIrrigation.wxml | 110 ++++++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 84 insertions(+), 26 deletions(-)
diff --git a/pages/createIrrigation/createIrrigation.wxml b/pages/createIrrigation/createIrrigation.wxml
index d4cac7e..6ef6565 100644
--- a/pages/createIrrigation/createIrrigation.wxml
+++ b/pages/createIrrigation/createIrrigation.wxml
@@ -8,13 +8,46 @@
</view>
<!-- 鐏屾簤寮�濮嬫椂闂� -->
- <view class="form-item" bindtap="showTimePicker">
- <view class="form-label">鐏屾簤寮�濮嬫椂闂�</view>
- <view class="form-input time-input">
+ <view class="form-item">
+ <view class="form-label">
+ 鐏屾簤寮�濮嬫椂闂�(閫夊~)
+ <image
+ class="info-icon"
+ src="/images/info.svg"
+ mode="aspectFit"
+ bindtap="showTimeInfo"
+ ></image>
+ </view>
+ <view class="form-input time-input" bindtap="showTimePicker">
<view class="time-text {{startTime ? '' : 'placeholder'}}">{{startTime || '璇烽�夋嫨鐏屾簤寮�濮嬫椂闂�'}}</view>
<image class="arrow-icon" src="/images/arrow-right.svg" mode="aspectFit"></image>
</view>
</view>
+
+ <!-- 鏃堕棿鎻愮ず寮圭獥 -->
+ <t-dialog
+ visible="{{timeInfoVisible}}"
+ title="鏃堕棿璁剧疆璇存槑"
+ confirmBtn="鎴戠煡閬撲簡"
+ bind:confirm="onTimeInfoConfirm"
+ bind:cancel="onTimeInfoConfirm"
+ >
+ <view slot="content" class="time-info-content">
+ <view class="time-info-item">
+ <view class="info-text-container">
+ <view class="info-title">璁剧疆鍏皬鏃跺悗鐨勭亴婧夋椂闂�</view>
+ <view class="info-desc">鍦ㄦ澶勯�夋嫨鍏蜂綋鐨勫紑濮嬫椂闂�</view>
+ </view>
+ </view>
+ <view class="divider"></view>
+ <view class="time-info-item">
+ <view class="info-text-container">
+ <view class="info-title">璁剧疆鍏皬鏃跺唴鐨勭亴婧夋椂闂�</view>
+ <view class="info-desc">鍒涘缓瀹屾垚鍚庣偣鍑诲彂甯冨嵆鍙珛鍗冲紑濮嬬亴婧�</view>
+ </view>
+ </view>
+ </view>
+ </t-dialog>
<!-- 閫夋嫨椤圭洰 -->
<view class="form-item" bindtap="showProjectPicker">
@@ -36,26 +69,43 @@
</view>
</view>
</view>
- <scroll-view scroll-y="true" class="group-list">
- <block wx:for="{{selectedProject.groups}}" wx:key="id" wx:for-item="group" wx:for-index="groupIndex">
- <view class="group-item {{group.selected ? 'selected' : ''}}" bindtap="navigateToGroupDetail" data-group-index="{{groupIndex}}">
- <view class="group-info">
- <view class="group-name">{{group.name}}</view>
+ <scroll-view
+ scroll-y="true"
+ class="group-list"
+ refresher-enabled="{{true}}"
+ refresher-triggered="{{isRefreshing}}"
+ bindrefresherrefresh="onGroupListRefresh"
+ >
+ <block wx:if="{{selectedProject.groups && selectedProject.groups.length > 0}}">
+ <block wx:for="{{selectedProject.groups}}" wx:key="id" wx:for-item="group" wx:for-index="groupIndex">
+ <view class="group-item {{group.selected ? 'selected' : ''}}" bindtap="navigateToGroupDetail" data-group-index="{{groupIndex}}">
+ <view class="group-info">
+ <text class="group-index">{{groupIndex + 1}}.</text>
+ <view class="group-name">
+ <text class="group-name-text">{{group.name || '鏈懡鍚嶈疆鐏岀粍'}}</text>
+ <text class="group-intake-count">(鍏眥{group.intakeCount}}涓彇姘村彛)</text>
+ </view>
+ </view>
+ <view class="group-duration">
+ <input
+ class="duration-input"
+ type="number"
+ value="{{group.duration}}"
+ bindinput="onDurationInput"
+ data-group-index="{{groupIndex}}"
+ placeholder="0"
+ catchtap="stopPropagation"
+ />
+ <text class="duration-unit">鍒嗛挓</text>
+ </view>
</view>
- <view class="group-duration">
- <input
- class="duration-input"
- type="number"
- value="{{group.duration}}"
- bindinput="onDurationInput"
- data-group-index="{{groupIndex}}"
- placeholder="0"
- catchtap="stopPropagation"
- />
- <text class="duration-unit">鍒嗛挓</text>
- </view>
- </view>
+ </block>
</block>
+ <view wx:else class="empty-container">
+ <image class="empty-image" src="/images/empty.svg" mode="aspectFit"></image>
+ <view class="empty-text">鏆傛棤杞亴缁勬暟鎹�</view>
+ <view class="empty-text">璇峰埛鏂版垨绋嶅悗鍐嶈瘯</view>
+ </view>
</scroll-view>
</view>
@@ -70,21 +120,29 @@
visible="{{timePickerVisible}}"
mode="{{['date', 'minute']}}"
value="{{pickerValue}}"
+ start="{{pickerValue}}"
format="YYYY-MM-DD HH:mm"
bindconfirm="onTimePickerConfirm"
bindcancel="onTimePickerCancel"
+ catchtouchmove="stopPropagation"
+ z-index="{{1000}}"
/>
<!-- 椤圭洰閫夋嫨鍣ㄥ脊绐� -->
<t-picker
- title="閫夋嫨椤圭洰"
visible="{{projectPickerVisible}}"
- value="{{projectPickerValue}}"
+ title="閫夋嫨椤圭洰"
cancelBtn="鍙栨秷"
confirmBtn="纭"
- bindconfirm="onProjectPickerConfirm"
- bindcancel="onProjectPickerCancel"
+ bind:confirm="onProjectPickerConfirm"
+ bind:cancel="onProjectPickerCancel"
+ bind:touchmove="stopPropagation"
+ bind:touchstart="stopPropagation"
+ bind:touchend="stopPropagation"
+ z-index="{{1000}}"
>
- <t-picker-item options="{{projectOptions}}" />
+ <t-picker-item options="{{projectOptions}}" value="{{projectPickerValue}}" />
</t-picker>
+
+
</view>
\ No newline at end of file
--
Gitblit v1.8.0