| | |
| | | |
| | | .hidden { |
| | | display: none; |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | <div class="layui-input-inline"> |
| | | <label class="desc">最多150个字符,可换行且兼容符号表情</label> |
| | | <div class="flex-row flex-center"> |
| | | <textarea class="layui-textarea" maxlength="150"></textarea> |
| | | <textarea class="layui-textarea" name="desc" maxlength="150"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | console.log("验证开奖条件"); |
| | | const field = common.layuiForm.val('form-open-info'); |
| | | console.log(field); |
| | | alert(parseInt(field.minPersonCount)); |
| | | alert(parseInt(field.day)); |
| | | |
| | | if (!parseInt(field.minPersonCount)) { |
| | | common.notify.error("请填写正确的参与人数"); |
| | |
| | | }, |
| | | |
| | | //添加 |
| | | requestAdd: function (data) { |
| | | requestAdd: function (data,type) { |
| | | var params = { |
| | | data: data, |
| | | type:type |
| | | } |
| | | |
| | | //发异步,把数据提交给php |
| | |
| | | icon: 6 |
| | | }, |
| | | function () { |
| | | //关闭当前frame |
| | | xadmin.close(); |
| | | // 可以对父窗口进行刷新 |
| | | xadmin.father_reload(); |
| | | layer.close(this); |
| | | }); |
| | | } else { |
| | | layer.msg(res.msg); |
| | |
| | | if (finish) { |
| | | console.log("获取到的结果"); |
| | | console.log(this.temp); |
| | | app.setTempData(this.temp); |
| | | app.initData(); |
| | | //this.requestAdd(JSON.stringify(this.temp)); |
| | | // app.setTempData(this.temp); |
| | | // app.initData(); |
| | | this.requestAdd(JSON.stringify(this.temp),'publish'); |
| | | } |
| | | }, |
| | | |