1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222 |
- <!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">
- <style>
- .index_current .indextitle .van-cell__value{flex:.3;}
- @keyframes scale1-11-1 {0% {transform:translateX(-50%) scale(1);}50% {transform:translateX(-50%) scale(1.2);}100% {transform:translateX(-50%) scale(1);}}
- .getset .van-cell::after{display:none;}
- .getset .van-cell{padding:.16rem 0;}
- .getset .van-cell .van-checkbox__icon--checked .van-icon{color:#333;}
- .baywindow{width: 1.6rem;position:fixed;border-radius:25px;z-index:999;}
- .baywindow img{width: 100%;}
- .baywindow .icon-logo{bottom:0;left:50%;transform:translateX(-50%);width: 1.6rem;}
- .test{background-color:blue;};
- .noticepanel {box-sizing: border-box;width: 70vw;padding: 16px 24px 24px;}
- .noticepanel img {width: 70vw !important;}
- .noticepanel .main {line-height: 1.5;}
- .noticepanel .em2 {text-indent: 2em;}
- .index-btn::-webkit-scrollbar { display: none !important;}
- .gridicon .van-grid-item__icon-wrapper{width:100%;}
- .imgrotate{animation:rotate360 5s linear infinite;z-index:-2}
- .activedia{border-radius:8px;background:transparent;overflow-y:visible;top:45%;}
- .dialogimg{width:75vw;}
- .leveup{width:100vw;}
- .dialogimg img{width:100%;}
- .dialogimg .showbtn,.dialogimg .sharebtn{flex:1;justify-content:center;}
- .width50{width:50%;}
- .eightactive{width:100vw;}
- .h5active{width:100vw;}
- .closebtn{bottom:-2.1333rem;left:50%;border-radius:50%;transform: translateX(-50%);font-size:.8rem;}
- .redbtn{left:50%;width:60vw !important; bottom:46px; transform: translateX(-50%); animation:scale1-11-1 1s linear infinite}
- .getsetdialog{border-radius:.4267rem;}
- .getsetdialog .noticepanel{width: 90vw;padding: 24px 20px;box-sizing: border-box;}
- .getsetdialog .noticepanel .snlist{height:4.5333rem}
- .getsetdialog .noticepanel .dialog-btn button{border-radius:999px;border:1px solid #999;width:45% ;height:1.0667rem}
- .getsetdialog .noticepanel .dialog-btn .left{border:1px solid #999;}
- .getsetdialog .noticepanel .dialog-btn .right{background-color:#FDD500;border:1px solid #FDD500}
- .index-notice .spcolor{color: #333;border-radius: 999px;height:.96rem;line-height:.96rem; background-color:#FFD500; }
- .index-notice .noticepanel{padding:20px;width:80vw !important;}
- .index_current .my-swipe{width:100% !important; border-radius:0 !important;}
- .van-swipe-item{padding:0 .42rem;box-sizing: border-box;}
- .van-swipe-item div{border-radius:0.213333rem;overflow: hidden !important;}
- .van-cell::after{display:none;}
- .van-share-sheet__options{justify-content:space-around !important;}
- .noticedialog .noticepanel{border-radius:.4267rem;}
- .rotatehand{transform-origin: bottom center;animation:rotate10 2s linear infinite;}
- </style>
- <style>
- /* 首页*/
- .banner .van-skeleton__title{height:3rem;border-radius:10px;}
- .banner1 .van-skeleton__title{height:5rem;border-radius:15px;}
- .indexicon{margin-top:50px;}
- .indexicon .van-skeleton__content{display:flex; justify-content:space-between;}
- .indexicon .van-skeleton__content .van-skeleton__row{display:inline-block; width:1.2rem !important; height:1.2rem; margin-top:0 !important; border-radius:50%;}
- /* 商品详情*/
- .mall-skeleton-title .van-skeleton__title{height:9rem;border-radius:15px;}
- .mall-skeleton-text .van-skeleton__title{height:3rem;border-radius:15px;}
- .mall-skeleton .van-skeleton__title{height:10rem;border-radius:15px;}
- </style>
- </head>
- <body class="pt0 pb0 ovh invited-old" style="padding-top:0;">
- <div class="index_current" id="app" v-cloak>
- <div class="baywindow op0" v-if="isme">
- <div @click.stop="goraffle">
- <canvas class="canvas pagcanvas" id="pag" style="z-index:999;bottom:0;width:100%;height:1.6rem;"></canvas>
- </div>
- </div>
- <van-skeleton title avatar :row="0" title-width="30%" round :loading="loading" style="padding:30px;"></van-skeleton>
- <van-skeleton class="banner" title :row="0" title-width="100%" :loading="loading"></van-skeleton>
- <van-skeleton class="indexicon" title :row="4" :title="false" :loading="loading"></van-skeleton>
- <van-skeleton class="indexicon" title :row="4" :title="false" :loading="loading" style="margin-top:20px;"></van-skeleton>
- <van-skeleton title :row="0" title-width="30%" round :loading="loading" style="margin-top:40px;"></van-skeleton>
- <van-skeleton class="banner1" title :row="0" title-width="100%" :loading="loading" style="margin-top:30px;"></van-skeleton>
- <div class="ovh-x" ref="wrapper2" v-if="!loading">
- <van-pull-refresh v-model="isLoading" @refresh="onRefresh('s')" style="height:100%;">
- <van-sticky @change="sticky">
- <div class="fleximg df cm bgcfff" v-if="topisshow"><img src="./static/images/logo-text.png" alt=""></div>
- </van-sticky>
- <van-cell class="indextitle">
- <template #title>
- <div class="df index_userinfo" @click="userinfobtn"><img class="userimg" :src="userphoto"><span class="username">{{username}}</span><img class="vm" src="./static/images/user-b-alliance.png" alt="" v-if="LeaderLevel === 2" style="width:1.7rem;margin:0 10px;"><img class="vm" src="./static/images/user-s-alliance.png" alt="" v-if="LeaderLevel === 1" style="width:1.7rem;margin:0 10px;"><img class="vm" src="./static/images/user-certified-warehouse.png" alt="" v-if="AuthFlag === 1" style="width:1.7rem;"></div>
- </template>
- <template #default>
- <div class="df index_userinfo defaultimg" @click="server">
- <div class="c333 f12">在线客服</div>
- </div>
- </template>
- </van-cell>
- <van-swipe class="my-swipe" :autoplay="1000000" indicator-color="rgba(255,255,255,.8)" v-cloak>
- <van-swipe-item v-for="item,index in banner" :key="index" @click="bannerbtn(item.Id)" v-if="item.Id === 19 && Number(nowdata) < 16">
- <div><img width="100%" :src="item.PicPath" fit="cover" lazy-load></div>
- </van-swipe-item>
- <van-swipe-item v-for="item,index in banner" :key="index" @click="bannerbtn(item.Id)" v-if="item.Id !== 19">
- <div><img width="100%" :src="item.PicPath" fit="cover" lazy-load></div>
- </van-swipe-item>
- </van-swipe>
- <div class="bb8f7f7f7 pt16"></div>
- <div class="rel" v-if="entrancelist.length>8">
- <div class="index-btn bb8f7f7f7 ovh container" style="width:100%;" ref="gridelbox">
- <div class="container1" ref="gridel" :style="'width:'+(Math.ceil(entrancelist.length / 2))*25+'%;transform:translateX(0px)'">
- <van-grid class="main-btn" :border="false" :column-num="Math.ceil(entrancelist.length / 2)" :icon-size="20" v-cloak>
- <van-grid-item class="gridicon" v-for="item,index in entrancelist" :text="item.Title" @click="entrance(item.Url)">
- <template v-slot:icon><img :src="item.Icon"></template>
- </van-grid-item>
- </van-grid>
- </div>
- </div>
- <div class="abs df" style="height:4px;width:32px;bottom:.313333rem;left:50%;transform:translateX(-50%);background-color:#f7f7f7;"></div>
- <div class="abs" style="height:4px;width:24px;bottom:.313333rem;left:50%;transform:translateX(-50%);">
- <div class="abs bouncebottom" style="width:12px;height:4px;background-color:#FFD500;transform:translateX(-50%);" ref="opbox"></div>
- </div>
- </div>
- <van-grid class="main-btn bb8f7f7f7" :border="false" :column-num="4" :icon-size="20" v-cloak v-else>
- <van-grid-item class="gridicon" v-for="item,index in entrancelist" :text="item.Title" @click="entrance(item.Url)">
- <template v-slot:icon><img :src="item.Icon"></template>
- </van-grid-item>
- </van-grid>
- <div class="block-padding" v-cloak @click="achievement" style="padding-bottom:10px;">
- <div class="df"><strong class="db f16 flex1">本月计奖交易</strong></div>
- <div class="index-card bgcfff bgimg">
- <div class="title df">
- <button class="view_detail f12 bgcfff rel"> 查看详情
- <van-icon class="abs" name="arrow"></van-icon>
- </button>
- </div>
- <div class="tc detail rel">
- <div class="index-num-b f18 b">{{teamperformance}}</div>
- <div class="f12 c333">本月交易额(元)</div>
- <van-row class="pt16 pb8">
- <van-col span="12">
- <div class="index-num-b f16 b">{{addcustomer}}</div>
- <div class="f12 c333">新增创客</div>
- </van-col>
- <van-col span="12">
- <div class="index-num-b f16 b">{{merchant}}</div>
- <div class="f12 c333">激活商户</div>
- </van-col>
- </van-row><img class="abs people_bgimg" src="./static/images/index-bgimgpeople.png" alt="">
- </div>
- </div>
- </div>
- </van-pull-refresh>
- </div>
- <van-share-sheet v-model="showShare" title="立即分享给好友" :options="options" @select="onSelect"></van-share-sheet>
- <van-share-sheet v-model="showqueryShare" title="立即分享给好友" :options="options" @select="onquerycount"></van-share-sheet>
- <van-tabbar v-model="active" active-color="#333" inactive-color="#999" v-cloak v-if="tabsisshow">
- <van-tabbar-item icon="home-o">首页
- <template #icon="props"><img :src="props.active ? icon1.active : icon1.inactive"></template>
- </van-tabbar-item>
- <van-tabbar-item icon="search" @click="mall">商城
- <template #icon="props"><img :src="props.active ? icon2.active : icon2.inactive"></template>
- </van-tabbar-item>
- <van-tabbar-item icon="friends-o" @click="notice" :dot="isnotice">消息
- <template #icon="props"><img :src="props.active ? icon3.active : icon3.inactive"></template>
- </van-tabbar-item>
- <van-tabbar-item icon="setting-o" @click="user">我的
- <template #icon="props"><img :src="props.active ? icon4.active : icon4.inactive"></template>
- </van-tabbar-item>
- </van-tabbar>
- <van-popup class="noticedialog activedia index-notice activedia" v-model="dialogisshow" :close-on-click-overlay="false">
- <div class="bgcfff noticepanel"><img class="group-title abs" src="./static/images/groupup-dialog.png">
- <div class="tc f18 b c333 pt32">重要通知</div>
- <div class="f14 c333 mb pt16">创业帮8月线上招商会邀请函</div>
- <div class="f14 c333 mb em2 pt16">面对支付行业重新洗牌带来的巨大机遇,我们选择迎接变化,享受变化。</div>
- <div class="main em2 f14 c333 pt6">8月6号晚20:00创业帮创客学堂崔老师同优秀的各地区市场领导人一起分享</div>
- <div class="main em2 f14 c333 pt6">创业帮究竟有什么样的魅力?</div>
- <div class="main em2 f14 c333 pt6">支付行业究竟有何魅力?</div>
- <div class="main em2 f14 c333 pt6">面对支付行业竞争,如何破局,快速起量?敬请期待!</div>
- <div class="spcolor tc mt32 f14" @click="monthmeet">点击查看详情加入会议</div>
- </div>
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="dialogisshow = false"></van-icon>
- </van-popup>
- <van-popup class="noticedialog activedia index-notice" v-model="noticedialog" :close-on-click-overlay="false">
- <div class="bgcfff noticepanel"><img class="group-title abs" src="./static/images/groupup-dialog.png">
- <div class="tc f18 b c333 pt32">重要通知</div>
- <div class=" f14 c333 mb pt16">好消息!公司总部决定,加强培训以助力市场!!</div>
- <div class="main em2 f14 c333 pt6">本月除周一晨会,线上领导人会议等。将于8月12-14日在内蒙古呼和浩特市举办第一期地区菁英班,以助力当地及周边各省市场。</div>
- <div class="main em2 f14 c333">周边各省及在内蒙古有伙伴的各地领导人,皆可报名,现外省学员名额已不多。外省学员报名截止日期8月10日24时。</div>
- <div class="spcolor tc mt32 f14" @click="goqr">点击前往报名</div>
- </div>
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="noticedialog = false"> </van-icon>
- </van-popup>
- <van-popup class="noticedialog activedia index-notice" v-model="Mondaydialog" :close-on-click-overlay="false">
- <div class="bgcfff noticepanel"><img class="group-title abs" src="./static/images/groupup-dialog.png">
- <div class="tc f18 b c333 pt32">重要通知</div>
- <div class="f14 c333 mb pt16">8月15日创业帮每周一线上晨会邀您参与</div>
- <div class="f14 c333 mb pt16 em2">成功八部第五步&第六步讲解与跟进</div>
- <div class="main em2 f14 c333 pt6">好的思维会变成好的想法,好的想法会变成好的行动,积极的行为会成为积极的习惯,积极正面的习惯会往往就会决定人生的命运。</div>
- <div class="main em2 f14 c333">21世纪最广阔的资源是人脉,支付行业不是产品买卖行业而是人与人的事业,POS机只是产品工具如何有效裂变身边的资源看本次晨会……</div>
- <div class="spcolor tc mt32 f14" @click="goservicedetail">点击查看详情加入会议</div>
- </div>
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="Mondaydialog = false"></van-icon>
- </van-popup>
- <van-popup class="activedia" v-model="leaderdialog" :close-on-click-overlay="false">
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="leaderdialog = false"></van-icon>
- <div class="dialogimg rel eightactive" @click="miniW(10)"><img src="https://ap.kexiaoshuang.com/skin/app/default/static/images/leader-index.png?id=1" alt=""></div>
- </van-popup>
- <van-popup class="noticedialog getsetdialog" v-model="getsetdialog" :close-on-click-overlay="false">
- <div class="bgcfff noticepanel" v-if="getsetsnlist.SnList">
- <div class="tc f16 b c333 mb">预发货确认</div>
- <div class=" f14 c333 mb pt16">是否确认已收到来自:<span class="f14 c333" v-for="item,index in getsetsnlist.StoreList" :key="item.StoreId">{{item.StoreName}}{{index !== getsetsnlist.StoreList.length - 1 ? '、':''}}</span><span class="f14 c333">的{{getsetsnlist.SnList.length}}台预发货机具</span></div>
- <div class="snlist mt8 getset" style="overflow-x: hidden;overflow-y:scroll;">
- <van-cell class="f14 c333" @click="toggleAll(checked)">
- <template #icon>
- <van-checkbox class="mr16" checked-color="#FFD500" v-model="checked"></van-checkbox>
- </template>
- <template #title>
- <div>全选</div>
- </template>
- </van-cell>
- <van-checkbox-group class="getset" v-model="result" ref="checkboxGroup">
- <van-cell-group>
- <van-cell class="f14 c333" v-for="item,index in getsetsnlist.SnList" :key="index" @click="toggle(index)">
- <template #icon>
- <van-checkbox class="mr16" :name="item" ref="checkboxes" checked-color="#FFD500"></van-checkbox>
- </template>
- <template #title>
- <div>SN:{{item.SnNo}}</div>
- </template>
- </van-cell>
- </van-cell-group>
- </van-checkbox-group>
- </div>
- <div class="f12 c999 tc mt8">*注:请仔细核对SN后确认,确认接收机具后若出现机具丢失等问题,则需承担相应损失。</div>
- <div class="dialog-btn df jcsb mt20">
- <button class="left c333 f14 bgcfff" @click="getsetagreen(2)">拒绝</button>
- <button class="right c333 f14 bgcfff" @click="getsetagreen(1)">同意</button>
- </div>
- </div>
- </van-popup>
- <van-popup class="activedia" v-model="islevel" :close-on-click-overlay="false">
- <van-icon class="abs closebtn" name="./static/images/close-level.png" style="bottom:-1.1333rem;" color="#666" @click="islevel = false"></van-icon>
- <div class="dialogimg rel leveup"><img class="imgrotate abs" src="./static/images/light.png" alt=""><img :src="levelup[nowlevel - 2]" alt=""></div>
- </van-popup>
- <van-popup class="activedia" v-model="eightactive" :close-on-click-overlay="false">
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="eightactive = false"></van-icon>
- <div class="dialogimg rel eightactive" @click="goactive"><img src="https://ap.kexiaoshuang.com/skin/app/default/static/images/88active.png?id=1" alt=""></div>
- </van-popup>
- <van-popup class="activedia" v-model="eightactivetime" :close-on-click-overlay="false">
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="eightactivetime = false"></van-icon>
- <div class="dialogimg rel eightactive" @click="goactive"><img src="https://ap.kexiaoshuang.com/skin/app/default/static/images/88activetime.png?id=1" alt=""></div>
- </van-popup>
- <van-popup class="activedia" v-model="recommendactive" :close-on-click-overlay="false">
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="recommendactive = false"></van-icon>
- <div class="dialogimg rel eightactive" @click="gorecommendactive"><img src="https://ap.kexiaoshuang.com/skin/app/default/static/images/recommend-dialog.png" alt=""></div>
- </van-popup>
- <van-popup class="activedia" v-model="H5ac" :close-on-click-overlay="false">
- <div class="panel">
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="H5ac = false"></van-icon>
- <div class="dialogimg rel eightactive h5active"><img src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/redpackage/redpackage.png?t=1" alt="">
- <div class="redbtn abs" @click="raffle"><img src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/redpackage/redpackage-btn.png" alt=""></div>
- </div>
- </div>
- </van-popup>
- <van-popup class="groupupdialog" v-model="groupupdialog" :close-on-click-overlay="false">
- <div class="panel">
- <van-icon class="abs closebtn" name="./static/images/close-level.png" color="#666" @click="groupupdialog = false"></van-icon><img class="group-title abs" src="./static/images/groupup-dialog.png">
- <div class="bgcfff borderr8 c333">
- <div class="f16 mb">8月11日功能更新公告</div>
- <div class="f14 mt8" style="line-height:1.5;">为了更好的帮助创客展业,提升数据稳定性,创业帮于8月11日正式更新,详情如下:</div>
- <div class="f14 b mt20">【 功能新增 】</div>
- <div class="df jcsb mt8 aic">
- <div class="f14">分仓申请补货体系</div>
- <div class="f12 spcolor" @click="miniW(1)">查看详情</div>
- </div>
- <div class="f14 b mt20">【 功能优化 】</div>
- <div class="f14 mt12">部分UI升级</div>
- </div>
- </div>
- </van-popup>
- </div>
- <script src="./static/js/libpag.js"></script>
- <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>
- function bouncefn(){
- setTimeout(() => {
- const container = document.querySelector('.container');
- const ul = document.querySelector('.container1');
- const btl = document.querySelector('.bouncebottom');
- let isPointerdown = false,
- maxY = 0,
- minY = container.offsetWidth - ul.offsetWidth,
- lastY = 0,
- firstY = 0,
- diffY = 0,
- translateY = 0,
- friction = 0.98,
- positionY = 0,
- rafId = 0;
- container.addEventListener('touchstart', function (e) {
- // 如果是鼠标点击,只响应左键
- if (e.pointerType === 'mouse' && e.button !== 0) {
- return;
- }
- //- this.setPointerCapture(e.pointerId);
- cancelAnimationFrame(rafId);
- isPointerdown = true;
- lastY = e.changedTouches[0].clientX;
- firstY = e.changedTouches[0].clientX;
- diffY = 0;
- });
- container.addEventListener('touchmove', function (e) {
- if (isPointerdown) {
- diffY = e.changedTouches[0].clientX - lastY;
- lastY = e.changedTouches[0].clientX;
- let stepY = diffY;
- if (translateY > maxY || translateY < minY) {
- stepY *= 0.5;
- }
- e.preventDefault();//阻止触摸时页面的滚动,缩放
- //- if(diffY)
- translateY += stepY;
- ul.style.transform = 'translate3d('+ translateY + 'px,0 , 0)';
- //- if(translateY<0){
- let left = Math.abs(translateY / ul.clientWidth) * 500
- if(left > 100){left = 100 };
- if(translateY > 0){left = 0 };
- btl.style.left = `${left}%`;
- //- }
- }
- });
- container.addEventListener('touchend', function (e) {
- if(firstY === e.changedTouches[0].clientX)return;
- if (isPointerdown) {
- isPointerdown = false;
- const obj = {
- from: translateY
- }
- if (translateY < maxY && translateY > minY) {
- getPositionY(diffY);
- obj.to = positionY;
- let distanceY = Math.abs(positionY - translateY);
- obj.duration = Math.max(400, distanceY);
- } else {
- obj.duration = 400;
- if (translateY > maxY) {
- obj.to = maxY
- } else if (translateY < minY) {
- obj.to = minY;
- }else{
- obj.to = 0;
- }
- }
- raf(obj);
- }
- });
- container.addEventListener('pointercancel', function (e) {
- if (isPointerdown) {
- //- isPointerdown = false;
- }
- });
-
- function getPositionY(speed) {
- let _speed = speed, bounceY;
- positionY = translateY;
- while (Math.abs(_speed) > 1) {
- _speed *= friction;
- positionY += _speed;
- }
- if (positionY > maxY) {
- bounceY = (positionY - maxY) * 0.1;
- positionY = maxY + Math.min(bounceY, 80);
- } else if (positionY < minY) {
- bounceY = (minY - positionY) * 0.1;
- positionY = minY - Math.min(bounceY, 80);
- }
- }
- function easeOut(from, to, time, duration) {
- const change = to - from;
- const t = time / duration;
- return -change * t * (t - 2) + from;
- }
- function raf(obj) {
- let start;
- let count = 0;
- function step(timestamp) {
- if (start === undefined) start = timestamp;
- let time = timestamp - start;
- if (time > obj.duration) {
- time = obj.duration;
- count++;
- }
- //- if(translateY<0&&translateY>container.clientWidth - ul.clientWidth){
- let left = Math.abs(translateY / ul.clientWidth) * 500
- if(left > 100){left = 100 };
- if(translateY > 0){left = 0 };
- btl.style.left = `${left}%`;
- //- }
- translateY = easeOut(obj.from, obj.to, time, obj.duration);
- ul.style.transform = 'translate3d('+ translateY + 'px,0 , 0)';
- if (count <= 1) {
- rafId = window.requestAnimationFrame(step);
- } else {
- if (translateY > maxY || translateY < minY) {
- const obj = {
- from: translateY,
- duration: 400
- }
- if (translateY > maxY) {
- obj.to = maxY
- } else if (translateY < minY) {
- obj.to = minY;
- }
- raf(obj);
- }
- }
- }
- rafId = window.requestAnimationFrame(step);
- }
- },500);
- };
-
- var overscroll = function(el)
- {
- el.addEventListener('touchstart', function() {
- var top = el.scrollTop ,totalScroll = el.scrollHeight ,currentScroll = top + el.offsetHeight;
- if(top === 0) {
- el.scrollTop = 1;
- }else if(currentScroll === totalScroll) {
- el.scrollTop = top - 1;
- } });
- el.addEventListener('touchmove', function(evt) {
- if(el.offsetHeight < el.scrollHeight) evt._isScroller = true; });}
- overscroll(document.querySelector('.scroll'));document.body.addEventListener('touchmove', function(evt) { if(!evt._isScroller) { evt.preventDefault(); }});
- </script>
- <script>
- function baywindow(){
- var flag = 0; //标记是拖曳还是点击
- var oDiv = document.querySelector('.baywindow');
- var disX,disY,moveX,moveY,L,T,starX,starY,starXEnd,starYEnd,endX,timer;
- var elwidth = oDiv.offsetWidth;
- oDiv.style.left = PublicLib.getCookieInfo('baywindowX') ? PublicLib.getCookieInfo('baywindowX') : `${document.documentElement.clientWidth - elwidth - 10}px`;
- oDiv.style.top = PublicLib.getCookieInfo('baywindowY') ? PublicLib.getCookieInfo('baywindowY') : `${document.documentElement.clientHeight - (document.documentElement.clientHeight / 3)}px`;
- oDiv.className = 'baywindow op70'
- oDiv.addEventListener('touchstart',function(e){
- if(timer){
- clearTimeout(timer);
- };
- oDiv.className = 'baywindow'
- flag = 0;
- disX = e.touches[0].clientX - oDiv.offsetLeft;
- disY = e.touches[0].clientY - oDiv.offsetTop;
- //手指按下时的坐标
- starX = e.touches[0].clientX;
- starY = e.touches[0].clientY;
- });
-
- oDiv.addEventListener('touchmove',function(e){
- e.preventDefault();//阻止触摸时页面的滚动,缩放
- flag = 1;
- L = e.touches[0].clientX - disX ;
- T = e.touches[0].clientY - disY ;
- //移动时 当前位置与起始位置之间的差值
- starXEnd = e.touches[0].clientX - starX;
- starYEnd = e.touches[0].clientY - starY;
- if(L<0){//限制拖拽的X范围,不能拖出屏幕
- L = 0;
- }else if(L > document.documentElement.clientWidth - oDiv.offsetWidth){
- L=document.documentElement.clientWidth - oDiv.offsetWidth;
- }
- if(T<0){//限制拖拽的Y范围,不能拖出屏幕
- T=0;
- }else if(T>document.documentElement.clientHeight - oDiv.offsetHeight){
- T = document.documentElement.clientHeight - oDiv.offsetHeight;
- }
- moveX = L + 'px';
- moveY = Math.floor(T) + 'px';
- endX = L;
- oDiv.style.left = moveX;
- oDiv.style.top = moveY;
- });
- oDiv.addEventListener('touchend',function(e){
- if(endX < (document.documentElement.clientWidth - elwidth) /2){
- oDiv.style.left = '2px';
- }else{
- oDiv.style.left = `${document.documentElement.clientWidth - elwidth - 2}px`;
- };
- setTimeout(()=>{
- PublicLib.putCookieInfo('baywindowY', oDiv.style.top);
- PublicLib.putCookieInfo('baywindowX', oDiv.style.left);
- },100);
- timer = setTimeout(()=>{
- oDiv.className = 'baywindow op50';
- },2000)
- });
- }
- </script>
- <script src="./static/js/iconfont.js"></script>
- <script>
- function OnStart(){
- app.getsuerinfo();
- app.getteamachievement();
- app.getheadline();
- app.verificationrealauth();
- app.getsetfn();
- //- app.onRefresh();
- PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
- PublicLib.SetStatusBarStyle({type:'default', isShow:1});
- };
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
- //- PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
- //- PublicLib.SetStatusBarStyle({type:'default', isShow:1});
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- recommendactive:false,
- dialogisshow:false,
- AuthFlag:0, //1.是 0.否
- LeaderLevel:0, //0.无 1、小盟主 2、大盟主
- Mondaydialog:false,
- leaderdialog:false,
- isme:true,
- showqueryShare:false,
- showShare: false,
- options: [
- { name: '微信', icon: 'wechat' },
- { name: '微信朋友圈', icon: 'wechat-moments' },
- ],
- eightactivetime:false,
- checked:false,
- result:[],
- getsetdialog:false,
- H5ac:false,
- noticedialog:false,
- queryshow:false,
- groupupdialog:false,
- eightactive:false,
- nowlevel:0,
- islevel:false,
- loading:true,
- //骨架屏形状
- isLoading:false,
- topisshow:false,
- realauth:false,
- active: 0,
- username:'',
- rankgrade:1,
- userphoto:'',
- show:false,
- banner: [
- ],
- toutiao: [
- ],
- icon1: {
- active: './static/images/tab-icon1-active1@3x.png',
- inactive: './static/images/tab-icon1-no@3x.png',
- },
- icon2: {
- active: './static/images/tab-icon2-active1@3x.png',
- inactive: './static/images/tab-icon2-no@3x.png',
- },
- icon3: {
- active: './static/images/tab-icon3-active1@3x.png',
- inactive: './static/images/tab-icon3-no@3x.png',
- },
- icon4: {
- active: './static/images/tab-icon4-active1@3x.png',
- inactive: './static/images/tab-icon4-no@3x.png',
- },
- teamperformance: '0',
- addcustomer:'0',
- merchant:'0',
- grade:[
- './static/images/grade-k1.png',
- './static/images/grade-k2.png',
- './static/images/grade-k3.png',
- './static/images/grade-k4.png',
- './static/images/grade-k5.png',
- './static/images/grade-k6.png',
- './static/images/grade-k7.png',
- './static/images/grade-k8.png',
- './static/images/grade-k9.png',
- ],
- levelup:[
- './static/images/K2.png',
- './static/images/K3.png',
- './static/images/K4.png',
- './static/images/K5.png',
- './static/images/K6.png',
- './static/images/K7.png',
- './static/images/K8.png',
- './static/images/K9.png',
- ],
- entrancelist:[
- ],
- tabsisshow:false,
- warehouse:[],
- queryurl:'https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=Mzg5MDc4ODY1NQ==&scene=124#wechat_redirect',
- kdburl:'https://pay.kdb-tj.com/h5merchant/pages/login-account/index',
- pagX:0,
- currentleft:0,
- currentop:0,
- browsernum:'',
- nowdata:new Date().getDate(),
- getsetsnlist:{
- },
- isSpecial:false,
- };
- },
- created() {
- this.tabsisshow = bottomtabisshow;
- this.onRefresh();
- PublicLib.putCookieInfo('dialogistrue','')
- this.browsernum = PublicLib.GetAppVersion();
- //- if(PublicLib.getCookieInfo('userId') === '14' || PublicLib.GetAppVersion() === '1.5.0'){
- //- this.isme = true;
- //- };
- },
- mounted(){
- },
- beforeUpdate(){
- this.$nextTick(() => {
- this.$refs.wrapper2.style.height = `${document.documentElement.clientHeight}px`;
- });
- },
- watch:{
- loading:async function(){
- this.pageffect('./static/pag/index-redpackage.pag');
- //- 版本升级弹窗
- if(!this.isSpecial){
- await this.groupupfn();
- //- 预发货
- await this.getsetfn();
- //- 盟主体系弹窗
- //- await this.leaderfn();
- //- 88奖励活动倒计时
- await this.eightactivefntime();
- //- 88奖励活动
- await this.eightactivefn();
- //- 6奖励活动
- await this.recommendactivefn();
- //- 升级弹窗
- await this.islevelfn();
- //- h5活动
- await this.h5activefn();
- //- 菁英班弹窗
- await this.noticefn();
- //- 月初启动会
- await this.monthmeetfn();
- //- 周一晨会
- await this.Mondaydialogfn();
- }else{
- //- 预发货
- await this.getsetfn();
- //- 88奖励活动倒计时
- await this.eightactivefntime();
- //- 88奖励活动
- await this.eightactivefn();
- //- 升级弹窗
- await this.islevelfn();
- };
- //- 页面入口挂载左右滑动效果
- bouncefn();
- baywindow();
- },
- },
- computed:{
- isnotice:function(){
- return PublicLib.getCookieInfo('noticeiscount') !== "";
- }
- },
- methods: {
- //- 周一晨会通知弹窗
- Mondaydialogfn() {
- const nowdate = new Date().getDate();
- const nowdate2 = new Date().getDay();
- let num = PublicLib.getCookieInfo('noticeisdialogactive') ? Number(PublicLib.getCookieInfo('noticeisdialogactive')) : 0;
- // if(PublicLib.getCookieInfo('dialogistrue') !== 'true' && PublicLib.getCookieInfo('noticeabout') !== 'false'){
- if (PublicLib.getCookieInfo('dialogistrue') !== 'true' && PublicLib.getCookieInfo('Mondaydialog') !== String(nowdate) && (nowdate2 === 0 || nowdate2 === 6)) {
- // if (PublicLib.getCookieInfo('dialogistrue') !== 'true') {
- if (num <= 1) {
- PublicLib.putCookieInfo('dialogistrue', 'true');
- num++;
- this.Mondaydialog = true;
- PublicLib.putCookieInfo('noticeisdialogactive', num);
- } else {
- PublicLib.putCookieInfo('Mondaydialog', nowdate);
- PublicLib.putCookieInfo('noticeisdialogactive', 0);
- };
- };
- },
- //- 盟主弹窗(一天一次)
- leaderfn() {
- const nowdate = new Date().getDate();
- if (PublicLib.getCookieInfo('dialogistrue') !== 'true' && PublicLib.getCookieInfo('leaderdialog') !== String(nowdate)) {
- // if (PublicLib.getCookieInfo('dialogistrue') !== 'true') {
- PublicLib.putCookieInfo('dialogistrue', 'true');
- PublicLib.putCookieInfo('leaderdialog', nowdate);
- this.leaderdialog = true;
- };
- },
- goraffle(){
- PublicLib.Goto({Url:'active-raffle'});
- },
- onSelect(option){
- if(option.name === '微信'){
- PublicLib.ShareAppMessageImage({Title:'开店宝商家入驻', Detail:'开店宝新增商家后台自助管理', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url:this.kdburl});
- }else{
- PublicLib.ShareTimelineImage({Title:'开店宝商家入驻', Detail:'开店宝新增商家后台自助管理', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url:this.kdburl});
- }
- },
- onquerycount(option){
- if(option.name === '微信'){
- PublicLib.ShareAppMessageImage({Title:'创业帮商户查询达标奖', Detail:'关注公众号点击底部菜单查询押金', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url:this.queryurl});
- }else{
- PublicLib.ShareTimelineImage({Title:'创业帮商户查询达标奖', Detail:'关注公众号点击底部菜单查询押金', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url:this.queryurl});
- }
- },
- goservicedetail(){
- PublicLib.putCookieInfo('noticeType', '系统消息');
- PublicLib.putCookieInfo('noticeArticleDetail', 27);
- PublicLib.Goto({ Url: 'notice-detail' });
- },
- monthmeet(){
- PublicLib.putCookieInfo('noticeType', '系统消息');
- PublicLib.putCookieInfo('noticeArticleDetail', 25);
- PublicLib.Goto({ Url: 'notice-detail' });
- },
- goqr(){
- PublicLib.putCookieInfo('malldetailId',26);
- PublicLib.Goto({Url:'mall-detail'});
- },
- gorecommendactive(){
- PublicLib.Goto({ Url: 'new-pag2' });
- },
- miniW(type){
- if(type === 1){
- PublicLib.putCookieInfo('indexBannerId',30);
- PublicLib.Goto({Url:'welcome'});
- }else if(type === 2){
- PublicLib.putCookieInfo('indexBannerId',31);
- PublicLib.Goto({Url:'welcome'});
- }else if(type === 10){
- PublicLib.Goto({Url:'https://mp.weixin.qq.com/s?__biz=Mzg5NTY0MzUzNw==&mid=2247488743&idx=1&sn=c1dfc32865dbfb10e52014c8476223b0&chksm=c00c6e19f77be70feb9edbbeabc9bb178d9f5f0021775123b77f71facba6ae3f6ceeb1469377#rd'});
- }
- },
- raffle(){
- PublicLib.Goto({Url:'active-raffle'});
- },
- //- h5活动弹窗(一次)
- h5activefn(){
- const time = new Date().getHours();
- const nowdate = new Date().getDate();
- if(PublicLib.getCookieInfo('dialogistrue') !== 'true' && PublicLib.getCookieInfo('activedate') !== String(nowdate)) {
- PublicLib.putCookieInfo('dialogistrue','true');
- this.H5ac = true;
- PublicLib.putCookieInfo('activedate',nowdate);
- };
- if(PublicLib.getCookieInfo('dialogistrue') !== 'true' && PublicLib.getCookieInfo('activedate2') !== String(nowdate) && time >= 21) {
- PublicLib.putCookieInfo('dialogistrue','true');
- this.H5ac = true;
- PublicLib.putCookieInfo('activedate2',nowdate);
- };
- },
- //- 升级弹窗(升级之后一次)
- groupupfn(){
- if(PublicLib.getCookieInfo('groupup') !== '0.1.7' && PublicLib.getCookieInfo('dialogistrue') !== 'true' && this.browsernum === '1.6.0') {
- PublicLib.putCookieInfo('dialogistrue','true');
- this.groupupdialog = true;
- PublicLib.putCookieInfo('groupup','0.1.7');
- };
- },
- //- 88奖励活动(一天两次)
- eightactivefn(){
- const nowdate = new Date().getDate();
- let num = PublicLib.getCookieInfo('eightactive') ? Number(PublicLib.getCookieInfo('eightactive')) : 0;
- if(PublicLib.getCookieInfo('isnowdate2') !== String(nowdate) && PublicLib.getCookieInfo('dialogistrue') !== 'true' && Number(nowdate) < 16) {
- if(num <= 1){
- PublicLib.putCookieInfo('dialogistrue','true');
- num++;
- this.eightactive = true;
- PublicLib.putCookieInfo('eightactive',num);
- PublicLib.putCookieInfo('isnowdate2',0);
- }else{
- PublicLib.putCookieInfo('isnowdate2',nowdate);
- PublicLib.putCookieInfo('eightactive',0);
- };
- };
- },
- //- 66奖励活动(一天一次)
- recommendactivefn(){
- const nowdate = new Date().getDate();
- if(PublicLib.getCookieInfo('recommendactive') !== String(nowdate) && PublicLib.getCookieInfo('dialogistrue') !== 'true' && Number(nowdate) < 8) {
- PublicLib.putCookieInfo('dialogistrue','true');
- this.recommendactive = true;
- PublicLib.putCookieInfo('recommendactive',nowdate);
- };
- },
- //- 88奖励活动倒计时(一天两次)
- eightactivefntime(){
- const nowdate = new Date().getDate();
- let num = PublicLib.getCookieInfo('eightactivetime') ? Number(PublicLib.getCookieInfo('eightactivetime')) : 0;
- if(PublicLib.getCookieInfo('isnowdatetime') !== String(nowdate) && PublicLib.getCookieInfo('dialogistrue') !== 'true' && Number(nowdate) < 16 && Number(nowdate) > 12) {
- if(num <= 1){
- PublicLib.putCookieInfo('dialogistrue','true');
- num++;
- this.eightactivetime = true;
- PublicLib.putCookieInfo('eightactivetime',num);
- PublicLib.putCookieInfo('isnowdatetime',0);
- }else{
- PublicLib.putCookieInfo('isnowdatetime',nowdate);
- PublicLib.putCookieInfo('eightactivetime',0);
- };
- };
- },
- //- 启动会(按需)
- monthmeetfn(){
- const time = new Date('2022/8/6 20:00:00').getTime();
- const nowtime = new Date().getTime();
- const nowdate = new Date().getDate();
- if(PublicLib.getCookieInfo('dialogistrue') !== 'true' && PublicLib.getCookieInfo('dialogmeet') !== String(nowdate) && nowtime < time) {
- PublicLib.putCookieInfo('dialogistrue','true');
- this.dialogisshow = true;
- PublicLib.putCookieInfo('dialogmeet',nowdate);
- };
- },
- //- 升级弹窗(升级一月一次)
- async islevelfn(){
- const nowmouth = new Date().getMonth() + 1;
- if(PublicLib.getCookieInfo('thismonth') !== String(nowmouth) && PublicLib.getCookieInfo('dialogistrue') !== 'true'){
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/users/checkuserlevel?t='+Math.random(6),JSON.stringify({UserId}));
- if(res.status === '1') {
- PublicLib.putCookieInfo('dialogistrue','true');
- this.nowlevel = res.data.AfterLevel;
- this.islevel = true;
- PublicLib.putCookieInfo('thismonth',nowmouth);
- };
- };
- },
- //- 菁英班弹窗
- noticefn() {
- const nowdate = new Date().getDate();
- const time = new Date('2022/8/10 23:59:55').getTime();
- const nowtime = new Date().getTime();
- // if(PublicLib.getCookieInfo('dialogistrue') !== 'true' && PublicLib.getCookieInfo('noticeabout') !== 'false'){
- if (PublicLib.getCookieInfo('dialogistrue') !== 'true' && PublicLib.getCookieInfo('noticeisdialog33') !== String(nowdate) && nowtime < time) {
- // if (PublicLib.getCookieInfo('dialogistrue') !== 'true') {
- PublicLib.putCookieInfo('dialogistrue', 'true');
- PublicLib.putCookieInfo('noticeisdialog33', nowdate);
- this.noticedialog = true;
- };
- },
- //- 去资质
- goquali(){
- PublicLib.Goto({Url:'qualifications'});
- },
- //- 吸顶状态
- sticky(status){
- if(PublicLib.getCookieInfo('userId') === '598'){
- this.topisshow = status
- };
- },
- lookdetail(){
- PublicLib.Goto({Url:'year-report4'});
- },
- //- 押金查询分享
- weixin2(){
- PublicLib.ShareAppMessageImage({Title:'创业帮商户查询达标奖', Detail:'关注公众号点击底部菜单查询押金', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url:this.queryurl});
- },
- weixinfriend2(){
- PublicLib.ShareTimelineImage({Title:'创业帮商户查询达标奖', Detail:'关注公众号点击底部菜单查询押金', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url:this.queryurl});
- },
- //- 开店宝分享微信
- weixin(){
- PublicLib.ShareAppMessageImage({Title:'开店宝商家入驻', Detail:'开店宝新增商家后台自助管理', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url:this.kdburl});
- },
- //- 分享微信朋友圈
- weixinfriend(){
- PublicLib.ShareTimelineImage({Title:'开店宝商家入驻', Detail:'开店宝新增商家后台自助管理', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url:this.kdburl});
- },
- //- 更新跳转URL
- async onRefresh(type = ''){
- //- await this.getsuerinfo();
- //- await this.getteamachievement();
- //- await this.gettopbanner();
- //- await this.getheadline();
- //- await this.verificationrealauth();
- this.getsuerinfo();
- this.getteamachievement();
- this.getheadline();
- this.verificationrealauth();
- await this.getwarehouselist();
- if(type === ''){
- await this.getquickentrance();
- }else{
- await this.getsetfn();
- };
- this.isLoading = false;
- //- 骨架屏隐藏
- this.loading = false;
- },
- //- 获取用户个人信息
- async getsuerinfo(){
- const Id = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/users/personalinfo?t='+Math.random(6),JSON.stringify({Id}));
- if(res.status === '1') {
- this.username = res.data.RealName;
- this.rankgrade = res.data.UserLevel;
- this.userphoto = res.data.HeadPhoto;
- };
- if(res.data.ParentNav.indexOf(',135158') > -1){
- this.isSpecial = true;
- };
- this.gettopbanner();
- //- 储存用户信息
- PublicLib.putCookieInfo('userInfo',JSON.stringify(res.data));
- },
- //- 获取计奖交易
- async getteamachievement(){
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/usertradedaysummary/thismonth?t='+Math.random(6),JSON.stringify({UserId}));
- if(res.status === '1') {
- if(UserId === '1'){
- const data = 5
- let day = new Date().getDate();
- if(day === 1){
- day = 30;
- };
- day = day > data ? day : data;
- //- res.data.DirectTradeAmt = res.data.DirectTradeAmt + 53218560.58;
- res.data.DirectTradeAmt = res.data.DirectTradeAmt + 53218560.58 + ((day - data) * 10000000);
- };
- this.teamperformance = abs(res.data.DirectTradeAmt.toFixed(2));
- this.merchant = res.data.DirectDebitCapNum;
- this.addcustomer = res.data.AddCount;
- };
- },
- //- 获取快捷入口列表
- async getquickentrance(){
- const res = await getRequest('api/v1/indexiconlist/list?t='+Math.random(6),JSON.stringify({PageSize:8,PageNum:1}));
- if(res.status === '1') {
- //- TODO:动态生成入口
- if(PublicLib.getCookieInfo('userId') === '0'){
- this.entrancelist = [
- {Icon:'./static/images/main-btn1@3x.png',Title:'创业帮产品',Url:'product-center'},
- //- {Icon:'./static/images/main-btn2@3x.png',Title:'特训营',Url:'trainingCamp'},
- {Icon:'./static/images/main-btn5@3x.png',Title:'我的创客',Url:'creater-list'},
- {Icon:'./static/images/main-btn6@3x.png',Title:'我的商户',Url:'merchant-list'},
- {Icon:'./static/images/main-btn4@3x.png',Title:'邀请好友',Url:'invite-frend'},
- //- {Icon:'./static/images/main-btn10@3x.png',Title:'开店宝开户',Url:'user-feedback'},
- {Icon:'./static/images/main-btn15@3x.png',Title:'产品资质',Url:'qualifications'},
- {Icon:'./static/images/main-btn8@3x.png',Title:'商户验证',Url:'merchant-verification'},
- {Icon:'./static/images/main-btn16@3x.png',Title:'押金查询',Url:'querycount'},
- //- {Icon:'./static/images/main-btn3@3x.png',Title:'51海报',Url:'year-report4'},
- //- {Icon:'./static/images/main-btn13@3x.png',Title:'售后换新',Url:'product-aftersale-1'},
- //- {Icon:'./static/images/main-btn13@3x.png',Title:'升级测试',Url:'levelup'},
- {Icon:'./static/images/main-btn14@3x.png',Title:'仓库管理',Url:'warehouse-management'},
- {Icon:'./static/images/main-btn7@3x.png',Title:'市场活动',Url:'market-active'},
- //- {Icon:'./static/images/main-btn7@3x.png',Title:'创业帮产品',Url:'product-center'},
- //- {Icon:'./static/images/main-btn11@3x.png',Title:'10亿H5',Url:'year-report'},
- //- {Icon:'./static/images/main-btn12@3x.png',Title:'码牌',Url:'merchant-create'},
- //- {Icon:'./static/images/main-btn1@3x.png',Title:'商户创建',Url:'merchant-establish'},
- //- {Icon:'./static/images/main-btn8@3x.png',Title:'进件查询',Url:'merchant-incoming'},
- //- {Icon:'./static/images/main-btn2@3x.png',Title:'暂存箱',Url:'merchant-temporary-storage'},
- //- {Icon:'./static/images/main-btn4@3x.png',Title:'邀请好友',Url:'invite-frend'},
- ];
- }else{
- const indexbanner = [
- {Icon:'./static/images/main-btn1@3x.png',Title:'创业帮产品',Url:'product-center'},
- {Icon:'./static/images/main-btn5@3x.png',Title:'我的创客',Url:'creater-list'},
- {Icon:'./static/images/main-btn6@3x.png',Title:'我的商户',Url:'merchant-list'},
- {Icon:'./static/images/main-btn4@3x.png',Title:'邀请好友',Url:'invite-frend'},
- //- {Icon:'./static/images/main-btn10@3x.png',Title:'开店宝开户',Url:'user-feedback'},
- //- {Icon:'./static/images/main-btn12@3x.png',Title:'码牌',Url:'merchant-create'},
- {Icon:'./static/images/main-btn14@3x.png',Title:'仓库管理',Url:'warehouse-management'},
- {Icon:'./static/images/main-btn15@3x.png',Title:'产品资质',Url:'qualifications'},
- //- {Icon:'./static/images/main-btn8@3x.png',Title:'商户验证',Url:'merchant-verification'},
- {Icon:'./static/images/main-btn16@3x.png',Title:'押金查询',Url:'querycount'},
- {Icon:'./static/images/main-btn7@3x.png',Title:'市场活动',Url:'market-active'},
- ];
- indexbanner.forEach(item=>{
- if(this.warehouse.length !== 0){
- this.entrancelist.push(item);
- }else{
- if(item.Url !== 'warehouse-management'){
- this.entrancelist.push(item);
- }
- }
- });
- }
- }
- },
- //- 获取顶部banner
- async gettopbanner(){
- const res = await getRequest('api/v1/advertisment/indextop?t='+Math.random(6),JSON.stringify({PageSize:8,PageNum:1}));
- if(res.status === '1') {
- this.banner = res.data;
- };
- if(this.isSpecial){
- //- const arr = this.banner;
- this.banner = [];
- res.data.forEach(item=>{
- if(item.Id === 20 || item.Id === 25){
- this.banner.push(item);
- };
- });
- };
- },
- //- 获取创业帮头条信息
- async getheadline(){
- const res = await getRequest('api/v1/sysrechargerecord/headline?t='+Math.random(6),JSON.stringify({PageSize:8,PageNum:1}));
- if(res.status === '1') {
- this.toutiao = res.data;
- };
- },
- //- 跳转特训营
- trainingCamp(){
- PublicLib.Goto({Url:'trainingCamp'});
- },
- //- 跳转商城
- mall(){
- PublicLib.Goto({Url:'mall'});
- },
- //- 跳转消息
- notice(){
- PublicLib.Goto({Url:'notice-center'});
- },
- //- 跳转我的
- user(){
- PublicLib.Goto({Url:'user-center'});
- },
- async verificationrealauth(){
- const Id = PublicLib.getCookieInfo('userId');
- const userinfo = await getRequest('api/v1/users/personalinfo?t='+Math.random(6),JSON.stringify({Id}));
- //- 是否实名认证完毕
- if(userinfo.data.AuthFlag !== 1) {
- this.realauth = true;
- }else{
- this.realauth = false;
- };
- },
- entrance(Url){
- PublicLib.putCookieInfo('isApp','true');
- if(Url === 'user-feedback'){
- return this.showShare = true;
- //- return this.show = true;
- };
- if(Url === 'querycount'){
- return this.showqueryShare = true;
- //- return this.queryshow = true;
- };
- if(this.realauth){
- PublicLib.ShowDialog({
- Title:'暂未实名认证',
- Message:'是否去实名认证?',
- ConfirmText:'去实名',
- CancelText:'暂不实名',
- ConfirmAction:'app.goAuth()',
- CanelAction:''
- });
- return;
- };
- //- 跳转对应的快捷入口页面
- PublicLib.Goto({Url});
- },
- goAuth(){
- PublicLib.Goto({Url:'user-realauth'});
- },
- goactive(){
- //- 88活动
- return PublicLib.Goto({Url:'welcome-double'});
- },
- bannerbtn(id){
- PublicLib.putCookieInfo('indexBannerId',id);
- if(id === 25){
- //- 88业绩翻倍活动
- return PublicLib.Goto({Url:'welcome-double'});
- }else if(id === 20){
- //- 888.88红包活动
- return PublicLib.Goto({Url:'active-raffle'});
- }else if(id === 27){
- //- 盟主体系
- PublicLib.Goto({Url:'https://mp.weixin.qq.com/s?__biz=Mzg5NTY0MzUzNw==&mid=2247488743&idx=1&sn=c1dfc32865dbfb10e52014c8476223b0&chksm=c00c6e19f77be70feb9edbbeabc9bb178d9f5f0021775123b77f71facba6ae3f6ceeb1469377#rd'});
- return;
- }else if(id === 28){
- //- 推荐王
- PublicLib.Goto({Url:'new-pag2'});
- return;
- }else if(id === 26){
- //- 立刷0押
- PublicLib.Goto({Url:'https://mp.weixin.qq.com/s?__biz=Mzg5NTY0MzUzNw==&mid=2247486329&idx=1&sn=ed9f5d3ffa8ff61d56725312d8e759c3&chksm=c00c7187f77bf89105b9a3ab1ba5e3c90cdc267b0d403c79d1e5ef1bf16cd54359eea67bc611#rd'});
- return;
- }
- PublicLib.Goto({Url:'welcome'});
- },
- //- 跳转业绩
- achievement(){
- if(this.realauth){
- PublicLib.ShowDialog({
- Title:'暂未实名认证',
- Message:'是否去实名认证?',
- ConfirmText:'去实名',
- CancelText:'暂不实名',
- ConfirmAction:'app.goAuth()',
- CanelAction:''
- });
- return;
- };
- PublicLib.Goto({Url:'product-myperformance'});
- },
- //- 服务中心
- server(){
- PublicLib.OnlineService();
- //- PublicLib.Goto({Url:'user-service-list'});
- },
- //- 点击头部个人信息
- userinfobtn(){
- PublicLib.Goto({Url:'user-info'});
- },
- //- 获取仓库入口
- async getwarehouselist(){
- //- this.warehouse = [];
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/storehouse/indexlist?t='+Math.random(6),JSON.stringify({UserId,PageSize:15,PageNum:1}));
- if(res.status === '1') {
- //- this.warehouse = [];
- //- res.data.forEach((item,index)=>{
- //- if(item.BrandId){
- //- this.warehouse.push(item)
- //- };
- //- });
- this.warehouse = res.data;
- };
- },
- //- 跳转对应仓库
- gowarehouse(id,name,brandId){
- PublicLib.putCookieInfo('warehouseId', id);
- PublicLib.putCookieInfo('warehouseName', name);
- PublicLib.putCookieInfo('brandId', brandId);
- if(PublicLib.getCookieInfo('userId') === '598'){
- PublicLib.Goto({Url:'warehouse-management-afterSale'});
- }else{
- PublicLib.Goto({Url:'warehouse-management-afterSale'});
- }
- },
- //- 预发货方法
- async getsetfn(){
- const ToUserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/pos/presendstockdetail/waitconfirms?t='+Math.random(6),JSON.stringify({ToUserId,PageNum:1,PageSize:10}));
- if(PublicLib.getCookieInfo('dialogistrue') !== 'true' && res.data.SnList && res.data.SnList.length !== 0){
- this.getsetsnlist = res.data;
- PublicLib.putCookieInfo('dialogistrue','true');
- this.getsetdialog = true;
- };
- },
- snnolist(){
- return this.result.map(item=>item.Id).join(',');
- },
- //- 预发货处理
- getsetagreen:undebounce(async function(Status){
- if(this.result.length === 0)return tips('请选择SN号');
- const ToUserId = PublicLib.getCookieInfo('userId');
- const res = await postRequest('api/v1/pos/presendstockdetail/confirm?t='+Math.random(6),JSON.stringify({ToUserId,Status,Ids:this.snnolist()}));
- if(res.status !== '1') return tips(res.info);
- if(this.result.length === this.getsetsnlist.SnList.length){
- this.getsetdialog = false;
- }else{
- this.result = [];
- PublicLib.putCookieInfo('dialogistrue','');
- this.getsetfn();
- };
- setTimeout(()=>{
- if(Status === 1){
- tips('预发机确认收货');
- }else{
- tips('拒绝预发机收货');
- };
- },700);
- }),
- toggleAll(status) {
- this.checked = !this.checked;
- this.$refs.checkboxGroup.toggleAll(!status);
- },
- toggle(index) {
- this.$refs.checkboxes[index].toggle();
- setTimeout(()=>{
- if(this.result.length !== this.getsetsnlist.SnList.length){
- this.checked = false;
- }else{
- this.checked = true;
- };
- });
- },
- //- 获取数据
- pageffect(url = '') {
- const that = this;
- window.libpag.PAGInit().then(async (PAG) => {
- axios({url,responseType: "blob"}).then(async (response) =>{return response.request.response}).then(async (blob) => {
- let file = new window.File([blob], url.replace(/(.*\/)*([^.]+)/i, '$2'));
- const pagFile = await PAG.PAGFile.load(file);
- //- document.getElementById('pag').width = document.documentElement.clientWidth / 5;
- //- document.getElementById('pag').height = document.documentElement.clientWidth;
- const pagView = await PAG.PAGView.init(pagFile, '#pag',{ useCanvas2D: true,useScale: true,firstFrame:true });
- pagView.setRepeatCount(0);
- await pagView.play();
- });
- });
- },
- }
- });
- </script>
- </body>
- </html>
|