支付接口调用

This commit is contained in:
duan
2024-05-21 16:59:31 +08:00
parent 07a6425ec4
commit 75ac4e967c
20 changed files with 512 additions and 245 deletions

View File

@@ -15,14 +15,14 @@
</view>
<view class="towcontent">
<view class="towcontentone">
75.00
{{orderinfo.couponsPrice}}
</view>
<view class="towcontentow flex-between">
<view class="towcontentow_O">
订单编号
</view>
<view class="towcontentow_T">
94789546123301
{{orderinfo.orderId}}
</view>
</view>
<view class="towcontentow flex-between">
@@ -30,7 +30,7 @@
下单时间
</view>
<view class="towcontentow_T">
2023-05-16 13:20:12
{{orderinfo.createTime}}
</view>
</view>
<view class="towcontentow flex-between">
@@ -49,22 +49,22 @@
<view class="towcontenthereimage flex-colum">
<view class="towcontenthereimageone">
<text style="font-size:28rpx; color: #FF7C0D;"></text>
30.00
{{orderinfo.couponsAmount}}
</view>
<view class="towcontenthereimagetow">
通用红包券
</view>
<view class="towcontenthereimagethere">
有效至 2024 07 11
有效至 {{orderinfo.endTime}}
</view>
<view class="towcontenthereimagefour">
限时红包变大 快来领取
</view>
<view class="towcontenthereimagefive flex-between">
<view class="towcontenthereimagefiveone">
<view class="towcontenthereimagefiveone" @click="wantEvent">
我在想想
</view>
<view class="towcontenthereimagefivetow">
<view class="towcontenthereimagefivetow" @click="DoublingEvent">
马上翻倍
</view>
</view>
@@ -84,6 +84,7 @@
data() {
return {
titlename: '支付详情',
orderId:"",
opacitys: false,
towcontentclickindex: 0,
windowHeight: '',
@@ -101,6 +102,7 @@
name: '饮品小吃'
}
],
orderinfo:null,
form: {
address: '', //地址
type: '', //品类
@@ -124,10 +126,13 @@
this.isFixedTop = false
}
},
onLoad() {
onLoad(e) {
console.log('调试',e)
this.orderId = e.orderId
setTimeout(() => {
this.GetTop()
}, 1000)
this.getinfo(e.orderId)
},
computed: {
HeighT() { //手机类型的尺寸
@@ -135,6 +140,25 @@
},
},
methods: {
async getinfo(id){
let res = await this.api.getYhqDouble({
orderId:id
})
console.log('调试1',res)
if(res.code==0){
this.orderinfo= res.data
}
},
wantEvent(){
uni.redirectTo({
url: '/pages/index/index'
});
},
async DoublingEvent(){
let res = await this.api.yhqDouble({
conponsId: this.listinfoid
})
},
//G滚动底部
loadMore(e) {
console.log(e)