123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <template>
- <view>
- <u-navbar title="充值结果"></u-navbar>
- <view class="paySuccess">
- <u-icon name="chenggong" custom-prefix="custom-icon" size="180" color="#00B962"></u-icon>
- <view class="title oldTextjp" oldstyle="font-size: 20px;">{{detail.payStatusStr}}</view>
- <view class="payPrice">
- <font>{{detail.totalFee}}</font><span>元</span>
- </view>
- <p class="oldTextjp2" oldstyle="font-size: 16px;">{{detail.payNameStr}}</p>
- </view>
- <view class="paySuccess-btn">
- <u-button class="success-btn1 oldTextjp2" oldstyle="font-size: 18px;" shape="circle" type="" @click="rechargeContinue">
- <span>继续充值</span>
- </u-button>
-
- <u-button class="success-btn2 oldTextjp2" oldstyle="font-size: 18px;"
- v-if="charge"
- shape="circle" type="success" @click="chargeLook">
- <span>前往充电</span>
- </u-button>
- <u-button class="success-btn2 oldTextjp2" oldstyle="font-size: 18px;"
- v-else
- shape="circle" type="success" @click="balanceLook">
- <span>查看余额</span>
- </u-button>
- </view>
- </view>
- </template>
- <script>
- import * as API from '@/apis/finance.js'
-
- export default {
- data() {
- return {
- detail: {},
- id: "",
- charge:false,
- chargeObj:{},
-
- }
- },
- onLoad(op) {
- if(op.id){
- this.id=op.id
- this.getInfo();
- }
- var obj=this.carhelp.getGunIdCharge();
- if(obj){
- this.charge=true
- this.chargeObj=obj
- }
-
- },
- onReady() {
-
- },
- methods: {
- getInfo() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.accountDetail({
- outOrderNo: this.id
- }).then((res) => {
- uni.hideLoading()
- this.detail = res.data.orderInfo;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- rechargeContinue() {
- uni.redirectTo({
- url: '/pages/user/finance/recharge'
- })
- },
- 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>
- .paySuccess {
- text-align: center;
- padding: 50px 0;
- .title {
- font-size: 20px;
- margin-top: 20px;
- }
- .payPrice {
- display: flex;
- align-items: flex-end;
- justify-content: center;
- font {
- font-size: 36px;
- line-height: 36px;
- }
- margin-top: 20px;
- }
- p {
- color: #999;
- margin-top: 4px;
- }
- }
- .paySuccess-btn {
- display: flex;
- justify-content: space-between;
- padding: 0 40px;
- }
- .success-btn1 {
- color: #BBBBBB !important;
- background-color: #fff !important;
- flex: 0.4;
- span {
- color: #333;
- }
- }
- .success-btn2 {
- background-color: #00B962 !important;
- flex: 0.4;
- border-color: #00B962 !important;
- color: #fff !important;
- }
- </style>
|