支付接口调用
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
<view>
|
||||
<view class="navtab flex-center">
|
||||
<view class="navtabpost flex-center">
|
||||
<view :class="navtabindex == 0 ? 'navtabone':'navtabtow'" @click="navtabclick(0)">
|
||||
<view :class="navtabindex == 0 ? 'navtabone':'navtabtow'" style="border-radius: 12rpx 0 0 12rpx;" @click="navtabclick(0)">
|
||||
团购订单
|
||||
</view>
|
||||
<view :class="navtabindex == 1 ? 'navtabone':'navtabtow'" @click="navtabclick(1)">
|
||||
<view :class="navtabindex == 1 ? 'navtabone':'navtabtow'" style="border-radius: 0 12rpx 12rpx 0;" @click="navtabclick(1)">
|
||||
到店订单
|
||||
</view>
|
||||
</view>
|
||||
@@ -297,7 +297,7 @@
|
||||
this.form.status = 'loading';
|
||||
this.form.page = ++this.form.page;
|
||||
setTimeout(() => {
|
||||
this.list = [...this.list, ...res.data];
|
||||
this.list = [...this.list, ...res.data.list];
|
||||
this.form.status = 'loading';
|
||||
if (res.data.pageNum == res.data.pages) {
|
||||
this.form.status = 'nomore';
|
||||
@@ -355,11 +355,11 @@
|
||||
position: relative;
|
||||
|
||||
.navtabone {
|
||||
margin-left: -10rpx;
|
||||
// margin-left: -10rpx;
|
||||
width: 162rpx;
|
||||
height: 56rpx;
|
||||
background: #FFEAB1;
|
||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||
// border-radius: 12rpx 0 0 12rpx;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
@@ -370,18 +370,18 @@
|
||||
}
|
||||
|
||||
.navtabtow {
|
||||
margin-left: -10rpx;
|
||||
// margin-left: -10rpx;
|
||||
z-index: 9;
|
||||
width: 166rpx;
|
||||
height: 56rpx;
|
||||
line-height: 56rpx;
|
||||
text-align: center;
|
||||
background: #FFFFFF;
|
||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||
// border-radius: 0 12rpx 12rpx 0;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
line-height: 56rpx;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user