123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!DOCTYPE html>
- <html class="h100p">
- <head>
- <meta charset="utf-8">
- <title>分享注册1-创业帮</title>
- <meta name="keywords" content="分享注册1-创业帮">
- <meta name="description" content="分享注册1-创业帮">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="分享注册1-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="h100p nopb invite_bg ovh">
- <div id="app" v-cloak>
- <van-nav-bar class="user_rank_explan_title" title="创业帮新用户注册" v-if="toptitleisshow" left-arrow>
- <template #left> <img src="./static/images/left.png" alt=""></template>
- </van-nav-bar>
- <div class="invite-user tc">
- <div class="f18 c333 b">您的好友<span v-cloak>{{userInfo.RealName}}</span>诚邀您加入创业帮</div>
- </div>
- <div class="pl16 pr16 rel">
- <div class="invite-regist-box bgcfff">
- <div class="tc">
- <div class="user-img-big dib">
- <van-image width="100%" :src="userInfo.HeadPhoto" fit="cover" lazy-load round>
- <template v-slot:loading><img src="./static/images/user-img@3x.png" alt="" width="100%"></template>
- </van-image>
- </div>
- <div class="f16 c333 b pt8" v-cloak>{{userInfo.RealName}}</div>
- <div class="f12 c333 pt8" v-cloak>推荐码:{{userInfo.MakerCode}}</div>
- </div>
- <van-field class="user-phone" center clearable readonly v-model="'电话:'+userInfo.Mobile">
- <template #button>
- <van-button size="small" type="primary" round color="#FD824D" @click="takephone(userInfo.Mobile)">联系他</van-button>
- </template>
- </van-field>
- <van-grid :column-num="3">
- <van-grid-item icon="./static/images/icon-invite1.png" text="领先平台"> </van-grid-item>
- <van-grid-item icon="./static/images/icon-invite2.png" text="创客联盟"> </van-grid-item>
- <van-grid-item icon="./static/images/icon-invite3.png" text="高额奖励"> </van-grid-item>
- </van-grid>
- <div class="join-btn" v-cloak>
- <van-button type="primary" round block color="#FD824D" @click="join" icon="./static/images/icon-invite-join.png" icon-position="right">加入我们</van-button>
- </div>
- </div>
- </div>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/appfunc.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script src="./static/js/publicfn.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
-
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- toptitleisshow:false,
- active: 0,
- creatorId:'',
- userInfo:{
- HeadPhoto: '',
- RealName: '',
- MakerCode: '',
- Mobile: ''
- },
- userid:'',
- };
- },
- created(){
- this.userid = this.getUrlParam('Id');
- gettoken(this.getuserinfo);
- },
- mounted() {
- },
- methods: {
- //- 截取参数函数
- getUrlParam(name){
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
- var r = window.location.search.substr(1).match(reg); //匹配目标参数
- if (r != null) return unescape(r[2]);
- return null; //返回参数值
- },
- //- 获取邀请人信息
- async getuserinfo(){
- let that = this;
- const res = await getRequest('api/v1/users/personalinfo',JSON.stringify({Id:that.userid}));
- if(res.status !== '1') return tips('获取创客信息失败!')
- this.userInfo = res.data;
- },
- //- 跳转信息填写
- join(){
- PublicLib.putCookieInfo('inviteCode', this.userInfo.MakerCode);
- PublicLib.putCookieInfo('inviteName', this.userInfo.RealName);
- PublicLib.Goto({Url:'user-inviteregist-2'});
- },
- //- 拨打电话
- takephone(phonenum){
- PublicLib.PhoneCall(phonenum);
- },
- }
- });
- </script>
- </body>
- </html>
|