소스 검색

[支付完成跳转页面的修改][修改]:

tags/2.2.4
meo 6 년 전
부모
커밋
691746f8ab
9개의 변경된 파일41개의 추가작업 그리고 17개의 파일을 삭제
  1. +1
    -1
      app.json
  2. +1
    -1
      pages/bannerdetail/index.wxss
  3. +29
    -10
      pages/coupon/detail/index.js
  4. +7
    -2
      pages/order/detail/index.js
  5. +0
    -0
      pages/orderquanma/index.js
  6. +0
    -0
      pages/orderquanma/index.json
  7. +0
    -0
      pages/orderquanma/index.wxml
  8. +0
    -0
      pages/orderquanma/index.wxss
  9. +3
    -3
      utils/HttpBasics.js

+ 1
- 1
app.json 파일 보기

@@ -20,7 +20,7 @@
"pages/passCar/passCar",
"pages/getphoneInfo/index",
"pages/addPark/addPark",
"pages/youhuiquanma/index"
"pages/orderquanma/index"
],
"tabBar": {
"color": "#9F9F9F",


+ 1
- 1
pages/bannerdetail/index.wxss 파일 보기

@@ -149,7 +149,7 @@
padding: 0 4%;
line-height: 87rpx;
background: #fff;
border-top: 1rpx solid #f5f5f5;
/* border-top: 1rpx solid #f5f5f5; */
}

.notes view:nth-child(1) text {


+ 29
- 10
pages/coupon/detail/index.js 파일 보기

@@ -17,7 +17,7 @@ Page({
console.log(that.data);
if (that.data.data.merchantLinkPhone) {
wx.makePhoneCall({
phoneNumber: that.data.data.merchantLinkPhone //仅为示例,并非真实的电话号码
phoneNumber: that.data.data.merchantLinkPhone
});
}
},
@@ -55,11 +55,10 @@ Page({
console.log("details");
//当前时间与优惠券下架时间做计算
var endTime = util.fmtDate(res.data.endTime);
util.timechuo(endTime)
console.log(util.timechuo(endTime));
util.timechuo(endTime);
that.setData({
endtime:util.timechuo(endTime)
})
endtime: util.timechuo(endTime)
});
wx.hideLoading();
that.setData({
data: res.data
@@ -133,6 +132,23 @@ Page({
console.log(that.data.couponChannelId);
console.log(that.data.couponId);
console.log("我即将要跳转到用户手机号授权的页面");
if (err.code == "3002") {
wx.showToast({
title: "领取达到上限",
image: "./../../../assets/img/fail.png",
duration: 2000,
mask: false
});
}
if (err.code == "4003") {
wx.showToast({
title: "卡券已作废",
image: "./../../../assets/img/fail.png",
duration: 2000,
mask: false
});
}

if (err.code == 11005) {
// 用户手机未授权
/**
@@ -189,8 +205,6 @@ Page({
signType: "MD5",
paySign: res.data.paySign,
success: res => {
console.log(res);
console.log("姐在检查付款异常");
that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功
console.log(res);
if (res.errMsg == "requestPayment:ok") {
@@ -198,9 +212,14 @@ Page({
title: "购买成功",
image: "./../../../assets/img/success.png",
duration: 2000,
mask: false
mask: false,
success:function(){
wx.redirectTo({
url: `/pages/order/detail/index?orderId=${that.data.orderId}`,
})
}
});
/**
* 用户支付成功以后跳转到券包列表
*/
@@ -240,7 +259,7 @@ Page({
wx.showToast({
title: "领取成功",
duration: 3000,
image: "./../../../assets/img/success.png",
image: "./../../../assets/img/success.png"
});
}
}


+ 7
- 2
pages/order/detail/index.js 파일 보기

@@ -28,7 +28,7 @@ Page({
console.log(e);
wx.navigateTo({
url: `/pages/youhuiquanma/index?quancode=${e.currentTarget.dataset.quancode}&title=${e.currentTarget.dataset.title}&subtitle=${e.currentTarget.dataset.subtitle}&remark=${e.currentTarget.dataset.remark}&couponorderstatus=${e.currentTarget.dataset.couponorderstatus}`,
url: `/pages/orderquanma/index?quancode=${e.currentTarget.dataset.quancode}&title=${e.currentTarget.dataset.title}&subtitle=${e.currentTarget.dataset.subtitle}&remark=${e.currentTarget.dataset.remark}&couponorderstatus=${e.currentTarget.dataset.couponorderstatus}`,
})
console.log(e.currentTarget.dataset.quancode);
console.log(e.currentTarget.dataset.couponorderstatus);
@@ -105,7 +105,12 @@ Page({
title: "购买成功",
duration: 2000,
image: "./../../../assets/img/success.png",
mask:false
mask:false,
success:function(){
wx.redirectTo({
url: `/pages/order/detail/index?orderId=${that.data.orderId}`,
})
}
});
}
},


pages/youhuiquanma/index.js → pages/orderquanma/index.js 파일 보기


pages/youhuiquanma/index.json → pages/orderquanma/index.json 파일 보기


pages/youhuiquanma/index.wxml → pages/orderquanma/index.wxml 파일 보기


pages/youhuiquanma/index.wxss → pages/orderquanma/index.wxss 파일 보기


+ 3
- 3
utils/HttpBasics.js 파일 보기

@@ -97,9 +97,9 @@ class HttpBasics {
resolve(res.data);
} else {
wx.hideLoading();
wx.showToast({
title: res.data.message
});
// wx.showToast({
// title: res.data.message
// });
reject(res.data);
}
} else {


불러오는 중...
취소
저장