Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-03 13:20:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3fcdf469f6864b3ac72615b0204f2638e17422b9
3fcdf469
1 parent
aab747cb
✨ feat: 测试字段说明提示功能
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
14 deletions
src/pages/createActivity/index.vue
src/pages/createActivity/index.vue
View file @
3fcdf46
<!--
* @Date: 2022-09-21 16:04:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-03 1
1:57:17
* @LastEditTime: 2022-11-03 1
3:19:04
* @FilePath: /swx/src/pages/createActivity/index.vue
* @Description: 创建活动页面
-->
...
...
@@ -52,18 +52,46 @@
</view>
</view>
<view class="advanced-settings-modules">
<!-- 活动时间 -->
<timePickerData :start-time="startTime" :end-time="endTime" :default-time="defaultActivityTime" @result="onActivityTime">
<van-field :value="activity_time" label-class="label-class-super" input-class="input-class" label="活动时间"
:right-icon="icon_sel" input-align="right" placeholder="请选择" placeholder-style="color: #999;" customStyle=""
maxlength="" type="" :border="true" :required="false" :disabled="true" />
</timePickerData>
<!-- 报名开始时间 -->
<timePickerData :start-time="startTime" :end-time="endTime" :default-time="defaultStartTime" @result="onBeginTime">
<van-field :value="reg_begin_time" label-class="label-class-super" input-class="input-class" label="报名开始时间"
:right-icon="icon_sel" input-align="right" placeholder="请选择" placeholder-style="color: #999;" customStyle=""
maxlength="" type="" :border="true" :required="false" :disabled="true" />
</timePickerData>
<view class="form-item public-sub" style="padding-top: 0; padding-bottom: 0;">
<view class="public-sub-border">
<van-row>
<van-col span="10" offset="0">
<view class="form-item-title fix">
活动时间
<!-- <van-icon @tap="showInfo('活动时间')" name="question-o" size="1rem" color="" class="vip-icon" /> -->
</view>
</van-col>
<van-col span="14" offset="0">
<!-- 活动时间 -->
<timePickerData :start-time="startTime" :end-time="endTime" :default-time="defaultActivityTime" @result="onActivityTime">
<van-field :value="activity_time" label-class="label-class-super" input-class="input-class" label=""
:right-icon="icon_sel" input-align="right" placeholder="请选择" placeholder-style="color: #999;" customStyle=""
maxlength="" type="" :border="false" :required="false" :disabled="true" />
</timePickerData>
</van-col>
</van-row>
</view>
</view>
<view class="form-item public-sub" style="padding-top: 0; padding-bottom: 0;">
<view class="public-sub-border">
<van-row>
<van-col span="10" offset="0">
<view class="form-item-title fix">
报名开始时间
<!-- <van-icon name="question-o" size="1rem" color="" class="vip-icon" /> -->
</view>
</van-col>
<van-col span="14" offset="0">
<!-- 报名开始时间 -->
<timePickerData :start-time="startTime" :end-time="endTime" :default-time="defaultStartTime" @result="onBeginTime">
<van-field :value="reg_begin_time" label-class="label-class-super" input-class="input-class" label=""
:right-icon="icon_sel" input-align="right" placeholder="请选择" placeholder-style="color: #999;" customStyle=""
maxlength="" type="" :border="false" :required="false" :disabled="true" />
</timePickerData>
</van-col>
</van-row>
</view>
</view>
<!-- 报名截止时间 -->
<timePickerData :start-time="startTime" :end-time="endTime" :default-time="defaultEndTime" @result="onEndTime">
<van-field :value="reg_end_time" label-class="label-class-super" input-class="input-class" label="报名截止时间"
...
...
@@ -259,7 +287,7 @@
<van-toast id="van-toast" />
<van-dialog title="温馨提示" :show="create_show" :show-cancel-button="true" message="是否确认提交?" confirm-button-color="#199A74" @confirm="onCreateConfirm" @cancel="onCreateCancel"></van-dialog>
<van-dialog title="温馨提示" :show="info_show" :message="info_message" confirm-button-color="#199A74" @confirm="onInfoConfirm"></van-dialog>
</template>
<script setup>
...
...
@@ -846,6 +874,19 @@ const updateActivityInfo = async ({ activity, host }) => {
extend.value = activity.extend;
}
}
// 信息提示
const info_show = ref(false);
const info_message = ref('');
const showInfo = (type) => {
if (type === '活动时间') {
info_show.value = true;
info_message.value = '活动时间消息'
}
}
const onInfoConfirm = () => {
info_show.value = false;
}
</script>
<script>
...
...
Please
register
or
login
to post a comment