Преглед изворни кода

任务管理添加抵扣配置

chengjunhui пре 2 месеци
родитељ
комит
3240f9a507

+ 24 - 0
renren-admin/src/main/resources/statics/js/modules/qmgz/taskManage.js

@@ -147,6 +147,30 @@ var vm = new Vue({
                 page:page
             }).trigger("reloadGrid");
         },
+        point() {
+            var width = ($(window).width() * 0.6);
+            var height = ($(window).height() - 50);
+            layui.use(['layer', 'form'], function () {
+                var $ = layui.jquery, layer = layui.layer;
+                layer.open({
+                    type: 2,
+                    area: [width + 'px', height + 'px'],
+                    fix: false, //不固定
+                    maxmin: true,
+                    shadeClose: true,
+                    resize: false,
+                    full: true,
+                    shade: 0.4,
+                    title: '积分抵扣',
+                    anim: 3,
+                    content: '../qyh/point.html',
+                    end: function () {
+                        // vm.reload();
+                        // console.log(11)
+                    }
+                });
+            })
+        },
     }
 });
 

+ 2 - 2
renren-admin/src/main/resources/templates/modules/qmjz/taskManage.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 <head>
-    <title>商品管理</title>
+    <title>任务管理</title>
     <#include "/header.html">
     <style>
         .both-select {
@@ -35,7 +35,7 @@
                     </select>
                     <a class="btn btn-query" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
                     <a class="btn btn-success" @click="refresh"><i class="fa fa-refresh"></i>&nbsp;刷新</a>
-
+                    <a class="btn btn-success" @click="point"><i class=""></i>&nbsp;抵扣配置</a>
                 </div>
 
             </div>