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

恢复后台店铺列表热销标签的展示方式

huxz пре 8 година
родитељ
комит
6c45e5bf0c

+ 0 - 25
src/main/webapp/resources/js/admin/controllers/StoreInfoListCtrl.js

@@ -103,31 +103,6 @@ define([ 'app/app' ], function(app) {
 		}, function (resp) {
 		});
 
-		$scope.excellentSupplierMap = {};
-
-		/**
-		 * 获取原厂推荐信息
-		 */
-		StoreInfo.fiveStoresByTypes({	num : 5, types : 'ORIGINAL_FACTORY' }, {}, function (data) {
-			if (data && data.length > 0) {
-				angular.forEach(data, function (store) {
-					$scope.excellentSupplierMap[store.uuid] = true;
-				});
-			}
-		}, function () {
-		});
-
-		/**
-		 * 获取经销代理优秀供应商信息
-		 */
-		StoreCms.getStoreCmsByUseForAndCmsType({ num:5, types:'AGENCY-DISTRIBUTION' }, function (exStoreCms) {
-			if (exStoreCms && exStoreCms.length > 0) {
-				angular.forEach(exStoreCms, function (store) {
-					$scope.excellentSupplierMap[store.uuid] = true;
-				});
-			}
-		});
-
 		/**
 		 * 添加到店铺相关内容管理系统
 		 *

+ 5 - 9
src/main/webapp/resources/view/admin/store/fragments/enterprise_info.html

@@ -303,23 +303,19 @@
 	<!--推荐相关内容 -->
 	<div class="recommend" ng-if="store.status === 'OPENED'">
 		<div class="recommend-list hot-icon">推荐成为:
-			<label>
+			<!--<label>
 				<i class="hot"></i>热销
 				<input type="checkbox" id="hot" ng-checked="store.tagsObject['SALES_LIST']" ng-click="tagStoreWithTag(store, 'SALES_LIST')">
 				<label for="hot"></label>
-			</label>
-			<label><i class="new-apply"></i>优秀供应商
-				<input type="checkbox" id="new-apply" ng-checked="store.tagsObject['EXCELLENCE_LIST']" ng-click="tagStoreWithTag(store, 'EXCELLENCE_LIST')">
-				<label for="new-apply"></label>
-			</label>
+			</label>-->
 			<!--<label><i class="new"></i>新入驻
 				<input type="checkbox" id="new">
 				<label for="new"></label>
-			</label>
+			</label>-->
 			<label><i class="new-apply"></i>优秀供应商
-				<input type="checkbox" id="new-apply">
+				<input type="checkbox" id="new-apply" ng-checked="store.tagsObject['EXCELLENCE_LIST']" ng-click="tagStoreWithTag(store, 'EXCELLENCE_LIST')">
 				<label for="new-apply"></label>
-			</label>-->
+			</label>
 		</div>
 	</div>
 	<div class="back-store"><a ng-href="{{'store/' + storeUuid}}" target="_blank"><button>前往店铺</button></a></div>

+ 1 - 1
src/main/webapp/resources/view/admin/store_info_list.html

@@ -254,7 +254,7 @@
 				<td><span ng-bind="store.createTime | date : 'yyyy-MM-dd HH:mm:ss'"></span></td>
 				<td><span ng-bind="store.updateTime | date : 'yyyy-MM-dd HH:mm:ss'"></span></td>
 				<td class="hot-icon">
-					<div ng-if="store.tagsObject['SALES_LIST']">
+					<div ng-if="newStoreMap[store.uuid]">
 						<i class="hot"></i><span>热销</span>
 					</div>
 					<div ng-if="hotSalesMap[store.uuid]">