123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <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">{{detail.payStatusStr}}</view>
- <view class="payPrice">
- <span>¥</span>
- <font>{{detail.totalFee}}</font><span>元</span>
- </view>
- <p>{{detail.payNameStr}}</p>
- </view>
- <view class="paySuccess-btn">
- <u-button class="success-btn1" shape="circle" type="" @click="rechargeContinue">
- <span>继续充值</span>
- </u-button>
- <u-button class="success-btn2" 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: ""
- }
- },
- onLoad(op) {
- if(op.id){
- this.id=op.id
- this.getInfo();
- }
- },
- 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'
- })
- },
- 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>
|