Browse Source

用户绑定企业

liuam 7 years ago
parent
commit
f5e22a6e2a

+ 1 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_account_management_ctrl.js

@@ -13,6 +13,7 @@ define(['app/app'], function(app) {
         $scope.searchParams = {
             keyword: ''
         };
+        $scope.isAdmin = $rootScope.userInfo.enterprise.enAdminuu === $rootScope.userInfo.userUU ? true : false;
         // $scope.userInfo.pwdEnable = false;
         // $scope.userInfo.haveUserQuestion = false;
         // $scope.userInfo.userEmail = null;

+ 1 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_index_ctrl.js

@@ -8,6 +8,7 @@ define(['app/app', 'calendar'], function(app) {
         $rootScope.active = 'index';
         $scope.count = 0;
         $scope.userInfo = $rootScope.userInfo;
+        console.log($scope.userInfo);
 
         // 申请
         $scope.auditApply = function (status, id, UU) {

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

@@ -434,7 +434,7 @@
       <ul class="fl">
         <li ng-class="{'active': tab=='base'}"><a ng-click="checkTab('base')">基本信息</a></li>
         <li ng-class="{'active': tab=='safe'}"><a ng-click="checkTab('safe')">安全设置</a></li>
-        <li ng-class="{'active': tab=='bind'}"><a ng-click="checkTab('bind')" ng-if="userInfo.sys">申请绑定</a></li>
+        <li ng-class="{'active': tab=='bind'}"><a ng-click="checkTab('bind')" ng-if="isAdmin">申请绑定</a></li>
         <!--<li ng-class="{'active': tab=='logistic'}"><a href="#" ng-click="checkTab('logistic')">收货地址</a></li>-->
       </ul>
     </div>

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

@@ -112,7 +112,7 @@
                 <!--<li><a href="#"><img src="static/img/vendor/images/notice04.png"/><p>缺货预警</p></a></li>-->
             <!--</ul>-->
         <!--</div>-->
-        <div class="data_analyze bind-enter" ng-if="userInfo.sys">
+        <div class="data_analyze bind-enter" ng-if="isAdmin">
             <div class="com_menu01">
                 <span>企业绑定申请</span>
                 <a class="pull-right" ng-click="findMore()">查看更多</a>
@@ -138,11 +138,6 @@
                         <a class="operate-btn" ng-click="auditApply(0, item.id, item.user.userUU)">|&nbsp;拒绝</a>
                     </td>
                 </tr>
-                <tr class="num">
-                    <td colspan="5" ng-if="!content[0].id">
-                        <span class="last-login pull-right">暂无数据</span>
-                    </td>
-                </tr>
                 </tbody>
             </table>
         </div>