hookehuyr

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

...@@ -98,15 +98,15 @@ const config = { ...@@ -98,15 +98,15 @@ const config = {
98 'inactiveColor': "'#FFF'" 98 'inactiveColor': "'#FFF'"
99 }, 99 },
100 'van-empty': { 100 'van-empty': {
101 - 'image': "'default'" 101 + 'image': "''"
102 }, 102 },
103 'van-dialog': { 103 'van-dialog': {
104 - 'title': "'default'", 104 + 'title': "''",
105 - 'message': "'default'", 105 + 'message': "''",
106 'confirmButtonColor': "", 106 'confirmButtonColor': "",
107 }, 107 },
108 'van-field': { 108 'van-field': {
109 - 'value': "'default'", 109 + 'value': "''",
110 } 110 }
111 } 111 }
112 }] 112 }]
......
1 <!-- 1 <!--
2 * @Date: 2022-09-21 16:04:10 2 * @Date: 2022-09-21 16:04:10
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-11-02 11:44:47 4 + * @LastEditTime: 2022-11-03 10:39:44
5 * @FilePath: /swx/src/pages/createActivity/index.vue 5 * @FilePath: /swx/src/pages/createActivity/index.vue
6 * @Description: 创建活动页面 6 * @Description: 创建活动页面
7 --> 7 -->
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
183 <view style="width: 22rem;"> 183 <view style="width: 22rem;">
184 <van-field :value="sign_filed.name" label-class="label-class" input-class="input-class" rows="1" autosize label="字段名称" 184 <van-field :value="sign_filed.name" label-class="label-class" input-class="input-class" rows="1" autosize label="字段名称"
185 type="textarea" placeholder="请输入字段名称(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign="" 185 type="textarea" placeholder="请输入字段名称(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign=""
186 - rightIcon="" :required="true" :maxlength="6" :border="true" @change="onFiledChange" /> 186 + rightIcon="" :required="true" :border="true" @change="onFiledChange" />
187 <view class="form-item border"> 187 <view class="form-item border">
188 <view class="form-item-title fix">是否必填</view> 188 <view class="form-item-title fix">是否必填</view>
189 <van-switch style="float: right; padding-top: 0.5rem;" :checked="sign_filed.checked" @change="onChangeEdit" 189 <van-switch style="float: right; padding-top: 0.5rem;" :checked="sign_filed.checked" @change="onChangeEdit"
...@@ -438,7 +438,9 @@ const closeEditSign = () => { ...@@ -438,7 +438,9 @@ const closeEditSign = () => {
438 } 438 }
439 const confirmEditSign = () => { // 确认报名信息回调 439 const confirmEditSign = () => { // 确认报名信息回调
440 if (!sign_filed.value.name) { 440 if (!sign_filed.value.name) {
441 - Toast.fail('字段不能为空'); 441 + Toast('字段不能为空');
442 + } else if (sign_filed.value.name.length > 6) {
443 + Toast('字段名称6个字以内');
442 } else { 444 } else {
443 show_edit_sign.value = false; 445 show_edit_sign.value = false;
444 if (is_long_press.value) { // 通过长按打开的弹框 446 if (is_long_press.value) { // 通过长按打开的弹框
......
1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-10-31 14:07:13 4 + * @LastEditTime: 2022-11-03 10:20:05
5 * @FilePath: /swx/src/pages/editProject/index.vue 5 * @FilePath: /swx/src/pages/editProject/index.vue
6 * @Description: 新建主办方页面 6 * @Description: 新建主办方页面
7 --> 7 -->
...@@ -51,12 +51,12 @@ ...@@ -51,12 +51,12 @@
51 type="textarea" placeholder="请输入用户类型(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign="" 51 type="textarea" placeholder="请输入用户类型(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign=""
52 rightIcon="" :required="true" :border="true" @change="onChangeType" /> 52 rightIcon="" :required="true" :border="true" @change="onChangeType" />
53 <van-row> 53 <van-row>
54 - <van-col span="12"> 54 + <van-col span="12" offset="0">
55 <view class="cancel-box"> 55 <view class="cancel-box">
56 <view class="button" @tap="closeEditType">取消</view> 56 <view class="button" @tap="closeEditType">取消</view>
57 </view> 57 </view>
58 </van-col> 58 </van-col>
59 - <van-col span="12"> 59 + <van-col span="12" offset="0">
60 <view class="confirm-box"> 60 <view class="confirm-box">
61 <view class="button" @tap="confirmEditType">确定</view> 61 <view class="button" @tap="confirmEditType">确定</view>
62 </view> 62 </view>
...@@ -79,12 +79,12 @@ ...@@ -79,12 +79,12 @@
79 type="textarea" placeholder="请输入用户状态(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign="" 79 type="textarea" placeholder="请输入用户状态(6个字以内)" placeholder-style="color: #999;" customStyle="" inputAlign=""
80 rightIcon="" :required="true" :border="true" @change="onChangeStatus" /> 80 rightIcon="" :required="true" :border="true" @change="onChangeStatus" />
81 <van-row> 81 <van-row>
82 - <van-col span="12"> 82 + <van-col span="12" offset="0">
83 <view class="cancel-box"> 83 <view class="cancel-box">
84 <view class="button" @tap="closeEditStatus">取消</view> 84 <view class="button" @tap="closeEditStatus">取消</view>
85 </view> 85 </view>
86 </van-col> 86 </van-col>
87 - <van-col span="12"> 87 + <van-col span="12" offset="0">
88 <view class="confirm-box"> 88 <view class="confirm-box">
89 <view class="button" @tap="confirmEditStatus">确定</view> 89 <view class="button" @tap="confirmEditStatus">确定</view>
90 </view> 90 </view>
......