|
@@ -21,8 +21,22 @@
|
|
|
<image src="../../static/user-icon-1.png" mode="widthFix" />
|
|
|
<text class="label">品种权限</text>
|
|
|
<block v-if="userInfo.permission_list.length==0">
|
|
|
- <text style="color:#666666">暂无权限</text>
|
|
|
- <van-button custom-class="apply-btn" plain round color="#DDAA6A" size="small" @click="handleGoApplyPermission">立即申请</van-button>
|
|
|
+ <text style="color:#666666;margin-left:10px">暂无权限</text>
|
|
|
+ <van-button
|
|
|
+ custom-class="apply-btn"
|
|
|
+ plain round color="#DDAA6A"
|
|
|
+ size="small"
|
|
|
+ @click="handleContact"
|
|
|
+ v-if="userInfo.status=='冻结'||(userInfo.status=='试用'&&userInfo.is_suspend==1)"
|
|
|
+ >联系销售</van-button>
|
|
|
+ <van-button
|
|
|
+ custom-class="apply-btn"
|
|
|
+ plain round color="#DDAA6A"
|
|
|
+ size="small"
|
|
|
+ @click="handleGoApplyPermission"
|
|
|
+ v-else
|
|
|
+ >立即申请</van-button>
|
|
|
+
|
|
|
</block>
|
|
|
<view v-else class="right-text">
|
|
|
<text>查看</text>
|
|
@@ -107,6 +121,12 @@
|
|
|
handleToUserPermission(){
|
|
|
if(this.userInfo.permission_list.length==0) return
|
|
|
uni.navigateTo({ url: '/pages-user/permissionList' })
|
|
|
+ },
|
|
|
+
|
|
|
+ handleContact(){
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: this.userInfo.seal_mobile
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|