2024-09-23 17:41:41 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="container">
|
|
|
|
|
<view class="box_f">
|
|
|
|
|
<view class="box_top">
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">订单号:{{orderInfo.orderNumber}}</view>
|
|
|
|
|
<view class="">{{orderInfo.orderStatus}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="box_cont">
|
|
|
|
|
<view class="">
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<image :src="baseUrl+orderInfo.coverImage" v-if="orderInfo.coverImage" style="width: 60px; height: 60px; "></image>
|
|
|
|
|
<image src="../../static/logo.png" v-else style="width: 60px; height: 60px; "></image>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="r-bas">
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view style="font-size: 16px;color: #333333; margin-bottom: 5px;">{{orderInfo. giftName}}</view>
|
|
|
|
|
<view class="">x{{orderInfo.exchangeQuantity || 0}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
<view class="b-bs">
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="size1">
|
|
|
|
|
实付: <text style="color: #E02020;">{{orderInfo.integral}}积分</text>
|
|
|
|
|
<text style="color: #E02020;" v-if="orderInfo.amount">+{{orderInfo.amount}}元</text>
|
|
|
|
|
</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box_">
|
|
|
|
|
<view class="">请向商家出示此码使用</view>
|
|
|
|
|
<view style="display: flex;align-items: center;justify-content: center; margin: 10px auto;">
|
|
|
|
|
<w-qrcode :options="options"></w-qrcode>
|
|
|
|
|
</view>
|
|
|
|
|
|
2024-10-11 18:13:24 +08:00
|
|
|
|
<view class="">核销码:{{orderInfo.checkCode}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="box_" style="font-size: 14px;">
|
|
|
|
|
<view class="title_">自提信息</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">油站名称</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">{{orderInfo.storeName}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">油站地址</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">{{orderInfo.storeAddress}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">预留信息</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">{{orderInfo.addrName}} {{orderInfo.addrMobile}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box_" style="font-size: 14px;">
|
|
|
|
|
<view class="title_">金额信息</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">订单金额</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="r-size">¥{{orderInfo.amount || 0}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">订单积分</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="r-size">{{orderInfo.integral || 0}}积分</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="b-s">
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">共{{orderInfo.exchangeQuantity}}件商品</view>
|
|
|
|
|
<view class="r-size">实付:{{orderInfo.integral || 0}}积分</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box_" style="font-size: 14px;">
|
|
|
|
|
<view class="title_">订单信息</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">订单编号</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">{{orderInfo.orderNumber}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">下单油站</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">{{orderInfo.storeName}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">下单时间</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">{{orderInfo.createTime}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">支付方式</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">{{orderInfo.paymentType}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="">支付时间</view>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
<view class="">{{orderInfo.createTime}}</view>
|
2024-09-23 17:41:41 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-09-29 15:36:53 +08:00
|
|
|
|
import config from '@/config'
|
2024-09-23 17:41:41 +08:00
|
|
|
|
import request from '../../utils/request';
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
2024-09-29 15:36:53 +08:00
|
|
|
|
baseUrl: config.baseUrl,
|
2024-09-23 17:41:41 +08:00
|
|
|
|
List: [],
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
totalPage: '',
|
|
|
|
|
options: {
|
2024-10-11 18:13:24 +08:00
|
|
|
|
// code: 'https://qm.qq.com/cgi-bin/qm/qr?k=LKqML292dD2WvwQfAJXBUmvgbiB_TZWF&noverify=0', // 生成二维码的值
|
|
|
|
|
code: '', // 生成二维码的值
|
2024-09-23 17:41:41 +08:00
|
|
|
|
size: 300, // 460代表生成的二维码的宽高均为460rpx
|
|
|
|
|
},
|
2024-09-29 15:36:53 +08:00
|
|
|
|
orderId: '',
|
|
|
|
|
orderInfo: {}
|
2024-09-23 17:41:41 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onPullDownRefresh() {
|
|
|
|
|
//下拉刷新
|
|
|
|
|
uni.stopPullDownRefresh()
|
|
|
|
|
},
|
|
|
|
|
onReachBottom() {
|
|
|
|
|
// 触底加载
|
|
|
|
|
if (this.pageNo >= this.totalPage) {
|
2024-09-29 15:36:53 +08:00
|
|
|
|
|
2024-09-23 17:41:41 +08:00
|
|
|
|
} else {
|
|
|
|
|
this.pageNo++
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-09-29 11:20:08 +08:00
|
|
|
|
onLoad(e) {
|
2024-09-29 15:36:53 +08:00
|
|
|
|
this.orderId = e.orderId
|
|
|
|
|
this.getInfo()
|
2024-09-29 11:20:08 +08:00
|
|
|
|
},
|
2024-09-23 17:41:41 +08:00
|
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2024-09-29 15:36:53 +08:00
|
|
|
|
getInfo() {
|
2024-09-29 11:20:08 +08:00
|
|
|
|
request({
|
2024-09-29 15:36:53 +08:00
|
|
|
|
url: 'business/integral/integralOrders/' + this.orderId,
|
2024-09-23 17:41:41 +08:00
|
|
|
|
method: 'get',
|
2024-09-29 11:20:08 +08:00
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
2024-09-29 15:36:53 +08:00
|
|
|
|
console.log(res, 132);
|
|
|
|
|
this.orderInfo = res.data
|
2024-10-11 18:13:24 +08:00
|
|
|
|
this.options.code = res.data.checkCode
|
2024-09-23 17:41:41 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
goback() {
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.content {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
background: #f4f5f6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
background: #f4f5f6;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding-top: 1px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box_f {
|
|
|
|
|
width: 95%;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
margin: 15px auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box_ {
|
|
|
|
|
width: 95%;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
margin: 15px auto;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box_top {
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-bottom: 1px;
|
|
|
|
|
border-bottom: 1px dashed #eee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box_cont {
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.r-bas {
|
|
|
|
|
width: 80%;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.b-bs {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.anniu {
|
|
|
|
|
width: 80px;
|
|
|
|
|
height: 25px;
|
|
|
|
|
background: #FF9655;
|
|
|
|
|
color: #fff;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 50px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title_ {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #333333;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.b-s {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.r-size {
|
|
|
|
|
color: #E02020;
|
|
|
|
|
}
|
2024-09-29 15:36:53 +08:00
|
|
|
|
</style>
|