Commit 1221a1c9 authored by Mac's avatar Mac

成功页面的修改

parent 81f49110
...@@ -450,7 +450,10 @@ ...@@ -450,7 +450,10 @@
},{ },{
"path":"share_qrcode" "path":"share_qrcode"
},{ },{
"path":"offline-success" "path":"offline-success",
"style": {
"navigationStyle": "custom"
}
},{ },{
"path":"draw" "path":"draw"
} }
......
...@@ -28,15 +28,16 @@ ...@@ -28,15 +28,16 @@
<text style="font-size: 33px;">{{payInfo.total_price}}</text> <text style="font-size: 33px;">{{payInfo.total_price}}</text>
</view> </view>
</view> </view>
<!-- <view class="pay-item" style="margin-top: 10px;"> <view class="pay-item" style="margin-top: 10px;">
<text>订单编号:</text> <text>订单编号:</text>
<text>5465464646</text> <text>{{OrderInfo.OrderNo?OrderInfo.OrderNo:''}}</text>
</view> </view>
<view class="pay-item"> <view class="pay-item">
<text>下单时间:</text> <text>下单时间:</text>
<text>5465464646</text>
</view> --> <text>{{OrderInfo.CreateDate?OrderInfo.CreateDate:''}}</text>
<view class="pay-item" style="margin-top: 10px;"> </view>
<view class="pay-item">
<text>支付方式:</text> <text>支付方式:</text>
<text>微信</text> <text>微信</text>
</view> </view>
...@@ -58,7 +59,8 @@ ...@@ -58,7 +59,8 @@
pageTitle: "交易成功", pageTitle: "交易成功",
mainColor: "", mainColor: "",
headStyle:{}, headStyle:{},
payInfo:{} payInfo:{},
OrderInfo:{}
}; };
}, },
...@@ -72,19 +74,41 @@ ...@@ -72,19 +74,41 @@
}); });
let nav = uni.getMenuButtonBoundingClientRect().top; let nav = uni.getMenuButtonBoundingClientRect().top;
this.headStyle.paddingTop = nav +'px'; this.headStyle.paddingTop = nav +'px';
this.init()
}, },
mounted() { mounted() {
}, },
methods: { methods: {
init() {
this.payInfo.OpenId = uni.getStorageSync('mall_UserInfo').OpenId;
this.request2({
url: '/api/OSGoods/GetOfflineOrderInfo',
data: {
OrderId: this.payInfo.OrderId,
NewUserId: 0,
}
},
(res) => {
this.OrderInfo = res.data
}
);
},
goback(){ goback(){
uni.navigateBack({}) uni.navigateBack({})
}, },
godingdan(){ godingdan(){
uni.reLaunch({
url: '/pages/reserve/personal/orderList?status=2' try {
}); uni.reLaunch({
url: '/pages/reserve/personal/orderList?status=2',
});
} catch (e) {
console.log(e)
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment