checkIn-popUp-window.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <template>
  2. <uv-popup ref="popup" mode="bottom" bgColor="none">
  3. <view class="content-box">
  4. <view class="bottomCompatibility">
  5. <view class="left-title">
  6. <image src="@/static/me/job/rw_wenzi_03.png"></image>
  7. <view class="checkInDays">
  8. <view>已签到 1 天 <view class="line"></view> 签到提醒</view>
  9. </view>
  10. </view>
  11. <view class="checkInContent">
  12. <view class="horizontal-box">
  13. <view class="item-box item-box1 item-box-one" :class="true ? 'active' : ''"></view>
  14. <view class="item-box item-box2 item-box-one" :class="true ? 'active' : ''"></view>
  15. <view class="item-box item-box3 item-box-two" :class="true ? 'active' : ''"></view>
  16. </view>
  17. <view class="horizontal-box">
  18. <view class="item-box item-box4 item-box-two" :class="true ? 'active' : ''"></view>
  19. <view class="item-box item-box5 item-box-one" :class="true ? 'active' : ''"></view>
  20. <view class="item-box item-box6 item-box-one" :class="true ? 'active' : ''"></view>
  21. </view>
  22. <view class="item-box item-box7" :class="true ? 'active' : ''"></view>
  23. </view>
  24. <view class="receiveBtn">
  25. 立即签到
  26. </view>
  27. </view>
  28. </view>
  29. </uv-popup>
  30. </template>
  31. <script>
  32. import uvPopup from '@/uni_modules/uv-popup/components/uv-popup/uv-popup.vue'
  33. export default {
  34. name: 'NicknamePopup',
  35. components: {
  36. uvPopup
  37. },
  38. props: {
  39. title: {
  40. type: String,
  41. default: ''
  42. },
  43. subtitle: {
  44. type: String,
  45. default: ''
  46. }
  47. },
  48. methods: {
  49. open() {
  50. this.$refs.popup.open();
  51. },
  52. close() {
  53. this.$refs.popup.close();
  54. }
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. /* 添加样式 */
  60. .bottomCompatibility {
  61. height: --window-bottom;
  62. }
  63. .content-box {
  64. min-height: 982rpx;
  65. background: url('@/static/me/job/rw_bg_tanchuang.png') top center / 100% auto no-repeat, linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, #F1FFE5 50%, #F1FFE5 100%);
  66. box-sizing: border-box;
  67. padding: 30rpx;
  68. padding-top: 136rpx;
  69. .left-title {
  70. width: 360rpx;
  71. height: 142rpx;
  72. padding-bottom: 32rpx;
  73. image {
  74. width: 376rpx;
  75. height: 58rpx;
  76. }
  77. .checkInDays {
  78. display: flex;
  79. align-items: center;
  80. justify-content: space-between;
  81. margin-top: 20rpx;
  82. font-size: 28rpx;
  83. color: #333333;
  84. >view {
  85. display: flex;
  86. align-items: center;
  87. font-weight: 400;
  88. font-size: 28rpx;
  89. color: #8F9C78;
  90. font-family: PingFang SC-Medium;
  91. .line {
  92. width: 2rpx;
  93. height: 30rpx;
  94. background: #D9D9D9;
  95. display: inline-block;
  96. margin: 0 12rpx;
  97. }
  98. }
  99. }
  100. }
  101. .checkInContent {
  102. width: 100%;
  103. height: 560rpx;
  104. .horizontal-box {
  105. width: 100%;
  106. height: 192rpx;
  107. display: flex;
  108. align-items: start;
  109. justify-content: space-between;
  110. .item-box {
  111. display: inline-block;
  112. background: #000;
  113. }
  114. .item-box-one {
  115. width: 226rpx;
  116. height: 172rpx;
  117. }
  118. .item-box-two {
  119. width: 212rpx;
  120. height: 188rpx;
  121. }
  122. .item-box1 {
  123. background: url('@/static/me/job/rw_bg_jiangli01_moren.png') center / 100% no-repeat;
  124. &.active {
  125. background: url('@/static/me/job/rw_bg_jiangli01_dianji.png') center / 100% no-repeat;
  126. transform: scale(1.07);
  127. }
  128. }
  129. .item-box2 {
  130. background: url('@/static/me/job/rw_bg_jiangli02_moren.png') center / 100% no-repeat;
  131. &.active {
  132. background: url('@/static/me/job/rw_bg_jiangli02_dianji.png') center / 100% no-repeat;
  133. transform: scale(1.07);
  134. }
  135. }
  136. .item-box3 {
  137. background: url('@/static/me/job/rw_bg_jiangli03_moren.png') center / 100% no-repeat;
  138. &.active {
  139. background: url('@/static/me/job/rw_bg_jiangli03_dianji.png') center / 100% no-repeat;
  140. transform: scale(1.07);
  141. }
  142. }
  143. .item-box4 {
  144. background: url('@/static/me/job/rw_bg_jiangli04_moren.png') center / 100% no-repeat;
  145. &.active {
  146. background: url('@/static/me/job/rw_bg_jiangli04_dianji.png') center / 100% no-repeat;
  147. transform: scale(1.07);
  148. }
  149. }
  150. .item-box5 {
  151. background: url('@/static/me/job/rw_bg_jiangli05_moren.png') center / 100% no-repeat;
  152. &.active {
  153. background: url('@/static/me/job/rw_bg_jiangli05_dianji.png') center / 100% no-repeat;
  154. transform: scale(1.07);
  155. }
  156. }
  157. .item-box6 {
  158. background: url('@/static/me/job/rw_bg_jiangli06_moren.png') center / 100% no-repeat;
  159. &.active {
  160. background: url('@/static/me/job/rw_bg_jiangli06_dianji.png') center / 100% no-repeat;
  161. transform: scale(1.07);
  162. }
  163. }
  164. }
  165. .item-box7 {
  166. width: 100%;
  167. height: 172rpx;
  168. background: url('@/static/me/job/rw_bg_jiangli07_moren.png') center / 100% no-repeat;
  169. &.active {
  170. background: url('@/static/me/job/rw_bg_jiangli07_moren.png') center / 100% no-repeat;
  171. transform: scale(1.01);
  172. }
  173. }
  174. }
  175. .receiveBtn {
  176. background: #ACF934;
  177. border-radius: 126rpx;
  178. padding: 18rpx 0;
  179. display: flex;
  180. align-items: center;
  181. justify-content: center;
  182. width: 100%;
  183. margin-top: 30rpx;
  184. }
  185. }
  186. </style>