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 10:40:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dc5a5be0a5ae8035eaad3d873495a0791cef4d3a
dc5a5be0
1 parent
7c4fff21
🐞 fix(创建活动): 报名信息名称长度提示优化
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
config/index.js
src/pages/createActivity/index.vue
src/pages/editProject/index.vue
config/index.js
View file @
dc5a5be
...
...
@@ -98,15 +98,15 @@ const config = {
'inactiveColor'
:
"'#FFF'"
},
'van-empty'
:
{
'image'
:
"'
default
'"
'image'
:
"''"
},
'van-dialog'
:
{
'title'
:
"'
default
'"
,
'message'
:
"'
default
'"
,
'title'
:
"''"
,
'message'
:
"''"
,
'confirmButtonColor'
:
""
,
},
'van-field'
:
{
'value'
:
"'
default
'"
,
'value'
:
"''"
,
}
}
}]
...
...
src/pages/createActivity/index.vue
View file @
dc5a5be
<!--
* @Date: 2022-09-21 16:04:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-0
2 11:44:47
* @LastEditTime: 2022-11-0
3 10:39:44
* @FilePath: /swx/src/pages/createActivity/index.vue
* @Description: 创建活动页面
-->
...
...
@@ -183,7 +183,7 @@
<view style="width: 22rem;">
<van-field :value="sign_filed.name" label-class="label-class" input-class="input-class" rows="1" autosize label="字段名称"
type="textarea" placeholder="请输入字段名称(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign=""
rightIcon="" :required="true" :
maxlength="6" :
border="true" @change="onFiledChange" />
rightIcon="" :required="true" :border="true" @change="onFiledChange" />
<view class="form-item border">
<view class="form-item-title fix">是否必填</view>
<van-switch style="float: right; padding-top: 0.5rem;" :checked="sign_filed.checked" @change="onChangeEdit"
...
...
@@ -438,7 +438,9 @@ const closeEditSign = () => {
}
const confirmEditSign = () => { // 确认报名信息回调
if (!sign_filed.value.name) {
Toast.fail('字段不能为空');
Toast('字段不能为空');
} else if (sign_filed.value.name.length > 6) {
Toast('字段名称6个字以内');
} else {
show_edit_sign.value = false;
if (is_long_press.value) { // 通过长按打开的弹框
...
...
src/pages/editProject/index.vue
View file @
dc5a5be
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-1
0-31 14:07:13
* @LastEditTime: 2022-1
1-03 10:20:05
* @FilePath: /swx/src/pages/editProject/index.vue
* @Description: 新建主办方页面
-->
...
...
@@ -51,12 +51,12 @@
type="textarea" placeholder="请输入用户类型(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign=""
rightIcon="" :required="true" :border="true" @change="onChangeType" />
<van-row>
<van-col span="12">
<van-col span="12"
offset="0"
>
<view class="cancel-box">
<view class="button" @tap="closeEditType">取消</view>
</view>
</van-col>
<van-col span="12">
<van-col span="12"
offset="0"
>
<view class="confirm-box">
<view class="button" @tap="confirmEditType">确定</view>
</view>
...
...
@@ -79,12 +79,12 @@
type="textarea" placeholder="请输入用户状态(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign=""
rightIcon="" :required="true" :border="true" @change="onChangeStatus" />
<van-row>
<van-col span="12">
<van-col span="12"
offset="0"
>
<view class="cancel-box">
<view class="button" @tap="closeEditStatus">取消</view>
</view>
</van-col>
<van-col span="12">
<van-col span="12"
offset="0"
>
<view class="confirm-box">
<view class="button" @tap="confirmEditStatus">确定</view>
</view>
...
...
Please
register
or
login
to post a comment