|
@@ -85,9 +85,13 @@
|
|
|
console.log(randCode,'randCode')
|
|
|
getQbcgjLogin({mobile:mobile,randCode:randCode}).then(res=>{
|
|
|
console.log(res,'rrrrrrr')
|
|
|
- if (res.status === '200') {
|
|
|
- mpvue.setStorageSync('token_cgj',res.data.token)
|
|
|
- this.getPackageData()
|
|
|
+ if (res.status == '200') {
|
|
|
+ if(res.data){
|
|
|
+ mpvue.setStorageSync('token_cgj',res.data.token)
|
|
|
+ this.getPackageData()
|
|
|
+ } else {
|
|
|
+ this.dataList = []
|
|
|
+ }
|
|
|
} else {
|
|
|
wx.showToast({
|
|
|
title: res.message,
|