认证未审核不能提交订单完单(现在提交认证即可提交订单了,绑银行卡必须要认证才能绑,而且绑银行卡需能另绑,资料需加上绑支付宝姓名号码)(拉师傅团队的必须是认证里营业执照有上传并已审核【注:营业执照和公账等公司资料是选填,因为是子师傅的,没上营业执照,平台也会审核通过的】,否则邀约是弹框提示:区域团队邀约需先完成营业执照认证 去认证)
This commit is contained in:
parent
ea14b6e11f
commit
fc17e83c7b
|
|
@ -13,9 +13,9 @@ export default {
|
|||
})
|
||||
let userInfo = _this.getCurUserInfo();
|
||||
// request 触发前拼接 url
|
||||
// args.url = 'https://www.opsoul.com:8881' + args.url;
|
||||
args.url = 'https://www.opsoul.com:8881' + args.url;
|
||||
// args.url = 'http://127.0.0.1:80' + args.url;
|
||||
args.url = 'http://192.168.2.43:80' + args.url;
|
||||
// args.url = 'http://192.168.2.43:80' + args.url;
|
||||
|
||||
if (!args.data) {
|
||||
args.data = {}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,47 @@
|
|||
<template>
|
||||
<view>
|
||||
<!-- 模态框 -->
|
||||
<view class="cu-modal" :class="isShow?'show':''">
|
||||
<view class="cu-dialog">
|
||||
<view class="padding-xl">
|
||||
<view class="cuIcon-profile big-icon padding-tb text-main-color"></view>
|
||||
<view>区域团队邀约需先完成营业执照认证</view>
|
||||
</view>
|
||||
<view class="cu-bar bg-white solid-top">
|
||||
<view class="action margin-0 flex-sub text-black" data-modal="showTakeCertifiedModal"
|
||||
@tap="hideModal">以后认证</view>
|
||||
<view class="action margin-0 flex-sub text-main-color solid-left"
|
||||
data-modal="showTakeCertifiedModal" @tap="hideModal" @click="goToCertify">立即认证</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'vertify-certify',
|
||||
emits: ['reload'],
|
||||
data() {
|
||||
return {
|
||||
isShow: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showModal(e) {
|
||||
this.isShow = true
|
||||
},
|
||||
hideModal(e) {
|
||||
this.isShow = false;
|
||||
},
|
||||
goToCertify() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/certification'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
2
main.js
2
main.js
|
|
@ -14,6 +14,7 @@ import globalData from './common/js/globalData.js';
|
|||
import vertifyLogin from '@/components/vertify/vertify-login.vue';
|
||||
import vertifyPhone from '@/components/vertify/vertify-phone.vue';
|
||||
import vertifyCertify from '@/components/vertify/vertify-certify.vue';
|
||||
import vertifyBusinessCertify from '@/components/vertify/vertify-business-certify.vue';
|
||||
import vertifyWorkerType from '@/components/vertify/vertify-worker-type.vue';
|
||||
import vertifyBankBind from '@/components/vertify/vertify-bank-bind.vue';
|
||||
|
||||
|
|
@ -24,6 +25,7 @@ Vue.component('vertify-phone', vertifyPhone);
|
|||
Vue.component('vertify-certify', vertifyCertify);
|
||||
Vue.component('vertify-worker-type', vertifyWorkerType);
|
||||
Vue.component('vertify-bank-bind', vertifyBankBind);
|
||||
Vue.component('vertify-business-certify', vertifyBusinessCertify);
|
||||
|
||||
const data = type => {
|
||||
//模拟异步请求数据
|
||||
|
|
|
|||
|
|
@ -53,8 +53,14 @@
|
|||
<view v-if="curUserInfo.leaderTeamRate">(扣点:<text
|
||||
class="text-red">{{Number(curUserInfo.leaderTeamRate)*100}}%</text>)</view>
|
||||
</view>
|
||||
<!-- <view class="bg-main-color submit" @click="showModalByRef('inviteMasterModal')">邀请团队</view> -->
|
||||
<view class="bg-main-color submit">
|
||||
<!-- <view class="bg-main-color submit" @click="showModalByRef('inviteMasterModal')">邀请团队</view> -->
|
||||
<view class="bg-main-color submit" v-if="!certified">
|
||||
<button class="cu-btn bg-main-color" style="width: 100%; height: 100%;" @click="noticeCertifyCheckedRes">
|
||||
<text class="cuIcon-share"></text>
|
||||
<text>邀请师傅</text>
|
||||
</button>
|
||||
</view>
|
||||
<view class="bg-main-color submit" v-else>
|
||||
<button class="cu-btn bg-main-color" open-type="share" style="width: 100%; height: 100%;">
|
||||
<text class="cuIcon-share"></text>
|
||||
<text>邀请师傅</text>
|
||||
|
|
@ -66,7 +72,10 @@
|
|||
:leaderTeamMoney="curUserInfo.leaderTeamMoney" @confirm="applySetTakeRate"></set-take-rate>
|
||||
<invite-master ref="inviteMasterModal" :inviteMasterObj="inviteMasterObj" @confirm="inviteMaster"></invite-master>
|
||||
<confirm-modal ref="loginTipModal" :content="'当前无法加入团队,请先完成注册。如您已注册,请登录后重新点击此链接,完成加入团队。'" @confirm="goToPage('/pages/login/login?inviter=', inviteMasterObj, true)"></confirm-modal>
|
||||
<confirm-modal ref="certifyTipModal" :content="'请前往完成师傅实名及银行账户绑定以激活'" @confirm="goToPage('/pages/index/index?menuCode=myPage')"></confirm-modal>
|
||||
<confirm-modal ref="certifyTipModal" :content="'请前往完成师傅实名及银行账户绑定以激活'" @confirm="goToPage('/pages/index/index?menuCode=myPage')"></confirm-modal>
|
||||
<!-- 账户及实名弹窗 -->
|
||||
<vertify-certify ref="vertifyCertify"></vertify-certify>
|
||||
<vertify-business-certify ref="vertifyBusinessCertify"></vertify-business-certify>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -88,7 +97,10 @@
|
|||
pageNum: 0,
|
||||
pageSize: 0,
|
||||
curUserInfo: {},
|
||||
inviteMasterObj: {}
|
||||
inviteMasterObj: {},
|
||||
certified: false,
|
||||
certifyInfo: null,
|
||||
certifyCheckedMsg: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
|
@ -99,6 +111,9 @@
|
|||
} else {
|
||||
this.loadData();
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.checkCertify();
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
|
|
@ -108,6 +123,33 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
async checkCertify() {
|
||||
// 查询实名信息
|
||||
let certifyInfoRes = await this.$request.getWorkerCertify();
|
||||
this.certifyInfo = certifyInfoRes.data;
|
||||
this.certified = true;
|
||||
if (!this.certifyInfo || !this.certifyInfo.workerCertificationId) {
|
||||
this.certified = false;
|
||||
} else if (this.certifyInfo.status != 1) {
|
||||
this.certified = false;
|
||||
this.certifyCheckedMsg = '实名认证审核通过后才可进行操作';
|
||||
} else if (!this.certifyInfo.businessLicenseNum || !this.certifyInfo.businessLicenseUrl) {
|
||||
this.certified = false;
|
||||
}
|
||||
},
|
||||
noticeCertifyCheckedRes() {
|
||||
if (!this.certifyInfo || !this.certifyInfo.workerCertificationId) {
|
||||
this.$refs.vertifyCertify.showModal();
|
||||
} else if (this.certifyInfo.status === 1 && (!this.certifyInfo.businessLicenseNum || !this.certifyInfo.businessLicenseUrl)) {
|
||||
this.$refs.vertifyBusinessCertify.showModal();
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: this.certifyCheckedMsg,
|
||||
duration: 2500
|
||||
})
|
||||
}
|
||||
},
|
||||
async beInvited2Team(inviteMasterObj) {
|
||||
this.loadBasicData();
|
||||
this.inviteMasterObj = inviteMasterObj;
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@
|
|||
<view class="text-red padding">
|
||||
工盟互联小程序承诺此账户只用于接收家政服务收益
|
||||
</view>
|
||||
<!-- 账户及实名弹窗 -->
|
||||
<vertify-certify ref="vertifyCertify"></vertify-certify>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -92,6 +94,9 @@
|
|||
},
|
||||
async submit() {
|
||||
if (this.curAccountType === '1') {
|
||||
if (!this.checkCertify()) {
|
||||
return;
|
||||
}
|
||||
if (!this.validData()) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
|
|
@ -115,6 +120,23 @@
|
|||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
async checkCertify() {
|
||||
// 查询实名信息
|
||||
let certifyInfoRes = await this.$request.getWorkerCertify();
|
||||
this.certifyInfo = certifyInfoRes.data;
|
||||
if (!this.certifyInfo || !this.certifyInfo.workerCertificationId) {
|
||||
this.$refs.vertifyCertify.showModal();
|
||||
return false;
|
||||
} else if (this.certifyInfo.status != 1) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '实名认证审核通过后才可进行操作',
|
||||
duration: 2500
|
||||
})
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1048,6 +1048,13 @@
|
|||
if (!this.certifyInfo || !this.certifyInfo.workerCertificationId) {
|
||||
this.$refs.vertifyCertify.showModal();
|
||||
return false;
|
||||
} else if (this.certifyInfo.status != 1) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '实名认证审核通过后才可进行操作',
|
||||
duration: 2500
|
||||
})
|
||||
return false;
|
||||
} else if (!this.bankCard || !this.bankCard.bankNum) {
|
||||
this.$refs.vertifyBankBind.showModal();
|
||||
return false;
|
||||
|
|
@ -1065,7 +1072,7 @@
|
|||
name: _this.curUserInfo.name,
|
||||
orderId: code
|
||||
});
|
||||
this.updateOrderStatus(id, status, funName);
|
||||
_this.updateOrderStatus(id, status, funName);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue