兼兼街公众号代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

182 lines
4.0 KiB

  1. <template>
  2. <view class="page-wapper">
  3. <view class="a-card">
  4. <view class="title"></view>
  5. <view class="context">
  6. <view class="content-around">
  7. <view class="con-title">关注</view>
  8. <view>关注可查看每日兼职更新超多本地兼职正在筹备</view>
  9. </view>
  10. <view class="content-around">
  11. <view class="con-title">成为会员</view>
  12. <view>成为会员即可查看海量兼职信息超多在线兼职等你来挑战更有超酷客服小姐姐等你来撩</view>
  13. </view>
  14. </view>
  15. <view class="bottom-bgr">
  16. <view style="width: 100%; height: 100%; position: relative;">
  17. <view class="foot-font">
  18. <p>联系微信jianjianjie_1688</p>
  19. <p>合作联系湖南瀚海黎明信息科技</p>
  20. </view>
  21. <canvas canvas-id="qrcode" class="qrcode"/>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import html2canvas from 'html2canvas';
  29. import uQRCode from '@/common/uqrcode.js'
  30. export default{
  31. data(){
  32. return{
  33. userInfo: {},
  34. role:0,
  35. cellList: [],
  36. base64: ''
  37. }
  38. },
  39. onShow() {
  40. this.getmyInfo()
  41. },
  42. onReady() {
  43. this.$com.displayNav()
  44. },
  45. methods:{
  46. getmyInfo(){
  47. this.$api('myInfo').then(res=>{
  48. if(res.code == 200){
  49. this.role = res.result.role;
  50. this.userInfo = res.result;
  51. this.$store.commit('set_userInfo',res.result)
  52. this.qrFun('https://xinxiong.java996.icu/pages/my/login-kehu?vid=' + this.userInfo.id)
  53. }else{
  54. this.userInfo = null
  55. }
  56. })
  57. },
  58. qrFun: function(text) {
  59. this.qrShow = true
  60. uQRCode.make({
  61. canvasId: 'qrcode',
  62. componentInstance: this,
  63. text: text,
  64. size: 135,
  65. margin: 0,
  66. backgroundColor: '#FFFFFF',
  67. foregroundColor: '#000000',
  68. fileType: 'png',
  69. errorCorrectLevel: uQRCode.errorCorrectLevel.H,
  70. success: res => {}
  71. })
  72. },
  73. }
  74. }
  75. </script>
  76. <style lang="scss">
  77. .page-wapper {
  78. width: 100vw;
  79. height: 100vh;
  80. background-color: #3da8ff;
  81. background: url("@/static/6.png");
  82. background-size: 100% 100%;
  83. .a-card {
  84. width: 660rpx;
  85. height: 980rpx;
  86. background-color: #fff;
  87. position: absolute;
  88. top: calc(50vh - 560rpx);
  89. left: calc(50vw - 330rpx);
  90. border-radius: 20rpx;
  91. box-shadow: 20rpx 10rpx 20rpx 10rpx #345dc7;
  92. .title {
  93. width: 60%;
  94. height: 150rpx;
  95. position: absolute;
  96. left: 140rpx;
  97. top: 60rpx;
  98. background: url("@/static/5.jpg");
  99. background-size: 100% 100% ;
  100. background-position: 40% 75%;
  101. }
  102. .context {
  103. position: absolute;
  104. left: 40rpx;
  105. top: 248rpx;
  106. width: 380rpx;
  107. .content-around {
  108. color: #999;
  109. font-size: 24rpx;
  110. line-height: 34rpx;
  111. .con-title {
  112. background-color: #3871ce;
  113. color: #FFF;
  114. width: 140rpx;
  115. height: 45rpx;
  116. line-height: 45rpx;
  117. border-bottom-right-radius: 70rpx;
  118. border-top-left-radius: 70rpx;
  119. font-size: 32rpx;
  120. font-weight: 500;
  121. margin: 20rpx 0;
  122. padding: 0 40rpx;
  123. }
  124. }
  125. }
  126. .bottom-bgr {
  127. width: 100%;
  128. height: 180rpx;
  129. position: absolute;
  130. left: 0;
  131. bottom: 0;
  132. background: url("@/static/4.png");
  133. background-size: 160% 100% ;
  134. background-position: 40% 75%;
  135. .foot-font {
  136. position: absolute;
  137. bottom: 20rpx;
  138. left: 40rpx;
  139. font-size: 20rpx;
  140. line-height: 24rpx;
  141. color: #222;
  142. }
  143. .qrcode {
  144. position: absolute;
  145. bottom: 15rpx;
  146. right: 20rpx;
  147. width: 280rpx !important;
  148. height: 280rpx !important;
  149. }
  150. }
  151. }
  152. }
  153. //.page-wapper {
  154. // background: linear-gradient(to bottom, #345dc7, #00FFFF, #3da8ff);
  155. // background-size: 200% 200%;
  156. // animation: gradient 20s ease infinite;
  157. //}
  158. //
  159. //@keyframes gradient {
  160. // 0% { background-position: 0% 0%; } /* 背景位置从左上角开始 */
  161. // 50% { background-position: 100% 100%; } /* 背景位置变化到右下角 */
  162. // 100% { background-position: 0% 0%; } /* 背景位置回到左上角 */
  163. //}
  164. </style>