Ver Fonte

Merge branch 'tech_pool_24'

hbchen há 2 anos atrás
pai
commit
131a35175b
1 ficheiros alterados com 38 adições e 9 exclusões
  1. 38 9
      pages-sandTable/sandTable.vue

+ 38 - 9
pages-sandTable/sandTable.vue

@@ -28,6 +28,10 @@
 				</view>
 			</view>
 		</block>
+		<!-- 部分有权限 分享进来没有权限 -->
+		<block v-if="noAuthor ==4 && isFinished">
+			<!-- 显示空白 一秒钟后跳转至有权限的沙盘图-->
+		</block>
 		<!-- 有权限 -->
 		<view v-show="noAuthor ==0 && isFinished" style="padding-top: 156rpx;">
 			<view style="position: fixed;top: 0;width: 100vw;">
@@ -250,7 +254,7 @@
 			// 获取沙盘图数据
 			getSandBoxList(option){
 				this.isRequseting=true
-				apiSandTableList(this.sandTableQuery).then(({data:{list,paging,type,name,mobile,customer_info},code})=>{
+				apiSandTableList(this.sandTableQuery).then(({data:{list,paging,type,name,mobile,customer_info,jump},code})=>{
 					if(option == 'stopPullDown'){
 						uni.stopPullDownRefresh()
 					}
@@ -264,10 +268,22 @@
 							// 申请
 							this.noAuthor =1
 						}else{
-							// 联系销售
-							this.noAuthor =2
-							this.salesData.name=name
-							this.salesData.phone=mobile
+							if(jump){
+								this.noAuthor =4
+								// jump 跳转,说明该用户是有部分权限,提示“暂无此权限”,跳转至有权限的分类
+								uni.showToast({
+									title:"暂无此权限",
+									icon:'none'
+								})
+								setTimeout(()=>{
+									uni.redirectTo({url:'/pages-sandTable/sandTable'})
+								},1000)
+							}else{
+								// 联系销售
+								this.noAuthor =2
+								this.salesData.name=name
+								this.salesData.phone=mobile
+							}
 						}
 						return 
 					}
@@ -297,10 +313,23 @@
 							// 申请
 							this.noAuthor =1
 						}else{
-							// 联系销售
-							this.noAuthor =2
-							this.salesData.name=data.name
-							this.salesData.phone=data.mobile
+							if(data.jump){
+								// jump 跳转,说明该用户是有部分权限,提示“暂无此权限”,跳转至有权限的分类
+								this.noAuthor =4
+								uni.showToast({
+									title:"暂无此权限",
+									icon:'none'
+								})
+								setTimeout(()=>{
+									uni.redirectTo({url:'/pages-sandTable/sandTable'})
+								},1000)
+							}else{
+								// 联系销售
+								this.noAuthor =2
+								this.salesData.name=data.name
+								this.salesData.phone=data.mobile
+							}
+
 						}
 						return 
 					}