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-09-26 09:29:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
843ac575b9a61fda6fbd18ae068f844f7efba34c
843ac575
1 parent
a57e3087
fix 报警告修复
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
9 deletions
src/pages/createActivity/index.vue
src/pages/createActivity/index.vue
View file @
843ac57
<!--
* @Date: 2022-09-21 16:04:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-09-2
2 18:12:44
* @LastEditTime: 2022-09-2
6 09:06:31
* @FilePath: /swx/src/pages/createActivity/index.vue
* @Description: 创建活动页面
-->
...
...
@@ -16,6 +16,10 @@
right-icon="arrow-down"
placeholder="请选择活动主办方"
placeholder-style="color: #999;"
customStyle=""
inputAlign=""
maxlength=""
type="text"
:required="true"
:disabled="true" />
<view class="divide-line"></view>
...
...
@@ -28,6 +32,9 @@
placeholder="请输入活动主题(最多30个字)"
placeholder-style="color: #999;"
autosize
customStyle=""
inputAlign=""
rightIcon=""
:required="true"
:maxlength="30"
:border="false"
...
...
@@ -38,7 +45,7 @@
<view class="form-item-title required">活动封面图<text class="sub">(图片比例16:9展示最佳)</text></view>
<van-uploader v-if="!has_image" @after-read="afterRead">
<view class="upload-box" :style="uploaderStyle">
<van-icon :name="icon_upload" size="5rem" class="upload-icon" />
<van-icon :name="icon_upload" size="5rem" c
olor="" c
lass="upload-icon" />
</view>
</van-uploader>
<view v-else class="upload-box" :style="uploaderStyle">
...
...
@@ -53,6 +60,10 @@
:value="message"
input-class="input-class"
label=""
inputAlign=""
maxlength=""
placeholderStyle=""
rightIcon=""
type="textarea"
placeholder="开始输入活动详情介绍"
:autosize="{ maxHeight: 200, minHeight: 100 }"
...
...
@@ -66,7 +77,7 @@
<view class="sign-box">
<view @tap="onTapSign(item)" @longpress="onLongPressSign(item)" v-for="(item, index) in signInfo" :key="index" class="sign-item" :class="{ 'checked': item.checked }"><text class="required">{{ item.label }}</text></view>
<!-- <view class="sign-item"><text class="">推荐人</text></view> -->
<view class="sign-item" @tap="addSign"><van-icon name="plus" /></view>
<view class="sign-item" @tap="addSign"><van-icon name="plus"
color=""
/></view>
</view>
<view class="divide-line"></view>
<view style="background-color: #FFFFFF;">
...
...
@@ -90,6 +101,9 @@
input-align="right"
placeholder="请选择活动时间"
placeholder-style="color: #999;"
customStyle=""
maxlength=""
type=""
:required="false"
:disabled="true" />
</timePickerData>
...
...
@@ -108,6 +122,9 @@
input-align="right"
placeholder="请选择报名开始时间"
placeholder-style="color: #999;"
customStyle=""
maxlength=""
type=""
:required="false"
:disabled="true" />
</timePickerData>
...
...
@@ -126,6 +143,9 @@
input-align="right"
placeholder="请选择报名截止时间"
placeholder-style="color: #999;"
customStyle=""
maxlength=""
type=""
:required="false"
:disabled="true" />
</timePickerData>
...
...
@@ -138,6 +158,9 @@
input-align="right"
placeholder="请选择人数限制"
placeholder-style="color: #999;"
customStyle=""
maxlength=""
type=""
@tap="show_popup=true"
:required="false"
:disabled="true" />
...
...
@@ -177,6 +200,9 @@
type="textarea"
placeholder="请输入字段名称(6个字以内)"
placeholder-style="color: #999;"
customStyle=""
inputAlign=""
rightIcon=""
:required="true"
:maxlength="6"
:border="true"
...
...
@@ -213,7 +239,7 @@
</view>
</van-overlay>
<van-popup :show="show_popup" position="bottom" custom-style="height: 40%;" :lock-scroll="true"
@close="onClosePopup"
>
<van-popup :show="show_popup" position="bottom" custom-style="height: 40%;" :lock-scroll="true">
<view>
<view class="form-item" style="overflow: auto; border-bottom: 1px solid #F2F2F2;">
<view class="form-item-title" style="float: left; padding-top: 0.5rem;">不限制人数</view>
...
...
@@ -236,6 +262,9 @@
placeholder="请输入人数最小值"
placeholder-style="color: #999; font-size: 1rem;"
input-align="right"
customStyle=""
rightIcon=""
maxlength=""
:border="false"
/>
</view>
...
...
@@ -250,6 +279,9 @@
placeholder="请输入人数最大值"
placeholder-style="color: #999; font-size: 1rem;"
input-align="right"
customStyle=""
rightIcon=""
maxlength=""
:border="false"
/>
</view>
...
...
@@ -258,12 +290,12 @@
<van-row>
<van-col span="12">
<view style="padding: 1rem 0; margin: 1rem; text-align: center;">
<view @tap="closeEdit
Sign
" style="color: #199A74; border: 1px solid #199A74; padding: 0.5rem 1rem; border-radius: 1rem;">取消</view>
<view @tap="closeEdit
Limit
" style="color: #199A74; border: 1px solid #199A74; padding: 0.5rem 1rem; border-radius: 1rem;">取消</view>
</view>
</van-col>
<van-col span="12">
<view style="padding: 1rem 0; margin: 1rem; text-align: center;">
<view @tap="confirmEdit
Sign
" style="color: #FFFFFF; background-color: #199A74; padding: 0.5rem 1rem; border-radius: 1rem;">确定</view>
<view @tap="confirmEdit
Limit
" style="color: #FFFFFF; background-color: #199A74; padding: 0.5rem 1rem; border-radius: 1rem;">确定</view>
</view>
</van-col>
</van-row>
...
...
@@ -379,10 +411,18 @@ const addSign = () => {
show_edit_sign.value = true;
}
const show_popup = ref(
tru
e);
const show_popup = ref(
fals
e);
const onClosePopup = () => {
show_popup.value = false;
}
const closeEditLimit = () => {
show_popup.value = false;
}
const confirmEditLimit = () => {
show_popup.value = false;
}
const datetime = ref('');
let startTime = new Date()
let endTime = new Date()
...
...
@@ -409,8 +449,8 @@ const onResult = (arr) => {
const person_num = ref('')
const limit_number = ref(false);
const min_number = ref();
const max_number = ref();
const min_number = ref(
''
);
const max_number = ref(
''
);
const onChangeLimit = ({ detail }) => {
limit_number.value = detail
}
...
...
Please
register
or
login
to post a comment