nonactivatedCard.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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="share">转赠分享<img class="icon" src="@/assets/img/riLine-gift-2-line@3x.png" alt=""></button>
  74. <button class="activate" @click="showModal">立即激活</button>
  75. </view>
  76. </view>
  77. <!-- 弹框 -->
  78. <view>
  79. <u-modal v-model="show" :content="content" confirm-color="#00b962"></u-modal>
  80. </view>
  81. </view>
  82. </template>
  83. <script>
  84. export default {
  85. data() {
  86. return {
  87. show: false,
  88. showHide:false,
  89. content: '确认激活此会员卡吗?'
  90. }
  91. },
  92. methods: {
  93. showModal() {
  94. this.show = true;
  95. },
  96. }
  97. }
  98. </script>
  99. <style lang="scss" scoped>
  100. page{
  101. background-color: #fff;
  102. }
  103. .header {
  104. padding: 24rpx 32rpx 0;
  105. opacity: 0.9;
  106. background: linear-gradient(30deg, rgba(59,182,254,1) 13.4%,rgba(0,185,98,1) 85.87%);
  107. position: relative;
  108. .discount-card {
  109. background: url(@/assets/img/cardDetail.png);
  110. background-size: 686rpx 400rpx;
  111. border-radius: 8px 8px 0 0;
  112. background-color: #1D1F2A;
  113. padding: 24rpx;
  114. margin-top: 24rpx;
  115. height: 200px;
  116. position: relative;
  117. .corner-mark{
  118. width: 128rpx;
  119. height: 128rpx;
  120. position: absolute;
  121. top: 0;
  122. right: 0;
  123. }
  124. .img {
  125. margin:82rpx auto 0;
  126. width: 486rpx;
  127. height: 104rpx;
  128. img {
  129. width: 100%;
  130. }
  131. }
  132. .top {
  133. .right-corner {
  134. display: flex;
  135. align-items: center;
  136. height: 36rpx;
  137. .rightCorner {
  138. width: 148rpx;
  139. margin-left: 8rpx;
  140. }
  141. .icon {
  142. width: 24rpx;
  143. height: 24rpx;
  144. margin-left: 8rpx;
  145. }
  146. .picc {
  147. width: 124rpx;
  148. height: 32rpx;
  149. margin-left: 8rpx;
  150. }
  151. }
  152. }
  153. }
  154. .cardCover {
  155. width: 100%;
  156. height: 70rpx;
  157. position: absolute;
  158. left: 0;
  159. right: 0;
  160. bottom: 0rpx;
  161. z-index: 999;
  162. }
  163. .card-number{
  164. color: rgba(209, 178, 121, 1);
  165. text-align: center;
  166. margin-top: 8rpx;
  167. }
  168. }
  169. .main {
  170. background-color: #fff;
  171. padding: 32rpx;
  172. .headline{
  173. display: flex;
  174. justify-content: space-between;
  175. align-items: center;
  176. font-size: 32rpx;
  177. .title{
  178. color: rgba(16, 16, 16, 1);
  179. }
  180. .show,.hide{
  181. color: rgba(119, 119, 119, 1);
  182. }
  183. }
  184. .details {
  185. margin-top: 16rpx;
  186. border-radius: 12px;
  187. padding: 32rpx 24rpx;
  188. background-color: rgba(255, 255, 255, 1);
  189. border: 1px solid rgba(226, 226, 226, 1);
  190. margin-bottom: 40rpx;
  191. .item {
  192. display: flex;
  193. margin-top: 24rpx;
  194. .item-title {
  195. width: 128rpx;
  196. color: #777777;
  197. text-align: left;
  198. }
  199. .item-value {
  200. margin-left: 16rpx;
  201. color: #101010;
  202. }
  203. }
  204. }
  205. //按钮
  206. .btn{
  207. margin-top: 32rpx;
  208. display: flex;
  209. justify-content: space-between;
  210. .share{
  211. width: 328rpx;
  212. height: 88rpx;
  213. line-height: 88rpx;
  214. border-radius: 50px;
  215. background-color: rgba(255, 255, 255, 1);
  216. text-align: center;
  217. border: 1px solid rgba(255, 150, 0, 1);
  218. color: rgba(255, 150, 0, 1);
  219. font-size: 32rpx;
  220. display: flex;
  221. align-items: center;
  222. justify-content: center;
  223. .icon{
  224. width: 36rpx;
  225. height: 36rpx;
  226. }
  227. }
  228. .activate{
  229. width: 328rpx;
  230. height: 88rpx;
  231. line-height: 88rpx;
  232. border-radius: 50px;
  233. background: linear-gradient(90deg, rgba(0,171,91,1) 0%,rgba(0,209,66,1) 100%);
  234. color: rgba(255, 255, 255, 1);
  235. font-size: 32rpx
  236. }
  237. }
  238. }
  239. ::v-deep .u-model__content__message{
  240. color: #333333;
  241. font-size: 32rpx
  242. }
  243. </style>