maker-details-echarts.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  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. </head>
  17. <body id="user_rank_explan">
  18. <div id="app" style="padding:none;" v-cloak>
  19. <van-sticky>
  20. <van-nav-bar class="user_rank_explan_title user_title_normal" title="创客详情" left-arrow @click-left="backbtn" v-if="toptitleisshow">
  21. <template #left> <img src="./static/images/left.png" alt=""></template>
  22. </van-nav-bar>
  23. </van-sticky>
  24. <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
  25. <div class="userpanel bordertop df borderbottom ovh">
  26. <div class="imgbox tc mr12"><img class="headportrait" :src="createrinfo.HeadPhoto" alt=""><img class="grade_rank" :src="gradephoto[createrinfo.UserLevel-1]" alt=""></div>
  27. <div class="infobox">
  28. <div class="userinfo df spb">
  29. <div class="right">
  30. <div class="name f16"> <span class="mr12">{{createrinfo.RealName}}</span><span>{{createrinfo.MakerCode}}</span></div>
  31. <div class="phonenumber f12">{{createrinfo.phoneNum}}</div>
  32. </div>
  33. <div class="leftbtn">
  34. <button @click="takephone(createrinfo.Mobile)">联系TA</button>
  35. </div>
  36. </div>
  37. <div class="time c999">注册时间 {{createrinfo.CreateDate}} | 实名时间 {{createrinfo.AuthDate}}</div>
  38. </div>
  39. </div>
  40. <van-tabs class="creater_main_panel creater_tab" v-model="active" sticky @click="checktab" :class="toptitleisshow ? '':'istitletab'">
  41. <van-tab disabled></van-tab>
  42. <van-tab title="近七天">
  43. <div v-if="active === 1">
  44. <div class="bordertop pl16 pr16 pt16">
  45. <div class="title df">
  46. <div class="left df">
  47. <div class="tips"></div>
  48. <div class="text c333 f14 b">交易分类占比</div>
  49. </div>
  50. <div class="f12 c333"> </div>
  51. </div>
  52. <div class="card" ref="transactionclassification"></div>
  53. <div class="title df">
  54. <div class="left df">
  55. <div class="tips"></div>
  56. <div class="text c333 f14 b">交易趋势图</div>
  57. </div>
  58. </div>
  59. <div class="card" ref="secend"></div>
  60. </div>
  61. <div class="ovh ovhbox">
  62. <div class="btnbox">
  63. <button v-for="item,index in ActMerchantTrenditem(echartsdata.TradeTrend)" :key="index" :class="ischeck === index ? 'productbtn':''" @click="checkbtn(index)">{{item}}</button>
  64. </div>
  65. </div>
  66. <div class="bordertop pl16 pr16 pt16">
  67. <div class="title df">
  68. <div class="left df">
  69. <div class="tips"></div>
  70. <div class="text c333 f14 b">新增活动商户分类占比</div>
  71. </div>
  72. <div class="f12 c333"> </div>
  73. </div>
  74. <div class="card" ref="addmerchantpie"></div>
  75. <div class="title df">
  76. <div class="left df">
  77. <div class="tips"></div>
  78. <div class="text c333 f14 b">新增活动商户趋势图</div>
  79. </div>
  80. </div>
  81. <div class="card" ref="addmerchantbar"></div>
  82. </div>
  83. <div class="ovh ovhbox">
  84. <div class="btnbox">
  85. <button v-for="item,index in ActMerchantTrenditem(echartsdata.ActMerchantTrend)" :key="index" :class="ischeck2 === index ? 'productbtn':''" @click="checkbtn2(index)">{{item}}</button>
  86. </div>
  87. </div>
  88. <div class="bordertop pl16 pr16 pt16">
  89. <div class="title df">
  90. <div class="left df">
  91. <div class="tips"></div>
  92. <div class="text c333 f14 b">创客新增趋势图</div>
  93. </div>
  94. </div>
  95. <div class="card" ref="addmakerbar"></div>
  96. </div>
  97. </div>
  98. </van-tab>
  99. <van-tab title="近半年">
  100. <div v-if="active === 2">
  101. <div class="bordertop pl16 pr16 pt16">
  102. <div class="title df">
  103. <div class="left df">
  104. <div class="tips"></div>
  105. <div class="text c333 f14 b">交易分类占比</div>
  106. </div>
  107. <div class="f12 c333">总交易{{echartsdata.TradeTotal}}元</div>
  108. </div>
  109. <div class="card" ref="transactionclassification"></div>
  110. <div class="title df">
  111. <div class="left df">
  112. <div class="tips"></div>
  113. <div class="text c333 f14 b">交易趋势图</div>
  114. </div>
  115. </div>
  116. <div class="card" ref="secend"></div>
  117. </div>
  118. <div class="ovh ovhbox">
  119. <div class="btnbox">
  120. <button v-for="item,index in ActMerchantTrenditem(echartsdata.TradeTrend)" :key="index" :class="ischeck === index ? 'productbtn':''" @click="checkbtn(index)">{{item}}</button>
  121. </div>
  122. </div>
  123. <div class="bordertop pl16 pr16 pt16">
  124. <div class="title df">
  125. <div class="left df">
  126. <div class="tips"></div>
  127. <div class="text c333 f14 b">新增活动商户分类占比</div>
  128. </div>
  129. <div class="f12 c333">总参与{{echartsdata.ActTotal}}户</div>
  130. </div>
  131. <div class="card" ref="addmerchantpie"></div>
  132. <div class="title df">
  133. <div class="left df">
  134. <div class="tips"></div>
  135. <div class="text c333 f14 b">新增活动商户趋势图</div>
  136. </div>
  137. </div>
  138. <div class="card" ref="addmerchantbar"></div>
  139. </div>
  140. <div class="ovh ovhbox">
  141. <div class="btnbox">
  142. <button v-for="item,index in ActMerchantTrenditem(echartsdata.ActMerchantTrend)" :key="index" :class="ischeck2 === index ? 'productbtn':''" @click="checkbtn2(index)">{{item}}</button>
  143. </div>
  144. </div>
  145. <div class="bordertop pl16 pr16 pt16">
  146. <div class="title df">
  147. <div class="left df">
  148. <div class="tips"></div>
  149. <div class="text c333 f14 b">创客新增趋势图</div>
  150. </div>
  151. </div>
  152. <div class="card" ref="addmakerbar"></div>
  153. </div>
  154. </div>
  155. </van-tab>
  156. <van-tab disabled></van-tab>
  157. </van-tabs>
  158. </van-pull-refresh>
  159. </div>
  160. <script src="./static/js/klm-vv.min.js"></script>
  161. <script src="./static/js/echarts.min.js"></script>
  162. <script src="./static/js/klm-axios-config.js"></script>
  163. <script src="./static/js/performanceechart.js"></script>
  164. <script>
  165. // 在 #app 标签下渲染一个按钮组件
  166. let app = new Vue({
  167. el: '#app',
  168. data() {
  169. return {
  170. isLoading:false,
  171. toptitleisshow:false,
  172. active:0,
  173. createrinfo:[],
  174. gradephoto:[
  175. './static/images/grade-k1.png',
  176. './static/images/grade-k2.png',
  177. './static/images/grade-k3.png',
  178. './static/images/grade-k4.png',
  179. './static/images/grade-k5.png',
  180. './static/images/grade-k6.png',
  181. './static/images/grade-k7.png',
  182. './static/images/grade-k8.png',
  183. './static/images/grade-k9.png',
  184. ],
  185. ischeck:0,
  186. ischeck2:0,
  187. echartsdata:{},
  188. }
  189. },
  190. created(){
  191. this.toptitleisshow = toptitleisshow;
  192. this.getcreaterinfo();
  193. this.getcreaterdetail();
  194. this.echartfn();
  195. },
  196. updated() {
  197. this.createrfn();
  198. },
  199. methods: {
  200. createrfn(){
  201. this.secendchart(this.ischeck);
  202. this.addmerchantbarchart(this.ischeck2);
  203. this.TradePercenttovalue(this.echartsdata.TradePercent);
  204. this.ActMerchantPercenttovalue(this.echartsdata.ActMerchantPercent);
  205. this.firstchart();
  206. },
  207. onRefresh(){
  208. this.getcreaterinfo();
  209. this.getcreaterdetail();
  210. this.isLoading = false;
  211. },
  212. checkbtn(index){
  213. this.ischeck = index;
  214. },
  215. checkbtn2(index){
  216. this.ischeck2 = index;
  217. },
  218. //- 分类交易占比(固定图表)
  219. firstchart(){
  220. pieechart(this.$refs.transactionclassification,this.echartsdata.TradePercent);
  221. pieechart(this.$refs.addmerchantpie,this.echartsdata.ActMerchantPercent);
  222. barechart(this.$refs.addmakerbar,this.MakerAddtovalue(this.echartsdata.MakerAdd)[0],this.MakerAddtovalue(this.echartsdata.MakerAdd)[1]);
  223. },
  224. //- 交易趋势图(随品牌切换)
  225. secendchart(index){
  226. barechart(this.$refs.secend,this.TradeTrendechart(this.echartsdata.TradeTrend,index)[0],this.TradeTrendechart(this.echartsdata.TradeTrend,index)[1])
  227. },
  228. //- 新增参与商户趋势图(随品牌切换)
  229. addmerchantbarchart(index){
  230. barechart(this.$refs.addmerchantbar,this.ActMerchantTrendechart(this.echartsdata.ActMerchantTrend,index)[0],this.ActMerchantTrendechart(this.echartsdata.ActMerchantTrend,index)[1]);
  231. },
  232. //- 数值转换为echarts所需数据
  233. TradePercenttovalue(arr){
  234. arr.forEach(item=>{item.value = item.TradeAmt;item.name = item.Name});
  235. },
  236. //- 数值转换为echarts所需数据
  237. ActMerchantPercenttovalue(arr){
  238. arr.forEach(item=>{item.value = item.ActCount;item.name = item.Name});
  239. },
  240. //- 新增创客趋势图
  241. MakerAddtovalue(arr){
  242. const newarr = [];
  243. const item1 = [];
  244. const item2 = [];
  245. arr.forEach(item=>{
  246. item1.push(item.TimeString)
  247. item2.push(item.AddCount)
  248. });
  249. newarr.push(item1,item2);
  250. return newarr;
  251. },
  252. //- 新增参与商户趋势图
  253. ActMerchantTrendechart(arr,index){
  254. const newarr = [];
  255. const item1 = [];
  256. const item2 = [];
  257. arr[index].Times.forEach(item=>{
  258. item1.push(item.TimeString);
  259. item2.push(item.ActCount);
  260. });
  261. newarr.push(item1,item2);
  262. return newarr;
  263. },
  264. //- 交易趋势图
  265. TradeTrendechart(arr,index){
  266. const newarr = [];
  267. const item1 = [];
  268. const item2 = [];
  269. arr[index].Times.forEach(item=>{
  270. item1.push(item.TimeString);
  271. item2.push(item.TradeAmt);
  272. });
  273. newarr.push(item1,item2);
  274. return newarr;
  275. },
  276. ActMerchantTrenditem(arr){
  277. const result = [];
  278. arr.forEach(item=>{
  279. result.push(item.Name);
  280. });
  281. return result;
  282. },
  283. backbtn(){
  284. PublicLib.GoBack({Level:1});
  285. },
  286. async getcreaterdetail(){
  287. PublicLib.ShowLoading({Message:''});
  288. const DateKind = this.active === 2 ? 2 : 1;
  289. const UserId = PublicLib.getCookieInfo('userId');
  290. const Id= PublicLib.getCookieInfo('querycreaterid');
  291. const res = await getRequest('/api/v1/users/mymakerdetail',JSON.stringify({Id,UserId,DateKind}));
  292. if(res.status !== '1') return tips('获取图表信息失败,请重试!');
  293. PublicLib.HideLoading();
  294. //- this.echartsdata = res.data;
  295. },
  296. echartfn(){
  297. if(this.active === 2){
  298. this.echartsdata = {
  299. TradePercent: [
  300. {
  301. Name: new Date().getFullYear() + '-' + (new Date().getMonth() - 3), //产品名称
  302. TradeAmt: 500.00, //交易额
  303. },
  304. {
  305. Name: new Date().getFullYear() + '-' + (new Date().getMonth() - 2), //产品名称
  306. TradeAmt: 500.00 //交易额
  307. },
  308. {
  309. Name: new Date().getFullYear() + '-' + (new Date().getMonth() - 1), //产品名称
  310. TradeAmt: 550.00 //交易额
  311. },
  312. {
  313. Name: new Date().getFullYear() + '-' + (new Date().getMonth()), //产品名称
  314. TradeAmt: 500.00 //交易额
  315. },
  316. {
  317. Name: new Date().getFullYear() + '-' + (new Date().getMonth() + 1), //产品名称
  318. TradeAmt: 580.00 //交易额
  319. },
  320. ],
  321. TradeTrend: [
  322. {
  323. Name: '全部', //产品名称
  324. Times: [
  325. {
  326. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 4), //交易日期/月份
  327. TradeAmt: 500.00 //交易额
  328. },
  329. {
  330. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 3), //交易日期/月份
  331. TradeAmt: 510.00 //交易额
  332. },
  333. {
  334. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 2), //交易日期/月份
  335. TradeAmt: 600.00 //交易额
  336. },
  337. {
  338. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 1), //交易日期/月份
  339. TradeAmt: 650.00 //交易额
  340. },
  341. {
  342. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth()), //交易日期/月份
  343. TradeAmt: 700.00 //交易额
  344. },
  345. {
  346. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1), //交易日期/月份
  347. TradeAmt: 710.00 //交易额
  348. },
  349. ]
  350. },
  351. ],
  352. ActMerchantPercent: [
  353. {
  354. Name: new Date().getFullYear() + '-' + (new Date().getMonth() - 1), //产品名称
  355. ActCount: 50 //参与数
  356. },
  357. {
  358. Name: new Date().getFullYear() + '-' + (new Date().getMonth()), //产品名称
  359. ActCount: 150 //参与数
  360. },
  361. {
  362. Name: new Date().getFullYear() + '-' + (new Date().getMonth() + 1), //产品名称
  363. ActCount: 140 //参与数
  364. }
  365. ],
  366. ActMerchantTrend: [
  367. {
  368. Name: '全部', //产品名称
  369. Times: [
  370. {
  371. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 4), //交易日期/月份
  372. ActCount: 50.00 //交易额
  373. },
  374. {
  375. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 3), //交易日期/月份
  376. ActCount: 51.00 //交易额
  377. },
  378. {
  379. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 2), //交易日期/月份
  380. ActCount: 58.00 //交易额
  381. },
  382. {
  383. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 1), //交易日期/月份
  384. ActCount: 70.00 //交易额
  385. },
  386. {
  387. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth()), //交易日期/月份
  388. ActCount: 90.00 //交易额
  389. },
  390. {
  391. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1), //交易日期/月份
  392. ActCount: 98.00 //交易额
  393. },
  394. ]
  395. },
  396. ],
  397. MakerAdd: [
  398. {
  399. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 4), //统计日期/月份
  400. AddCount: 2 //新增数
  401. },
  402. {
  403. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 3), //统计日期/月份
  404. AddCount: 6 //新增数
  405. },
  406. {
  407. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 2), //统计日期/月份
  408. AddCount: 7 //新增数
  409. },
  410. {
  411. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() - 1), //统计日期/月份
  412. AddCount: 9 //新增数
  413. },
  414. {
  415. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth()), //统计日期/月份
  416. AddCount: 12 //新增数
  417. },
  418. {
  419. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1), //统计日期/月份
  420. AddCount: 20 //新增数
  421. },
  422. ]}
  423. } else {
  424. this.echartsdata = {
  425. TradePercent: [
  426. {
  427. Name: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() - 1), //产品名称
  428. TradeAmt: 500.00, //交易额
  429. },
  430. {
  431. Name: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()), //产品名称
  432. TradeAmt: 500.00 //交易额
  433. },
  434. {
  435. Name: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() + 1), //产品名称
  436. TradeAmt: 550.00 //交易额
  437. },
  438. ],
  439. TradeTrend: [
  440. {
  441. Name: '全部', //产品名称
  442. Times: [
  443. {
  444. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() - 5), //交易日期/月份
  445. TradeAmt: 500.00 //交易额
  446. },
  447. {
  448. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() - 4), //交易日期/月份
  449. TradeAmt: 510.00 //交易额
  450. },
  451. {
  452. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() - 3), //交易日期/月份
  453. TradeAmt: 600.00 //交易额
  454. },
  455. {
  456. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() - 2), //交易日期/月份
  457. TradeAmt: 650.00 //交易额
  458. },
  459. {
  460. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() - 1), //交易日期/月份
  461. TradeAmt: 700.00 //交易额
  462. },
  463. {
  464. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()), //交易日期/月份
  465. TradeAmt: 710.00 //交易额
  466. },
  467. ]
  468. },
  469. ],
  470. ActMerchantPercent: [
  471. {
  472. Name: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() - 2), //产品名称
  473. ActCount: 50 //参与数
  474. },
  475. {
  476. Name: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() - 1), //产品名称
  477. ActCount: 150 //参与数
  478. },
  479. {
  480. Name: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()), //产品名称
  481. ActCount: 140 //参与数
  482. }
  483. ],
  484. ActMerchantTrend: [
  485. {
  486. Name: '全部', //产品名称
  487. Times: [
  488. {
  489. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()-5), //交易日期/月份
  490. ActCount: 50.00 //交易额
  491. },
  492. {
  493. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()-4), //交易日期/月份
  494. ActCount: 51.00 //交易额
  495. },
  496. {
  497. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()-3), //交易日期/月份
  498. ActCount: 58.00 //交易额
  499. },
  500. {
  501. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()-2), //交易日期/月份
  502. ActCount: 70.00 //交易额
  503. },
  504. {
  505. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() -1), //交易日期/月份
  506. ActCount: 90.00 //交易额
  507. },
  508. {
  509. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()), //交易日期/月份
  510. ActCount: 98.00 //交易额
  511. },
  512. ]
  513. },
  514. ],
  515. MakerAdd: [
  516. {
  517. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()-5), //统计日期/月份
  518. AddCount: 2 //新增数
  519. },
  520. {
  521. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()-4), //统计日期/月份
  522. AddCount: 6 //新增数
  523. },
  524. {
  525. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()-3), //统计日期/月份
  526. AddCount: 7 //新增数
  527. },
  528. {
  529. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()-2), //统计日期/月份
  530. AddCount: 9 //新增数
  531. },
  532. {
  533. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate() -1), //统计日期/月份
  534. AddCount: 12 //新增数
  535. },
  536. {
  537. TimeString: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate()), //统计日期/月份
  538. AddCount: 20 //新增数
  539. },
  540. ]};
  541. }
  542. },
  543. async getcreaterinfo(){
  544. const Id = PublicLib.getCookieInfo('querycreaterid');
  545. const res = await getRequest('/api/v1/users/personalinfo',JSON.stringify({Id}));
  546. if(res.status !== '1') return tips('获取创客信息失败,请重试!');
  547. res.data.phoneNum = hidemiddlenum(res.data.Mobile,3,4);
  548. //- res.data.CreateDate = res.data.CreateDate.substring(0,10);
  549. //- res.data.MakerCode = res.data.MakerCode.substring(0,10);
  550. this.createrinfo = res.data;
  551. },
  552. takephone(phonenum){
  553. PublicLib.PhoneCall(phonenum);
  554. },
  555. checktab(){
  556. this.ischeck = 0;
  557. this.ischeck2 = 0;
  558. this.getcreaterdetail();
  559. },
  560. }
  561. });
  562. </script>
  563. </body>
  564. </html>