diff --git a/common/js/request.js b/common/js/request.js
index 82c20d6..0c881bf 100644
--- a/common/js/request.js
+++ b/common/js/request.js
@@ -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 = {}
diff --git a/components/vertify/vertify-business-certify.vue b/components/vertify/vertify-business-certify.vue
new file mode 100644
index 0000000..b55bb9d
--- /dev/null
+++ b/components/vertify/vertify-business-certify.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+ 区域团队邀约需先完成营业执照认证
+
+
+ 以后认证
+ 立即认证
+
+
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
index 44b9868..4780da3 100644
--- a/main.js
+++ b/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 => {
//模拟异步请求数据
diff --git a/pages/area-proxy/my-team.vue b/pages/area-proxy/my-team.vue
index 0c60325..0e081e2 100644
--- a/pages/area-proxy/my-team.vue
+++ b/pages/area-proxy/my-team.vue
@@ -53,8 +53,14 @@
(扣点:{{Number(curUserInfo.leaderTeamRate)*100}}%)
-
-
+
+
+
+
+
@@ -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;
diff --git a/pages/my/b-account-bind.vue b/pages/my/b-account-bind.vue
index 7805fcc..a886804 100644
--- a/pages/my/b-account-bind.vue
+++ b/pages/my/b-account-bind.vue
@@ -43,6 +43,8 @@
工盟互联小程序承诺此账户只用于接收家政服务收益
+
+
@@ -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;
}
},
}
diff --git a/pages/order-manage/order-manage.vue b/pages/order-manage/order-manage.vue
index 42402fa..3e9fde5 100644
--- a/pages/order-manage/order-manage.vue
+++ b/pages/order-manage/order-manage.vue
@@ -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);
}
})
},