Showing
6 changed files
with
22 additions
and
15 deletions
@@ -23,6 +23,12 @@ var ENUM={ | @@ -23,6 +23,12 @@ var ENUM={ | ||
23 | */ | 23 | */ |
24 | goodsSizeList:{"sizeId":"","salePrice":"","barCode":"","isSuppled":""} | 24 | goodsSizeList:{"sizeId":"","salePrice":"","barCode":"","isSuppled":""} |
25 | } | 25 | } |
26 | + | ||
27 | +/*下拉选择*/ | ||
28 | +// new common.dropDown({el:"#shopId",ajax:"queryShop"}); | ||
29 | +// new common.dropDown({el:"#brandId",ajax:"queryBrand"}); | ||
30 | +// new common.dropDown({el:"#founder",ajax:"querySupplier"}); | ||
31 | + | ||
26 | //baseTable | 32 | //baseTable |
27 | var g=new common.grid({ | 33 | var g=new common.grid({ |
28 | el:"#basicTable", | 34 | el:"#basicTable", |
@@ -37,6 +37,9 @@ var ENUM = { | @@ -37,6 +37,9 @@ var ENUM = { | ||
37 | } | 37 | } |
38 | }; | 38 | }; |
39 | 39 | ||
40 | +var tabTree=new common.tabTree("#sortTree"); | ||
41 | +tabTree.init(); | ||
42 | + | ||
40 | var t = new common.tab({ | 43 | var t = new common.tab({ |
41 | el: "#basicTab", | 44 | el: "#basicTab", |
42 | click: function() { | 45 | click: function() { |
@@ -103,9 +106,9 @@ var g = new common.grid({ | @@ -103,9 +106,9 @@ var g = new common.grid({ | ||
103 | isScreen: common.util.__input("isScreen"), | 106 | isScreen: common.util.__input("isScreen"), |
104 | isMeasure: common.util.__input("isMeasure"), | 107 | isMeasure: common.util.__input("isMeasure"), |
105 | gender: common.util.__input("gender"), | 108 | gender: common.util.__input("gender"), |
106 | - maxSortId: common.util.__input("maxSortId"), | ||
107 | - middleSortId: common.util.__input("middleSortId"), | ||
108 | - smallSortId: common.util.__input("smallSortId"), | 109 | + maxSortId: tabTree.selected[0]?tabTree.selected[0].id:"", |
110 | + middleSortId: tabTree.selected[1]?tabTree.selected[1].id:"", | ||
111 | + smallSortId: tabTree.selected[2]?tabTree.selected[2].id:"", | ||
109 | isOutLets: common.util.__input("isOutLets"), | 112 | isOutLets: common.util.__input("isOutLets"), |
110 | productStatus: common.util.__input("productStatus"), | 113 | productStatus: common.util.__input("productStatus"), |
111 | size: common.util.__input("size"), | 114 | size: common.util.__input("size"), |
1 | -//exports.domain = require('../config/common.js').domain; | ||
2 | -exports.domain = 'http://172.16.6.227:8083/yohobuy-platform-web'; //马力 | 1 | +exports.domain = require('../config/common.js').domain; |
2 | +// exports.domain = 'http://172.16.6.227:8083/yohobuy-platform-web'; //马力 | ||
3 | //exports.domain = 'http://172.16.6.236:8080/platform'; //钱军 | 3 | //exports.domain = 'http://172.16.6.236:8080/platform'; //钱军 |
4 | //exports.domain = 'http://172.16.6.162:8088/platform'; //李建 | 4 | //exports.domain = 'http://172.16.6.162:8088/platform'; //李建 |
5 | 5 |
1 | -// exports.domain = require('../config/common.js').domain; | ||
2 | -exports.domain = 'http://172.16.6.227:8084/yohobuy-platform-web'; | 1 | +exports.domain = require('../config/common.js').domain; |
2 | +// exports.domain = 'http://172.16.6.227:8084/yohobuy-platform-web'; | ||
3 | exports.res = [ | 3 | exports.res = [ |
4 | //商品描述 | 4 | //商品描述 |
5 | { | 5 | { |
@@ -2,8 +2,8 @@ var request = require('request'); | @@ -2,8 +2,8 @@ var request = require('request'); | ||
2 | var _ = require('lodash'); | 2 | var _ = require('lodash'); |
3 | var fs = require('fs'); | 3 | var fs = require('fs'); |
4 | var ipaddr = require('ipaddr.js'); | 4 | var ipaddr = require('ipaddr.js'); |
5 | -//var domain = require('../../config/common.js').domain; | ||
6 | -var domain = 'http://172.16.6.227:8083/yohobuy-platform-web'; | 5 | +var domain = require('../../config/common.js').domain; |
6 | +// var domain = 'http://172.16.6.227:8083/yohobuy-platform-web'; | ||
7 | 7 | ||
8 | exports.downFile = function(req, res) { | 8 | exports.downFile = function(req, res) { |
9 | var options = { | 9 | var options = { |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <option value="3">通用</option> | 77 | <option value="3">通用</option> |
78 | </select> | 78 | </select> |
79 | </div> | 79 | </div> |
80 | - <div class="panel-col"> | 80 | + <!-- <div class="panel-col"> |
81 | <select name="maxSortId" id="maxSortId" tabindex="-1" title="" class="form-control height40"> | 81 | <select name="maxSortId" id="maxSortId" tabindex="-1" title="" class="form-control height40"> |
82 | <option value="-1">请选择一级类目</option> | 82 | <option value="-1">请选择一级类目</option> |
83 | </select> | 83 | </select> |
@@ -91,13 +91,11 @@ | @@ -91,13 +91,11 @@ | ||
91 | <select name="smallSortId" id="smallSortId" tabindex="-1" title="" class="form-control height40"> | 91 | <select name="smallSortId" id="smallSortId" tabindex="-1" title="" class="form-control height40"> |
92 | <option value="-1">请选择三级类目</option> | 92 | <option value="-1">请选择三级类目</option> |
93 | </select> | 93 | </select> |
94 | - </div> | ||
95 | - <!-- <div class="panel-col"> | ||
96 | - <select name="cate4" id="cate4" tabindex="-1" title="" class="form-control height40"> | ||
97 | - <option value="-1">请选择四级类目</option> | ||
98 | - </select> | ||
99 | </div> --> | 94 | </div> --> |
100 | <div class="panel-col"> | 95 | <div class="panel-col"> |
96 | + <div id="sortTree"></div> | ||
97 | + </div> | ||
98 | + <div class="panel-col"> | ||
101 | <select name="isOutLets" id="isOutLets" tabindex="-1" title="" class="form-control height40"> | 99 | <select name="isOutLets" id="isOutLets" tabindex="-1" title="" class="form-control height40"> |
102 | <option value="-1">是否奥莱</option> | 100 | <option value="-1">是否奥莱</option> |
103 | <option value="Y">奥莱</option> | 101 | <option value="Y">奥莱</option> |
-
Please register or login to post a comment