Просмотр исходного кода

[增加异常问题的处理]

tags/广东版3.2.1
meo 6 лет назад
Родитель
Сommit
30b4f6d6ac
6 измененных файлов: 36 добавлений и 30 удалений
  1. +2
    -2
      dist/tab/index.wxml
  2. +14
    -8
      pages/couponorder/index/index.js
  3. +1
    -1
      pages/couponorder/index/index.wxml
  4. +5
    -6
      pages/passCar/passCar.js
  5. +13
    -12
      pages/rushToBuy/index.js
  6. +1
    -1
      pages/rushToBuy/index.wxml

+ 2
- 2
dist/tab/index.wxml Просмотреть файл

@@ -1,6 +1,6 @@
<view class="i-class i-tabs-tab {{ scroll ? 'i-tabs-tab-scroll' : '' }} {{ current ? 'i-tabs-tab-current' : '' }}">
<view class="i-class i-tabs-tab {{ scroll ? 'i-tabs-tab-scroll' : '' }} {{ current ? 'i-tabs-tab-current' : '' }}" bindtap="handleClickItem">
<i-badge dot="{{ dot }}" count="{{ dot ? 0 : count }}">
<view bindtap="handleClickItem">
<view>
<view class="i-tabs-tab-title {{ current ? 'i-tabs-tab-title-current' : '' }}" wx:if="{{ current && currentColor }}" style="color: {{ currentColor }}">{{
title }}</view>
<view class="i-tabs-tab-title {{ current ? 'i-tabs-tab-title-current' : '' }}" wx:else>{{ title }}</view>


+ 14
- 8
pages/couponorder/index/index.js Просмотреть файл

@@ -28,7 +28,8 @@ Page({
allow_load: true,
loading: true, //"上拉加载"的变量,默认false,隐藏
content: "",
mystatus: ''
mystatus: '',
showPage:false
},
onLoad() {
this.getList(0, 1);
@@ -69,7 +70,13 @@ Page({
pageSize: 6,
couponOrderStatus: key
}
}).then(res => {
})
.then(res => {
if(res.code == 200){
that.setData({
showPage:true
})
}
res.data.list.map(file => {
file.expiredTime = util.fmtDate(file.expiredTime);
});
@@ -95,12 +102,11 @@ Page({
})
})
.catch(err => {
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
wx.showModal({
title: '提示',
content: err.errMsg,
showCancel:false
})
})
} else {
that.setData({


+ 1
- 1
pages/couponorder/index/index.wxml Просмотреть файл

@@ -1,4 +1,4 @@
<view class="market">
<view class="market" wx:if="{{showPage}}">
<!-- 券包 我的优惠券 -->
<i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll">
<i-tab class='i-tab' wx:for="{{tabs}}" wx:key="unique" key="{{item.key}}" title="{{item.name}}"></i-tab>


+ 5
- 6
pages/passCar/passCar.js Просмотреть файл

@@ -205,12 +205,11 @@ Page({
url: "/pages/getuserinfo/index"
});
}else{
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
wx.showModal({
title: '提示',
content: err.errMsg,
showCancel:false
})
}
});
}


+ 13
- 12
pages/rushToBuy/index.js Просмотреть файл

@@ -15,12 +15,8 @@ Page({
minute: "",
loading: true, //"上拉加载"的变量,默认false,隐藏
content: "",
showPage:false
},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {},
//列表
getList: function (page) {
let that = this;
@@ -41,7 +37,13 @@ Page({
pageSize: 5,
targetAd: 2
}
}).then(res => {
})
.then(res => {
if(res.code == 200){
that.setData({
showPage:true
})
}
if (page >= res.data.pages) {
that.setData({
allow_load: false
@@ -91,12 +93,11 @@ Page({

})
.catch(err => {
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
wx.showModal({
title: '提示',
content: err.errMsg,
showCancel:false
})
})
} else {
that.setData({


+ 1
- 1
pages/rushToBuy/index.wxml Просмотреть файл

@@ -1,5 +1,5 @@
<!-- 限时抢购 查看更多对应的页面 -->
<view class='flashSale'>
<view wx:if="{{showPage}}">
<view wx:for="{{list}}" wx:if="{{item.targetA!='end'}}" class='flashSaleItemWrap' wx:key="index">
<view class='flashSaleItem'>
<view class='flashSaleItemTop'>


Загрузка…
Отмена
Сохранить