hookehuyr

🐞 fix(创建活动): 报名信息名称长度提示优化

......@@ -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': "''",
}
}
}]
......
<!--
* @Date: 2022-09-21 16:04:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-02 11:44:47
* @LastEditTime: 2022-11-03 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) { // 通过长按打开的弹框
......
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-31 14:07:13
* @LastEditTime: 2022-11-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>
......