getCard.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <template>
  2. <view>
  3. <ujp-navbar title="未领用会员卡">
  4. <view slot="right" style="margin-right: 10px;">
  5. <view class="iconfont qr-code">
  6. &#xe60d;
  7. </view>
  8. </view>
  9. </ujp-navbar>
  10. <!-- 头部 -->
  11. <view class="header">
  12. <view class="discount-card">
  13. <img class="corner-mark" src="@/assets/img/nonactivated.png" alt="">
  14. <view class="top">
  15. <view class="right-corner">
  16. <img class="rightCorner" src="..../../assets/img/rightCorner.png" alt="">
  17. <img class="icon" src="@/assets/img/mb-times@3x.png" alt="">
  18. <img class="picc" src="..../../assets/img/picc.png" alt="">
  19. </view>
  20. </view>
  21. <view class="img">
  22. <img src="@/assets/img/halfoff.png" alt="">
  23. </view>
  24. <view class="card-number">
  25. 卡号:T2023081611208460925
  26. </view>
  27. </view>
  28. <img class="cardCover" src="@/assets/img/cardCover.png" alt="">
  29. </view>
  30. <!-- 卡片信息 -->
  31. <view class="main">
  32. <view class="details">
  33. <view class="headline">
  34. <view class="title">
  35. 卡片信息
  36. </view>
  37. <view class="show" v-if="!this.showHide" @click="showHide=true">
  38. 显示<u-icon name="eye"></u-icon>
  39. </view>
  40. <view class="hide" v-if="this.showHide" @click="showHide=false">
  41. 隐藏<u-icon name="eye-off"></u-icon>
  42. </view>
  43. </view>
  44. <view class="content" v-if="this.showHide">
  45. <view class="item">
  46. <view class="item-title">
  47. 卡类型
  48. </view>
  49. <view class="item-value">
  50. 服务费折扣卡
  51. </view>
  52. </view>
  53. <view class="item">
  54. <view class="item-title">
  55. 折扣率
  56. </view>
  57. <view class="item-value">
  58. 5折
  59. </view>
  60. </view>
  61. <view class="item">
  62. <view class="item-title">
  63. 规格
  64. </view>
  65. <view class="item-value">
  66. 可用4500度(有效期365天)
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 按钮 -->
  72. <view class="btn">
  73. <button class="get" @click="showModal">领用会员卡</button>
  74. </view>
  75. </view>
  76. <!-- 弹框 -->
  77. <view>
  78. <u-modal v-model="show" :content="content" show-cancel-button="true" confirm-color="#00b962"></u-modal>
  79. </view>
  80. </view>
  81. </template>
  82. <script>
  83. export default {
  84. data() {
  85. return {
  86. show: false,
  87. showHide:false,
  88. content: '确认领用此会员卡吗??'
  89. }
  90. },
  91. methods: {
  92. showModal() {
  93. this.show = true;
  94. },
  95. }
  96. }
  97. </script>
  98. <style lang="scss" scoped>
  99. page{
  100. background-color: #fff;
  101. }
  102. .header {
  103. padding: 24rpx 32rpx 0;
  104. opacity: 0.9;
  105. background: linear-gradient(30deg, rgba(59,182,254,1) 13.4%,rgba(0,185,98,1) 85.87%);
  106. position: relative;
  107. .discount-card {
  108. background: url(@/assets/img/cardDetail.png);
  109. background-size: 686rpx 400rpx;
  110. border-radius: 8px 8px 0 0;
  111. background-color: #1D1F2A;
  112. padding: 24rpx;
  113. margin-top: 24rpx;
  114. height: 200px;
  115. position: relative;
  116. .corner-mark{
  117. width: 128rpx;
  118. height: 128rpx;
  119. position: absolute;
  120. top: 0;
  121. right: 0;
  122. }
  123. .card-number{
  124. color: rgba(209, 178, 121, 1);
  125. text-align: center;
  126. margin-top: 8rpx;
  127. }
  128. .img {
  129. margin:82rpx auto 0;
  130. width: 486rpx;
  131. height: 104rpx;
  132. img {
  133. width: 100%;
  134. }
  135. }
  136. // 右下角角标
  137. .top {
  138. display: flex;
  139. align-items: center;
  140. height: 28rpx;
  141. .right-corner {
  142. display: flex;
  143. .rightCorner {
  144. width: 148rpx;
  145. }
  146. .icon {
  147. width: 24rpx;
  148. margin-left: 16rpx;
  149. }
  150. .picc {
  151. width: 124rpx;
  152. height: 32rpx;
  153. margin-left: 16rpx;
  154. }
  155. }
  156. }
  157. }
  158. .cardCover {
  159. width: 100%;
  160. height: 70rpx;
  161. position: absolute;
  162. left: 0;
  163. right: 0;
  164. bottom: 0rpx;
  165. z-index: 999;
  166. }
  167. }
  168. .main {
  169. background-color: #fff;
  170. padding: 32rpx;
  171. .headline{
  172. display: flex;
  173. justify-content: space-between;
  174. align-items: center;
  175. font-size: 32rpx;
  176. .title{
  177. color: rgba(16, 16, 16, 1);
  178. }
  179. .show,.hide{
  180. color: rgba(119, 119, 119, 1);
  181. }}
  182. .details {
  183. margin-top: 16rpx;
  184. border-radius: 12px;
  185. padding: 32rpx 24rpx;
  186. background-color: rgba(255, 255, 255, 1);
  187. text-align: center;
  188. border: 1px solid rgba(226, 226, 226, 1);
  189. margin-bottom: 40rpx;
  190. .item {
  191. display: flex;
  192. margin-top: 24rpx;
  193. .item-title {
  194. width: 128rpx;
  195. color: #777777;
  196. text-align: left;
  197. }
  198. .item-value {
  199. margin-left: 16rpx;
  200. color: #101010;
  201. }
  202. }
  203. }
  204. //按钮
  205. .btn{
  206. margin-top: 32rpx;
  207. .get{
  208. border-radius: 50px;
  209. background: linear-gradient(90deg, rgba(0,171,91,1) 0%,rgba(0,209,66,1) 100%);
  210. color: rgba(255, 255, 255, 1);
  211. font-size: 16px;
  212. text-align: center;
  213. }
  214. }
  215. }
  216. ::v-deep.u-model__content__message{
  217. color: #333333;
  218. font-size: 32rpx
  219. }
  220. </style>