Kaynağa Gözat

Merge remote-tracking branch 'origin/release-201827-wangcz' into release-201827-wangcz

Hu Jie 7 yıl önce
ebeveyn
işleme
d1c84b2ea6

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

@@ -21,6 +21,8 @@ define(['app/app', 'jquery-uploadify'], function (app) {
 			taxRegistration: 'TAX_REGISTRATION',
 			taxRegistration: 'TAX_REGISTRATION',
 			businessLicense: 'BUSINESS_LICENSE'
 			businessLicense: 'BUSINESS_LICENSE'
 		};
 		};
+		// 初始化主营产品
+		$scope.description = '';
 		// 初始化品牌信息
 		// 初始化品牌信息
 		$scope.brands = [{ type: 'BRAND' }];
 		$scope.brands = [{ type: 'BRAND' }];
 		$scope.reason = null;
 		$scope.reason = null;
@@ -388,6 +390,10 @@ define(['app/app', 'jquery-uploadify'], function (app) {
 				toaster.pop('error', '请上传品牌信息');
 				toaster.pop('error', '请上传品牌信息');
 				return ;
 				return ;
 			}
 			}
+			if(!$scope.description) {
+                toaster.pop('error', '请填写主营产品信息');
+                return ;
+			}
 
 
 			// 设置店铺申请资质信息
 			// 设置店铺申请资质信息
 			$scope.storeApply.qualifications = [];
 			$scope.storeApply.qualifications = [];
@@ -441,6 +447,7 @@ define(['app/app', 'jquery-uploadify'], function (app) {
 				}
 				}
 
 
 				$scope.storeApply.brands = brands;
 				$scope.storeApply.brands = brands;
+				$scope.storeApply.applyDescription = $scope.description
 				console.log(brands);
 				console.log(brands);
 				console.log($scope.storeApply);
 				console.log($scope.storeApply);
 				submitApplyInfo();
 				submitApplyInfo();

+ 12 - 0
src/main/webapp/resources/view/vendor/forstore/vendor_store_apply.html

@@ -974,6 +974,18 @@
 					原因:<span style="color: #d32526;">{{reason}}</span>
 					原因:<span style="color: #d32526;">{{reason}}</span>
 				</div>
 				</div>
 			</div>
 			</div>
+			<!--主营产品-->
+			<div class="row brand-type">
+				<div class="col-md-1" style="padding:0;">主营产品<em>*</em></div>
+				<div class="col-md-10">
+                  <textarea ng-model="description"
+							style="line-height: 20px;font-size: 14px;margin-top:25px;"
+							rows="8"
+							maxlength="500"
+							class="form-control"
+							placeholder="例:本店主营Panasonic、IT、三星等知名品牌的触控IC、显示驱动IC、液晶屏、功率模块类、电源芯片、高压熔断、被动器件等产品。"></textarea>
+				</div>
+			</div>
 		</div>
 		</div>
 		<!-- Submit button -->
 		<!-- Submit button -->
 		<div style="padding: 28px 40px;">
 		<div style="padding: 28px 40px;">