oil-station/gasStation-uni/pagesHome/myPointsOrder/details.vue
2024-09-23 17:41:41 +08:00

265 lines
5.5 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="content">
<view class="container">
<view class="box_f">
<view class="box_top">
<view class="">订单号xxxxxxxxxxxxxxxxxxxx</view>
<view class="">未使用</view>
</view>
<view class="box_cont">
<view class="">
<image src="../../static/logo.png" style="width: 60px; height: 60px; "></image>
</view>
<view class="r-bas">
<view style="font-size: 16px;color: #333333; margin-bottom: 5px;">虚拟产品</view>
<view class="">x1</view>
<view class="b-bs">
<view class="size1">实付 <text style="color: #E02020;">100积分</text> </view>
</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>
<view class="">核销码6688172293684182</view>
</view>
<view class="box_" style="font-size: 14px;">
<view class="title_">自提信息</view>
<view class="b-s">
<view class="">油站名称</view>
<view class="">中建锦绣二期站</view>
</view>
<view class="b-s">
<view class="">油站地址</view>
<view class="">济南市槐荫区xxxxxx</view>
</view>
<view class="b-s">
<view class="">预留信息</view>
<view class="">张三 13964068390</view>
</view>
</view>
<view class="box_" style="font-size: 14px;">
<view class="title_">金额信息</view>
<view class="b-s">
<view class="">订单金额</view>
<view class="r-size">0.00</view>
</view>
<view class="b-s">
<view class="">订单积分</view>
<view class="r-size">100积分</view>
</view>
<view class="b-s">
<view class="">共1件商品</view>
<view class="r-size">实付100积分</view>
</view>
</view>
<view class="box_" style="font-size: 14px;">
<view class="title_">订单信息</view>
<view class="b-s">
<view class="">订单编号</view>
<view class="">xxxxxxxxxxxxxxxxxxxx</view>
</view>
<view class="b-s">
<view class="">下单油站</view>
<view class="">中建锦绣二期站</view>
</view>
<view class="b-s">
<view class="">下单时间</view>
<view class="">2024-08-09 10:44:02</view>
</view>
<view class="b-s">
<view class="">支付方式</view>
<view class="">微信</view>
</view>
<view class="b-s">
<view class="">支付时间</view>
<view class="">2024-08-09 10:45:02</view>
</view>
</view>
</view>
</view>
</template>
<script>
import request from '../../utils/request';
export default {
data() {
return {
title: '',
List: [],
pageNo: 1,
pageSize: 10,
totalPage: '',
options: {
code: 'https://qm.qq.com/cgi-bin/qm/qr?k=LKqML292dD2WvwQfAJXBUmvgbiB_TZWF&noverify=0', // 生成二维码的值
size: 300, // 460代表生成的二维码的宽高均为460rpx
},
}
},
onLoad() {
},
onPullDownRefresh() {
//下拉刷新
this.resetting() //重置方法
this.getList() //调用请求
uni.stopPullDownRefresh()
},
onReachBottom() {
// 触底加载
if (this.pageNo >= this.totalPage) {
uni.showToast({
title: '没有下一页数据',
icon: 'none'
})
} else {
this.pageNo++
this.getList()
}
},
components: {
},
methods: {
//滞空方法
resetting() {
this.pageNo = 1
this.pageSize = 10
this.totalPage = ''
this.List = []
},
// 分页——网络请求
async getList() {
uni.showLoading({
title: '加载中'
});
let res = await request({
url: '网络请求',
method: 'get',
data: {
pageNo: this.pageNo,
pageSize: this.pageSize,
}
})
if (res.code == 200) {
uni.hideLoading(); //交互反馈
if (this.pageNo != 1) {
this.List = this.ruleList.concat(res.result.records)
} else {
this.List = res.result.records
}
this.totalPage = res.result.pages
}
},
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;
}
</style>