123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <template>
- <view>
- <view class="remind">请到影院现场柜台或取票机取票</view>
- <view class="des-box">
- <view class="code-box">
- <view class="code">
- <text>取票码</text>
- <text>{{JSON.parse(orderDes.orderDataJson.FilmOrderNotifyDTO.ticketCode).join(' ')}}</text>
- </view>
- <image class="qrcode" :src="JSON.parse(orderDes.orderDataJson.FilmOrderNotifyDTO.ticketImage)[0]"
- mode="widthFix"></image>
- </view>
- <view class="order-num">
- <text>订单号:{{orderDes.outTradeNo}}</text>
- <text>已兑换</text>
- </view>
- <view class="des">
- <text class="film-name">{{orderDes.orderDataJson.cinemaData.filmName}}</text>
- <view class="film-time">
- <text>时间</text>
- <text>{{orderDes.orderDataJson.cinemaData.showTime}}</text>
- </view>
- <view class="film-address">
- <text>影院</text>
- <text>{{orderDes.orderDataJson.cinemaData.showTime}}</text>
- </view>
- <view class="film-video">
- <text>影厅</text>
- <text>{{orderDes.orderDataJson.cinemaData.hallName}}</text>
- </view>
- <view class="film-seat">
- <text>座位</text>
- <view class="seat-box">
- <text v-for="(item,index) in orderDes.orderDataJson.FilmOrderNotifyDTO.realSeat.split(',')" :key='index'>6排6列</text>
- </view>
- </view>
- </view>
- <view class="price">
- <text>总价</text>
- <text>¥79.8</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- import { getWxOrder } from '@/api/order.js'
- export default {
- data: () => ({
- orderDes:{}
- }),
- mounted() {
- this.init()
- },
- methods:{
- async init(){
- let orderRes = await getWxOrder('12021051714143017548116012554780')
- orderRes.data.orderDataJson=JSON.parse(orderRes.data.orderDataJson)
- this.orderDes = orderRes.data
- }
- }
- }
- </script>
- <style lang="scss">
- .remind {
- margin-top: 36rpx;
- font-size: 26rpx;
- font-weight: 400;
- color: #0F0404;
- text-align: center;
- }
- .des-box {
- width: 564rpx;
- background: #FFFFFF;
- border-radius: 20rpx;
- margin: auto;
- margin-top: 30rpx;
- .code-box {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding-bottom: 38rpx;
- border-bottom: 1rpx solid #D9D9D9;
- .code {
- margin-top: 43rpx;
- text {
- font-size: 26rpx;
- font-weight: 400;
- color: #666666;
- margin-right: 20rpx;
- &:nth-child(2) {
- color: #0F0404;
- }
- }
- }
- .qrcode {
- margin-top: 43rpx;
- width: 260rpx;
- height: 260rpx;
- }
- }
- .order-num {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 34rpx 31rpx;
- border-bottom: 1rpx solid #D9D9D9;
- position: relative;
-
- &::after{
- content: '';
- width: 24rpx;
- height: 24rpx;
- border-radius: 50%;
- background-color: #F1F1F1;
- position: absolute;
- top: 0;
- left: 0;
- transform: translate(-50%,-50%);
- }
- &::before{
- content: '';
- width: 24rpx;
- height: 24rpx;
- border-radius: 50%;
- background-color: #F1F1F1;
- position: absolute;
- top: 0;
- right: 0;
- transform: translate(50%,-50%);
- }
-
- text {
- &:nth-child(1) {
- font-size: 26rpx;
- font-weight: 400;
- color: #666666;
- }
- &:nth-child(2) {
- width: 91rpx;
- height: 34rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- background: #FFE5E5;
- border: 1rpx solid #E31818;
- border-radius: 20rpx;
- font-size: 20rpx;
- font-weight: 400;
- color: #E31818;
- }
- }
- }
-
- .des{
- padding: 45rpx 30rpx;
- border-bottom: 1rpx solid #D9D9D9;
- display: flex;
- flex-direction: column;
- .film-name{
- font-size: 30rpx;
- font-weight: 400;
- color: #0F0404;
- }
- text{
- font-size: 26rpx;
- font-weight: 400;
- color: #666666;
- margin-right: 20rpx;
- white-space: nowrap;
- }
- .film-time{
- text:nth-child(2){
- color: #999999;
- }
- }
- .film-address{
- text:nth-child(2){
- color: #999999;
- }
- }
- .film-video{
- text:nth-child(2){
- color: #999999;
- }
- }
- .film-seat{
- display: flex;
- justify-content: flex-start;
- align-items: stretch;
- margin-top: 10rpx;
- .seat-box{
- display: flex;
- flex-wrap: wrap;
- text{
- height: 40rpx;
- padding: 4rpx 15rpx;
- margin-bottom: 10rpx;
- background: #EBEBEB;
- border-radius: 4rpx;
- color: #999999;
- }
- }
- }
- }
-
- .price{
- padding: 40rpx 30rpx;
- text{
- font-size: 26rpx;
- font-weight: 400;
- color: #666666;
- margin-right: 20rpx;
- &:nth-child(2){
- color: #E31818;
- }
- }
- }
- }
- </style>
|