123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <template>
- <view>
- <ujp-navbar title="充值详情">
- </ujp-navbar>
- <view class="chargeDetails">
- <view class="chargeDetails-item">
- <span>充值金额</span>
- <p class="price">{{detail.orderInfo.totalFee}}元</p>
- </view>
- <view class="chargeDetails-item">
- <span>充值类型</span>
- <p>帮人充值</p>
- </view>
- <view class="chargeDetails-item">
- <span>充值账号</span>
- <p>{{detail.otherRecharge.phone}}</p>
- </view>
- <view class="chargeDetails-item">
- <span>创建时间</span>
- <p>{{detail.orderInfo.createTime}}</p>
- </view>
- <view class="chargeDetails-item">
- <span>订单号</span>
- <p>{{detail.orderInfo.outOrderNo}}</p>
- </view>
- <view class="chargeDetails-item">
- <span>交易号</span>
- <p>{{detail.orderInfo.transactionId}}</p>
- </view>
- </view>
- <view class="foot-btn" >
-
- <u-button type="primary" @click="gotoUrl('pages/user/rechargeByPhone?phone='+detail.otherRecharge.phone)" :custom-style="customStyle" shape="square">再次充值</u-button>
- </view>
-
- </view>
- </template>
- <script>
- import * as API from '@/apis/otherRecharge.js'
-
- export default {
- data() {
- return {
- id:'',
- detail:{
- otherRecharge:{},
- accountRecord:{},
- orderInfo:{},
- }
- }
- },
- onLoad(op){
- this.id=op.id;
- this.getInfo()
- },
- methods: {
- getInfo(){
- uni.showLoading({
- title:"加载中",mask:true,
- })
- API.rechargeDetails({
- id:this.id
- }).then((res) => {
- this.detail=res.data
-
- uni.hideLoading()
-
- }).catch(error => {
- uni.showToast({
-
- title:error
- })
- })
- }
- }
- }
- </script>
- <style>
- page{
- background-color: #f7f7f7;
- }
- </style>
- <style lang="scss" scoped>
- .chargeDetails{
- background-color: #FFFFFF;
- .chargeDetails-item{
- margin:0 20rpx;
- border-bottom: 1px solid #F7F7F7;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 30rpx;
- span{
- color:#999;
- }
- }
- .price{
- font-size: 40rpx;
- color:#FF3D00;
- font-weight: bold;
- }
- }
- .foot-btn{
- padding: 20rpx;
- position: fixed;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: #fff;
- .foot-pirce{
- display: flex;
- align-items: center;
- span{
- margin-left: 10rpx;
- font-size: 32rpx;
- }
- padding-bottom: 20rpx;
- border-bottom: 1px solid #f7f7f7;
- margin-bottom: 20rpx;
- }
- }
- </style>
|