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

285 lines
7.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 solid-bottom">
  40. <text class="lf-color-555 lf-font-28">付款时间</text>
  41. <text class="lf-font-28 text-black1">2021-7-6 22:34:14</text>
  42. </view>
  43. <view class="cu-bar padding-lr">
  44. <text class="lf-color-555 lf-font-28">支付方式</text>
  45. <text class="lf-font-28 text-black1">微信支付</text>
  46. </view>
  47. </view>
  48. <self-line />
  49. <view class="bg-white">
  50. <view class="cu-bar padding-lr">
  51. <text class="lf-color-555 lf-font-28">优惠</text>
  52. <text class="lf-font-28 lf-color-price">活动优惠-50</text>
  53. </view>
  54. </view>
  55. <view>
  56. <self-line />
  57. <view class="bg-white flex flex-direction justify-around align-center text-center padding-tb"
  58. style="padding-bottom: 140rpx;">
  59. <view>
  60. <tki-qrcode ref="qrcode" @result="qrR" :val="checkArea" :size="115" unit="px" background="#fff"
  61. foreground="#000" pdground="#000" :onval="true" :loadMake="true" />
  62. </view>
  63. <view style="margin-top: 10rpx;position: relative;top: 26rpx;">
  64. <view class="lf-font-28 text-black1">
  65. {{checkArea}}
  66. <text v-if="false" style="position: relative;left: 172rpx;top: -36rpx;display: inherit;" class="lf-color-blue lf-font-28" @tap="copy(checkArea)">复制</text></view>
  67. </view>
  68. <view class="lf-m-t-32" v-if="false">
  69. <view class="lf-color-green lf-font-28 lf-flex">
  70. <text>待使用</text>
  71. <!-- <text class="lf-iconfont lf-icon-shuaxin1 lf-font-40"
  72. style="color: #999;position: relative;left: 84rpx;top: -42rpx;display: inherit;"
  73. @tap="refreshCode()"></text> -->
  74. <image src="../../static/center/refresh.png"
  75. style="color: #999;position: relative;left: 28rpx;top: 0rpx;display: inherit; width: 30rpx;height: 30rpx;"
  76. @tap="refreshCode()">
  77. </image>
  78. </view>
  79. </view>
  80. <view style="margin-top: 44rpx;" v-else>
  81. <view class="lf-color-999 lf-font-28">
  82. 已使用
  83. </view>
  84. </view>
  85. </view>
  86. <view class="padding-lr padding-tb-sm bg-white flex justify-between align-center solid-top1 btn-bottom">
  87. <view class="flex align-center">
  88. <text class="lf-color-555 lf-font-28" style="margin-right: 20rpx;">实付款</text>
  89. <lf-price :price="549" />
  90. </view>
  91. <button class="btn bg-green" @tap="submit">
  92. <text class="lf-font-32 text-white">立即使用</text>
  93. </button>
  94. <!-- <button class="btn bg-blue">
  95. <text class="lf-font-32 text-white">已使用</text>
  96. </button>
  97. <button class="btn lf-bg-gray">
  98. <text class="lf-font-32 text-white">等待审核</text>
  99. </button> -->
  100. </view>
  101. </view>
  102. </block>
  103. </view>
  104. </template>
  105. <script>
  106. import tkiQrcode from "tki-qrcode" // 二维码生成器
  107. export default {
  108. components: {
  109. tkiQrcode
  110. },
  111. data() {
  112. return {
  113. base64Img: '', //
  114. skeletonLoading: true,
  115. loading: false,
  116. order_id: 1,
  117. orderDetails: {},
  118. checkArea: 'USI782936437829'
  119. }
  120. },
  121. onLoad(e) {
  122. this.order_id = e.order_id
  123. if (this.order_id) {
  124. // this.getOrderDetails()
  125. }
  126. },
  127. methods: {
  128. refreshCode() {
  129. this.getOrderDetails()
  130. this.$msg('刷新成功')
  131. },
  132. //二维码回调
  133. qrR(data) {
  134. this.base64Img = data;
  135. },
  136. getOrderDetails() {
  137. this.$http(this.API.API_ORDER_DETAILS, {
  138. order_id: this.order_id
  139. }).then(res => {
  140. if (res.code == 0) {
  141. this.orderDetails = res.data
  142. this.checkArea = res.data.confirm_code
  143. this.skeletonLoading = false
  144. }
  145. }).catch(err => {
  146. setTimeout(() => {
  147. this.$toBack()
  148. }, 1000)
  149. });
  150. },
  151. // 点击复制
  152. copy(text) {
  153. uni.setClipboardData({
  154. data: text
  155. });
  156. },
  157. submit() {
  158. this.$routerGo('/pages/order/order?type=all')
  159. },
  160. },
  161. created() {
  162. }
  163. }
  164. </script>
  165. <style lang="scss" scoped>
  166. .btn{
  167. margin: 0;
  168. padding: 0;
  169. width: 212rpx;
  170. height: 82rpx;
  171. background-color: #1998FE;
  172. color: #FFFFFF;
  173. line-height: 80rpx;
  174. font-size: 32rpx;
  175. border-radius: 41rpx;
  176. }
  177. .tag-self {
  178. position: absolute !important;
  179. top: 0 !important;
  180. border-radius: 20rpx 0 20rpx 0 !important;
  181. width: max-content;
  182. height: 32rpx !important;
  183. }
  184. .title {
  185. font-size: 28rpx;
  186. color: $u-content-color;
  187. height: 90rpx;
  188. }
  189. // tab
  190. .ctab {
  191. width: 100%;
  192. margin: 20rpx 0 0rpx 0rpx;
  193. padding: 0 22rpx;
  194. }
  195. // 商品列表
  196. .com {
  197. width: 100%;
  198. overflow: hidden;
  199. .list {
  200. border-radius: 10rpx;
  201. overflow: hidden;
  202. margin: 20rpx 32rpx;
  203. background-color: #FFFFFF;
  204. // box-shadow: 0 0 10px 5px #e5e5e5;
  205. box-shadow: 0 10rpx 20rpx 0 rgba(0, 0, 0, 0.1);
  206. align-items: flex-start;
  207. .left {
  208. overflow: hidden;
  209. image {
  210. width: 186rpx;
  211. height: 186rpx;
  212. margin: 20rpx;
  213. border-radius: 10rpx;
  214. }
  215. }
  216. .right {
  217. overflow: hidden;
  218. width: 64%;
  219. .title {
  220. margin: 0rpx 20rpx 10rpx 0;
  221. color: #222222;
  222. font-size: 32rpx;
  223. }
  224. .tips {
  225. margin: 16rpx 0;
  226. overflow: hidden;
  227. .u-line-progress {
  228. width: 112rpx;
  229. overflow: hidden;
  230. margin-right: 20rpx;
  231. }
  232. .progress {
  233. color: #777777;
  234. font-size: 24rpx;
  235. }
  236. .bought {
  237. color: #777777;
  238. font-size: 24rpx;
  239. margin-right: 20rpx;
  240. }
  241. }
  242. .price {
  243. overflow: hidden;
  244. color: #FF0000;
  245. margin-top: 10rpx;
  246. button {
  247. width: 176rpx;
  248. height: 60rpx;
  249. background: #FE9903;
  250. border-radius: 15px;
  251. font-size: 24rpx;
  252. color: #FFFFFF;
  253. margin: 0rpx 20rpx 0rpx 20rpx;
  254. border: none;
  255. }
  256. }
  257. }
  258. }
  259. }
  260. </style>