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

237 lines
5.2 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. computed: {
  79. total() {
  80. return this.num * this.price
  81. },
  82. isRight() {
  83. return function(val) {
  84. return this.$shared.isRight(val);
  85. }
  86. }
  87. },
  88. onLoad(e) {
  89. this.order_id = e.order_id
  90. if (this.order_id) {
  91. // this.getOrderDetails()
  92. }
  93. },
  94. methods: {
  95. getOrderDetails() {
  96. this.$http(this.API.API_ORDER_DETAILS, {
  97. order_id: this.order_id
  98. }).then(res => {
  99. if (res.code == 0) {
  100. this.orderDetails = res.data
  101. this.checkArea = res.data.confirm_code
  102. this.skeletonLoading = false
  103. }
  104. }).catch(err => {
  105. setTimeout(() => {
  106. this.$toBack()
  107. }, 1000)
  108. });
  109. },
  110. submit() {
  111. this.$routerGo('/pages/order/order?type=all')
  112. },
  113. },
  114. created() {
  115. }
  116. }
  117. </script>
  118. <style lang="scss" scoped>
  119. .btn{
  120. margin: 0;
  121. padding: 0;
  122. width: 212rpx;
  123. height: 82rpx;
  124. background-color: #1998FE;
  125. color: #FFFFFF;
  126. line-height: 80rpx;
  127. font-size: 32rpx;
  128. border-radius: 41rpx;
  129. }
  130. .tag-self {
  131. position: absolute !important;
  132. top: 0 !important;
  133. border-radius: 20rpx 0 20rpx 0 !important;
  134. width: max-content;
  135. height: 32rpx !important;
  136. }
  137. .title {
  138. font-size: 28rpx;
  139. color: $u-content-color;
  140. height: 90rpx;
  141. }
  142. // tab
  143. .ctab {
  144. width: 100%;
  145. margin: 20rpx 0 0rpx 0rpx;
  146. padding: 0 22rpx;
  147. }
  148. // 商品列表
  149. .com {
  150. width: 100%;
  151. overflow: hidden;
  152. .list {
  153. border-radius: 10rpx;
  154. overflow: hidden;
  155. margin: 20rpx 32rpx;
  156. background-color: #FFFFFF;
  157. // box-shadow: 0 0 10px 5px #e5e5e5;
  158. box-shadow: 0 10rpx 20rpx 0 rgba(0, 0, 0, 0.1);
  159. align-items: flex-start;
  160. .left {
  161. overflow: hidden;
  162. image {
  163. width: 186rpx;
  164. height: 186rpx;
  165. margin: 20rpx;
  166. border-radius: 10rpx;
  167. }
  168. }
  169. .right {
  170. overflow: hidden;
  171. width: 64%;
  172. .title {
  173. margin: 0rpx 20rpx 10rpx 0;
  174. color: #222222;
  175. font-size: 32rpx;
  176. }
  177. .tips {
  178. margin: 16rpx 0;
  179. overflow: hidden;
  180. .u-line-progress {
  181. width: 112rpx;
  182. overflow: hidden;
  183. margin-right: 20rpx;
  184. }
  185. .progress {
  186. color: #777777;
  187. font-size: 24rpx;
  188. }
  189. .bought {
  190. color: #777777;
  191. font-size: 24rpx;
  192. margin-right: 20rpx;
  193. }
  194. }
  195. .price {
  196. overflow: hidden;
  197. color: #FF0000;
  198. margin-top: 10rpx;
  199. button {
  200. width: 176rpx;
  201. height: 60rpx;
  202. background: #FE9903;
  203. border-radius: 15px;
  204. font-size: 24rpx;
  205. color: #FFFFFF;
  206. margin: 0rpx 20rpx 0rpx 20rpx;
  207. border: none;
  208. }
  209. }
  210. }
  211. }
  212. }
  213. </style>