You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<template> <view class="pageBg"> <view class="pad"> <view class="card"> <view class="orderInfo"> <view class="schoolName">翔力驾校</view> <view class="price"> <text class="uint">¥</text>1000.13 </view> <!-- <view class="num">交易单号:65465879312</view> --> </view> <view class="li border"> <view class="lab">订单金额</view> <view class="val">¥ 2000</view> </view> <view class="li"> <view class="lab">订单编号</view> <view class="val">646545645646458</view> </view> </view> <view class="card"> <view class="pay"> <!-- <view class="h2">选择支付方式</view> --> <view class="row border"> <view class="wxIcon"> <image src="@/static/images/carIcon/xfbIcon.png" mode=""></image> </view> <view class="text">支付宝</view> <view class="icon"> <!-- <image src="@/static/images/index/noSelect.png.png" mode=""></image> --> <image src="@/static/images/carIcon/isSelect.png" mode=""></image> </view> </view> <view class="row"> <view class="wxIcon"> <image src="@/static/images/carIcon/wxIcon.png" mode=""></image> </view> <view class="text">微信</view> <view class="icon"> <!-- <image src="@/static/images/index/noSelect.png.png" mode=""></image> --> <image src="@/static/images/carIcon/isSelect.png" mode=""></image> </view> </view> </view> </view> <view class="footerBtn pad"> <view class="btnBg" @click="$goPage('/pages/indexEntry/enroll/paymentSuccess/paymentSuccess')">确认支付</view> </view> </view> </view> </template>
<script> import { getStudentByPayment } from '@/config/api.js' export default { data() { return { trainingApplyId: '', } }, onLoad(options) { if(options.trainingApplyId) { this.trainingApplyId = options.trainingApplyId } this.getStudentByPayment() }, methods: { async getStudentByPayment() { const {data: res} = await getStudentByPayment({trainingApplyId: this.trainingApplyId}) this.$store.dispatch('getUserInfo') } } } </script>
<style lang="scss" scoped> .card { width: 100%; margin-bottom: 20rpx; padding: 0 20rpx; .orderInfo { text-align: center; .schoolName { font-size: 28rpx; color: #ccc; padding: 40rpx 0 20rpx 0; } .price { font-size: 72rpx; font-weight: 600; text.uint { font-size: 44rpx; font-weight: 600; } } .num { font-size: 24rpx; color: #ADADAD; } } .li { display: flex; height: 88rpx; line-height: 88rpx; &.border{ border-bottom: 1px solid #F6F7FA; } .lab { color: #ccc; width: 230rpx; } .val { font-weight: 500; flex: 1; text-align: right; } } } .pay { .h2 { font-size: 32rpx; font-weight: 500; margin-bottom: 24rpx; } .row { display: flex; justify-content: space-between; align-items: center; height: 88rpx; &.border{ border-bottom: 1px solid #F6F7FA; } .wxIcon { width: 40rpx; height: 40rpx; } .text { margin-left: 20rpx; flex: 1; text-align: left; font-size: 28rpx; color: #333; } .icon { width: 40rpx; height: 40rpx; } } } </style>
|