year-report4.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>月度账单-创业帮</title>
  6. <meta name="keywords" content="月度账单-创业帮">
  7. <meta name="description" content="月度账单-创业帮">
  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="月度账单-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. <link rel="stylesheet" href="./static/css/_public.css">
  17. <link rel="stylesheet" href="https://ap.kexiaoshuang.com/skin/app/default/static/css/_keyframes.css">
  18. <link rel="stylesheet" href="https://ap.kexiaoshuang.com/skin/app/default/static/css/year-report.css">
  19. <style>
  20. .m0a{
  21. margin: 0 auto;
  22. }
  23. .width90{
  24. width:90% !important;
  25. }
  26. </style>
  27. </head>
  28. <body class="pb0 pt0 ovh fl" style="padding:0;">
  29. <div class="year-report bgctra invited-old" id="app" v-cloak>
  30. <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">
  31. <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>
  32. <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>
  33. <div class="vh100" @touchend="gtouchend" @touchstart="gtouchstart" style="height:100vh">
  34. <transition name="fade">
  35. <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">
  36. <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>
  37. </div>
  38. </transition>
  39. <transition name="fade">
  40. <div class="df jcsb cfff flex-dir-col pl10" v-if="pageNum === 2">
  41. <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>
  42. <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>
  43. <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>
  44. <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>
  45. <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>
  46. <div class="mt13" style="animation: opac0-1 1s 0.5s forwards; opacity:0;"> <span class="f13">创业帮平台总交易量</span><span class="f26 b ml14">破亿</span></div>
  47. <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>
  48. <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">
  49. </div>
  50. </transition>
  51. <transition name="fade">
  52. <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">
  53. <div class="abs articl2">
  54. <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>
  55. <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>
  56. <div class="f13 mt13" style="animation: opac0-1 1s 0.3s forwards; opacity:0;">隔着这个屏幕</div>
  57. <div class="f13 mt13" style="animation: opac0-1 1s 0.4s forwards; opacity:0;">我们开始紧密相连</div>
  58. <div class="mt40">
  59. <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>
  60. <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>
  61. <div class="f13 mt13" style="animation: opac0-1 1s 0.7s forwards; opacity:0;">成功的背后</div>
  62. <div class="f13 mt13" style="animation: opac0-1 1s 0.8s forwards; opacity:0;">是你的辛勤付出</div>
  63. <div class="f13 mt13" style="animation: opac0-1 1s 0.9s forwards; opacity:0;">他们的日子方便了一点</div>
  64. <div class="f13 mt13" style="animation: opac0-1 1s 1s forwards; opacity:0;">你的生活也红火了一点</div>
  65. </div>
  66. </div>
  67. </div>
  68. </transition>
  69. <transition name="fade">
  70. <div class="df jcsb cfff flex-dir-col pl10" v-if="pageNum === 4">
  71. <div class="abs articl3">
  72. <div>
  73. <div class="f13 mt13" style="animation: opac0-1 1s 0.1s forwards; opacity:0;">白天越来越长</div>
  74. <div class="f13 mt13" style="animation: opac0-1 1s 0.2s forwards; opacity:0;">夜晚越来越热</div>
  75. <div class="f13 mt13" style="animation: opac0-1 1s 0.3s forwards; opacity:0;">却始终能看到你熟悉的步伐</div>
  76. </div>
  77. <div class="mt35">
  78. <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>
  79. <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>
  80. <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>
  81. <div class="f13 mt35" style="animation: opac0-1 1s 0.7s forwards; opacity:0;">每一句你好</div>
  82. <div class="f13 mt13" style="animation: opac0-1 1s 0.8s forwards; opacity:0;">都是为幸福生活努力的声音</div>
  83. </div>
  84. </div><img class="abs dialog" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/dialog.png" alt="alt">
  85. </div>
  86. </transition>
  87. <transition name="fade">
  88. <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">
  89. <div class="articl4 m0a df jcsb flex-dir-col">
  90. <div class="df jcsb aic rel">
  91. <div class="c999 f13">排名 / 姓名</div>
  92. <div class="c999 f13">数量(个)</div>
  93. </div>
  94. <div class="df jcsb aic opc0" v-for="item,index in countRank" :key="index" ref="showindex">
  95. <div class="df aic" style="width:30%">
  96. <div class="f21 c999 tc left" :class="{red: index &lt;= 2}">{{index+1}}</div>
  97. <div class="f13 c333 center">{{item.realName}}</div>
  98. </div>
  99. <div class="f13 c999 right">{{item.openCount}}</div>
  100. </div>
  101. </div>
  102. <div class="c333 f17 abs" style="margin:5% 0 0 5%">创业帮开机量排行榜</div>
  103. </div>
  104. </transition>
  105. <transition name="fade">
  106. <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">
  107. <div class="articl4 m0a df jcsb flex-dir-col">
  108. <div class="df jcsb aic rel">
  109. <div class="c999 f13">排名 / 姓名</div>
  110. <div class="c999 f13">金额(元)</div>
  111. </div>
  112. <div class="df jcsb aic opc0" v-for="item,index in amountRank" :key="index" ref="showindex">
  113. <div class="df aic" style="width:30%">
  114. <div class="f21 c999 tc left" :class="{red: index &lt;= 2}">{{index+1}}</div>
  115. <div class="f13 c333 center">{{item.RealName}}</div>
  116. </div>
  117. <div class="f13 c999 right">{{item.Sum}}</div>
  118. </div>
  119. </div>
  120. <div class="c333 f17 abs" style="margin:5% 0 0 5%">创业帮交易额排行榜</div>
  121. </div>
  122. </transition>
  123. <transition name="fade">
  124. <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="">
  125. <div class="df aic jcsb flex-dir-col cfff articl5 ovh">
  126. <div class="f13">这就是创业帮与你的故事</div>
  127. <div class="f13">每一场学习</div>
  128. <div class="f13">每一次开机</div>
  129. <div class="f13">每一笔收益</div>
  130. <div class="f13">都成就了独一无二的你</div>
  131. <div class="f13">试试生成独属于你的创业词条</div>
  132. </div>
  133. <button class="btn abs" @click="pageNum = 8">
  134. <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">
  135. </button>
  136. </div>
  137. </transition>
  138. <transition name="fade">
  139. <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">
  140. <div class="df jcsb flex-dir-col wordList">
  141. <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}}
  142. <div class="f10 abs sortIcon" v-show="item.checked">{{item.ind}}</div>
  143. </div>
  144. <div class="f10 cfff">请选择5个你熟悉或喜欢的句子,拼成一个词条</div>
  145. </div>
  146. <div class="df jcsb tool aic">
  147. <button class="corperBtn" @click="changePage('jian')">上一页</button>
  148. <button class="corperBtn" @click="changePage('add')">下一页</button>
  149. <button class="emputyBtn" @click="changePage('emputy')">清空</button>
  150. <div class="f10 cfff">当前{{curPage}}/5</div>
  151. </div>
  152. <button class="btn abs" @click="makeWordList">选择5个句子,生成关键词</button>
  153. </div>
  154. </transition>
  155. <transition name="fade">
  156. <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">
  157. <div class="df jcsb flex-dir-col wordList" style="height:6.4rem">
  158. <div class="cfff f13 word tc rel" v-for="(item,index) in chooseWords" ref="rilima">{{item.text}}</div>
  159. </div><img class="every88 abs" src="https://ap.kexiaoshuang.com/skin/app/default/static/images/active/summary/every88.png" alt="">
  160. <div class="df aic abs btnbox">
  161. <button class="rechoosebtn" @click="rechoose">重新拼</button>
  162. <button class="sharebtn" @click="share">分享</button>
  163. </div>
  164. </div>
  165. </transition>
  166. <van-popup class="bgcf7f7f7" v-model="show" position="bottom" :style="{ height: '28%' }">
  167. <div class="sharepanel rel">
  168. <div class="f12 c999 tc">分享到</div>
  169. <van-grid class="grad" :column-num="2">
  170. <van-grid-item text="微信" @click="weixin">
  171. <template #icon>
  172. <svg class="icon" aria-hidden="true">
  173. <use xlink:href="#icon-weixin"> </use>
  174. </svg>
  175. </template>
  176. </van-grid-item>
  177. <van-grid-item text="微信朋友圈" @click="weixinfriend">
  178. <template #icon>
  179. <svg class="icon" aria-hidden="true">
  180. <use xlink:href="#icon-pengyouquan"></use>
  181. </svg>
  182. </template>
  183. </van-grid-item>
  184. </van-grid>
  185. <div class="tc mt16 cencal abs bgcfff f14 c333" @click="show = false">取消</div>
  186. </div>
  187. </van-popup>
  188. </div>
  189. </div>
  190. </div>
  191. <script src="./static/js/klm-vv.min.js"></script>
  192. <script src="./static/js/appfunc.min.js"></script>
  193. <script src="./static/js/klm-axios-config.js"></script>
  194. <script src="./static/js/publicfn.js"></script>
  195. <script src="./static/js/iconfont.js"></script>
  196. <script>
  197. let app = new Vue({
  198. el: '#app',
  199. data() {
  200. return {
  201. show:false,
  202. isPlay:true,
  203. musicURL:'./static/mp3/city-of-start.mp3',
  204. firstCome:{
  205. month:'01',
  206. day:'01'
  207. },
  208. isApp:true,
  209. dateArr:[],
  210. totalamountArr:[],
  211. firstOpenDay:{
  212. month:'01',
  213. day:'01',
  214. },
  215. achivment:{
  216. TotalPosMerchant:0,
  217. AddUser:0,
  218. },
  219. amountRank:[],
  220. countRank:[],
  221. startPrice:100000,
  222. formInfo:{
  223. ExpectAmount:'',
  224. TargetAmount:'',
  225. },
  226. pagY:'',
  227. pagY1:'',
  228. pageNum:1,
  229. type:'',
  230. curPage:1,
  231. chooseWords:[],
  232. wordList:[
  233. {
  234. text:'创业帮 成就平凡人的创业梦想',
  235. checked:false,
  236. page:1,
  237. ind:'',
  238. },
  239. {
  240. text:'外行到内行,学习是桥梁!',
  241. checked:false,
  242. page:1,
  243. ind:'',
  244. },
  245. {
  246. text:'行动比说话更重要',
  247. checked:false,
  248. page:1,
  249. ind:'',
  250. },
  251. {
  252. text:'天道酬勤',
  253. checked:false,
  254. page:1,
  255. ind:'',
  256. },
  257. {
  258. text:'这一次的拒绝就是下一次的成交',
  259. checked:false,
  260. page:1,
  261. ind:'',
  262. },
  263. {
  264. text:'每天只看目标,别老想障碍',
  265. checked:false,
  266. page:1,
  267. ind:'',
  268. },
  269. {
  270. text:'要成功,不要与马赛跑,要骑在马上,马上成功',
  271. checked:false,
  272. page:1,
  273. ind:'',
  274. },
  275. {
  276. text:'成功需要改变,用新的方法改变过去的结果',
  277. checked:false,
  278. page:1,
  279. ind:'',
  280. },
  281. {
  282. text:'幸福就是在一起,成功就是跟着走',
  283. checked:false,
  284. page:2,
  285. ind:'',
  286. },
  287. {
  288. text:'始于支付 不止支付',
  289. checked:false,
  290. page:2,
  291. ind:'',
  292. },
  293. {
  294. text:'不论顺境逆境,都可以通过我们的努力进行改变',
  295. checked:false,
  296. page:2,
  297. ind:'',
  298. },
  299. {
  300. text:'地推治百病,推荐打天下,服务定江山',
  301. checked:false,
  302. page:2,
  303. ind:'',
  304. },
  305. {
  306. text:'回避现实的人终将面对现实',
  307. checked:false,
  308. page:2,
  309. ind:'',
  310. },
  311. {
  312. text:'每一次成功都源于勇敢的开始',
  313. checked:false,
  314. page:2,
  315. ind:'',
  316. },
  317. {
  318. text:'弱者用泪水安慰自己,强者用汗水磨练自己',
  319. checked:false,
  320. page:2,
  321. ind:'',
  322. },
  323. {
  324. text:'可以失败,不可以失志',
  325. checked:false,
  326. page:2,
  327. ind:'',
  328. },
  329. {
  330. text:'没有天生的信心,只有不断培养的信心',
  331. checked:false,
  332. page:3,
  333. ind:'',
  334. },
  335. {
  336. text:'未曾失败的人恐怕也未曾成功过',
  337. checked:false,
  338. page:3,
  339. ind:'',
  340. },
  341. {
  342. text:'吃得苦中苦,明天开路虎',
  343. checked:false,
  344. page:3,
  345. ind:'',
  346. },
  347. {
  348. text:'今天睡地板,明天当老板',
  349. checked:false,
  350. page:3,
  351. ind:'',
  352. },
  353. {
  354. text:'2022大干创业帮',
  355. checked:false,
  356. page:3,
  357. ind:'',
  358. },
  359. {
  360. text:'不要等待机会,要去创造机会',
  361. checked:false,
  362. page:3,
  363. ind:'',
  364. },
  365. {
  366. text:'与成功的人为伍',
  367. checked:false,
  368. page:3,
  369. ind:'',
  370. },
  371. {
  372. text:'每一份努力的背后必有加倍的赏赐',
  373. checked:false,
  374. page:3,
  375. ind:'',
  376. },
  377. {
  378. text:'人之所以能是相信能',
  379. checked:false,
  380. page:4,
  381. ind:'',
  382. },
  383. {
  384. text:'贫穷是不需要计划的,致富才要',
  385. checked:false,
  386. page:4,
  387. ind:'',
  388. },
  389. {
  390. text:'时间都是挤出来的',
  391. checked:false,
  392. page:4,
  393. ind:'',
  394. },
  395. {
  396. text:'人们能看到的只有你的成就',
  397. checked:false,
  398. page:4,
  399. ind:'',
  400. },
  401. {
  402. text:'生命只有一次,多试试',
  403. checked:false,
  404. page:4,
  405. ind:'',
  406. },
  407. {
  408. text:'图文无法穷尽,亲临始见风华',
  409. checked:false,
  410. page:4,
  411. ind:'',
  412. },
  413. {
  414. text:'摇摆和迟疑,只会让机会更少',
  415. checked:false,
  416. page:4,
  417. ind:'',
  418. },
  419. {
  420. text:'愈懂得欣赏,愈被人们欣赏',
  421. checked:false,
  422. page:4,
  423. ind:'',
  424. },
  425. {
  426. text:'只有不断前行,才能刷新新的高度',
  427. checked:false,
  428. page:5,
  429. ind:'',
  430. },
  431. {
  432. text:'这一秒不放弃,下一秒就能成功',
  433. checked:false,
  434. page:5,
  435. ind:'',
  436. },
  437. {
  438. text:'如果有梦想,不妨大胆一点',
  439. checked:false,
  440. page:5,
  441. ind:'',
  442. },
  443. {
  444. text:'心不唤物,物不至',
  445. checked:false,
  446. page:5,
  447. ind:'',
  448. },
  449. {
  450. text:'成功没有奇迹,而是有轨迹',
  451. checked:false,
  452. page:5,
  453. ind:'',
  454. },
  455. {
  456. text:'越努力越幸运',
  457. checked:false,
  458. page:5,
  459. ind:'',
  460. },
  461. {
  462. text:'开机才是硬道理',
  463. checked:false,
  464. page:5,
  465. ind:'',
  466. },
  467. {
  468. text:'学习是第一生产力',
  469. checked:false,
  470. page:5,
  471. ind:'',
  472. },
  473. ]
  474. };
  475. },
  476. created() {
  477. if(PublicLib.getCookieInfo('isApp') === 'true'){
  478. this.isApp = true;
  479. }else{
  480. this.isApp = false;
  481. PublicLib.putCookieInfo('userId',this.getUrlParam('Id'));
  482. };
  483. this.type = browsertype.versions.ios ? 'ios' : 'android';
  484. this.personalInfo();
  485. this.theFirstOpen(0);
  486. this.theFirstOpen(1);
  487. this.theFirstOpen(2);
  488. this.theFirstOpen(3);
  489. this.makerSortDo()
  490. this.makerFlowingSortDo()
  491. this.getMonthInfo('202003')
  492. this.getMonthInfo('202004')
  493. this.getMonthInfo('202005')
  494. },
  495. mounted(){
  496. this.autoPage()
  497. },
  498. updated(){
  499. this.$refs.showindex.forEach((item,index)=>{
  500. console.dir(item.style);
  501. item.style.animation = `opac0-1 1s ${(index+1)*.2}s forwards`
  502. })
  503. },
  504. computed:{
  505. totalamount:function(){
  506. let sum = 0
  507. return this.abs(this.totalamountArr.reduce(
  508. (pre, cur) => pre + cur,
  509. sum
  510. ))
  511. }
  512. },
  513. methods: {
  514. playmp3(){
  515. console.log(this.$refs.music)
  516. if(this.isPlay === false){
  517. this.$refs.music.play().then(()=>{this.isPlay = true})
  518. }else{
  519. this.$refs.music.pause()
  520. this.isPlay = false
  521. }
  522. console.log(this.isPlay)
  523. },
  524. wrodChoose(item,index){
  525. if(this.chooseWords.length < 5){
  526. item.checked = !item.checked
  527. if(item.checked){
  528. this.chooseWords.push(item)
  529. }else{
  530. let ind = this.chooseWords.findIndex((i)=> i.text == item.text)
  531. this.chooseWords.splice(ind,1)
  532. this.wordList.forEach((item)=>item.ind = '')
  533. }
  534. }
  535. else if(!item.checked && this.chooseWords.length === 5){
  536. return tips('最多只能选取5句话')
  537. }
  538. else if(item.checked && this.chooseWords.length === 5){
  539. item.checked = false
  540. let ind = this.chooseWords.findIndex((i)=> i.text == item.text)
  541. this.chooseWords.splice(ind,1)
  542. item.ind = ''
  543. }
  544. this.wordList.forEach((item)=>{
  545. if(this.chooseWords.findIndex((i)=>item.text === i.text) != -1){
  546. item.ind = this.chooseWords.findIndex((i)=>
  547. item.text === i.text
  548. ) + 1
  549. }
  550. })
  551. },
  552. makeWordList(){
  553. if(this.chooseWords.length === 5){
  554. this.pageNum = 9
  555. this.$nextTick().then(()=>{
  556. let chooseWordList = this.$refs.rilima
  557. chooseWordList.forEach((item,index)=>{
  558. if(index % 2 === 0){
  559. item.style.transform = 'rotate(6deg)'
  560. }else{
  561. item.style.transform = 'rotate(355deg);'
  562. }
  563. })
  564. })
  565. }else{
  566. return tips('请选择5个句子!')
  567. }
  568. },
  569. changePage(type){
  570. if(type === "add" && this.curPage < 5){
  571. this.curPage ++
  572. }else if(type === "jian" && this.curPage >= 2){
  573. this.curPage --
  574. }else if (type === 'emputy'){
  575. this.chooseWords = Array.from(0)
  576. this.wordList.forEach((item)=>{
  577. item.checked = false
  578. item.ind = ''
  579. })
  580. }
  581. },
  582. rechoose(){
  583. this.pageNum = 8
  584. this.chooseWords = []
  585. this.wordList.forEach((item)=>{
  586. item.checked = false
  587. item.ind = ''
  588. })
  589. },
  590. //- 截取参数函数
  591. getUrlParam(name){
  592. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
  593. var r = window.location.search.substr(1).match(reg); //匹配目标参数
  594. if (r != null) return unescape(r[2]);
  595. return null; //返回参数值
  596. },
  597. // 金额展示处理函数(1000,423,324,322.00)
  598. abs (val){
  599. //金额转换 保留2位小数 并每隔3位用逗号分开 1,234.56
  600. let str = (val/1).toFixed(2) + ''
  601. let intSum = str.substring(0,str.indexOf(".")).replace( /\B(?=(?:\d{3})+$)/g, ',' ) //取到整数部分
  602. let dot = str.substring(str.length,str.indexOf(".")) //取到小数部分搜索
  603. let ret = intSum + dot;
  604. return ret;
  605. },
  606. //- 用户信息
  607. async personalInfo(){
  608. const Id = PublicLib.getCookieInfo('userId');
  609. const res = await getRequest('api/v1/users/personalinfo?t='+Math.random(6),JSON.stringify({Id}));
  610. if(res.status === '1' && res.data.AuthDate) {
  611. let data = '';
  612. const zero = this.changedata(res.data.AuthDate,5) === '0' ? '': this.changedata(res.data.AuthDate,5);
  613. const month = zero + '' + this.changedata(res.data.AuthDate,6);
  614. const day = this.changedata(res.data.AuthDate,8) + '' + this.changedata(res.data.AuthDate,9);
  615. //- this.firstCome = `${month} 月 ${day} 日`;
  616. this.firstCome.month = month
  617. this.firstCome.day = day
  618. };
  619. },
  620. changedata(str,ind){
  621. let arr = str.split('');
  622. return arr[ind];
  623. },
  624. //- 第一次开机
  625. async theFirstOpen(ProductType){
  626. const UserId = PublicLib.getCookieInfo('userId');
  627. 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'}));
  628. if(res.status === '1') {
  629. if(res.data.length){
  630. this.dateArr.push((new Date(res.data[0].KqRegTime)).getTime())
  631. this.sortDate();
  632. }else{
  633. this.firstOpenDay = {}
  634. }
  635. };
  636. },
  637. //- 机具排行榜
  638. async makerSortDo(){
  639. const res = await getRequest('api/v1/LargeDataScreen/MakerSort?t='+Math.random(6),JSON.stringify({UserId:1}));
  640. if(res.status === '1') {
  641. this.countRank = res.data
  642. console.log(this.countRank)
  643. };
  644. },
  645. //- 交易额排行榜
  646. async makerFlowingSortDo(){
  647. const res = await getRequest('api/v1/LargeDataScreen/MakerFlowingWaterSort?t='+Math.random(6),JSON.stringify({}));
  648. if(res.status === '1'){
  649. this.amountRank = res.data
  650. this.amountRank.map((item)=>{this.abs(item.Sum)})
  651. }
  652. },
  653. //- 交易额
  654. async getMonthInfo(month){
  655. const UserId = PublicLib.getCookieInfo('userId');
  656. const res = await getRequest('api/v1/usertradedaysummary/teamperformance?t='+Math.random(6),JSON.stringify({TradeMonth:'202204',UserId}));
  657. if(res.status === '1') {
  658. this.achivment = res.data
  659. this.totalamountArr.push(res.data.TotalAmount)
  660. console.log(this.totalamountArr,'总交易额数组')
  661. };
  662. },
  663. sortDate(){
  664. this.dateArr.sort((a,b)=>a-b)
  665. let date = new Date( this.dateArr[0])
  666. //- this.firstOpenDay = `${date.getMonth() + 1} 月 ${date.getDate()} 日`
  667. this.firstOpenDay.month = `${date.getMonth() + 1}`
  668. this.firstOpenDay.day = `${date.getDate()}`
  669. console.log(this.firstOpenDay,'open')
  670. },
  671. backbtn(){
  672. PublicLib.GoBack({Level:1});
  673. },
  674. gtouchstart(e){
  675. this.pagY = e.changedTouches[0].clientY;
  676. },
  677. gtouchend(e){
  678. this.pagY1 = e.changedTouches[0].clientY;
  679. if((this.pagY1 - this.pagY) > 50){
  680. clearInterval(this.timer2)
  681. if(this.pageNum >= 2 && this.pageNum <= 9){
  682. this.pageNum --
  683. }
  684. };
  685. if((this.pagY1 - this.pagY) < -50){
  686. if(this.pageNum >= 1 && this.pageNum < 7){
  687. this.pageNum ++
  688. }
  689. };
  690. },
  691. nextPage(){
  692. if(this.pageNum >= 1 && this.pageNum < 8){
  693. this.pageNum ++
  694. }
  695. },
  696. joinus(){
  697. const UserId = PublicLib.getCookieInfo('userId');
  698. window.location.href = 'http://bs.kexiaoshuang.com/p/user-inviteregist-1?Id='+UserId;
  699. },
  700. share(){
  701. //- if(this.type === 'ios'){
  702. this.show = true;
  703. //- }else{
  704. //- this.backbtn();
  705. //- };
  706. },
  707. weixin(){
  708. const UserId = PublicLib.getCookieInfo('userId');
  709. const Url = 'http://bs.kexiaoshuang.com/p/year-report4?Id='+UserId;
  710. PublicLib.ShareAppMessageImage({Title:'创业帮破十亿啦!', Detail:'点击查看我的创客历程', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url});
  711. },
  712. weixinfriend(){
  713. const UserId = PublicLib.getCookieInfo('userId');
  714. const Url = 'http://bs.kexiaoshuang.com/p/year-report4?Id='+UserId;
  715. PublicLib.ShareTimeline({Title:'创业帮破十亿啦!', Detail:'点击查看我的创客历程', Icon:'https://bs.kexiaoshuang.com/static/share-logo.png', Url});
  716. },
  717. }
  718. });
  719. </script>
  720. </body>
  721. </html>