user-inviteregist-1.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html>
  2. <html class="h100p">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>分享注册1-创业帮</title>
  6. <meta name="keywords" content="分享注册1-创业帮">
  7. <meta name="description" content="分享注册1-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="分享注册1-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="h100p nopb invite_bg ovh">
  18. <div id="app" v-cloak>
  19. <van-nav-bar class="user_rank_explan_title" title="创业帮新用户注册" v-if="toptitleisshow" left-arrow>
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. </van-nav-bar>
  22. <div class="invite-user tc">
  23. <div class="f18 c333 b">您的好友<span v-cloak>{{userInfo.RealName}}</span>诚邀您加入创业帮</div>
  24. </div>
  25. <div class="pl16 pr16 rel">
  26. <div class="invite-regist-box bgcfff">
  27. <div class="tc">
  28. <div class="user-img-big dib">
  29. <van-image width="100%" :src="userInfo.HeadPhoto" fit="cover" lazy-load round>
  30. <template v-slot:loading><img src="./static/images/user-img@3x.png" alt="" width="100%"></template>
  31. </van-image>
  32. </div>
  33. <div class="f16 c333 b pt8" v-cloak>{{userInfo.RealName}}</div>
  34. <div class="f12 c333 pt8" v-cloak>推荐码:{{userInfo.MakerCode}}</div>
  35. </div>
  36. <van-field class="user-phone" center clearable readonly v-model="'电话:'+userInfo.Mobile">
  37. <template #button>
  38. <van-button size="small" type="primary" round color="#FD824D" @click="takephone(userInfo.Mobile)">联系他</van-button>
  39. </template>
  40. </van-field>
  41. <van-grid :column-num="3">
  42. <van-grid-item icon="./static/images/icon-invite1.png" text="领先平台"> </van-grid-item>
  43. <van-grid-item icon="./static/images/icon-invite2.png" text="创客联盟"> </van-grid-item>
  44. <van-grid-item icon="./static/images/icon-invite3.png" text="高额奖励"> </van-grid-item>
  45. </van-grid>
  46. <div class="join-btn" v-cloak>
  47. <van-button type="primary" round block color="#FD824D" @click="join" icon="./static/images/icon-invite-join.png" icon-position="right">加入我们</van-button>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <script src="./static/js/klm-vv.min.js"></script>
  53. <script src="./static/js/appfunc.min.js"></script>
  54. <script src="./static/js/klm-axios-config.js"></script>
  55. <script src="./static/js/publicfn.js"></script>
  56. <script>
  57. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  58. // 可以通过下面的方式手动注册
  59. Vue.use(vant.Lazyload);
  60. // 在 #app 标签下渲染一个按钮组件
  61. let app = new Vue({
  62. el: '#app',
  63. data() {
  64. return {
  65. toptitleisshow:false,
  66. active: 0,
  67. creatorId:'',
  68. userInfo:{
  69. HeadPhoto: '',
  70. RealName: '',
  71. MakerCode: '',
  72. Mobile: ''
  73. },
  74. userid:'',
  75. };
  76. },
  77. created(){
  78. this.userid = this.getUrlParam('Id');
  79. gettoken(this.getuserinfo);
  80. },
  81. mounted() {
  82. },
  83. methods: {
  84. //- 截取参数函数
  85. getUrlParam(name){
  86. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
  87. var r = window.location.search.substr(1).match(reg); //匹配目标参数
  88. if (r != null) return unescape(r[2]);
  89. return null; //返回参数值
  90. },
  91. //- 获取邀请人信息
  92. async getuserinfo(){
  93. let that = this;
  94. const res = await getRequest('api/v1/users/personalinfo',JSON.stringify({Id:that.userid}));
  95. if(res.status !== '1') return tips('获取创客信息失败!')
  96. this.userInfo = res.data;
  97. },
  98. //- 跳转信息填写
  99. join(){
  100. PublicLib.putCookieInfo('inviteCode', this.userInfo.MakerCode);
  101. PublicLib.putCookieInfo('inviteName', this.userInfo.RealName);
  102. PublicLib.Goto({Url:'user-inviteregist-2'});
  103. },
  104. //- 拨打电话
  105. takephone(phonenum){
  106. PublicLib.PhoneCall(phonenum);
  107. },
  108. }
  109. });
  110. </script>
  111. </body>
  112. </html>