@@ -1,6 +1,7 @@ | |||||
{ | { | ||||
"pages": [ | "pages": [ | ||||
"pages/index/index", | "pages/index/index", | ||||
"pages/joinFrDpell/index", | |||||
"pages/spellDetail/index", | "pages/spellDetail/index", | ||||
"pages/spellTimeout/index", | "pages/spellTimeout/index", | ||||
"pages/spellGroup/mySpellGroup/index", | "pages/spellGroup/mySpellGroup/index", | ||||
@@ -51,8 +52,7 @@ | |||||
"pages/paySuccess/paySuccess", | "pages/paySuccess/paySuccess", | ||||
"pages/ConsumeDetail/ConsumeDetail", | "pages/ConsumeDetail/ConsumeDetail", | ||||
"pages/externallinks/index", | "pages/externallinks/index", | ||||
"pages/czdetail/czdetail", | |||||
"pages/joinFrDpell/index" | |||||
"pages/czdetail/czdetail" | |||||
], | ], | ||||
"navigateToMiniProgramAppIdList": [ | "navigateToMiniProgramAppIdList": [ | ||||
"wx192b7d2e8dcbefd0", | "wx192b7d2e8dcbefd0", | ||||
@@ -11,6 +11,7 @@ Page({ | |||||
data: { | data: { | ||||
teljpgUrl: imgurl.teljpg.url, | teljpgUrl: imgurl.teljpg.url, | ||||
home: imgurl.home.url, | home: imgurl.home.url, | ||||
orderGroupFail: imgurl.orderGroupFail.url, | |||||
couponChannelId: '', | couponChannelId: '', | ||||
couponId: '', | couponId: '', | ||||
data: [], | data: [], | ||||
@@ -22,7 +23,8 @@ Page({ | |||||
hour: "00", | hour: "00", | ||||
min: "00", | min: "00", | ||||
sec: "00", | sec: "00", | ||||
paramData:null | |||||
paramData:null, | |||||
showErr:false | |||||
}, | }, | ||||
/** | /** | ||||
@@ -204,9 +206,15 @@ Page({ | |||||
} | } | ||||
}) | }) | ||||
.then(res => { | .then(res => { | ||||
wx.reLaunch({ | |||||
url: `/pages/spellDetail/index?orderId=${orderId}&couponId=${_this.data.data.couponId}&orderGroupId=${res.data.orderGroupId}` | |||||
}); | |||||
if(res.code=200){ | |||||
wx.reLaunch({ | |||||
url: `/pages/spellDetail/index?orderId=${orderId}&couponId=${_this.data.data.couponId}&orderGroupId=${res.data.orderGroupId}` | |||||
}); | |||||
} else if (res.code == 28001){ | |||||
_this.setData({ | |||||
showErr:true | |||||
}) | |||||
} | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
console.log(err); | console.log(err); | ||||
@@ -64,10 +64,12 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='al-bg'></view> | |||||
<view class='al-content'> | |||||
<view class='al-top'></view> | |||||
<view class='al-center'></view> | |||||
<view class='al-bottom'></view> | |||||
<view class='al-bg' wx:if='{{showErr}}'></view> | |||||
<view class='al-content' wx:if='{{showErr}}'> | |||||
<view class='al-top'> | |||||
<image src='{{orderGroupFail}}' mode="widthFix"></image> | |||||
</view> | |||||
<view class='al-center'>好友的拼团已完成,您的退款将在24小时内返回到您的支付账号</view> | |||||
<view class='al-bottom' bindtap='gotoIndex'>返回首页</view> | |||||
</view> | </view> | ||||
</view> | </view> |
@@ -410,4 +410,52 @@ | |||||
color: #fff; | color: #fff; | ||||
font-weight: bold; | font-weight: bold; | ||||
background: #ff4949; | background: #ff4949; | ||||
} | |||||
.al-bg{ | |||||
position: fixed; | |||||
width: 100%; | |||||
height: 100vh; | |||||
top: 0; | |||||
left: 0; | |||||
background:rgba(0,0,0,1); | |||||
opacity:0.65; | |||||
z-index: 200; | |||||
} | |||||
.al-content{ | |||||
background: #fff; | |||||
position: fixed; | |||||
width: 545rpx; | |||||
z-index: 300; | |||||
top: 200rpx; | |||||
left: 102rpx; | |||||
border-radius: 15rpx; | |||||
} | |||||
.al-top{ | |||||
width: 100%; | |||||
} | |||||
.al-top image{ | |||||
position: relative; | |||||
height: 298rpx; | |||||
margin-top: -96rpx; | |||||
width: 545rpx; | |||||
} | |||||
.al-center{ | |||||
padding: 80rpx 30rpx; | |||||
font-size:30rpx; | |||||
font-family:PingFang-SC-Regular; | |||||
font-weight:400; | |||||
color:rgba(51,51,51,1); | |||||
} | |||||
.al-bottom{ | |||||
width:462rpx; | |||||
height:95rpx; | |||||
background:linear-gradient(90deg,rgba(248,85,45,1) 0%,rgba(241,60,66,1) 0%,rgba(248,86,46,1) 100%); | |||||
border-radius:47rpx; | |||||
font-size:30rpx; | |||||
font-family:PingFang-SC-Medium; | |||||
font-weight:500; | |||||
color:rgba(255,255,255,1); | |||||
text-align: center; | |||||
line-height: 95rpx; | |||||
margin: 0 auto 43rpx; | |||||
} | } |
@@ -392,4 +392,8 @@ module.exports = { | |||||
'url': baseUrl + 'nodata.png', | 'url': baseUrl + 'nodata.png', | ||||
'name': '拼团暂无数据' | 'name': '拼团暂无数据' | ||||
}, | }, | ||||
'orderGroupFail': { | |||||
'url': baseUrl + 'orderGroupFail.png', | |||||
'name': '拼团失败' | |||||
}, | |||||
} | } |