coupon.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <template>
  2. <view>
  3. <u-tabs class="switch" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
  4. <view class="u-wrap">
  5. <view class="jingdong">
  6. <view class="left">
  7. <view class="sum">
  8. <text class="num">100</text>
  9. </view>
  10. <view class="type">
  11. <image class="logo" src="../../static/sailun/sailun_coupon.png" mode=""></image>
  12. </view>
  13. </view>
  14. <view class="right">
  15. <view class="top">
  16. <view class="title">
  17. <h3>100元优惠卷</h3>
  18. </view>
  19. <view class="bottom">
  20. <view class="date u-line-1">2020.10.31到期</view>
  21. <view class="immediate-use">可使用</view>
  22. </view>
  23. <view class="Subhead">
  24. </view>
  25. </view>
  26. <view class="Subhead_s">
  27. 详细信息
  28. </view>
  29. </view>
  30. </view>
  31. <view class="eject">
  32. <u-collapse style="width: 98.9%;">
  33. <u-collapse-item>
  34. <view class="pullout_a">
  35. <view class="pullout">
  36. <view>扫码门店:某某门店</view>
  37. <view class="left">
  38. <view>扫码胎号: 45616516165</view>
  39. <view>扫码时间: 2020-3-10 8:10:34</view>
  40. </view>
  41. <view class="right">
  42. <view>领劵订单: 2020031001000001</view>
  43. <view>入库条码:A93989895393</view>
  44. </view>
  45. </view>
  46. </view>
  47. </u-collapse-item>
  48. </u-collapse>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. list: [{
  58. name: '未使用'
  59. }, {
  60. name: '已使用'
  61. }, {
  62. name: '已失效'
  63. }],
  64. current: 0,
  65. }
  66. },
  67. methods: {
  68. change(index) {
  69. this.current = index;
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .u-wrap {
  76. padding: 24rpx;
  77. margin-top: -50rpx;
  78. }
  79. .switch{
  80. margin-bottom: 20rpx;
  81. }
  82. .pullout_a {
  83. background-color: #FFFFFF;
  84. height: 110rpx;
  85. border-radius: 10rpx;
  86. margin-top: -5rpx;
  87. }
  88. .pullout {
  89. width: 96%;
  90. margin: 0 auto;
  91. font-size: 22rpx;
  92. .left {
  93. float: left;
  94. }
  95. .right {
  96. float: right;
  97. }
  98. }
  99. .pullout>view:nth-child(1) {
  100. margin-top: 0rpx;
  101. color: #0096DF;
  102. }
  103. .pullout>view{
  104. margin-top: 10rpx;
  105. }
  106. .eject {
  107. margin-top: -70rpx;
  108. .u-collapse-title {
  109. margin-left: 100rpx;
  110. }
  111. }
  112. .Subhead {
  113. margin-top: 70rpx;
  114. }
  115. .Subhead_s {
  116. margin-top: 10rpx;
  117. }
  118. .meituan {
  119. margin: 30rpx auto;
  120. background-color: #ffffff;
  121. width: 700rpx;
  122. color: $u-type-warning;
  123. font-size: 28rpx;
  124. .content {
  125. display: flex;
  126. align-items: center;
  127. padding: 80rpx 20rpx;
  128. border: 10rpx;
  129. background-color: #fff5f4;
  130. .left {
  131. .sum {
  132. font-size: 32rpx;
  133. .num {
  134. font-size: 60rpx;
  135. font-weight: bold;
  136. }
  137. }
  138. }
  139. .centre {
  140. margin-left: 40rpx;
  141. .title {
  142. font-size: 32rpx;
  143. font-weight: bold;
  144. color: $u-main-color;
  145. margin-bottom: 20rpx;
  146. }
  147. }
  148. .right {
  149. margin-left: 30rpx;
  150. .immediate-use {
  151. padding: 0 20rpx;
  152. height: 50rpx;
  153. border-radius: 25rpx;
  154. line-height: 50rpx;
  155. background-color: $u-type-warning !important;
  156. color: #ffffff !important;
  157. font-size: 24rpx;
  158. border: none;
  159. word-break: keep-all;
  160. }
  161. }
  162. }
  163. }
  164. .jingdong {
  165. margin-top: 20rpx;
  166. width: 700rpx;
  167. height: auto;
  168. display: flex;
  169. .left {
  170. width: 250rpx;
  171. padding: 0 30rpx;
  172. background-image: url(../../static/sailun/coupon-background.png);
  173. background-repeat: no-repeat;
  174. background-size: 100% 100%;
  175. text-align: center;
  176. font-size: 28rpx;
  177. color: #ffffff;
  178. .sum {
  179. margin-top: 50rpx;
  180. font-weight: bold;
  181. font-size: 32rpx;
  182. .num {
  183. font-size: 80rpx;
  184. }
  185. }
  186. .type {
  187. margin-bottom: 50rpx;
  188. font-size: 24rpx;
  189. .logo {
  190. width: 180rpx;
  191. height: 40rpx;
  192. }
  193. }
  194. }
  195. .right {
  196. padding: 20rpx 20rpx 0;
  197. width: 700rpx;
  198. font-size: 28rpx;
  199. border-bottom-right-radius: 10rpx;
  200. border-top-right-radius: 10rpx;
  201. background-color: #fff;
  202. .top {
  203. border-bottom: 2rpx dashed $u-border-color;
  204. .title {
  205. margin-right: 60rpx;
  206. line-height: 40rpx;
  207. }
  208. .bottom {
  209. display: flex;
  210. margin-top: 20rpx;
  211. align-items: center;
  212. justify-content: space-between;
  213. margin-bottom: 10rpx;
  214. .date {
  215. font-size: 20rpx;
  216. flex: 1;
  217. }
  218. .immediate-use {
  219. height: auto;
  220. padding: 0 20rpx;
  221. font-size: 24rpx;
  222. border-radius: 40rpx;
  223. line-height: 40rpx;
  224. color: #3995FF;
  225. border: 2px solid #3995FF;
  226. margin-left: 130rpx;
  227. }
  228. }
  229. }
  230. .tips {
  231. width: 100%;
  232. line-height: 50rpx;
  233. display: flex;
  234. align-items: center;
  235. justify-content: space-between;
  236. font-size: 24rpx;
  237. .transpond {
  238. margin-right: 10rpx;
  239. }
  240. .explain {
  241. display: flex;
  242. align-items: center;
  243. }
  244. .particulars {
  245. width: 30rpx;
  246. height: 30rpx;
  247. box-sizing: border-box;
  248. padding-top: 8rpx;
  249. border-radius: 50%;
  250. background-color: $u-type-info-disabled;
  251. text-align: center;
  252. }
  253. }
  254. }
  255. }
  256. </style>