coupon.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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. // background-color: #18B566;
  114. margin-top: 70rpx;
  115. }
  116. .Subhead_s {
  117. margin-top: 10rpx;
  118. }
  119. .meituan {
  120. margin: 30rpx auto;
  121. background-color: #ffffff;
  122. width: 700rpx;
  123. // border: 10rpx;
  124. color: $u-type-warning;
  125. font-size: 28rpx;
  126. .content {
  127. display: flex;
  128. align-items: center;
  129. padding: 80rpx 20rpx;
  130. border: 10rpx;
  131. background-color: #fff5f4;
  132. .left {
  133. .sum {
  134. font-size: 32rpx;
  135. .num {
  136. font-size: 60rpx;
  137. font-weight: bold;
  138. }
  139. }
  140. }
  141. .centre {
  142. margin-left: 40rpx;
  143. .title {
  144. font-size: 32rpx;
  145. font-weight: bold;
  146. color: $u-main-color;
  147. margin-bottom: 20rpx;
  148. }
  149. }
  150. .right {
  151. margin-left: 30rpx;
  152. .immediate-use {
  153. padding: 0 20rpx;
  154. height: 50rpx;
  155. border-radius: 25rpx;
  156. line-height: 50rpx;
  157. background-color: $u-type-warning !important;
  158. color: #ffffff !important;
  159. font-size: 24rpx;
  160. border: none;
  161. word-break: keep-all;
  162. }
  163. }
  164. }
  165. }
  166. .jingdong {
  167. margin-top: 20rpx;
  168. width: 700rpx;
  169. height: auto;
  170. display: flex;
  171. .left {
  172. width: 250rpx;
  173. padding: 0 30rpx;
  174. background-image: url(../../static/sailun/coupon-background.png);
  175. background-repeat: no-repeat;
  176. background-size: 100% 100%;
  177. text-align: center;
  178. font-size: 28rpx;
  179. color: #ffffff;
  180. .sum {
  181. margin-top: 50rpx;
  182. font-weight: bold;
  183. font-size: 32rpx;
  184. .num {
  185. font-size: 80rpx;
  186. }
  187. }
  188. .type {
  189. margin-bottom: 50rpx;
  190. font-size: 24rpx;
  191. .logo {
  192. width: 100%;
  193. height: 40rpx;
  194. }
  195. }
  196. }
  197. .right {
  198. padding: 20rpx 20rpx 0;
  199. width: 700rpx;
  200. font-size: 28rpx;
  201. border-bottom-right-radius: 10rpx;
  202. border-top-right-radius: 10rpx;
  203. background-color: #fff;
  204. .top {
  205. border-bottom: 2rpx dashed $u-border-color;
  206. .title {
  207. margin-right: 60rpx;
  208. line-height: 40rpx;
  209. }
  210. .bottom {
  211. display: flex;
  212. margin-top: 20rpx;
  213. align-items: center;
  214. justify-content: space-between;
  215. margin-bottom: 10rpx;
  216. .date {
  217. font-size: 20rpx;
  218. flex: 1;
  219. }
  220. .immediate-use {
  221. height: auto;
  222. padding: 0 20rpx;
  223. font-size: 24rpx;
  224. border-radius: 40rpx;
  225. line-height: 40rpx;
  226. color: #3995FF;
  227. border: 2px solid #3995FF;
  228. margin-left: 130rpx;
  229. }
  230. }
  231. }
  232. .tips {
  233. width: 100%;
  234. line-height: 50rpx;
  235. display: flex;
  236. align-items: center;
  237. justify-content: space-between;
  238. font-size: 24rpx;
  239. .transpond {
  240. margin-right: 10rpx;
  241. }
  242. .explain {
  243. display: flex;
  244. align-items: center;
  245. }
  246. .particulars {
  247. width: 30rpx;
  248. height: 30rpx;
  249. box-sizing: border-box;
  250. padding-top: 8rpx;
  251. border-radius: 50%;
  252. background-color: $u-type-info-disabled;
  253. text-align: center;
  254. }
  255. }
  256. }
  257. }
  258. </style>