浏览代码

取消支付拼团重新支付团已满提示修改

tags/湖南版5.1.4
海洋之声 6 年前
父节点
当前提交
7e7584f951
共有 4 个文件被更改,包括 79 次插入8 次删除
  1. +8
    -0
      pages/spellGroup/paySpellGroup/index.js
  2. +8
    -0
      pages/spellGroup/paySpellGroup/index.wxml
  3. +49
    -1
      pages/spellGroup/paySpellGroup/index.wxss
  4. +14
    -7
      pages/spellGroup/spellGroup.js

+ 8
- 0
pages/spellGroup/paySpellGroup/index.js 查看文件

@@ -14,6 +14,7 @@ Page({
position: imgurl.position.url,
close03: imgurl.close03.url,
home: imgurl.home.url,
orderGroupFail: imgurl.orderGroupFail.url,
paramData: null,
data: null,
clock: "00",
@@ -23,6 +24,7 @@ Page({
sec: "00",
spellStatusList: spellStatus,
isMyself: false,
showErr: false,
showAlert: false
},
gotoAgain() {
@@ -117,6 +119,12 @@ Page({
})
.then(res => {
wx.hideLoading()
if (res.data.orderStatus == 14) {
_this.setData({
showErr: true
})
return;
}
if (orderGroupId==undefined){
wx.navigateTo({
url: '/pages/order/detail/index?orderId='+res.data.id,


+ 8
- 0
pages/spellGroup/paySpellGroup/index.wxml 查看文件

@@ -30,4 +30,12 @@
<view class='edit'>
<button class='user-motto' bindtap='gotoPay'>去支付</button>
</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>

+ 49
- 1
pages/spellGroup/paySpellGroup/index.wxss 查看文件

@@ -374,4 +374,52 @@ page {
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;
margin-top: 79rpx;
}
}
.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;
}

+ 14
- 7
pages/spellGroup/spellGroup.js 查看文件

@@ -24,12 +24,14 @@ Page({
loading:true,
content:'数据正在加载中',
flag: 'spellList',
reloadIf:false
},
onLoad: function (options) {
let that = this;
that.getBannerlist();
var todayDate = new Date().getTime();
that.setData({
optionsData: options,
todayDate: todayDate
})
if(options&&options.from=='myhtml'){
@@ -48,13 +50,15 @@ Page({
},
onShow(){
let that=this;
that.getList(1, "spellList");
that.setData({
flag: "spellList",
spellList: true,
myspellList: false,
lists: null
})
if (this.data.reloadIf){
that.getList(1, "spellList");
that.setData({
flag: "spellList",
spellList: true,
myspellList: false,
lists: null
})
}
},
//切换拼团列表
getSpellList(){
@@ -129,6 +133,9 @@ Page({
},
gotoPay(e){
console.log(e,333)
this.setData({
reloadIf:true
})
let data = e.currentTarget.dataset.data
wx.navigateTo({
url: `/pages/spellGroup/paySpellGroup/index?orderId=${data.orderId}&couponId=${data.couponId}&orderGroupId=${data.orderGroupId}&couponChannelId=${data.couponChannelId}`,


正在加载...
取消
保存