|
@@ -7,6 +7,18 @@
|
|
|
<view class="global-btn-yellow-change btn" @click="handleContact" v-if="info.type=='contact'">联系销售</view>
|
|
|
<view class="global-btn-yellow-change btn" @click="handleGoApply" v-else>立即申请</view>
|
|
|
<view class="global-btn-yellow-plain btn" @click="handleBack">返回</view>
|
|
|
+
|
|
|
+ <!-- 弹窗 -->
|
|
|
+ <van-popup :show="pupData.show" @close="pupData.show=false">
|
|
|
+ <view class="global-pup">
|
|
|
+ <view class="content">
|
|
|
+ <rich-text :nodes="pupData.content"></rich-text>
|
|
|
+ </view>
|
|
|
+ <view class="flex bot">
|
|
|
+ <view @click="pupData.show=false">知道了</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -16,7 +28,11 @@ export default {
|
|
|
name:"noAuthority",
|
|
|
data () {
|
|
|
return {
|
|
|
- info:{}
|
|
|
+ info:{},
|
|
|
+ pupData:{
|
|
|
+ show:false,
|
|
|
+ content:'',//弹窗html字符串
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
onLoad(options){
|
|
@@ -26,9 +42,11 @@ export default {
|
|
|
async handleGoApply(){
|
|
|
if(this.info.type=='apply'){
|
|
|
if(this.info.customer_info.has_apply){// 已经申请过
|
|
|
- uni.redirectTo({
|
|
|
- url:"/pages-applyPermission/applyResult"
|
|
|
- })
|
|
|
+ this.pupData.show=true
|
|
|
+ this.pupData.content=`<p style="padding-top:20px">您已提交过申请,请耐心等待</p>`
|
|
|
+ // uni.redirectTo({
|
|
|
+ // url:"/pages-applyPermission/applyResult"
|
|
|
+ // })
|
|
|
}else{
|
|
|
if(!this.info.customer_info.status||this.info.customer_info.status!='流失'){
|
|
|
uni.redirectTo({
|
|
@@ -40,9 +58,11 @@ export default {
|
|
|
real_name:this.info.customer_info.name,
|
|
|
})
|
|
|
if(res.code===200){
|
|
|
- uni.redirectTo({
|
|
|
- url:"/pages-applyPermission/applyResult"
|
|
|
- })
|
|
|
+ this.pupData.show=true
|
|
|
+ this.pupData.content=`<p style="padding-top:20px">您已提交过申请,请耐心等待</p>`
|
|
|
+ // uni.redirectTo({
|
|
|
+ // url:"/pages-applyPermission/applyResult"
|
|
|
+ // })
|
|
|
}
|
|
|
}
|
|
|
}
|