123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <template>
- <div class="homeMap">
- <view class="map">
- <scroll-view :scroll-x="true" class="scrollview-box">
- <div class="chinaMap" v-if="show">
- <echarsMap></echarsMap>
- </div>
- <div class="allMap" v-else>
- <div class="goChina" @click="show = !show"></div>
- </div>
- </scroll-view>
- </view>
- <div class="people">
- <u--image
- height="30px"
- width="30px"
- mode="heightFix"
- src="/static/img/icon_lotus_dark@2x.png"
- ></u--image>
- <text class="peopleNum">祈愿人数</text>
- <text class="peopleNum">{{ people }}</text>
- </div>
- <div class="bottom flex justify-between items-end">
- <div class="list">
- <div class="listItem" v-for="item in 6" :key="item">
- 用户名
- <text style="color: #7EE3DE">【河北】</text>
- 打卡!
- </div>
- </div>
- <div class="qiyuan">
- <u--image
- height="70px"
- width="70px"
- mode="heightFix"
- src="/static/img/btn_wish@2x.png"
- ></u--image>
- </div>
- </div>
- <tabbar></tabbar>
- </div>
- </template>
- <script>
- import tabbar from "components/tabbar/index.vue";
- import echarsMap from "components/echars/maps.vue";
- export default {
- components: {
- tabbar,
- echarsMap,
- },
- data() {
- return {
- show: true,
- people: 15124,
- };
- },
- onReady() {},
- methods: {
- handleHome() {
- console.log("开启云上观灯", uni);
- uni.$u.route("/pages/home/home");
- },
- },
- };
- </script>
- <style lang="scss">
- .homeMap {
- width: 100%;
- height: 100vh;
- position: relative;
- background: url(https://4dscene.4dage.com/new4dkk/deng/static/img/bg03@2x.png)
- 100% 100% no-repeat;
- background-size: cover;
- .bottom {
- width: calc(100% - 47px);
- position: absolute;
- bottom: 105px;
- left: 0;
- height: 25vh;
- padding: 0 27px 0 20px;
- .list{
- .listItem{
- padding: 6px 10px;
- background: rgba(0,0,0,0.3);
- border-radius: 50px;
- margin-top: 10px;
- font-weight: 400;
- font-size: 12px;
- color: #FFFFFF;
- line-height: 14px;
- text-align: center;
- font-style: normal;
- }
- }
- }
- .people {
- position: absolute;
- height: 35px;
- padding: 0 5px;
- background: rgba(0,0,0,0.5);
- right: 0;
- top: 125px;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 20px 0 0 20px;
- .peopleNum {
- font-size: 24rpx;
- color: #fff;
- margin-right: 8px;
- }
- }
- .map {
- width: 100%;
- height: 100%;
- .scrollview-box {
- white-space: nowrap; // 滚动必须加的属性
- width: 100%;
- }
- .chinaMap {
- overflow: hidden;
- width: 100vw;
- height: 100vh;
- background: url(https://4dscene.4dage.com/new4dkk/deng/static/img/map@2x.png)
- 100% 100% no-repeat;
- // background-position: -1281px -397px;
- background-position: -1262px -383px;
- background-size: 1950px 1334px;
- }
- .allMap {
- width: 384px;
- height: calc(100vh - 358px);
- background: url(https://4dscene.4dage.com/new4dkk/deng/static/img/map@2x.png)
- 100% 55% no-repeat;
- background-position-y: 47px;
- background-position-x: -231px;
- background-size: 100vh 1097px;
- background-size: cover;
- position: relative;
- // background-position: -1758px -600px;
- .goChina {
- width: 100px;
- height: 100px;
- position: absolute;
- left: 240px;
- top: 236px;
- }
- }
- }
- }
- </style>
|