diff --git a/pages/detail/index.js b/pages/detail/index.js
index e0f8378..f169ee0 100644
--- a/pages/detail/index.js
+++ b/pages/detail/index.js
@@ -1882,6 +1882,10 @@ Page({
let that = this
// if (!this.data.isAgency) return false
console.log('that.data.bclr', that.data.bclr);
+ if (!that.data.isAgency) {
+ this.tobeAgencyToast()
+ return
+ }
let content, title
if (that.data.jobDetail.record.returnFeeDesp && (that.data.jobDetail.record.picked || that.data.corpUserFlag)) {
title = that.data.isAgency ? '佣金: ' + that.data.fuWuFei : ''
@@ -1902,5 +1906,21 @@ Page({
},
});
+ },
+ tobeAgencyToast () {
+ wx.showModal({
+ title: '',
+ content: '抱歉,您需先成为伯才代理以获得使用权限。',
+ confirmColor: '#1890ff',
+ confirmText: '成为代理',
+ cancelText: '知道了',
+ success (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/tobeAgency/index'
+ })
+ }
+ }
+ })
}
});
\ No newline at end of file
diff --git a/pages/detail/index.wxml b/pages/detail/index.wxml
index 5671c10..25607ec 100644
--- a/pages/detail/index.wxml
+++ b/pages/detail/index.wxml
@@ -41,7 +41,7 @@
{{ (fuWuFei || '详询客服')}}
- ***
+ ***
diff --git a/pages/firstBill/index.wxml b/pages/firstBill/index.wxml
index f1c3a15..59cf3f4 100644
--- a/pages/firstBill/index.wxml
+++ b/pages/firstBill/index.wxml
@@ -1015,7 +1015,7 @@
-
+