orderdes.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <template>
  2. <view>
  3. <view class="remind">请到影院现场柜台或取票机取票</view>
  4. <view class="des-box">
  5. <view class="code-box">
  6. <view class="code">
  7. <text>取票码</text>
  8. <text>{{JSON.parse(orderDes.orderDataJson.FilmOrderNotifyDTO.ticketCode).join(' ')}}</text>
  9. </view>
  10. <image class="qrcode" :src="JSON.parse(orderDes.orderDataJson.FilmOrderNotifyDTO.ticketImage)[0]"
  11. mode="widthFix"></image>
  12. </view>
  13. <view class="order-num">
  14. <text>订单号:{{orderDes.outTradeNo}}</text>
  15. <text>已兑换</text>
  16. </view>
  17. <view class="des">
  18. <text class="film-name">{{orderDes.orderDataJson.cinemaData.filmName}}</text>
  19. <view class="film-time">
  20. <text>时间</text>
  21. <text>{{orderDes.orderDataJson.cinemaData.showTime}}</text>
  22. </view>
  23. <view class="film-address">
  24. <text>影院</text>
  25. <text>{{orderDes.orderDataJson.cinemaData.showTime}}</text>
  26. </view>
  27. <view class="film-video">
  28. <text>影厅</text>
  29. <text>{{orderDes.orderDataJson.cinemaData.hallName}}</text>
  30. </view>
  31. <view class="film-seat">
  32. <text>座位</text>
  33. <view class="seat-box">
  34. <text v-for="(item,index) in orderDes.orderDataJson.FilmOrderNotifyDTO.realSeat.split(',')" :key='index'>6排6列</text>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="price">
  39. <text>总价</text>
  40. <text>¥79.8</text>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import { getWxOrder } from '@/api/order.js'
  47. export default {
  48. data: () => ({
  49. orderDes:{}
  50. }),
  51. mounted() {
  52. this.init()
  53. },
  54. methods:{
  55. async init(){
  56. let orderRes = await getWxOrder('12021051714143017548116012554780')
  57. orderRes.data.orderDataJson=JSON.parse(orderRes.data.orderDataJson)
  58. this.orderDes = orderRes.data
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss">
  64. .remind {
  65. margin-top: 36rpx;
  66. font-size: 26rpx;
  67. font-weight: 400;
  68. color: #0F0404;
  69. text-align: center;
  70. }
  71. .des-box {
  72. width: 564rpx;
  73. background: #FFFFFF;
  74. border-radius: 20rpx;
  75. margin: auto;
  76. margin-top: 30rpx;
  77. .code-box {
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. padding-bottom: 38rpx;
  82. border-bottom: 1rpx solid #D9D9D9;
  83. .code {
  84. margin-top: 43rpx;
  85. text {
  86. font-size: 26rpx;
  87. font-weight: 400;
  88. color: #666666;
  89. margin-right: 20rpx;
  90. &:nth-child(2) {
  91. color: #0F0404;
  92. }
  93. }
  94. }
  95. .qrcode {
  96. margin-top: 43rpx;
  97. width: 260rpx;
  98. height: 260rpx;
  99. }
  100. }
  101. .order-num {
  102. display: flex;
  103. justify-content: space-between;
  104. align-items: center;
  105. padding: 34rpx 31rpx;
  106. border-bottom: 1rpx solid #D9D9D9;
  107. position: relative;
  108. &::after{
  109. content: '';
  110. width: 24rpx;
  111. height: 24rpx;
  112. border-radius: 50%;
  113. background-color: #F1F1F1;
  114. position: absolute;
  115. top: 0;
  116. left: 0;
  117. transform: translate(-50%,-50%);
  118. }
  119. &::before{
  120. content: '';
  121. width: 24rpx;
  122. height: 24rpx;
  123. border-radius: 50%;
  124. background-color: #F1F1F1;
  125. position: absolute;
  126. top: 0;
  127. right: 0;
  128. transform: translate(50%,-50%);
  129. }
  130. text {
  131. &:nth-child(1) {
  132. font-size: 26rpx;
  133. font-weight: 400;
  134. color: #666666;
  135. }
  136. &:nth-child(2) {
  137. width: 91rpx;
  138. height: 34rpx;
  139. display: flex;
  140. justify-content: center;
  141. align-items: center;
  142. background: #FFE5E5;
  143. border: 1rpx solid #E31818;
  144. border-radius: 20rpx;
  145. font-size: 20rpx;
  146. font-weight: 400;
  147. color: #E31818;
  148. }
  149. }
  150. }
  151. .des{
  152. padding: 45rpx 30rpx;
  153. border-bottom: 1rpx solid #D9D9D9;
  154. display: flex;
  155. flex-direction: column;
  156. .film-name{
  157. font-size: 30rpx;
  158. font-weight: 400;
  159. color: #0F0404;
  160. }
  161. text{
  162. font-size: 26rpx;
  163. font-weight: 400;
  164. color: #666666;
  165. margin-right: 20rpx;
  166. white-space: nowrap;
  167. }
  168. .film-time{
  169. text:nth-child(2){
  170. color: #999999;
  171. }
  172. }
  173. .film-address{
  174. text:nth-child(2){
  175. color: #999999;
  176. }
  177. }
  178. .film-video{
  179. text:nth-child(2){
  180. color: #999999;
  181. }
  182. }
  183. .film-seat{
  184. display: flex;
  185. justify-content: flex-start;
  186. align-items: stretch;
  187. margin-top: 10rpx;
  188. .seat-box{
  189. display: flex;
  190. flex-wrap: wrap;
  191. text{
  192. height: 40rpx;
  193. padding: 4rpx 15rpx;
  194. margin-bottom: 10rpx;
  195. background: #EBEBEB;
  196. border-radius: 4rpx;
  197. color: #999999;
  198. }
  199. }
  200. }
  201. }
  202. .price{
  203. padding: 40rpx 30rpx;
  204. text{
  205. font-size: 26rpx;
  206. font-weight: 400;
  207. color: #666666;
  208. margin-right: 20rpx;
  209. &:nth-child(2){
  210. color: #E31818;
  211. }
  212. }
  213. }
  214. }
  215. </style>