Ver a proveniência

[首页banner][修改]:[修改首页无用的接口]

tags/湖南版5.1.4
meo há 6 anos
ascendente
cometimento
d491bd9446
2 ficheiros alterados com 20 adições e 20 eliminações
  1. +1
    -1
      components/banner/index.wxml
  2. +19
    -19
      pages/main/index.js

+ 1
- 1
components/banner/index.wxml Ver ficheiro

@@ -5,7 +5,7 @@
<swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false">
<block wx:for="{{list}}" wx:key="unique">
<swiper-item>
<image data-id="{{item.id}}" data-data="{{item}}" bindtap='gotobannerdetail' src="{{item.coverImg}}" class="index-slide-image" />
<image data-id="{{item.id}}" data-data="{{item}}" mode='aspectFill' bindtap='gotobannerdetail' src="{{item.coverImg}}" class="index-slide-image" />
</swiper-item>
</block>
</swiper>


+ 19
- 19
pages/main/index.js Ver ficheiro

@@ -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共同登录
*/


Carregando…
Cancelar
Guardar