Skip to content

Commit

Permalink
修复打卡
Browse files Browse the repository at this point in the history
  • Loading branch information
supgeek-rod committed Jul 4, 2024
1 parent 1a2efd1 commit e163ae6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions modules/schedule/components/activity-schedule-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Component({
value: 'create',
},

is_activity_fixed: {
type: Boolean,
value: false,
},
activity: {
value: null,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<view class="padding-tb text-left body">
<view class="cu-form-group">
<view class="title">活动</view>
<block wx:if="{{ type === 'edit' }}">
<block wx:if="{{ is_activity_fixed }}">
<view class="picker">{{ activity.title }}</view>
</block>
<block wx:else>
Expand Down
3 changes: 2 additions & 1 deletion modules/schedule/pages/calendar/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
<!-- 打卡行程模态框 -->
<block wx:if="{{ activity }}">
<activity-schedule-modal id="activity-schedule-modal"
type="{{ 'edit' }}"
is_activity_fixed="{{ true }}"
activities="{{ activities }}"
activity="{{ activity }}"
bind:success="activityScheduleModalSuccessHandler" />
</block>

0 comments on commit e163ae6

Please sign in to comment.