ソースを参照

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

tags/C.7.1.0
meo 6年前
コミット
1a36d61f86
3個のファイルの変更8行の追加16行の削除
  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 ファイルの表示

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


+ 1
- 1
pages/order/detail/index.wxss ファイルの表示

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


+ 1
- 5
pages/order/index/index.wxss ファイルの表示

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


読み込み中…
キャンセル
保存