|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view class="chart-no-auth">
|
|
<view class="chart-no-auth">
|
|
- <image class="img" :src="globalImgUrls.activityNoAuth" mode="widthFix"></image>
|
|
|
|
-
|
|
|
|
|
|
+ <image class="img" :src="globalImgUrls.activityNoAuth" mode="widthFix" v-if="authType!=4"></image>
|
|
|
|
+ <image class="img-wait" :src="globalImgUrls.chartWait" mode="widthFix" v-else></image>
|
|
<block v-if="authType==1">
|
|
<block v-if="authType==1">
|
|
<view style="margin-bottom:15px">您暂无权限查看图库</view>
|
|
<view style="margin-bottom:15px">您暂无权限查看图库</view>
|
|
<view>若想查看请联系对口销售</view>
|
|
<view>若想查看请联系对口销售</view>
|
|
@@ -21,11 +21,16 @@
|
|
<view>若想查看可以申请开通</view>
|
|
<view>若想查看可以申请开通</view>
|
|
<view class="global-btn-yellow-change btn" style="margin-top:30px" @click="handleApply">立即申请</view>
|
|
<view class="global-btn-yellow-change btn" style="margin-top:30px" @click="handleApply">立即申请</view>
|
|
</block>
|
|
</block>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ <block v-if="authType==4">
|
|
|
|
+ <view style="margin-bottom:15px">您已提交申请</view>
|
|
|
|
+ <view>请等待销售人员与您联系</view>
|
|
|
|
+ </block>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import {apiApplyPermission} from '@/api/user'
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
info:null
|
|
info:null
|
|
@@ -33,21 +38,19 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
authType(){
|
|
authType(){
|
|
if(!this.info) return
|
|
if(!this.info) return
|
|
- let type
|
|
|
|
- let status=this.info.customer_info.status //客户状态
|
|
|
|
// 该客户为冻结、试用暂停状态;该客户为正式、试用、永续状态,但联系人图表权限未开启或禁用
|
|
// 该客户为冻结、试用暂停状态;该客户为正式、试用、永续状态,但联系人图表权限未开启或禁用
|
|
- if(
|
|
|
|
- status=='冻结'||
|
|
|
|
- (status=='试用'&&this.info.customer_info.is_suspend)||
|
|
|
|
- (['正式','试用','永续'].includes(status))
|
|
|
|
- ){
|
|
|
|
- type=1
|
|
|
|
|
|
+ if(this.info.type==='contact'){
|
|
|
|
+ return 1
|
|
|
|
+ }
|
|
|
|
+ if(this.info.type==='expired'){
|
|
|
|
+ return 2
|
|
|
|
+ }
|
|
|
|
+ if(this.info.type==='apply'&&!this.info.customer_info.has_apply){
|
|
|
|
+ return 3
|
|
|
|
+ }
|
|
|
|
+ if(this.info.type==='apply'&&!this.info.customer_info.has_apply){
|
|
|
|
+ return 4
|
|
}
|
|
}
|
|
-
|
|
|
|
- // 该客户为正式、试用、永续状态,联系人图表权限已到期
|
|
|
|
- // if()
|
|
|
|
-
|
|
|
|
- return type
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -60,7 +63,16 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
handleApply(){
|
|
handleApply(){
|
|
- uni.navigateTo({ url: '/pages-applyPermission/applyPermission' })
|
|
|
|
|
|
+ if(this.info.customer_info.status=='流失'){
|
|
|
|
+ apiApplyPermission({
|
|
|
|
+ company_name:this.info.customer_info.company_name,
|
|
|
|
+ real_name:this.info.customer_info.name,
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ uni.navigateTo({url:'/pages-applyPermission/applyResult'})
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ uni.navigateTo({ url: '/pages-applyPermission/applyPermission?source=3' })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -75,6 +87,10 @@ export default {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin-bottom: 50rpx;
|
|
margin-bottom: 50rpx;
|
|
}
|
|
}
|
|
|
|
+ .img-wait{
|
|
|
|
+ width: 186rpx;
|
|
|
|
+ margin-bottom: 50rpx;
|
|
|
|
+ }
|
|
.btn{
|
|
.btn{
|
|
width: 380rpx;
|
|
width: 380rpx;
|
|
line-height: 70rpx;
|
|
line-height: 70rpx;
|