index.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <template>
  2. <view class="u-wrap">
  3. <view class="meituan">
  4. <view class="content">
  5. <view class="left">
  6. <view class="sum">
  7. <text class="num">8</text>
  8. </view>
  9. <view class="type">抵用券</view>
  10. </view>
  11. <view class="centre">
  12. <view class="title">【洗牙】8元无门槛红包</view>
  13. <view class="valid-date">今日到期</view>
  14. </view>
  15. <view class="right">
  16. <view size="mini" class="immediate-use" :round="true">立即使用</view>
  17. </view>
  18. </view>
  19. <view class="tips">
  20. <view class="circle-left"></view>
  21. <view class="circle-right"></view>
  22. <view class="explain u-line-1">满8.1元可用、限最新版本客户端使用</view>
  23. <view class="rule" @tap="xxx122">
  24. <text>使用规则</text>
  25. <u-icon name="arrow-right" color="" :size="20" @click=""></u-icon>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="jingdong">
  30. <view class="left">
  31. <view class="sum">
  32. <text class="num">100</text>
  33. </view>
  34. <view class="type">满149元可用</view>
  35. </view>
  36. <view class="right">
  37. <view class="top">
  38. <view class="title">
  39. <text class="tag">限品类东券</text>
  40. <text>仅可购买个人护理部分商品</text>
  41. </view>
  42. <view class="bottom">
  43. <view class="date u-line-1">2020.01.01-2020.01.31</view>
  44. <view class="immediate-use">立即使用</view>
  45. </view>
  46. </view>
  47. <view class="tips">
  48. <view class="explain">
  49. <u-icon name="zhuanfa" class="transpond" :size="24"></u-icon>
  50. <text>可赠送</text>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="taobao">
  56. <view class="title">
  57. <view class="left">
  58. <image class="buddha" src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1975388697,1068670603&fm=26&gp=0.jpg" mode="aspectFill"></image>
  59. <view class="store">袜子精保护协会</view>
  60. </view>
  61. <view class="entrance">进店</view>
  62. </view>
  63. <view class="ticket">
  64. <view class="left">
  65. <image
  66. class="picture"
  67. src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578059523488&di=5f592ac19c1b983005d3e85add469756&imgtype=0&src=http%3A%2F%2Fimg010.hc360.cn%2Fg7%2FM00%2F2D%2FB9%2FwKhQs1QfUo6EdeM-AAAAALwk1hM072.jpg"
  68. mode="widthFix"
  69. ></image>
  70. <view class="introduce">
  71. <view class="top">
  72. <text class="big">3</text>
  73. 满88减3
  74. </view>
  75. <view class="type">店铺优惠券</view>
  76. <view class="date u-line-1">2019.11.28-2020.1.24</view>
  77. </view>
  78. </view>
  79. <view class="right">
  80. <view class="use immediate-use" :round="true">去使用</view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </template>
  86. <script>
  87. export default {
  88. };
  89. </script>
  90. <style lang="scss" scoped>
  91. page {
  92. height: 100%;
  93. background-color: rgb(244, 244, 244);
  94. }
  95. .u-wrap {
  96. padding: 24rpx;
  97. }
  98. .meituan {
  99. margin: 30rpx auto;
  100. background-color: #ffffff;
  101. width: 700rpx;
  102. // border: 10rpx;
  103. color: $u-warning;
  104. font-size: 28rpx;
  105. .content {
  106. display: flex;
  107. align-items: center;
  108. padding: 80rpx 20rpx;
  109. border: 10rpx;
  110. background-color: #fff5f4;
  111. .left {
  112. .sum {
  113. font-size: 32rpx;
  114. .num {
  115. font-size: 60rpx;
  116. font-weight: bold;
  117. }
  118. }
  119. }
  120. .centre {
  121. margin-left: 40rpx;
  122. .title {
  123. font-size: 32rpx;
  124. font-weight: bold;
  125. color: $u-main-color;
  126. margin-bottom: 20rpx;
  127. }
  128. }
  129. .right {
  130. margin-left: 30rpx;
  131. .immediate-use {
  132. padding: 0 20rpx;
  133. height: 50rpx;
  134. border-radius: 25rpx;
  135. line-height: 50rpx;
  136. background-color: $u-warning!important;
  137. color: #ffffff!important;
  138. font-size: 24rpx;
  139. border: none;
  140. word-break: keep-all;
  141. }
  142. }
  143. }
  144. .tips {
  145. padding: 0 20rpx;
  146. border: 10rpx;
  147. background-color: $u-info-light;
  148. position: relative;
  149. color: $u-tips-color;
  150. display: flex;
  151. justify-content: space-between;
  152. line-height: 60rpx;
  153. font-size: 24rpx;
  154. .circle-left,
  155. .circle-right {
  156. position: absolute;
  157. height: 36rpx;
  158. width: 18rpx;
  159. background-color: #f2f2f2;
  160. }
  161. .circle-right {
  162. border-radius: 40rpx 0 0 40rpx;
  163. right: 0;
  164. top: -18rpx;
  165. }
  166. .circle-left {
  167. border-radius: 0 40rpx 40rpx 0;
  168. left: 0;
  169. top: -18rpx;
  170. }
  171. .rule {
  172. font-size: 24rpx;
  173. display: flex;
  174. align-items: center;
  175. text {
  176. margin-right: 10rpx;
  177. flex: 1;
  178. }
  179. }
  180. }
  181. }
  182. .jingdong {
  183. margin-top: 40rpx;
  184. width: 700rpx;
  185. height: auto;
  186. background-color: #ffffff;
  187. display: flex;
  188. .left {
  189. padding: 0 30rpx;
  190. background-color: rgb(95, 148, 224); //rgb(94, 152, 225);
  191. text-align: center;
  192. font-size: 28rpx;
  193. color: #ffffff;
  194. .sum {
  195. margin-top: 50rpx;
  196. font-weight: bold;
  197. font-size: 32rpx;
  198. .num {
  199. font-size: 80rpx;
  200. }
  201. }
  202. .type {
  203. margin-bottom: 50rpx;
  204. font-size: 24rpx;
  205. }
  206. }
  207. .right {
  208. padding: 20rpx 20rpx 0;
  209. font-size: 28rpx;
  210. .top {
  211. border-bottom: 2rpx dashed $u-border-color;
  212. .title {
  213. margin-right: 60rpx;
  214. line-height: 40rpx;
  215. .tag {
  216. padding: 4rpx 20rpx;
  217. background-color: rgb(73, 154, 201);
  218. border-radius: 20rpx;
  219. color: #ffffff;
  220. font-weight: bold;
  221. font-size: 24rpx;
  222. margin-right: 10rpx;
  223. }
  224. }
  225. .bottom {
  226. display: flex;
  227. margin-top: 20rpx;
  228. align-items: center;
  229. justify-content: space-between;
  230. margin-bottom: 10rpx;
  231. .date {
  232. font-size: 20rpx;
  233. flex: 1;
  234. }
  235. .immediate-use {
  236. height: auto;
  237. padding: 0 20rpx;
  238. font-size: 24rpx;
  239. border-radius: 40rpx;
  240. line-height: 40rpx;
  241. color: rgb(117, 142, 165);
  242. border: 2rpx solid rgb(117, 142, 165);
  243. }
  244. }
  245. }
  246. .tips {
  247. width: 100%;
  248. line-height: 50rpx;
  249. display: flex;
  250. align-items: center;
  251. justify-content: space-between;
  252. font-size: 24rpx;
  253. .transpond {
  254. margin-right: 10rpx;
  255. }
  256. .explain {
  257. display: flex;
  258. align-items: center;
  259. }
  260. .particulars {
  261. width: 30rpx;
  262. height: 30rpx;
  263. box-sizing: border-box;
  264. padding-top: 8rpx;
  265. border-radius: 50%;
  266. background-color: $u-info-disabled;
  267. text-align: center;
  268. }
  269. }
  270. }
  271. }
  272. .taobao {
  273. margin-top: 40rpx;
  274. width: 700rpx;
  275. background-color: white;
  276. padding: 30rpx 20rpx 20rpx;
  277. border-radius: 20rpx;
  278. .title {
  279. display: flex;
  280. align-items: center;
  281. justify-content: space-between;
  282. margin-bottom: 20rpx;
  283. font-size: 30rpx;
  284. .left {
  285. display: flex;
  286. align-items: center;
  287. }
  288. .store {
  289. font-weight: 500;
  290. }
  291. .buddha {
  292. width: 70rpx;
  293. height: 70rpx;
  294. border-radius: 10rpx;
  295. margin-right: 10rpx;
  296. }
  297. .entrance {
  298. color: $u-info;
  299. border: solid 2rpx $u-info;
  300. line-height: 48rpx;
  301. padding: 0 30rpx;
  302. background: none;
  303. border-radius: 15px;
  304. }
  305. }
  306. .ticket {
  307. display: flex;
  308. .left {
  309. width: 70%;
  310. padding: 30rpx 20rpx;
  311. background-color: rgb(255, 245, 244);
  312. border-radius: 20rpx;
  313. border-right: dashed 2rpx rgb(224, 215, 211);
  314. display: flex;
  315. .picture {
  316. width: 172rpx;
  317. height: 172rpx;
  318. border-radius: 20rpx;
  319. }
  320. .introduce {
  321. margin-left: 10rpx;
  322. .top{
  323. color:$u-warning;
  324. font-size: 28rpx;
  325. .big{
  326. font-size: 60rpx;
  327. font-weight: bold;
  328. margin-right: 10rpx;
  329. }
  330. }
  331. .type{
  332. font-size: 28rpx;
  333. color: $u-info-dark;
  334. }
  335. .date{
  336. margin-top: 10rpx;
  337. font-size: 20rpx;
  338. color: $u-info-dark;
  339. }
  340. }
  341. }
  342. .right {
  343. width: 30%;
  344. padding: 40rpx 20rpx;
  345. background-color: rgb(255, 245, 244);
  346. border-radius: 20rpx;
  347. display: flex;
  348. align-items: center;
  349. .use{
  350. height: auto;
  351. padding: 0 20rpx;
  352. font-size: 24rpx;
  353. border-radius: 40rpx;
  354. color: #ffffff!important;
  355. background-color: $u-warning!important;
  356. line-height: 40rpx;
  357. color: rgb(117, 142, 165);
  358. margin-left: 20rpx;
  359. }
  360. }
  361. }
  362. }
  363. </style>