diff --git a/pages/customer/detail/index.js b/pages/customer/detail/index.js index 34a23f2..6461e35 100644 --- a/pages/customer/detail/index.js +++ b/pages/customer/detail/index.js @@ -222,9 +222,16 @@ Page({ //选择状态 radioPicker(e){ if(e.currentTarget.dataset.key != this.data.statuskey){ - this.setData({ - statuskey:e.currentTarget.dataset.key, - }) + if(e.currentTarget.dataset.key == 2 &&this.data.detailinfo.status==0){ + wx.showToast({ + title: '请先将客户变更为到店客户', + icon: 'none' + }) + }else{ + this.setData({ + statuskey:e.currentTarget.dataset.key, + }) + } } },