coupon.vue 5.0 KB

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