Skip to content

Commit

Permalink
活动数据库调整;后台页面微调;
Browse files Browse the repository at this point in the history
  • Loading branch information
Chef5 committed May 31, 2020
1 parent 91a119c commit 2808ccb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion database/migrations/2020_01_24_114453_r_activitys.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->string('title', 30)->comment('标题');
$table->tinyInteger('distance')->unsigned()->default(1)->comment('完成条件');
$table->string('desc', 200)->nullable()->comment('简要描述:当图片介绍时可为空');
$table->text('content')->nullable()->comment('活动内容:当图片介绍时可为空');
$table->longText('content')->nullable()->comment('活动内容:当图片介绍时可为空');
$table->timestamp('period')->comment('截止时间');
$table->timestamps();

Expand Down
3 changes: 2 additions & 1 deletion resources/views/addActivity.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
活动内容
</label>
<div class="layui-input-block">
<textarea id="content" name="content" placeholder="请输入活动内容,使用 <br> 换行" class="layui-textarea"></textarea>
<textarea id="content" name="content" placeholder="请输入活动内容,使用 回车或<br> 换行" class="layui-textarea"></textarea>
</div>
</div>

Expand Down Expand Up @@ -260,6 +260,7 @@
dataType: 'JSON',
success: function(res) {
alert(res.msg);
window.location.reload();
},
error: function(data) {
Expand Down
5 changes: 3 additions & 2 deletions resources/views/addCourse.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<span style="color:red">*</span>内容
</label>
<div class="layui-input-block">
<textarea id="text" required="" name="text" lay-verify="required" placeholder="请输入课程内容,使用 <br> 换行" class="layui-textarea"></textarea>
<textarea id="text" required="" name="text" lay-verify="required" placeholder="请输入课程内容,使用 回车或<br> 换行" class="layui-textarea"></textarea>
</div>
</div>

Expand Down Expand Up @@ -118,7 +118,8 @@
data: data.field,
dataType: 'JSON',
success: function(res) {
alert(res.msg)
alert(res.msg);
window.location.reload();
},
error: function(data) {
return layer.msg(data);
Expand Down

0 comments on commit 2808ccb

Please sign in to comment.