Browse Source

pref: 处理品牌PDF问题

wangcz 7 years ago
parent
commit
2e17fcc85f

+ 3 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_store_apply_ctrl.js

@@ -86,6 +86,9 @@ define(['app/app', 'jquery-uploadify'], function (app) {
 									var newBrand = {};
 									newBrand.name = brand.name;
 									newBrand.url = brand.url;
+									if(isPdf(brand.url)) {
+										newBrand.isPdf = true
+									}
 									$scope.brands.push(newBrand);
 								});
 							}