Browse Source

信息修改权限控制

yangc 7 years ago
parent
commit
5ad5a04918

+ 9 - 0
pages/mobile/user/bindEnterprise.vue

@@ -0,0 +1,9 @@
+<template>
+
+</template>
+<script>
+
+</script>
+<style>
+
+</style>

+ 6 - 4
pages/mobile/user/enterpriseinfo.vue

@@ -375,11 +375,13 @@
 //          this.setRemindText('您无该模块的编辑权限,请联系企业管理员进行编辑维护!')
 //          return
 //        }
-        this.storeState = 'update'
-        this.Islook = true
-        this.hidelook = true
+        this.authorityInterceptor('/basic/enterprise/*/updateInfo', () => {
+          this.storeState = 'update'
+          this.Islook = true
+          this.hidelook = true
 //        this.setTextareaHeight()
-        this.BScroll.refresh()
+          this.BScroll.refresh()
+        })
       },
       dealWithText2(tp) {
         if (tp === 'open') {

+ 10 - 8
pages/mobile/user/storeinfo.vue

@@ -235,15 +235,17 @@
 //          this.setRemindText('您无该模块的编辑权限,请联系企业管理员进行编辑维护!')
 //          return
 //        }
-        this.storeState = 'update'
-        this.Islook = true
-        this.hidelook = true
-        this.IsEnlook = true
-        this.hideEnlook = true
-        this.setTextareaHeight()
-        this.setApplicationTextareaHeight()
-        this.setEnTextareaHeight()
+        this.authorityInterceptor('/store-service/stores/*', () => {
+          this.storeState = 'update'
+          this.Islook = true
+          this.hidelook = true
+          this.IsEnlook = true
+          this.hideEnlook = true
+          this.setTextareaHeight()
+          this.setApplicationTextareaHeight()
+          this.setEnTextareaHeight()
 //        this.setAddarea()
+        })
       },
       dealWithText2(tp) {
         if (tp === 'open') {