Authored by liuyue

vip积分路由

@@ -4,8 +4,8 @@ exports.domain = require('../config/common.js').domain; @@ -4,8 +4,8 @@ exports.domain = require('../config/common.js').domain;
4 4
5 //营销管理路由配置 5 //营销管理路由配置
6 exports.res = [ 6 exports.res = [
7 -//{route: '/-p-l-a-t-f-o-r-m/3',method:"GET"}//此模块上线将此删除  
8 - { 7 + //{route: '/-p-l-a-t-f-o-r-m/3',method:"GET"}//此模块上线将此删除
  8 + /*{
9 //营销码管理 -> 页面渲染 9 //营销码管理 -> 页面渲染
10 route: '/market/coupon/index', 10 route: '/market/coupon/index',
11 method: 'GET', 11 method: 'GET',
@@ -374,7 +374,7 @@ exports.res = [ @@ -374,7 +374,7 @@ exports.res = [
374 type: 'Number' 374 type: 'Number'
375 } 375 }
376 ] 376 ]
377 - }, 377 + },*/
378 { 378 {
379 //vip累计金额翻倍 -> 列表页面渲染 379 //vip累计金额翻倍 -> 列表页面渲染
380 route: '/market/vipamount/index', 380 route: '/market/vipamount/index',
@@ -387,86 +387,73 @@ exports.res = [ @@ -387,86 +387,73 @@ exports.res = [
387 createUrl: '/market/vipamount/add', 387 createUrl: '/market/vipamount/add',
388 gridurl: '/market/vipamount/list' 388 gridurl: '/market/vipamount/list'
389 } 389 }
390 - },  
391 - { 390 + }, {
392 //vip累计金额翻倍 -> 列表数据 391 //vip累计金额翻倍 -> 列表数据
393 route: '/market/vipamount/list', 392 route: '/market/vipamount/list',
394 method: 'POST', 393 method: 'POST',
395 //url: '/activity/queryActivityList', 394 //url: '/activity/queryActivityList',
396 apis: { 395 apis: {
397 vipList: { 396 vipList: {
398 - url:'/activity/queryActivityList',  
399 - params: [  
400 - {  
401 - name: 'type',  
402 - type: 'Number'  
403 - },  
404 - {  
405 - name: 'size',  
406 - type: 'Number'  
407 - },  
408 - {  
409 - name: 'page',  
410 - type: 'Number'  
411 - }  
412 - ], 397 + url: '/activity/queryActivityList',
  398 + params: [{
  399 + name: 'type',
  400 + type: 'Number'
  401 + }, {
  402 + name: 'size',
  403 + type: 'Number'
  404 + }, {
  405 + name: 'page',
  406 + type: 'Number'
  407 + }],
413 isJsonRaw: true 408 isJsonRaw: true
414 }, 409 },
415 activity: { 410 activity: {
416 url: '/activity/queryActivityList', 411 url: '/activity/queryActivityList',
417 - params:[  
418 - {name: 'status', type: 'Number',def: 0}  
419 - ], 412 + params: [{
  413 + name: 'status',
  414 + type: 'Number',
  415 + def: 0
  416 + }],
420 isJsonRaw: true 417 isJsonRaw: true
421 } 418 }
422 } 419 }
423 -  
424 - },  
425 - { 420 +
  421 + }, {
426 //vip累计金额翻倍 -> 添加页面渲染 422 //vip累计金额翻倍 -> 添加页面渲染
427 route: '/market/vipamount/add', 423 route: '/market/vipamount/add',
428 method: 'GET', 424 method: 'GET',
429 view: 'pages/market/vipamount-edit', 425 view: 'pages/market/vipamount-edit',
430 - src:'/market/vipamount-edit', 426 + src: '/market/vipamount-edit',
431 data: { 427 data: {
432 action: '/market/vipamount/save', 428 action: '/market/vipamount/save',
433 } 429 }
434 - },  
435 - { 430 + }, {
436 //vip累计金额翻倍 -> 添加编辑活动 431 //vip累计金额翻倍 -> 添加编辑活动
437 route: '/market/vipamount/save', 432 route: '/market/vipamount/save',
438 method: 'POST', 433 method: 'POST',
439 url: '/activity/saveActivity', 434 url: '/activity/saveActivity',
440 isJsonRaw: true, 435 isJsonRaw: true,
441 - params: [  
442 - {  
443 - name: 'id',  
444 - type: 'Number'  
445 - },  
446 - {  
447 - name: 'num',  
448 - type: 'Number'  
449 - },  
450 - {  
451 - name: 'title',  
452 - type: 'String'  
453 - },  
454 - {  
455 - name: 'startTime',  
456 - type: 'Number'  
457 - },  
458 - {  
459 - name: 'endTime',  
460 - type: 'Number'  
461 - },  
462 - {  
463 - name: 'type',  
464 - type: 'Number'  
465 - },  
466 - {  
467 - name: 'status',  
468 - type: 'Number'  
469 - }  
470 - ] 436 + params: [{
  437 + name: 'id',
  438 + type: 'Number'
  439 + }, {
  440 + name: 'num',
  441 + type: 'Number'
  442 + }, {
  443 + name: 'title',
  444 + type: 'String'
  445 + }, {
  446 + name: 'startTime',
  447 + type: 'Number'
  448 + }, {
  449 + name: 'endTime',
  450 + type: 'Number'
  451 + }, {
  452 + name: 'type',
  453 + type: 'Number'
  454 + }, {
  455 + name: 'status',
  456 + type: 'Number'
  457 + }]
471 } 458 }
472 ] 459 ]