@@ -349,7 +349,7 @@ Page({ | |||
}); | |||
} else if (err.code == 3001) { | |||
wx.showToast({ | |||
title: "超过限购条件", | |||
title: "您已超过限购", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
@@ -382,7 +382,14 @@ Page({ | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 11005) { | |||
} else if (err.code == 3012) { | |||
wx.showToast({ | |||
title: "您有未支付订单", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
}); | |||
}else if (err.code == 11005) { | |||
/** | |||
* 将值传到用户手机号授权的页面 | |||
* | |||
@@ -639,7 +646,7 @@ Page({ | |||
}); | |||
} else if (err.code == 3001) { | |||
wx.showToast({ | |||
title: "超过限购条件", | |||
title: "您已超过限购", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
@@ -672,7 +679,14 @@ Page({ | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 11005) { | |||
} else if (err.code == 3012) { | |||
wx.showToast({ | |||
title: "您已超过限购", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
}); | |||
}else if (err.code == 11005) { | |||
/** | |||
* 将值传到用户手机号授权的页面 | |||
* | |||
@@ -363,7 +363,7 @@ Page({ | |||
}); | |||
} else if (err.code == "3001") { | |||
wx.showToast({ | |||
title: "超过限购条件", | |||
title: "您已超过限购", | |||
image: imgurl.fail.url, | |||
duration: 2000, | |||
mask: false | |||
@@ -396,6 +396,13 @@ Page({ | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 3012) { | |||
wx.showToast({ | |||
title: "您有未支付订单", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 11005) { | |||
/** | |||
* 将值传到用户手机号授权的页面 | |||
@@ -664,7 +664,7 @@ Page({ | |||
}); | |||
} else if (err.code == 3001) { | |||
wx.showToast({ | |||
title: "超过限购条件", | |||
title: "您已超过限购", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
@@ -697,6 +697,13 @@ Page({ | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 3012) { | |||
wx.showToast({ | |||
title: "您有未支付订单", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 11005) { | |||
/** | |||
* 将值传到用户手机号授权的页面 | |||
@@ -12,7 +12,9 @@ Page({ | |||
page: 1, | |||
imglist:null, | |||
shopVoList:[], | |||
data:{}, | |||
data:{ | |||
currentTabsIndex:0, | |||
}, | |||
id:null | |||
}, | |||
@@ -27,6 +29,15 @@ Page({ | |||
}); | |||
that.getList(options.id); | |||
} | |||
}, | |||
/** | |||
* tab切换 | |||
*/ | |||
onTabsItemTap:function(e){ | |||
var index=product.getDataSet(e,'index'); | |||
this.setData({ | |||
currentTabsIndex:index | |||
}) | |||
}, | |||
/** | |||
* 拨打电话 | |||
@@ -44,13 +44,34 @@ | |||
</view> | |||
<!-- 商户简介 --> | |||
<view class='merchant-phones'> | |||
<view> | |||
<!-- <view> | |||
<text>商户简介</text> | |||
</view> | |||
</view> --> | |||
<view class="swiper-tab"> | |||
<view class="swiper-tab-item {{currentTab==0?'active-tab':''}}" data-current="0" bindtap="clickTab">全部</view> | |||
<view class="swiper-tab-item {{currentTab==1?'active-tab':''}}" data-current="1" bindtap="clickTab">找人</view> | |||
<view class="swiper-tab-item {{currentTab==2?'active-tab':''}}" data-current="2" bindtap="clickTab">找车</view> | |||
</view> | |||
<swiper current="{{currentTab}}" duration="300" bindchange="swiperTabView"> | |||
<swiper-item> | |||
<view>全部</view> | |||
</swiper-item> | |||
<swiper-item> | |||
<view>找人</view> | |||
</swiper-item> | |||
<swiper-item> | |||
<view>找车</view> | |||
</swiper-item> | |||
</swiper> | |||
<view class='merchant-info'> | |||
<view hidden='currentTabsIndex!=0'> | |||
<text wx:if="{{data.summary}}">{{data.summary}}</text> | |||
</view> | |||
<view hidden='currentTabsIndex!=1'> | |||
<text wx:if="{{data.summary}}">{{data.summary}}</text> | |||
<text wx:else>{{"信息完善中,敬请期待。"}}</text> | |||
</view> | |||
</view> | |||
</view> | |||
</view> | |||
</view> |
@@ -143,4 +143,18 @@ | |||
} | |||
.merchant-brand{ | |||
border: none!important; | |||
} | |||
.tabs-item.selected { | |||
color:rgba(171,149,109,.8); | |||
border-bottom:2px solid rgba(171,149,109,.8); | |||
} | |||
.tabs-item { | |||
width:33.3%; | |||
color:#C7C7CB; | |||
font-size:28rpx; | |||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
display:flex; | |||
border-bottom:1rpx solid #D0D0D7; | |||
} |
@@ -118,7 +118,7 @@ Page({ | |||
}); | |||
} else if (err.code == 3001) { | |||
wx.showToast({ | |||
title: "超过限购条件", | |||
title: "您已超过限购", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
@@ -151,6 +151,13 @@ Page({ | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 3012) { | |||
wx.showToast({ | |||
title: "您有未支付订单", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 11005) { | |||
/** | |||
* 将值传到用户手机号授权的页面 | |||
@@ -327,7 +327,7 @@ Page({ | |||
}); | |||
} else if (err.code == 3001) { | |||
wx.showToast({ | |||
title: "超过限购条件", | |||
title: "您已超过限购", | |||
image: './../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
@@ -360,6 +360,13 @@ Page({ | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 3012) { | |||
wx.showToast({ | |||
title: "您有未支付订单", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 11005) { | |||
/** | |||
* 将值传到用户手机号授权的页面 | |||
@@ -312,7 +312,7 @@ Page({ | |||
}); | |||
} else if (err.code == 3001) { | |||
wx.showToast({ | |||
title: "超过限购条件", | |||
title: "您已超过限购", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
@@ -345,6 +345,13 @@ Page({ | |||
duration: 2000, | |||
mask: false | |||
}); | |||
}else if (err.code == 3012) { | |||
wx.showToast({ | |||
title: "您有未支付订单", | |||
image: './../../../assets/images/fail.png', | |||
duration: 2000, | |||
mask: false | |||
}); | |||
} else if (err.code == 11005) { | |||
/** | |||
* 将值传到用户手机号授权的页面 | |||