From b247b9a2eb8099aac48695d6662954d870a73c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BC=81=E9=98=B3=E4=BB=94?= <15836909675@163.com> Date: Fri, 2 Sep 2022 14:55:23 +0800 Subject: [PATCH] no message --- src/assets/img/rank_1.png | Bin 0 -> 1162 bytes src/assets/img/rank_2.png | Bin 0 -> 1535 bytes src/assets/img/rank_3.png | Bin 0 -> 1665 bytes src/assets/img/wap-down.png | Bin 0 -> 433 bytes ...45\217\240\346\246\234\345\215\225@2x.png" | Bin 0 -> 444 bytes .../img/\350\277\224\345\233\236@2x.png" | Bin 0 -> 611 bytes src/components/element-ui/element.js | 9 +- src/components/vant-ui/index.js | 5 +- src/view/pc/fans.vue | 11 +- src/view/pc/force.vue | 14 ++- src/view/pc/mapFans.vue | 11 +- src/view/pc/mapForce.vue | 53 ++++++++- src/view/pc/rankList.vue | 110 +++++++++++++++--- src/view/wap/fans.vue | 17 ++- src/view/wap/force.vue | 17 ++- src/view/wap/rankList.vue | 50 +++++++- 16 files changed, 258 insertions(+), 39 deletions(-) create mode 100644 src/assets/img/rank_1.png create mode 100644 src/assets/img/rank_2.png create mode 100644 src/assets/img/rank_3.png create mode 100644 src/assets/img/wap-down.png create mode 100644 "src/assets/img/\346\212\230\345\217\240\346\246\234\345\215\225@2x.png" create mode 100644 "src/assets/img/\350\277\224\345\233\236@2x.png" diff --git a/src/assets/img/rank_1.png b/src/assets/img/rank_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b0904ac6e67a6de9b8809b2fee7aaf5e2f250857 GIT binary patch literal 1162 zcmV;51aPx#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91D4+uX1ONa40RR91Gynhq0N?f;F8}}o^hrcPRA>e5SX)R`K^Xr3v#aZ7 zD7Kne4@D6@1PLM1&6b2N7`;glQBU<&iQ2`C$dJ5r6Ro!%f}{w#JamzwD9o&os0?}t zUli#gx=EYY+&$AjOLN%uoIUA`nh)pr@X!1+|2N-!|D3bVk1+1(Z7!)8=bF)OhW}#B z`r3@HF0q(HP(rkr5J$lnIV3ucf)b*|gg6Su$RW{j6qFDxCd3`nQ|K@R9|GITAsFCe zWDrn*GeVUKqQ*Qr13#UWTn6Cc$QrPvIzpR<(9CokHCB^ome{TZOauqtmS+tQ4OdeN_R?Eu8n*&b^&x#g z>F=6%j`w(SPSv+)Jc9u1Xz&DjI!l<&%4x#f=t(o!9zYGNe3?rw;_^e0H`+LZfu64I zM6ODe+~9B+x_d_;5FC@)*Idqla}mJ?LE%ub?>d4|aP$LgDR~dI*E?09j9ArAMg)kf zcH`-HXt>i2p>XtXim{G#Lz!R=DRt|44-Adke$J!`DyR6ttG)<1Z=wd3`<6k1+j#G! zNks=L6HHEW!Or|lxO*lW3jOn=v8SZ1oZ@@c+2A4drt48go=$Rn)5-*=OF4n-5EM$t zT1P=yygIdatXZ$1LC}}E_#uLJf|M8#YWxQ~ zz&UU(Vr|oZmyv7d@JJ2S6!y&MwG*(>>rE<)d+ijAg`Kq*cR`R_UX}>7l2@w<^{jbZGghQj}h-jhkO~w+j+b*}~NZQ((&WXlNil6}Pe^KlYA=c9w$QC|Z zi`edFtSD_`U9;^xi$N)Z9OrM{a6dIF=`3YfVDs8+FVzB1QXTNhzv_UN@#K^yC;)%F zJ(e0C`F)Cx`2k9O0{2rY$EfOe*_D)ddR|VgsHTdLNm*rrVl^rkuK+ey7wKa{F_m>c ci!l}Z2ltai+ES7tg8%>k07*qoM6N<$f=QeVpa1{> literal 0 HcmV?d00001 diff --git a/src/assets/img/rank_2.png b/src/assets/img/rank_2.png new file mode 100644 index 0000000000000000000000000000000000000000..553c89ac770752a95231c1a8a7e004916b9aacb7 GIT binary patch literal 1535 zcmVPx#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91D4+uX1ONa40RR91Gynhq0N?f;F8}}qX-PyuRA>e5SZi!lMHD`B@9wsx zwU59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 diff --git "a/src/assets/img/\346\212\230\345\217\240\346\246\234\345\215\225@2x.png" "b/src/assets/img/\346\212\230\345\217\240\346\246\234\345\215\225@2x.png" new file mode 100644 index 0000000000000000000000000000000000000000..84670dfc7ea55a10f60026acbde7677f7639e754 GIT binary patch literal 444 zcmV;t0YmPx$c1c7*RA@u(n#&EsFbsxmia2s$2`(Iwcx(ZYSb=irJUn(_4H$(Tkf5jtB*d%1 zO&yb%GnW0uzhk>CF1NcJ0{)=_{&{xe%izL{@t>3STyifNR6ybB)eNdcRib`RKx^<* z4N4p7Y~!@jd0G=0SlmrWi0H@T9n@$1!-i`L&$r819;rE{k z811OG+V0k!ZabUxdPlz^{O+AB(ZUcB_L#TK-1HApAu9nEP>65?J~02E0N7 z9-)C*IvH-HK{^4vLm|LMT3tE?yh&D6T{;IWtIN7(SoUq=Q(Y<`;g(`wm%g=*dNRnk zE=g`aWD)$jL}*uDOvtyWmuLx26)@UoGWCpH1P$Iy*tZFK zsJ~mX58JK`$5V{`>@eI7;PW)AvcOom8eRTq8mn=Qi(Fg m!s05vFMe5$mC;G?8N2`^90X5t(iK_&0000Px%9Z5t%RA@u(nmbFwP!z|{xvdX;4T|4F92_+1<|;y8>Y^Z88d3^{Lh+kaEkZ#M zL9ikYb?#?61BWfCw-UgJb53^s*W-*h9 zZ1lFm->kljXz8N1-l9+hfLXf<>MKCS+IO?LPbsXa)&c{lwWf`v?*Y46`vpX7Ac3qL z6VH5GgL>8w;4%~@aylx!+JW<|$*3I?D6F>uAiN`zoE#TU?1HKDU2ih_*04Gh9!aO7 z3(ro$xoS|~8h(TT^HM@6I|=5hL0xNzH^U^9+KnwfvVdc5P}ds3Cjb;O$w-M67;}RL z*6t|6P9`qaS;H|ks0Rpu2Q$-?dmGDhibduR(=MtPQADg00%<8G-m)fS3aB35Ag)If zqgdEl5k6Rfx&o*i-oWM)L6D@lc+CRRH9#|)fOtGLJf7cNoqu-{)OA2(oA5#?%2HCi zathKDK=ts4mHRact$pQU+YW@MV@Pt_iKT{JP)`AkYy!d?Qj(RE!nqwt&jHPB`u@VJ zwbQNB1`4p7%|HTbYcr6a4ed0Q&bfWlWSoT3uEhcE7C9?3R@dbQxk0O0@n{^6D37Q| x(X+ZOk7(c{YBdUe88>);{QAX=)pG{k;1B3DHBW29l_mfH002ovPDHLkV1iEO3^o7& literal 0 HcmV?d00001 diff --git a/src/components/element-ui/element.js b/src/components/element-ui/element.js index 52b7c7f..fbf1c6e 100644 --- a/src/components/element-ui/element.js +++ b/src/components/element-ui/element.js @@ -1,7 +1,12 @@ import Vue from 'vue'; import './element-variables.scss'; import { - Popover + Popover, + Dropdown, + DropdownMenu, + DropdownItem } from 'element-ui'; - +Vue.use(DropdownItem) +Vue.use(DropdownMenu) +Vue.use(Dropdown) Vue.use(Popover) \ No newline at end of file diff --git a/src/components/vant-ui/index.js b/src/components/vant-ui/index.js index 34694f5..65d4434 100644 --- a/src/components/vant-ui/index.js +++ b/src/components/vant-ui/index.js @@ -23,9 +23,10 @@ Empty, Uploader, Popup, - Rate + Rate, + Picker } from "vant"; - + Vue.use(Picker) Vue.use(Rate); Vue.use(Popup); Vue.use(Button); diff --git a/src/view/pc/fans.vue b/src/view/pc/fans.vue index 97d5055..71ab62f 100644 --- a/src/view/pc/fans.vue +++ b/src/view/pc/fans.vue @@ -6,7 +6,7 @@
- +
@@ -23,6 +23,8 @@ export default { rankList:[], cityObj:'', dataList:[], + dropdownList:[], + rankList:[], city:'全国', mapStyle:{ width:'1000', @@ -33,6 +35,10 @@ export default { } }, methods: { + dropdownFn (val){ + this.city = val + this.rankData = this.optionList.find(it=>it.city == val).list + }, setrankList(data){ this.rankData = data.list this.city = data.city @@ -44,6 +50,8 @@ export default { this.rankList = res.data.data.countryTop this.dataList = res.data.data.cityInfoList this.optionList = res.data.data.cityInfoList + this.rankList = res.data.data.countryTop + this.dropdownList = res.data.data.cityInfoList.map(it=>it.city) } }).catch(() => { @@ -53,6 +61,7 @@ export default { this.cityObj = null this.optionList = this.dataList this.rankData = this.rankList + this.city = '全国' }, rankFans(item) { getFanDistribution(item.username).then(re=>{ diff --git a/src/view/pc/force.vue b/src/view/pc/force.vue index 90ff89f..7ae9bc2 100644 --- a/src/view/pc/force.vue +++ b/src/view/pc/force.vue @@ -5,7 +5,7 @@
- +
@@ -18,7 +18,9 @@ export default { return { optionList: [], rankData: [], + rankList:[], city:'全国', + dropdownList:[], mapStyle:{ width:'1000', height:'900', @@ -28,11 +30,21 @@ export default { } }, methods: { + dropdownFn (val){ + this.city = val + this.rankData = this.optionList.find(it=>it.city == val).list + }, + clear(){ + this.rankData = this.rankList + this.city = '全国' + }, getlist() { getForceInfo().then((res) => { if (res.status == 200) { this.optionList = res.data.data.cityInfoList this.rankData = res.data.data.countryTop + this.rankList = res.data.data.countryTop + this.dropdownList = res.data.data.cityInfoList.map(it=>it.city) } }).catch(() => { diff --git a/src/view/pc/mapFans.vue b/src/view/pc/mapFans.vue index e5a50e7..1ee2ea3 100644 --- a/src/view/pc/mapFans.vue +++ b/src/view/pc/mapFans.vue @@ -157,9 +157,9 @@ export default { }, { type: 'effectScatter', - name: 'totip', + name: 'totipgeo', coordinateSystem: 'geo', - zlevel: 1, + zlevel: 100, rippleEffect: { //涟漪特效 period: 4, //动画时间,值越小速度越快 @@ -214,7 +214,7 @@ export default { { type: 'effectScatter', coordinateSystem: 'geo', - zlevel: 15, + zlevel: 150, rippleEffect: { period: 4, brushType: 'fill', @@ -296,15 +296,16 @@ export default { formatter: function (params) { var obj = that.optionList[params.dataIndex] var str = '' - console.log(params,9999) // if (params.seriesName==='totip'){ if (params.name === that.cityObj.city){ str = ` ${that.cityObj.nickname||that.cityObj.username}

${that.cityObj.city} 铁粉数 ${that.cityObj.score}

` - }else{ + }else if(params.seriesName == "totipgeo"){ str = `

地区

${obj.name} 铁粉数 ${obj.uv}

` + }else{ + return '' } return ( `
diff --git a/src/view/pc/mapForce.vue b/src/view/pc/mapForce.vue index 27b2841..00c7050 100644 --- a/src/view/pc/mapForce.vue +++ b/src/view/pc/mapForce.vue @@ -164,7 +164,7 @@ export default { if (that.dataArray[params.dataIndex].list.length>0){ that.dataArray[params.dataIndex].list.forEach((item,index) => { if (index<3){ - demo += `

${index+1}

${item.nickname || item.username}

${item.score}

` + demo += `

${item.nickname || item.username}

${item.score}

` } }); }else{ @@ -175,7 +175,7 @@ export default { } str = `
-

上榜用户

+

${that.dataArray[params.dataIndex].list[0].nickname || that.dataArray[params.dataIndex].list[0].username} 成为 ${params.name} 领军人物之首

${params.name} ${that.title} ${that.dataArray[params.dataIndex].score}

排名

用户

${that.title}

${demo} @@ -302,12 +302,57 @@ body { background-size: cover; padding-top: 10px; .popover-title { - font-size: 16px; + font-size: 14px; font-weight: 500; - color: #77c0ff; + color: rgba(119,192,255,0.7); height: 36px; line-height: 36px; padding: 0 16px; + display: flex; + align-items: center; + width: 100%; + img{ + width: 24px; + height: 24px; + border-radius: 50%; + margin-right: 8px; + } + span{ + color: #77C0FF; + margin: 0 6px; + + } + a{ + display: flex; + align-items: center; + } + span.name{ + margin-left: 0px; + max-width: 78px; + overflow: hidden; + text-overflow: ellipsis; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + word-break: break-all; + } + } + .back{ + height: 26px; + width: 20px !important; + margin: 0 5px; + &.rank_1{ + background-image: url('@/assets/img/rank_1.png'); + background-size: cover; + } + &.rank_2{ + background-image: url('@/assets/img/rank_2.png'); + background-size: cover; + } + &.rank_3{ + background-image: url('@/assets/img/rank_3.png'); + background-size: cover; + } + } .popover-empty { height: 120px; diff --git a/src/view/pc/rankList.vue b/src/view/pc/rankList.vue index b04cb1f..e718933 100644 --- a/src/view/pc/rankList.vue +++ b/src/view/pc/rankList.vue @@ -1,13 +1,29 @@ +