|
@@ -9,6 +9,7 @@ const props = defineProps({
|
|
|
const authType = computed(() => {
|
|
|
if(!props.data) return
|
|
|
if (props.data.type === "contact") {
|
|
|
+
|
|
|
return 1;
|
|
|
}
|
|
|
if (props.data.type === "expired") {
|
|
@@ -22,16 +23,33 @@ const authType = computed(() => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+const handleAutoApply=()=>{
|
|
|
+ if(!props.data.customer_info.has_apply){
|
|
|
+ if(props.data.customer_info.status=='冻结'||(props.data.customer_info.status=='试用'&&props.data.customer_info.is_suspend==1)){
|
|
|
+ apiApplyPermission({
|
|
|
+ company_name:props.data.customer_info.company_name,
|
|
|
+ real_name:props.data.customer_info.name,
|
|
|
+ source:3,
|
|
|
+ from_page:'图库详情'
|
|
|
+ }).then(res=>{
|
|
|
+ if(res.code===200){
|
|
|
+ console.log('主动申请成功');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// 点击申请
|
|
|
const handleApply=()=>{
|
|
|
if(props.data.customer_info.status=='流失'){
|
|
|
apiApplyPermission({
|
|
|
- company_name:this.info.customer_info.company_name,
|
|
|
- real_name:this.info.customer_info.name,
|
|
|
+ company_name:props.data.customer_info.company_name,
|
|
|
+ real_name:props.data.customer_info.name,
|
|
|
source:3,
|
|
|
- from_page:'图库列表'
|
|
|
+ from_page:'图库详情'
|
|
|
}).then(res=>{
|
|
|
- // uni.navigateTo({url:'/pages-applyPermission/applyResult'})
|
|
|
+ wx.miniProgram.navigateTo({url:'/pages-applyPermission/applyResult'})
|
|
|
})
|
|
|
return
|
|
|
}
|