Browse Source

调整 消息中心跳转买家中心页面

shenjj 7 years ago
parent
commit
21329a4caa

+ 8 - 3
src/main/webapp/resources/js/vendor/controllers/forstore/seek_purchase_ctrl.js

@@ -1,8 +1,8 @@
 define(['app/app'], function (app) {
   app.register.controller('seekPurchaseCtrl',
-      ['$scope', '$rootScope', '$stateParams', '$state', 'toaster',
+      ['$scope', '$location', '$rootScope', '$stateParams', '$state', 'toaster',
         'seekPurchase', 'BaseService', 'ngTableParams', '$modal', '$upload', '$http',
-        function ($scope, $rootScope, $stateParams, $state, toaster,
+        function ($scope, $location, $rootScope, $stateParams, $state, toaster,
             seekPurchase, BaseService, ngTableParams, $modal, $upload, $http) {
           document.title = '求购询价-优软商城';
           $rootScope.active = 'vendor_seek_purchase';
@@ -20,7 +20,12 @@ define(['app/app'], function (app) {
           $scope.initInquiryItem();
 
             //卖家待报价推送信息,self为与我相关,all为全部
-            $scope.vendorType = 'all';
+            if ($location.search().type === '1') {
+              $scope.vendorType = 'self';
+              console.log(1)
+            } else {
+              $scope.vendorType = 'all';
+            }
 
           // 获取当前卖家求购推送列表
           $scope.seekPurchaseTableParams = new ngTableParams({

+ 1 - 1
src/main/webapp/resources/view/vendor/forstore/vendor_material.html

@@ -1975,7 +1975,7 @@
 							{{item.userName}}({{item.userUU}})
 						</li>
 					</ul>-->
-					<input type="text" class="form-control keyword-material" ng-model="param.keyword" ng-search="onSearch()" placeholder="品牌/类目/型号"/>
+					<input type="text" class="form-control keyword-material" ng-model="param.keyword" ng-search="onSearch()" placeholder="品牌/型号"/>
 					<button ng-click="onSearch()">搜索</button>
 					<!--<a ng-click="download()">批量导出</a>-->
 				</div>