123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>月度账单-创业帮</title>
- <meta name="keywords" content="月度账单-创业帮">
- <meta name="description" content="月度账单-创业帮">
- <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="月度账单-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- <link rel="stylesheet" href="./static/css/_public.css">
- <link rel="stylesheet" href="https://ap.kexiaoshuang.com/skin/app/default/static/css/_keyframes.css">
- <link rel="stylesheet" href="https://ap.kexiaoshuang.com/skin/app/default/static/css/year-report.css">
- <style>
- .m0a{
- margin: 0 auto;
- }
- .width90{
- width:90% !important;
- }
-
- </style>
- </head>
- <body class="pb0 pt0 ovh fl" style="padding:0;">
- <div class="year-report bgctra invited-old" id="app" v-cloak>
- <div class="year-report-2 abs" style="z-index:-1;"><img class="logoimg" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/headimg.png" alt="alt" v-if="pageNum != 1">
- <div class="music" @click="playmp3"><img src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/music.png" alt="alt" :class="{'stopAnimation': !isPlay,'rotate360':isPlay}"></div>
- <audio class="audio" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/mp3/city-of-start.mp3" autoplay="autoplay" ref="music" loop="true"></audio>
- <div class="vh100" @touchend="gtouchend" @touchstart="gtouchstart" style="height:100vh">
- <transition name="fade">
- <div class="rel" v-if="pageNum === 1"><img class="logoimg" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/logo.png" alt="alt"><img class="abs scal-title mt35" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/scal-title.png" alt="alt">
- <div class="rel warp1"><img class="abs LOGO1" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/LOGO1.png" alt="alt"><img class="abs hands" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/hands.png" alt="alt"><img class="abs txt" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/text.png" alt="alt"></div>
- </div>
- </transition>
- <transition name="fade">
- <div class="df jcsb cfff flex-dir-col pl10" v-if="pageNum === 2">
- <div class="mt50" style="animation: opac0-1 1s 0.1s forwards; opacity:0;"><span class="f26 b">3</span><span class="f13"> 月</span><span class="f26 b">8</span><span class="f13 b"> 日 </span><span class="f13 ml14">创业帮立项</span></div>
- <div class="mt13" style="animation: opac0-1 1s 0.2s forwards; opacity:0;"><span class="f26 b">3</span><span class="f13"> 月</span><span class="f26 b">10</span><span class="f13"> 日 </span><span class="f13 ml14">创业帮正式上线 金控机具同步上线</span></div>
- <div class="mt13" style="animation: opac0-1 1s 0.3s forwards; opacity:0;"> <span class="f26 b">3</span><span class="f13"> 月</span><span class="f26 b">11</span><span class="f13"> 日 </span><span class="f13 ml14">平台首次进件 </span></div>
- <div class="mt13" style="animation: opac0-1 1s 0.3s forwards; opacity:0;"> <span class="f13">进件人</span><span class="f26 b"> K8****8</span><span class="f26 b ml14">刘XX</span></div>
- <div class="mt50" style="animation: opac0-1 1s 0.4s forwards; opacity:0;"> <span class="f26 b">3</span><span class="f13"> 月</span><span class="f26 b">24</span><span class="f13"> 日 </span><span class="f26 b ml14">17:24:01</span></div>
- <div class="mt13" style="animation: opac0-1 1s 0.5s forwards; opacity:0;"> <span class="f13">创业帮平台总交易量</span><span class="f26 b ml14">破亿</span></div>
- <div class="mt50" style="animation: opac0-1 1s 0.6s forwards; opacity:0;"> <span class="f26 b">5</span><span class="f13"> 月</span><span class="f26 b">30</span><span class="f13"> 日 </span><span class="f26 b ml14">19:00:00</span></div>
- <div class="mt13" style="animation: opac0-1 1s 0.7s forwards; opacity:0;"> <span class="f13">创业帮平台总交易量</span><span class="f26 b ml14">破十亿</span></div><img class="abs coin" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/coin.png" alt="alt">
- </div>
- </transition>
- <transition name="fade">
- <div class="df jcsb cfff flex-dir-col pl10" v-if="pageNum === 3"><img class="abs phone" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/phone.png" alt="alt">
- <div class="abs articl2">
- <div class="f13" style="animation: opac0-1 1s 0.1s forwards; opacity:0;"> <span class="f26 b">{{firstCome.month}}</span><span class="f13"> 月 </span><span class="f26 b">{{firstCome.day}}</span><span class="f13"> 日 </span></div>
- <div class="f13" style="animation: opac0-1 1s 0.2s forwards; opacity:0;"> <span class="f13">是你来到创业帮的第</span><span class="f26 b"> 1 </span><span class="f13">天</span></div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.3s forwards; opacity:0;">隔着这个屏幕</div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.4s forwards; opacity:0;">我们开始紧密相连</div>
- <div class="mt40">
- <div class="f13" style="animation: opac0-1 1s 0.5s forwards; opacity:0;" v-if="Object.keys(firstOpenDay).length"> <span class="f26 b">{{firstOpenDay.month}}</span><span class="f13"> 月 </span><span class="f26 b"> {{firstOpenDay.day}}</span><span class="f13"> 日 </span></div>
- <div class="f13" v-if="Object.keys(firstOpenDay).length" style="animation: opac0-1 1s 0.6s forwards; opacity:0;"><span class="f13">是你第</span><span class="f26 b"> 1 </span><span class="f13">次为商户完成开机</span></div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.7s forwards; opacity:0;">成功的背后</div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.8s forwards; opacity:0;">是你的辛勤付出</div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.9s forwards; opacity:0;">他们的日子方便了一点</div>
- <div class="f13 mt13" style="animation: opac0-1 1s 1s forwards; opacity:0;">你的生活也红火了一点</div>
- </div>
- </div>
- </div>
- </transition>
- <transition name="fade">
- <div class="df jcsb cfff flex-dir-col pl10" v-if="pageNum === 4">
- <div class="abs articl3">
- <div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.1s forwards; opacity:0;">白天越来越长</div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.2s forwards; opacity:0;">夜晚越来越热</div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.3s forwards; opacity:0;">却始终能看到你熟悉的步伐</div>
- </div>
- <div class="mt35">
- <div class="f13" style="animation: opac0-1 1s 0.4s forwards; opacity:0;"><span class="f13">这些天你推荐了</span><span class="f26 b"> {{achivment.AddUser}}</span><span class="f13"> 个伙伴</span></div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.5s forwards; opacity:0;"> <span class="f13">开了</span><span class="f26 b"> {{achivment.TotalPosMerchant}}</span><span class="f13"> 台机具</span></div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.6s forwards; opacity:0;"><span class="f13">交易额突破了</span><span class="f26 b"> {{totalamount}}</span><span class="f13"> 元</span></div>
- <div class="f13 mt35" style="animation: opac0-1 1s 0.7s forwards; opacity:0;">每一句你好</div>
- <div class="f13 mt13" style="animation: opac0-1 1s 0.8s forwards; opacity:0;">都是为幸福生活努力的声音</div>
- </div>
- </div><img class="abs dialog" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/dialog.png" alt="alt">
- </div>
- </transition>
- <transition name="fade">
- <div class="rank abs mt40" v-if="pageNum === 5"><img class="abs" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/rank.png" alt="alt">
- <div class="articl4 m0a df jcsb flex-dir-col">
- <div class="df jcsb aic rel">
- <div class="c999 f13">排名 / 姓名</div>
- <div class="c999 f13">数量(个)</div>
- </div>
- <div class="df jcsb aic opc0" v-for="item,index in countRank" :key="index" ref="showindex">
- <div class="df aic" style="width:30%">
- <div class="f21 c999 tc left" :class="{red: index <= 2}">{{index+1}}</div>
- <div class="f13 c333 center">{{item.realName}}</div>
- </div>
- <div class="f13 c999 right">{{item.openCount}}</div>
- </div>
- </div>
- <div class="c333 f17 abs" style="margin:5% 0 0 5%">创业帮开机量排行榜</div>
- </div>
- </transition>
- <transition name="fade">
- <div class="rank abs mt40" v-if="pageNum === 6"><img class="abs" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/rank.png" alt="alt">
- <div class="articl4 m0a df jcsb flex-dir-col">
- <div class="df jcsb aic rel">
- <div class="c999 f13">排名 / 姓名</div>
- <div class="c999 f13">金额(元)</div>
- </div>
- <div class="df jcsb aic opc0" v-for="item,index in amountRank" :key="index" ref="showindex">
- <div class="df aic" style="width:30%">
- <div class="f21 c999 tc left" :class="{red: index <= 2}">{{index+1}}</div>
- <div class="f13 c333 center">{{item.RealName}}</div>
- </div>
- <div class="f13 c999 right">{{item.Sum}}</div>
- </div>
- </div>
- <div class="c333 f17 abs" style="margin:5% 0 0 5%">创业帮交易额排行榜</div>
- </div>
- </transition>
- <transition name="fade">
- <div class="page7 ovh" v-if="pageNum === 7"><img class="page6" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/page6.png" alt="">
- <div class="df aic jcsb flex-dir-col cfff articl5 ovh">
- <div class="f13">这就是创业帮与你的故事</div>
- <div class="f13">每一场学习</div>
- <div class="f13">每一次开机</div>
- <div class="f13">每一笔收益</div>
- <div class="f13">都成就了独一无二的你</div>
- <div class="f13">试试生成独属于你的创业词条</div>
- </div>
- <button class="btn abs" @click="pageNum = 8">
- <div class="f16">开始拼贴词条</div><img src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/finger.png" alt="alt" style="width:.4533rem;margin-left:8px">
- </button>
- </div>
- </transition>
- <transition name="fade">
- <div class="choose" v-if="pageNum === 8"><img class="chooseTitle" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/chooes-title.png" alt="alt">
- <div class="df jcsb flex-dir-col wordList">
- <div class="cfff f13 word tc rel" v-for="(item,index) in wordList" @click="wrodChoose(item,index)" :class="{ active: item.checked }" v-show="item.page === curPage">{{item.text}}
- <div class="f10 abs sortIcon" v-show="item.checked">{{item.ind}}</div>
- </div>
- <div class="f10 cfff">请选择5个你熟悉或喜欢的句子,拼成一个词条</div>
- </div>
- <div class="df jcsb tool aic">
- <button class="corperBtn" @click="changePage('jian')">上一页</button>
- <button class="corperBtn" @click="changePage('add')">下一页</button>
- <button class="emputyBtn" @click="changePage('emputy')">清空</button>
- <div class="f10 cfff">当前{{curPage}}/5</div>
- </div>
- <button class="btn abs" @click="makeWordList">选择5个句子,生成关键词</button>
- </div>
- </transition>
- <transition name="fade">
- <div class="choose" v-if="pageNum === 9"><img class="chooseTitle" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/chooes-title.png" alt="alt">
- <div class="df jcsb flex-dir-col wordList" style="height:6.4rem">
- <div class="cfff f13 word tc rel" v-for="(item,index) in chooseWords" ref="rilima">{{item.text}}</div>
- </div><img class="every88 abs" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/every88.png" alt="">
- <div class="df aic abs btnbox">
- <button class="rechoosebtn" @click="rechoose">重新拼</button>
- <button class="sharebtn" @click="share">分享</button>
- </div>
- </div>
- </transition>
- <van-popup class="bgcf7f7f7" v-model="show" position="bottom" :style="{ height: '28%' }">
- <div class="sharepanel rel">
- <div class="f12 c999 tc">分享到</div>
- <van-grid class="grad" :column-num="2">
- <van-grid-item text="微信" @click="weixin">
- <template #icon>
- <svg class="icon" aria-hidden="true">
- <use xlink:href="#icon-weixin"> </use>
- </svg>
- </template>
- </van-grid-item>
- <van-grid-item text="微信朋友圈" @click="weixinfriend">
- <template #icon>
- <svg class="icon" aria-hidden="true">
- <use xlink:href="#icon-pengyouquan"></use>
- </svg>
- </template>
- </van-grid-item>
- </van-grid>
- <div class="tc mt16 cencal abs bgcfff f14 c333" @click="show = false">取消</div>
- </div>
- </van-popup>
- </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 src="./static/js/iconfont.js"></script>
- <script>
- let app = new Vue({
- el: '#app',
- data() {
- return {
- show:false,
- isPlay:true,
- musicURL:'./static/mp3/city-of-start.mp3',
- firstCome:{
- month:'01',
- day:'01'
- },
- isApp:true,
- dateArr:[],
- totalamountArr:[],
- firstOpenDay:{
- month:'01',
- day:'01',
- },
- achivment:{
- TotalPosMerchant:0,
- AddUser:0,
- },
- amountRank:[],
- countRank:[],
- startPrice:100000,
- formInfo:{
- ExpectAmount:'',
- TargetAmount:'',
- },
- pagY:'',
- pagY1:'',
- pageNum:1,
- type:'',
- curPage:1,
- chooseWords:[],
- wordList:[
- {
- text:'创业帮 成就平凡人的创业梦想',
- checked:false,
- page:1,
- ind:'',
- },
- {
- text:'外行到内行,学习是桥梁!',
- checked:false,
- page:1,
- ind:'',
- },
- {
- text:'行动比说话更重要',
- checked:false,
- page:1,
- ind:'',
- },
- {
- text:'天道酬勤',
- checked:false,
- page:1,
- ind:'',
- },
- {
- text:'这一次的拒绝就是下一次的成交',
- checked:false,
- page:1,
- ind:'',
- },
- {
- text:'每天只看目标,别老想障碍',
- checked:false,
- page:1,
- ind:'',
- },
- {
- text:'要成功,不要与马赛跑,要骑在马上,马上成功',
- checked:false,
- page:1,
- ind:'',
- },
- {
- text:'成功需要改变,用新的方法改变过去的结果',
- checked:false,
- page:1,
- ind:'',
- },
- {
- text:'幸福就是在一起,成功就是跟着走',
- checked:false,
- page:2,
- ind:'',
- },
- {
- text:'始于支付 不止支付',
- checked:false,
- page:2,
- ind:'',
- },
- {
- text:'不论顺境逆境,都可以通过我们的努力进行改变',
- checked:false,
- page:2,
- ind:'',
- },
- {
- text:'地推治百病,推荐打天下,服务定江山',
- checked:false,
- page:2,
- ind:'',
- },
- {
- text:'回避现实的人终将面对现实',
- checked:false,
- page:2,
- ind:'',
- },
- {
- text:'每一次成功都源于勇敢的开始',
- checked:false,
- page:2,
- ind:'',
- },
- {
- text:'弱者用泪水安慰自己,强者用汗水磨练自己',
- checked:false,
- page:2,
- ind:'',
- },
- {
- text:'可以失败,不可以失志',
- checked:false,
- page:2,
- ind:'',
- },
- {
- text:'没有天生的信心,只有不断培养的信心',
- checked:false,
- page:3,
- ind:'',
- },
- {
- text:'未曾失败的人恐怕也未曾成功过',
- checked:false,
- page:3,
- ind:'',
- },
- {
- text:'吃得苦中苦,明天开路虎',
- checked:false,
- page:3,
- ind:'',
- },
- {
- text:'今天睡地板,明天当老板',
- checked:false,
- page:3,
- ind:'',
- },
- {
- text:'2022大干创业帮',
- checked:false,
- page:3,
- ind:'',
- },
- {
- text:'不要等待机会,要去创造机会',
- checked:false,
- page:3,
- ind:'',
- },
- {
- text:'与成功的人为伍',
- checked:false,
- page:3,
- ind:'',
- },
- {
- text:'每一份努力的背后必有加倍的赏赐',
- checked:false,
- page:3,
- ind:'',
- },
- {
- text:'人之所以能是相信能',
- checked:false,
- page:4,
- ind:'',
- },
- {
- text:'贫穷是不需要计划的,致富才要',
- checked:false,
- page:4,
- ind:'',
- },
- {
- text:'时间都是挤出来的',
- checked:false,
- page:4,
- ind:'',
- },
- {
- text:'人们能看到的只有你的成就',
- checked:false,
- page:4,
- ind:'',
- },
- {
- text:'生命只有一次,多试试',
- checked:false,
- page:4,
- ind:'',
- },
- {
- text:'图文无法穷尽,亲临始见风华',
- checked:false,
- page:4,
- ind:'',
- },
- {
- text:'摇摆和迟疑,只会让机会更少',
- checked:false,
- page:4,
- ind:'',
- },
- {
- text:'愈懂得欣赏,愈被人们欣赏',
- checked:false,
- page:4,
- ind:'',
- },
- {
- text:'只有不断前行,才能刷新新的高度',
- checked:false,
- page:5,
- ind:'',
- },
- {
- text:'这一秒不放弃,下一秒就能成功',
- checked:false,
- page:5,
- ind:'',
- },
- {
- text:'如果有梦想,不妨大胆一点',
- checked:false,
- page:5,
- ind:'',
- },
- {
- text:'心不唤物,物不至',
- checked:false,
- page:5,
- ind:'',
- },
- {
- text:'成功没有奇迹,而是有轨迹',
- checked:false,
- page:5,
- ind:'',
- },
- {
- text:'越努力越幸运',
- checked:false,
- page:5,
- ind:'',
- },
- {
- text:'开机才是硬道理',
- checked:false,
- page:5,
- ind:'',
- },
- {
- text:'学习是第一生产力',
- checked:false,
- page:5,
- ind:'',
- },
- ]
- };
- },
- created() {
- if(PublicLib.getCookieInfo('isApp') === 'true'){
- this.isApp = true;
- }else{
- this.isApp = false;
- PublicLib.putCookieInfo('userId',this.getUrlParam('Id'));
- };
- this.type = browsertype.versions.ios ? 'ios' : 'android';
- this.personalInfo();
- this.theFirstOpen(0);
- this.theFirstOpen(1);
- this.theFirstOpen(2);
- this.theFirstOpen(3);
- this.makerSortDo()
- this.makerFlowingSortDo()
- this.getMonthInfo('202003')
- this.getMonthInfo('202004')
- this.getMonthInfo('202005')
- },
- mounted(){
- this.autoPage()
- },
- updated(){
- this.$refs.showindex.forEach((item,index)=>{
- console.dir(item.style);
- item.style.animation = `opac0-1 1s ${(index+1)*.2}s forwards`
- })
- },
- computed:{
- totalamount:function(){
- let sum = 0
- return this.abs(this.totalamountArr.reduce(
- (pre, cur) => pre + cur,
- sum
- ))
- }
- },
- methods: {
- playmp3(){
- console.log(this.$refs.music)
- if(this.isPlay === false){
- this.$refs.music.play().then(()=>{this.isPlay = true})
- }else{
- this.$refs.music.pause()
- this.isPlay = false
- }
- console.log(this.isPlay)
- },
- wrodChoose(item,index){
- if(this.chooseWords.length < 5){
- item.checked = !item.checked
- if(item.checked){
- this.chooseWords.push(item)
- }else{
- let ind = this.chooseWords.findIndex((i)=> i.text == item.text)
- this.chooseWords.splice(ind,1)
- this.wordList.forEach((item)=>item.ind = '')
- }
- }
- else if(!item.checked && this.chooseWords.length === 5){
- return tips('最多只能选取5句话')
- }
- else if(item.checked && this.chooseWords.length === 5){
- item.checked = false
- let ind = this.chooseWords.findIndex((i)=> i.text == item.text)
- this.chooseWords.splice(ind,1)
- item.ind = ''
- }
- this.wordList.forEach((item)=>{
- if(this.chooseWords.findIndex((i)=>item.text === i.text) != -1){
- item.ind = this.chooseWords.findIndex((i)=>
- item.text === i.text
- ) + 1
- }
- })
- },
- makeWordList(){
- if(this.chooseWords.length === 5){
- this.pageNum = 9
- this.$nextTick().then(()=>{
- let chooseWordList = this.$refs.rilima
- chooseWordList.forEach((item,index)=>{
- if(index % 2 === 0){
- item.style.transform = 'rotate(6deg)'
- }else{
- item.style.transform = 'rotate(355deg);'
- }
- })
- })
-
- }else{
- return tips('请选择5个句子!')
- }
- },
- changePage(type){
- if(type === "add" && this.curPage < 5){
- this.curPage ++
- }else if(type === "jian" && this.curPage >= 2){
- this.curPage --
- }else if (type === 'emputy'){
- this.chooseWords = Array.from(0)
- this.wordList.forEach((item)=>{
- item.checked = false
- item.ind = ''
- })
- }
-
- },
- rechoose(){
- this.pageNum = 8
- this.chooseWords = []
- this.wordList.forEach((item)=>{
- item.checked = false
- item.ind = ''
- })
- },
- //- 截取参数函数
- 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; //返回参数值
- },
- // 金额展示处理函数(1000,423,324,322.00)
- abs (val){
- //金额转换 保留2位小数 并每隔3位用逗号分开 1,234.56
- let str = (val/1).toFixed(2) + ''
- let intSum = str.substring(0,str.indexOf(".")).replace( /\B(?=(?:\d{3})+$)/g, ',' ) //取到整数部分
- let dot = str.substring(str.length,str.indexOf(".")) //取到小数部分搜索
- let ret = intSum + dot;
- return ret;
- },
- //- 用户信息
- async personalInfo(){
- const Id = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/users/personalinfo?t='+Math.random(6),JSON.stringify({Id}));
- if(res.status === '1' && res.data.AuthDate) {
- let data = '';
- const zero = this.changedata(res.data.AuthDate,5) === '0' ? '': this.changedata(res.data.AuthDate,5);
- const month = zero + '' + this.changedata(res.data.AuthDate,6);
- const day = this.changedata(res.data.AuthDate,8) + '' + this.changedata(res.data.AuthDate,9);
- //- this.firstCome = `${month} 月 ${day} 日`;
- this.firstCome.month = month
- this.firstCome.day = day
- };
- },
- changedata(str,ind){
- let arr = str.split('');
- return arr[ind];
- },
- //- 第一次开机
- async theFirstOpen(ProductType){
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/pos/merchantinfo/mymerchant?t='+Math.random(6),JSON.stringify({PageSize:10,PageNum:1,UserId,ActiveStatus:1,ProductType,MinTrade:'',MaxTrade:'',ActTime:'',Sort:'trade'}));
- if(res.status === '1') {
- if(res.data.length){
- this.dateArr.push((new Date(res.data[0].KqRegTime)).getTime())
- this.sortDate();
- }else{
- this.firstOpenDay = {}
- }
- };
- },
- //- 机具排行榜
- async makerSortDo(){
- const res = await getRequest('api/v1/LargeDataScreen/MakerSort?t='+Math.random(6),JSON.stringify({UserId:1}));
- if(res.status === '1') {
- this.countRank = res.data
- console.log(this.countRank)
- };
- },
- //- 交易额排行榜
- async makerFlowingSortDo(){
- const res = await getRequest('api/v1/LargeDataScreen/MakerFlowingWaterSort?t='+Math.random(6),JSON.stringify({}));
- if(res.status === '1'){
- this.amountRank = res.data
- this.amountRank.map((item)=>{this.abs(item.Sum)})
- }
- },
- //- 交易额
- async getMonthInfo(month){
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/usertradedaysummary/teamperformance?t='+Math.random(6),JSON.stringify({TradeMonth:'202204',UserId}));
- if(res.status === '1') {
- this.achivment = res.data
- this.totalamountArr.push(res.data.TotalAmount)
- console.log(this.totalamountArr,'总交易额数组')
- };
- },
- sortDate(){
- this.dateArr.sort((a,b)=>a-b)
- let date = new Date( this.dateArr[0])
- //- this.firstOpenDay = `${date.getMonth() + 1} 月 ${date.getDate()} 日`
- this.firstOpenDay.month = `${date.getMonth() + 1}`
- this.firstOpenDay.day = `${date.getDate()}`
- console.log(this.firstOpenDay,'open')
- },
- backbtn(){
- PublicLib.GoBack({Level:1});
- },
- gtouchstart(e){
- this.pagY = e.changedTouches[0].clientY;
- },
- gtouchend(e){
- this.pagY1 = e.changedTouches[0].clientY;
- if((this.pagY1 - this.pagY) > 50){
- clearInterval(this.timer2)
-
- if(this.pageNum >= 2 && this.pageNum <= 9){
- this.pageNum --
- }
- };
- if((this.pagY1 - this.pagY) < -50){
- if(this.pageNum >= 1 && this.pageNum < 7){
- this.pageNum ++
- }
- };
- },
- nextPage(){
- if(this.pageNum >= 1 && this.pageNum < 8){
- this.pageNum ++
- }
- },
- joinus(){
- const UserId = PublicLib.getCookieInfo('userId');
- window.location.href = 'http://bs.kexiaoshuang.com/p/user-inviteregist-1?Id='+UserId;
- },
- share(){
- //- if(this.type === 'ios'){
- this.show = true;
- //- }else{
- //- this.backbtn();
- //- };
- },
- weixin(){
- const UserId = PublicLib.getCookieInfo('userId');
- const Url = 'http://bs.kexiaoshuang.com/p/year-report4?Id='+UserId;
- PublicLib.ShareAppMessageImage({Title:'创业帮破十亿啦!', Detail:'点击查看我的创客历程', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url});
- },
- weixinfriend(){
- const UserId = PublicLib.getCookieInfo('userId');
- const Url = 'http://bs.kexiaoshuang.com/p/year-report4?Id='+UserId;
- PublicLib.ShareTimeline({Title:'创业帮破十亿啦!', Detail:'点击查看我的创客历程', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url});
- },
- }
- });
- </script>
- </body>
- </html>
|