@@ -152,11 +153,17 @@
};
/*! 配送区域城市名称显示处理 */
$rootScope.ShowProvinceCityName = function (province) {
- var citys = [];
+ var isfull, citys = [];
province.subs.forEach(function (city) {
if (city.status) citys.push(city.name);
});
- return citys.join('、');
+ // 省份已选择全部城市,只显示省份名称
+ isfull = $rootScope.citys.some(function (item) {
+ if (item.name === province.name && citys.length >= item.subs.length) {
+ return true;
+ }
+ });
+ return isfull ? '' : '(' + citys.join('、') + ')';
};
/*! 检查是否还拥有可以选择的项目 */
$rootScope.ShowProvinceShow = function (province) {