海南旅游项目 前端仓库
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.

227 lines
5.1 KiB

  1. <template>
  2. <view>
  3. <!-- 商品信息 -->
  4. <block>
  5. <view class="bg-white">
  6. <view class="flex justify-between align-start" style="padding: 32rpx 32rpx 30rpx 32rpx;">
  7. <image src="../../static/logo.png" mode="aspectFill"
  8. style="width: 240rpx; height: 240rpx;border-radius: 20rpx;"></image>
  9. <view class="flex-sub padding-left-sm">
  10. <view class="bref-box lf-line-2 text-black1 lf-font-28 lf-font-bold"
  11. style="height: 88rpx;line-height: 44rpx;">
  12. 南澳站·潮玩旅游胜地 身处亚热带风情/玩转南澳
  13. </view>
  14. <text class="block lf-color-gray lf-font-28" style="margin-top: 20rpx;line-height: 40rpx;">数量
  15. <text class="margin-left margin-right-xs lf-color-gray">x</text>1</text>
  16. <view class="flex justify-between" style="margin-top: 28rpx;">
  17. <lf-price :price="599" style="margin-top: 8rpx;" />
  18. <view>
  19. <!-- <button class="cu-btn1 lf-color-gray lf-border-gray">申请退款</button> -->
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <self-line />
  26. <!-- 表单 -->
  27. <view class="bg-white">
  28. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  29. <text class="lf-color-555 lf-font-28">订单编号</text>
  30. <view>
  31. <text class="margin-right lf-font-28 text-black1">2368492461046128742764</text>
  32. <text class="text-orange lf-font-28" @click="copy(2368492461046128742764)">复制</text>
  33. </view>
  34. </view>
  35. <view class="cu-bar padding-lr solid-bottom">
  36. <text class="lf-color-555 lf-font-28">下单时间</text>
  37. <text class="lf-font-28 text-black1">2021-7-6 22:34:14</text>
  38. </view>
  39. <view class="cu-bar padding-lr">
  40. <text class="lf-color-555 lf-font-28">支付方式</text>
  41. <text class="lf-font-28 text-black1">微信支付</text>
  42. </view>
  43. </view>
  44. <self-line />
  45. <view class="bg-white">
  46. <view class="cu-bar padding-lr">
  47. <text class="lf-color-555 lf-font-28">优惠</text>
  48. <text class="lf-font-28 lf-color-price">活动优惠-50</text>
  49. </view>
  50. </view>
  51. <view>
  52. <self-line />
  53. <view class="padding-lr padding-tb-sm bg-white flex justify-between align-center solid-top1 btn-bottom">
  54. <view class="flex align-center">
  55. <text class="lf-color-555 lf-font-28" style="margin-right: 20rpx;">待付款</text>
  56. <lf-price :price="549" />
  57. </view>
  58. <button class="btn lf-bg-red" @tap="submit">
  59. <text class="lf-font-32 text-white">立即使用</text>
  60. </button>
  61. </view>
  62. </view>
  63. </block>
  64. </view>
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. base64Img: '', //
  71. skeletonLoading: true,
  72. loading: false,
  73. order_id: 1,
  74. orderDetails: {},
  75. checkArea: 'USI782936437829'
  76. }
  77. },
  78. onLoad(e) {
  79. this.order_id = e.order_id
  80. if (this.order_id) {
  81. // this.getOrderDetails()
  82. }
  83. },
  84. methods: {
  85. getOrderDetails() {
  86. this.$http(this.API.API_ORDER_DETAILS, {
  87. order_id: this.order_id
  88. }).then(res => {
  89. if (res.code == 0) {
  90. this.orderDetails = res.data
  91. this.checkArea = res.data.confirm_code
  92. this.skeletonLoading = false
  93. }
  94. }).catch(err => {
  95. setTimeout(() => {
  96. this.$toBack()
  97. }, 1000)
  98. });
  99. },
  100. submit() {
  101. this.$routerGo('/pages/order/order?type=all')
  102. },
  103. },
  104. created() {
  105. }
  106. }
  107. </script>
  108. <style lang="scss" scoped>
  109. .btn{
  110. margin: 0;
  111. padding: 0;
  112. width: 212rpx;
  113. height: 82rpx;
  114. background-color: #1998FE;
  115. color: #FFFFFF;
  116. line-height: 80rpx;
  117. font-size: 32rpx;
  118. border-radius: 41rpx;
  119. }
  120. .tag-self {
  121. position: absolute !important;
  122. top: 0 !important;
  123. border-radius: 20rpx 0 20rpx 0 !important;
  124. width: max-content;
  125. height: 32rpx !important;
  126. }
  127. .title {
  128. font-size: 28rpx;
  129. color: $u-content-color;
  130. height: 90rpx;
  131. }
  132. // tab
  133. .ctab {
  134. width: 100%;
  135. margin: 20rpx 0 0rpx 0rpx;
  136. padding: 0 22rpx;
  137. }
  138. // 商品列表
  139. .com {
  140. width: 100%;
  141. overflow: hidden;
  142. .list {
  143. border-radius: 10rpx;
  144. overflow: hidden;
  145. margin: 20rpx 32rpx;
  146. background-color: #FFFFFF;
  147. // box-shadow: 0 0 10px 5px #e5e5e5;
  148. box-shadow: 0 10rpx 20rpx 0 rgba(0, 0, 0, 0.1);
  149. align-items: flex-start;
  150. .left {
  151. overflow: hidden;
  152. image {
  153. width: 186rpx;
  154. height: 186rpx;
  155. margin: 20rpx;
  156. border-radius: 10rpx;
  157. }
  158. }
  159. .right {
  160. overflow: hidden;
  161. width: 64%;
  162. .title {
  163. margin: 0rpx 20rpx 10rpx 0;
  164. color: #222222;
  165. font-size: 32rpx;
  166. }
  167. .tips {
  168. margin: 16rpx 0;
  169. overflow: hidden;
  170. .u-line-progress {
  171. width: 112rpx;
  172. overflow: hidden;
  173. margin-right: 20rpx;
  174. }
  175. .progress {
  176. color: #777777;
  177. font-size: 24rpx;
  178. }
  179. .bought {
  180. color: #777777;
  181. font-size: 24rpx;
  182. margin-right: 20rpx;
  183. }
  184. }
  185. .price {
  186. overflow: hidden;
  187. color: #FF0000;
  188. margin-top: 10rpx;
  189. button {
  190. width: 176rpx;
  191. height: 60rpx;
  192. background: #FE9903;
  193. border-radius: 15px;
  194. font-size: 24rpx;
  195. color: #FFFFFF;
  196. margin: 0rpx 20rpx 0rpx 20rpx;
  197. border: none;
  198. }
  199. }
  200. }
  201. }
  202. }
  203. </style>