123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <template>
- <view>
- <ujp-navbar title="支付结果"></ujp-navbar>
- <view class="icon">
- <img src="../../assets/img/paymentSuccess.png" alt="">
- </view>
- <view class="text">
- 支付成功
- </view>
- <view class="infos-group">
- <view class="item">
- <view class="title">
- 商品总金额
- </view>
- <view class="value">
- 12.9元
- </view>
- </view>
- <view class="item">
- <view class="title">
- 交易手机号
- </view>
- <view class="value">
- 155****0001
- </view>
- </view>
- <view class="item">
- <view class="title">
- 订单号
- </view>
- <view class="value">
- T20230816112557708460925
- </view>
- </view>
- <view class="item">
- <view class="title">
- 创建时间
- </view>
- <view class="value">
- 2023-08-20 10:29:00
- </view>
- </view>
- <view class="item">
- <view class="title">
- 支付时间
- </view>
- <view class="value">
- 2023-08-20 10:29:30
- </view>
- </view>
-
- </view>
- <view class="btn">
- <view class="check">
- 查看订单
- </view>
- <view class="continue">
- 继续充电
- </view>
- </view>
- </view>
- </template>
- <script>
- import * as API from '@/apis/finance.js'
- import * as newsApi from '@/apis/news.js'
- export default {
- data() {
- return {
- detail: {},
- id: "",
- charge:false,
- chargeObj:{},
- title:'充值结果',
- bannerList:[],
- }
- },
- onLoad(op) {
- if(op.id){
- this.id=op.id
- this.getInfo();
- }
- var obj=this.carhelp.getGunIdCharge();
- if(obj){
- this.charge=true
- this.chargeObj=obj
- }
- this.getBannerInfo("recharge-end")
- },
- methods: {
- clickBanner(index){
- var mod= this.bannerList[index]
-
- if(mod.linkUrl.indexOf('http')==0){
- window.location=mod.linkUrl;
- }
- else if(mod.linkUrl.indexOf('#/')==0){
- if(mod.linkUrl.indexOf("?")==-1){
- mod.linkUrl+='?';
- }
- //window.location=mod.linkUrl;
- var url=mod.linkUrl.split("#")[1]
- //window.location = mod.clickUrl;
- uni.navigateTo({
- url: url
- })
- }
- else if(mod.linkUrl=='#'||mod.linkUrl==''){
-
- }
- else{
- uni.navigateTo({
- url:mod.linkUrl
- })
- }
-
- },
- getBannerInfo(code){
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- newsApi.getBannerInfo(code).then((res) => {
- uni.hideLoading();
- this.bannerList =res.data;
-
- // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
- }).catch(error => {
- uni.showToast({
-
- title: error,icon: "none"
- })
- })
- },
- getInfo() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.accountDetail({
- outOrderNo: this.id
- }).then((res) => {
- uni.hideLoading()
-
- this.detail = res.data.orderInfo;
- if(this.detail.type=='2'){
- this.title='开通会员'
- }
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- userindex() {
- uni.redirectTo({
- url: '/pages/user/index'
- })
- },
- rechargeContinue() {
- uni.redirectTo({
- url: '/pages/user/finance/recharge'
- })
- },
- chargeLook2(){
-
- uni.redirectTo({
- url:"/pages/searchPile/chargeProcess/dcCharging?id=" + this.detail.recordId
- })
-
- },
- chargeLook(){
-
- uni.redirectTo({
- url:'/pages/searchPile/chargeProcess/charge?isback=1&deviceNo='+this.chargeObj.deviceNo+"&gun="+this.chargeObj.channelNo+"&carNumber="+this.chargeObj.carNumber
- })
-
- },
- balanceLook() {
- uni.redirectTo({
- url: '/pages/user/finance/balance'
- })
- }
- }
- }
- </script>
- <style>
- page{
- background-color: #fff;
- }
- </style>
- <style lang="scss" scoped>
- .icon{
- width: 160rpx;
- height: 160rpx;
- margin: 100rpx auto 32rpx;
- img{
- width: 100%;
- height: 100%;
- }
- }
-
- .text{
- text-align: center;
- color: rgba(16, 16, 16, 1);
- font-size: 48rpx;
- }
- .infos-group{
- margin-top: 80rpx;
- padding: 0 80rpx;
- .item{
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 24rpx;
- .title{
- color: rgba(119, 119, 119, 1);
- }
- .value{
- color: rgba(51, 51, 51, 1);
- }
- }
- }
- .btn{
- padding: 0 80rpx;
- margin-top: 80rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .check{
- width: 280rpx;
- height: 80rpx;
- line-height: 80rpx;
- border-radius: 50px;
- background-color: rgba(255, 255, 255, 1);
- color: rgba(0, 0, 0, 1);
- font-size: 32rpx;
- text-align: center;
- border: 1px solid rgba(223, 223, 223, 1);
- }
- .continue{
- width: 280rpx;
- height: 80rpx;
- line-height: 80rpx;
- border-radius: 50px;
- background-color: rgba(0, 185, 98, 1);
- color: rgba(255, 255, 255, 1);
- font-size: 32rpx;
- text-align: center;
- }
- }
- </style>
|