Browse Source

[订单详情][修改]:[订单详情已经修改]

tags/C.7.1.0
meo 6 years ago
parent
commit
1a36d61f86
3 changed files with 8 additions and 16 deletions
  1. +6
    -10
      pages/order/detail/index.js
  2. +1
    -1
      pages/order/detail/index.wxss
  3. +1
    -5
      pages/order/index/index.wxss

+ 6
- 10
pages/order/detail/index.js View File

@@ -154,9 +154,6 @@ Page({
wx.showLoading({
title: "加载中"
});
setTimeout(function () {
wx.hideLoading();
}, 1500);
Http.get({
url: config.api.orderDetail,
data: {
@@ -164,6 +161,7 @@ Page({
}
})
.then(res => {
wx.hideLoading();
if(res.code == 200){
that.getUserInfo()
that.setData({
@@ -182,6 +180,7 @@ Page({
});
})
.catch(error=>{
wx.hideLoading();
wx.showModal({
title: '提示',
content: error.errMsg,
@@ -199,7 +198,6 @@ Page({
* 去拼团
*/
goToOrderGroup(orderId, orderGroupId, _this) {
console.log(22222222)
let that = this;
// 支付成功
Http.post({
@@ -241,10 +239,6 @@ Page({
orderId: orderId
}
}).then(res => {
/// Begin payment ----
that.setData({
showButton: false
})
var payOrderId = "" + res.data.payOrderId;
wx.hideLoading();
wx.requestPayment({
@@ -283,7 +277,6 @@ Page({
return;
},
});
/// End payment --------
});
} else {
// 免费券
@@ -321,7 +314,10 @@ Page({
}
})
.then(res => {
wx.hideLoading()
wx.hideLoading();
this.setData({
showButton: false
})
if (!type&&type!='free') {
wx.showToast({
title: "购买成功",


+ 1
- 1
pages/order/detail/index.wxss View File

@@ -1,5 +1,5 @@
@import "../../../app.wxss";
button::after{ border: none; }
page {
height: auto !important;
}


+ 1
- 5
pages/order/index/index.wxss View File

@@ -147,10 +147,6 @@ text-overflow: ellipsis;
line-height: 33rpx;
}
/* .info view:nth-child(2) text, .info view:nth-child(3) text {
font-size: 22rpx;
} */
.info view:nth-child(3) {
margin-top: 20rpx;
}
@@ -163,7 +159,7 @@ text-overflow: ellipsis;
padding: 0 4%;
display: flex;
justify-content: space-between;
border-bottom: 1rpx solid #eee;
border-bottom: 8rpx solid #eee;
}
.payment view:nth-child(1) text:nth-child(1) {


Loading…
Cancel
Save