From d491bd944689916b5aa547a6f7f8da84ad96fec3 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 28 Mar 2019 17:40:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=A6=96=E9=A1=B5banner][=E4=BF=AE=E6=94=B9]:?= =?UTF-8?q?[=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/banner/index.wxml | 2 +- pages/main/index.js | 38 ++++++++++++++++++------------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/components/banner/index.wxml b/components/banner/index.wxml index 85808bc5..9c83f32 100644 --- a/components/banner/index.wxml +++ b/components/banner/index.wxml @@ -5,7 +5,7 @@ - + diff --git a/pages/main/index.js b/pages/main/index.js index 170d20e..f4f8f41 100644 --- a/pages/main/index.js +++ b/pages/main/index.js @@ -425,15 +425,15 @@ Page({ pageSize: 7 } }).then(res => { - that.getmemberId(app.globalData.token); - that.checkUserCarStatus(); + // that.getmemberId(app.globalData.token); + // that.checkUserCarStatus(); that.setData({ list: res.data.list }); }) .catch(err => { - that.getmemberId(app.globalData.token); - that.checkUserCarStatus(); + // that.getmemberId(app.globalData.token); + // that.checkUserCarStatus(); }) ; }, @@ -441,21 +441,21 @@ Page({ /** * 检查用户是否有车 */ - checkUserCarStatus: function() { - var that = this; - Http.get({ - url: config.api.userCarCount, - data: {} - }).then(res => { - if (res.data > 0) { - // 用户名下有车 - app.globalData.phone = res.data.phone; - app.globalData.supportCar = true; - // 共同登录 - that.userCarLogin(); - } - }); - }, + // checkUserCarStatus: function() { + // var that = this; + // Http.get({ + // url: config.api.userCarCount, + // data: {} + // }).then(res => { + // if (res.data > 0) { + // // 用户名下有车 + // app.globalData.phone = res.data.phone; + // app.globalData.supportCar = true; + // // 共同登录 + // that.userCarLogin(); + // } + // }); + // }, /** * car共同登录 */