Skip to content

Commit 736d3dc

Browse files
committed
add product module
1 parent c3e4248 commit 736d3dc

71 files changed

Lines changed: 1119 additions & 7 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Libs/Js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
.when('/classicalCase', {
5555
templateUrl: 'Views/stepInYX/classicalCase.html'
5656
})
57+
.when('/productList/:id', {
58+
templateUrl: 'Views/product/list.html'
59+
})
60+
.when('/productDetail/:categoryId/:mainOrSecond/:productId', {
61+
templateUrl: 'Views/product/detail.html'
62+
})
5763
.otherwise({
5864
redirectTo: '/'
5965
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
mainMoudle.controller('productListCtrl', ['$scope', 'productDataService', '$routeParams', function ($scope, productDataService, $routeParams) {
2+
3+
$scope.products = productDataService.all();
4+
$scope.category = productDataService.getCategory($routeParams.id);
5+
$scope.changeCategory = function (id) {
6+
$scope.category = productDataService.getCategory(id);
7+
}
8+
9+
}])
10+
.controller('productDetailCtrl', function ($scope, productDataService, $routeParams) {
11+
//$scope.products = productDataService.all();
12+
var category = productDataService.getCategory($routeParams.categoryId);
13+
$scope.product = productDataService.getProduct(category, $routeParams.mainOrSecond, $routeParams.productId);
14+
})
15+
16+
;

Libs/Js/services/jobDataService.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
type: '技术支持类',
77
number: '若干',
88
location: '上海',
9-
email: 'rsb@dahuatech.com',
9+
email: 'info@ying-heart.com',
1010
responsibility: '1、配合销售完成系统项目销售任务,制作符合客户需求的方案;<br />' +
1111
'2、跟踪所负责区域的项目,协调公司资源完成项目操作的各项活动;<br />' +
1212
'3、维护所负责行业的技术层面客户关系,组织区域的品牌活动;<br />' +
@@ -22,7 +22,7 @@
2222
type: '销售商务类',
2323
number: '若干',
2424
location: '上海',
25-
email: 'rsb@dahuatech.com',
25+
email: 'info@ying-heart.com',
2626
responsibility: '1、负责公司产品的销售及推广;<br />' +
2727
'2、根据市场营销计划,完成部门销售指标;<br />' +
2828
'3、开拓新市场,发展新客户,增加产品销售范围;<br />' +
@@ -40,7 +40,7 @@
4040
type: '研发类',
4141
number: '2人',
4242
location: '上海',
43-
email: 'rsb@dahuatech.com',
43+
email: 'info@ying-heart.com',
4444
responsibility: '1、负责电子产品及相关软件功能测试;<br />' +
4545
'2、根据需求文档编写测试计划,设计测试用例;<br />' +
4646
'3、实施软件测试,并对软件问题进行跟踪分析和报告,推动测试中发现问题及时合理解决;<br />' +
@@ -60,7 +60,7 @@
6060
type: '研发类',
6161
number: '2人',
6262
location: '上海',
63-
email: 'rsb@dahuatech.com',
63+
email: 'info@ying-heart.com',
6464
responsibility: '1、安防系统研发、测试;<br />' +
6565
'2、电子产品测试设备及工装的开发、制作与维护;<br />' +
6666
'3、编制测试过程及设备使用的作业指导文件;<br />' +
@@ -76,7 +76,7 @@
7676
type: '职能类',
7777
number: '1人',
7878
location: '上海',
79-
email: 'rsb@dahuatech.com',
79+
email: 'info@ying-heart.com',
8080
responsibility: '负责销售合同的管理,ERP相关单据的操作',
8181
require: '1、能熟练操作Office办公软件,会操作ERP软件优先;<br />' +
8282
'2、认真仔细,能吃苦耐劳,有较强的责任心;<br />' +

Libs/Js/services/productDataService.js

Lines changed: 1022 additions & 0 deletions
Large diffs are not rendered by default.
55.1 KB
29.3 KB
70.6 KB
64.1 KB
56.4 KB
120 KB

0 commit comments

Comments
 (0)